Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/vfio/pci/mlx5/cmd.c mlx5vf_alloc_data_buffer() -> mlx5vf_add_pages()

Type Parameter Key Value
PARAM_VALUE 0 page_list 4096-ptr_max
PARAM_VALUE 1 npages 1-u32max
DATA_SOURCE 1 npages $1
HALF_LOCKED2 &migf->lock
HALF_LOCKED2 &migf->mvdev->state_mutex
HALF_LOCKED2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex

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

Type Parameter Key Value
PARAM_VALUE 0 page_list 4096-ptr_max
PARAM_VALUE 1 npages 512-4194304
LOCK2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex