Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/gpu/drm/tegra/gem.c tegra_bo_pin() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 5 attrs 0
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 1 sgt 16
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 4 size unit_byte
HALF_LOCKED2 &cache->lock
HALF_LOCKED2 &fpriv->lock

drivers/gpu/drm/tegra/gem.c tegra_gem_prime_map_dma_buf() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 5 attrs 0
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
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 attach->dmabuf->resv
HALF_LOCKED2 bo->base.base.resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv

drivers/crypto/tegra/tegra-se-main.c tegra_se_cmdbuf_pin() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 4 size 0-u32max
PARAM_VALUE 5 attrs 0
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 1 sgt 16
BUF_SIZE 2 cpu_addr 4096
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &cache->lock
HALF_LOCKED2 &fpriv->lock

drivers/misc/fastrpc.c fastrpc_dma_buf_attach() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 5 attrs 0
CAPPED_DATA 3 dma_addr 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->object_name_lock
HALF_LOCKED2 &file_priv->prime.lock

sound/usb/qcom/qc_audio_offload.c uaudio_transfer_buffer_setup() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 325533205951664128
PARAM_VALUE 2 cpu_addr 1-u64max
PARAM_VALUE 4 size 0,4096-98304
PARAM_VALUE 5 attrs 0
BUF_SIZE 2 cpu_addr s32min-s32max
DATA_SOURCE 2 cpu_addr r usb_alloc_coherent
FUZZY_MAX 4 size 98304
BIT_INFO 4 size 0x0,0x1f000
HARD_MAX 4 size 98304
UNITS 0 dev unit_byte
UNITS 4 size unit_byte
LOCK2 &pool->lock
LOCK2 _T->lock
LOCK2 global &qdev_mutex
HALF_LOCKED2 &txn->lock

drivers/gpu/drm/drm_gem_dma_helper.c drm_gem_dma_get_sg_table() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 5 attrs 0
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kzalloc_noprof
UNITS 2 cpu_addr unit_byte
UNITS 3 dma_addr unit_byte
UNITS 4 size unit_byte

drivers/usb/host/xhci-sideband.c xhci_ring_to_sgtable() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 4 size 4096
PARAM_VALUE 5 attrs 0
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kzalloc_noprof
NOCHECK_CALL
UNITS 0 dev unit_byte
LOCK2 &pool->lock
LOCK2 _T->lock
LOCK2 global &qdev_mutex
HALF_LOCKED2 &txn->lock

drivers/media/platform/nvidia/tegra-vde/vde.c tegra_vde_alloc_bo() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->dma_mem 0,4096-ptr_max
PARAM_VALUE 0 dev->dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 2 cpu_addr 1-ptr_max
PARAM_VALUE 4 size 0-u32max
PARAM_VALUE 5 attrs 20,84
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 2 cpu_addr 0-u32max
BUF_SIZE 2 cpu_addr 0-u32max
CAPPED_DATA 0 dev 1
CAPPED_DATA 4 size 1
CAPPED_DATA 4 size 1
DATA_SOURCE 2 cpu_addr r dma_alloc_attrs
DATA_SOURCE 4 size $3
FUZZY_MAX 5 attrs 20
BIT_INFO 5 attrs 0x14,0x54
BIT_INFO 5 attrs 0x14,0x54
MEM_ZERO 2 cpu_addr
RX_PATH
TASK_NOT_RUNNING
BYTE_COUNT 2 ==cpu_addr4 8050

drivers/media/platform/ti/omap3isp/ispccdc.c ccdc_lsc_config() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->cma_area->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 dev->dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->dma_uses_io_tlb 1
PARAM_VALUE 0 dev->iommu->attach_deferred 0-1
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 2 cpu_addr 1-ptr_max
PARAM_VALUE 5 attrs 0
BUF_SIZE 2 cpu_addr 0-u32max
BUF_SIZE 2 cpu_addr 0-u32max
CAPPED_DATA 0 dev 1
DATA_SOURCE 2 cpu_addr r dma_alloc_coherent
MEM_ZERO 2 cpu_addr
USER_DATA 4 size 0-u32max
BYTE_COUNT 2 ==cpu_addr4 8050
LOCK2 &ccdc->ioctl_lock
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock
TYPE_LOCK (struct isp_ccdc_device)->ioctl_lock

drivers/gpu/drm/exynos/exynos_drm_gem.c exynos_drm_gem_prime_get_sg_table() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 3 dma_addr unit_byte
UNITS 4 size unit_byte

sound/soc/fsl/fsl_asrc_m2m.c fsl_asrc_m2m_map_dma_buf() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 5 attrs 0
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
UNITS 3 dma_addr unit_byte
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 attachment->dmabuf->resv
HALF_LOCKED2 bo->base.base.resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv

drivers/gpu/drm/tegra/submit.c gather_bo_pin() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 5 attrs 0
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
HALF_LOCKED2 &cache->lock
HALF_LOCKED2 &fpriv->lock

drivers/media/platform/ti/omap3isp/ispstat.c isp_stat_bufs_alloc_one() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->cma_area->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 dev->dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->dma_uses_io_tlb 1
PARAM_VALUE 0 dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 dev->iommu->pci_32bit_workaround 0
PARAM_VALUE 1 sgt 4096-ptr_max
PARAM_VALUE 2 cpu_addr 1-ptr_max
PARAM_VALUE 4 size 4096-u32max
PARAM_VALUE 5 attrs 0
BUF_SIZE 2 cpu_addr 4096-u32max
BUF_SIZE 2 cpu_addr 4096-u32max
CAPPED_DATA 0 dev 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 dev $0
DATA_SOURCE 2 cpu_addr r dma_alloc_coherent
DATA_SOURCE 4 size $2
BIT_INFO 4 size 0x0,0xfffff000
NOSPEC 4 size
NOSPEC 4 size
MEM_ZERO 2 cpu_addr
USER_DATA 4 size 4096-u32max[c]
BYTE_COUNT 2 ==cpu_addr4 8050
LOCK2 &stat->ioctl_lock
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock
TYPE_LOCK (struct ispstat)->ioctl_lock

drivers/media/common/videobuf2/videobuf2-dma-contig.c vb2_dc_get_base_sgt() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
BUF_SIZE 1 sgt 16
BUF_SIZE 2 cpu_addr 4096-s32max
DATA_SOURCE 1 sgt r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 3 dma_addr unit_byte
UNITS 4 size unit_byte

drivers/gpu/drm/rockchip/rockchip_drm_gem.c rockchip_gem_prime_get_sg_table() -> dma_get_sgtable_attrs()

Type Parameter Key Value
PARAM_VALUE 1 sgt 4096-ptr_max
BUF_SIZE 1 sgt 16
DATA_SOURCE 1 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
UNITS 2 cpu_addr unit_byte
UNITS 3 dma_addr unit_byte
UNITS 4 size unit_byte