Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/infiniband/core/uverbs_std_types_dmabuf.c uverbs_dmabuf_map() -> dma_buf_phys_vec_to_sgt()

Type Parameter Key Value
PARAM_VALUE 0 attach 4096-ptr_max
PARAM_VALUE 0 attach->dmabuf 4096-ptr_max
PARAM_VALUE 0 attach->dmabuf->ops 4096-ptr_max
PARAM_VALUE 0 attach->dmabuf->priv 4096-ptr_max
PARAM_VALUE 2 phys_vec 4096-ptr_max
PARAM_VALUE 3 nr_ranges 1
BUF_SIZE 0 attach (-1),64
BUF_SIZE 0 attach (-1),64
DATA_SOURCE 0 attach $0
DATA_SOURCE 5 dir $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 attach->dmabuf->size 0-u64max
UNITS 4 size unit_byte
HALF_LOCKED2 &bo->lock
HALF_LOCKED2 &dbc->ch_lock
HALF_LOCKED2 &qdev->dev_lock
HALF_LOCKED2 &usr->qddev_lock
HALF_LOCKED2 bo->base.base.resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv
HALF_LOCKED2 0 attach->dmabuf->resv

drivers/vfio/pci/vfio_pci_dmabuf.c vfio_pci_dma_buf_map() -> dma_buf_phys_vec_to_sgt()

Type Parameter Key Value
PARAM_VALUE 0 attach 4096-ptr_max
PARAM_VALUE 0 attach->dmabuf 4096-ptr_max
PARAM_VALUE 0 attach->dmabuf->ops 4096-ptr_max
PARAM_VALUE 0 attach->dmabuf->priv 4096-ptr_max
BUF_SIZE 0 attach (-1),64
BUF_SIZE 0 attach (-1),64
DATA_SOURCE 0 attach $0
DATA_SOURCE 5 dir $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 attach->dmabuf->size 0-u64max
UNITS 3 nr_ranges unit_array_size
HALF_LOCKED2 &bo->lock
HALF_LOCKED2 &dbc->ch_lock
HALF_LOCKED2 &qdev->dev_lock
HALF_LOCKED2 &usr->qddev_lock
HALF_LOCKED2 bo->base.base.resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv
HALF_LOCKED2 0 attach->dmabuf->resv