Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/vfio/pci/mlx5/cmd.c mlx5vf_create_cq() -> init_cq_frag_buf()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
PARAM_VALUE 0 buf->cqe_size 64,128
PARAM_VALUE 0 buf->fbc.frags 1-u64max
PARAM_VALUE 0 buf->fbc.strides_offset 0
MEM_ZERO 0 buf
NOCHECK_CALL
LOCK2 &mvdev->state_mutex
TYPE_LOCK (struct mlx5vf_pci_core_device)->state_mutex

drivers/infiniband/hw/mlx5/cq.c create_cq_kernel() -> init_cq_frag_buf()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
PARAM_VALUE 0 buf->cqe_size 64,128
PARAM_VALUE 0 buf->fbc.frag_sz_m1 63
PARAM_VALUE 0 buf->fbc.frags 1-u64max
PARAM_VALUE 0 buf->fbc.log_frag_strides 6
PARAM_VALUE 0 buf->fbc.log_stride 6
PARAM_VALUE 0 buf->fbc.strides_offset 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/infiniband/hw/mlx5/cq.c resize_kernel() -> init_cq_frag_buf()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
PARAM_VALUE 0 buf->cqe_size 64
PARAM_VALUE 0 buf->fbc.frag_sz_m1 63
PARAM_VALUE 0 buf->fbc.frags 1-u64max
PARAM_VALUE 0 buf->fbc.log_frag_strides 6
PARAM_VALUE 0 buf->fbc.log_stride 6
PARAM_VALUE 0 buf->fbc.strides_offset 0
BUF_SIZE 0 buf 64
DATA_SOURCE 0 buf r _kzalloc_noprof
NOCHECK_CALL
LOCK2 &cq->resize_mutex
HALF_LOCKED2 &file->device->disassociate_srcu
TYPE_LOCK (struct mlx5_ib_cq)->resize_mutex