Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_pci_sriov_enable() -> i40e_alloc_vfs()

Type Parameter Key Value
PARAM_VALUE 0 pf 4096-ptr_max
PARAM_VALUE 0 pf->cinst->client->ops->vf_enable 0
PARAM_VALUE 0 pf->num_req_vfs 1-u16max
PARAM_VALUE 0 pf->state 4096-ptr_max
PARAM_VALUE 1 num_alloc_vfs 1-u16max
BUF_SIZE 0 pf s32min-(-2),1-s32max
BUF_SIZE 0 pf s32min-(-2),1-s32max
CAPPED_DATA 1 num_alloc_vfs 1
DATA_SOURCE 1 num_alloc_vfs $1
PARAM_COMPARE 1 num_alloc_vfs <= $0->num_req_vfs
NOSPEC 1 num_alloc_vfs
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 pf->pdev->sriov->offset 0
HOST_DATA 0 pf->pdev->sriov->stride 0
UNITS 0 pf unit_byte
UNITS 1 num_alloc_vfs unit_array_size
LOCK2 &of->mutex
LOCK2 &pdev->dev.mutex
LOCK2 global &pci_rescan_remove_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex