Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/vfio/pci/mlx5/cmd.c mlx5vf_alloc_qp_recv_resources() -> alloc_mkey_in()

Type Parameter Key Value
PARAM_VALUE 0 npages 512-4194304
PARAM_VALUE 1 pdn 0-16777215
CAPPED_DATA 0 npages 1
DATA_SOURCE 1 pdn $2
NO_OVERFLOW_SIMPLE 0 npages
UNITS 0 npages unit_array_size
LOCK2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex

drivers/vfio/pci/mlx5/cmd.c mlx5vf_dma_data_buffer() -> alloc_mkey_in()

Type Parameter Key Value
PARAM_VALUE 0 npages 1-u32max
NO_OVERFLOW_SIMPLE 0 npages
HALF_LOCKED2 &migf->lock
HALF_LOCKED2 &migf->mvdev->state_mutex
HALF_LOCKED2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex