Documented in 1 files:

Defined in 1 files as a function:

Referenced in 33 files:

Smatch caller information:

net/ceph/messenger_v2.c decrypt_tail() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 33694397967622144
PARAM_VALUE 0 sgt->nents 0
PARAM_VALUE 0 sgt->sgl 0
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,32,48-100663328
PARAM_VALUE 5 gfp_mask 3072
DATA_SOURCE 4 size r tail_onwire_len
UNITS 2 n_pages unit_array_size

net/ceph/messenger_v2.c prepare_message_secure() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 7983593899040030720
PARAM_VALUE 0 sgt->nents 0
PARAM_VALUE 0 sgt->sgl 0
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 1-24577
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 32,48-100663328
PARAM_VALUE 5 gfp_mask 3072
BUF_SIZE 1 pages s32min-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 1 pages r ceph_alloc_page_vector
DATA_SOURCE 2 n_pages r calc_pages_for
DATA_SOURCE 4 size r tail_onwire_len

drivers/gpu/drm/lima/lima_gem.c lima_heap_alloc() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 5749662880018636800
PARAM_VALUE 1 pages 1-u64max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-36028797018963960
BUF_SIZE 1 pages 0-36028797018963960
CAPPED_DATA 4 size 1
CAPPED_DATA 4 size 1
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

sound/core/memalloc.c snd_dma_sg_fallback_alloc() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-18446744073709547520
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-36028797018963960
BUF_SIZE 1 pages 0-36028797018963960
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 n_pages 0-3145729[c]
HOST_DATA 4 size 0,4096-12884905984[c]
USER_DATA 2 n_pages 0-1048576[c]
USER_DATA 4 size 0,4096-4294967296[c]
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-u64max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
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() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-u64max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
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/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_tt_pin_userptr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-17592186040320
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 pages 8,16
BIT_INFO 4 size 0x0,0xfffffffffffff000
NOSPEC 2 n_pages
NOSPEC 2 n_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 n_pages 0-u32max[c]
USER_DATA 4 size 0,4096-17592186040320[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 bo->base.resv

drivers/vfio/pci/pds/dirty.c pds_vfio_dirty_seq_ack() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 8114287880764420096
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 0-1048576
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-u64max
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 4 size 1
DATA_SOURCE 1 pages r _kmalloc_noprof
DATA_SOURCE 4 size $4
BIT_INFO 4 size 0x0,0xfffffff8
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
LOCK2 &pds_vfio->state_mutex
HALF_LOCKED2 &iopt->iova_rwsem
TYPE_LOCK (struct pds_vfio_pci_device)->state_mutex

drivers/media/pci/intel/ipu6/ipu6-buttress.c ipu6_buttress_map_fw_image() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-36028797018963960
BUF_SIZE 1 pages 0-36028797018963960
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $2
DATA_SOURCE 1 pages r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte

drivers/accel/qaic/qaic_control.c find_and_map_user_pages() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 1-s32max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-u64max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt r _kmalloc_noprof
DATA_SOURCE 1 pages r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 n_pages
NO_OVERFLOW_SIMPLE 4 size
UNITS 2 n_pages unit_array_size
ELEM_COUNT 1 ==pages2 8051
HALF_LOCKED2 &qdev->dev_lock
HALF_LOCKED2 &usr->qddev_lock

drivers/fpga/fpga-mgr.c fpga_mgr_buf_load() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 2890041078905327616
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 0-s32max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-u64max
DATA_SOURCE 1 pages r _kmalloc_noprof
DATA_SOURCE 4 size $3
USER_DATA 4 size 4-u32max[c]
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte
HALF_LOCKED2 &mgr->ref_mutex
HALF_LOCKED2 &region->mutex

drivers/iommu/dma-iommu.c __iommu_dma_alloc_noncontiguous() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 8192-u32max
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 4 size 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 sgt $2
DATA_SOURCE 1 pages r __iommu_dma_alloc_pages
DATA_SOURCE 4 size r iova_align
DATA_SOURCE 5 gfp_mask $3 [m]
BIT_INFO 5 gfp_mask 0x2000,0xfffbfff8
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 n_pages 0-4194305[c]
HOST_DATA 4 size 0-u64max[c]
USER_DATA 2 n_pages 0-2097152[c]
USER_DATA 4 size 0-u64max[c]
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

drivers/iommu/dma-iommu.c iommu_dma_get_sgtable() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-u64max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 pages 1-s32max
BUF_SIZE 1 pages 1-s32max
DATA_SOURCE 0 sgt $1
DATA_SOURCE 1 pages r dma_common_find_pages
DATA_SOURCE 4 size $4
NOSPEC 4 size
NOSPEC 4 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 n_pages 0-1048576[c]
USER_DATA 4 size 0-u32max
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 &ccdc->ioctl_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &stat->ioctl_lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &qdev_mutex

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 2 n_pages 0-1048576
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0-u32max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-8388608
BUF_SIZE 1 pages 0-8388608
DATA_SOURCE 0 sgt r _kzalloc_noprof
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
LOCK2 &pool->lock
LOCK2 _T->lock
LOCK2 global &qdev_mutex
HALF_LOCKED2 &txn->lock

drivers/gpu/drm/panfrost/panfrost_mmu.c panfrost_mmu_map_fault_addr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 0 sgt->sgl 0
PARAM_VALUE 1 pages 4096-ptr_max
PARAM_VALUE 2 n_pages 512
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 2097152
PARAM_VALUE 5 gfp_mask 3264
RX_PATH
TASK_NOT_RUNNING
UNITS 1 pages unit_page
LOCK2 obj->resv
HALF_LOCKED2 _T->lock
HALF_LOCKED2 irq

io_uring/zcrx.c io_import_umem() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 1-268435455
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 4096-1099511623680
PARAM_VALUE 5 gfp_mask 4197568
BUF_SIZE 1 pages 8-2147483640
BUF_SIZE 1 pages 8-2147483640
DATA_SOURCE 1 pages r io_pin_pages
CAPABLE 0 12
BIT_INFO 4 size 0x0,0xfffffff000
USER_DATA 2 n_pages 2-268435455[c]
USER_DATA 4 size 8192-1099511623680[c]
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
LOCK2 &ctx->uring_lock
LOCK2 _T->lock
HALF_LOCKED2 &dev->lock
TYPE_LOCK (struct io_ring_ctx)->uring_lock

drivers/gpu/drm/exynos/exynos_drm_g2d.c g2d_userptr_get_dma_addr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-34359738360
BUF_SIZE 1 pages 0-34359738360
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt r _kzalloc_noprof
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
DATA_SOURCE 4 size $2
USER_DATA 2 n_pages 0-u32max
USER_DATA 3 offset 0-4095[c]
USER_DATA 4 size 1-u64max
UNITS 2 n_pages unit_array_size

drivers/vfio/pci/pds/lm.c pds_vfio_get_lm_file() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-u64max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 1 pages r _kmalloc_noprof
DATA_SOURCE 4 size $2
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte
LOCK2 &pds_vfio->state_mutex
TYPE_LOCK (struct pds_vfio_pci_device)->state_mutex

drivers/staging/media/ipu7/ipu7.c ipu7_map_fw_code_region() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-36028797018963960
BUF_SIZE 1 pages 0-36028797018963960
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 1 pages r _kmalloc_noprof
DATA_SOURCE 4 size $2
PARAM_COMPARE 4 size == $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte

drivers/accel/ivpu/ivpu_gem_userptr.c ivpu_create_userptr_dmabuf() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 2 n_pages 0-s32max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-36028797018963960
BUF_SIZE 1 pages 0-36028797018963960
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt r _kmalloc_noprof
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
DATA_SOURCE 4 size $2
BIT_INFO 4 size 0x0,0xfffffffffffff000
BIT_INFO 4 size 0x0,0xfffffffffffff000
NOSPEC 2 n_pages
NOSPEC 2 n_pages
USER_DATA 2 n_pages 0-s32max
USER_DATA 4 size 1-u64max[u]
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte
ELEM_COUNT 1 ==pages2 8051

drivers/media/common/videobuf2/videobuf2-dma-sg.c vb2_dma_sg_alloc() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 1 *pages 4096-ptr_max
PARAM_VALUE 2 n_pages 0-1048575
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-u32max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-8388600
BUF_SIZE 1 pages 0-8388600
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
DATA_SOURCE 4 size $2
BIT_INFO 4 size 0x0,0xfffff000
BIT_INFO 4 size 0x0,0xfffff000
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte
ELEM_COUNT 1 ==pages2 8051

drivers/media/common/videobuf2/videobuf2-dma-sg.c vb2_dma_sg_get_userptr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 0-ptr_max
PARAM_VALUE 2 n_pages 1-s32max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 0-u32max
PARAM_VALUE 5 gfp_mask 0
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 1-8388600
DATA_SOURCE 4 size $3
RX_PATH
TASK_NOT_RUNNING
UNITS 4 size unit_byte
HALF_LOCKED2 &mdev->req_queue_mutex
HALF_LOCKED2 vb->vb2_queue->lock

drivers/accel/amdxdna/amdxdna_ubuf.c amdxdna_ubuf_map() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-18446744073709547520
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 1-s32max
DATA_SOURCE 0 sgt r _kzalloc_noprof
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
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

samples/vfio-mdev/mbochs.c mbochs_map_dmabuf() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
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 at->dmabuf->resv
HALF_LOCKED2 bo->base.base.resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv

drivers/gpu/drm/radeon/radeon_ttm.c radeon_ttm_tt_pin_userptr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-17592186040320
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 pages 8,16
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 4 size 1
BIT_INFO 4 size 0x0,0xffffffff000
NOSPEC 2 n_pages
NOSPEC 2 n_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 n_pages 0-s32max[c]
USER_DATA 4 size 0,4096-8796093018112[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 bo->base.resv

drivers/dma-buf/heaps/cma_heap.c cma_heap_attach() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-18446744073709547520
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 8-s32max
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 &dev->object_name_lock
HALF_LOCKED2 &file_priv->prime.lock

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c kfd_mem_dmamap_userptr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-17592186040320
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8,16
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 sgt r _kmalloc_noprof
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 &mem->lock
HALF_LOCKED2 &mem->process_info->lock
HALF_LOCKED2 &p->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &process_info->lock
TYPE_LOCK (struct amdkfd_process_info)->lock

drivers/media/common/videobuf2/videobuf2-dma-contig.c vb2_dc_get_userptr() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 2 n_pages 1-s32max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u32max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt r _kzalloc_noprof
DATA_SOURCE 4 size $3
RX_PATH
TASK_NOT_RUNNING
UNITS 4 size unit_byte
HALF_LOCKED2 &mdev->req_queue_mutex
HALF_LOCKED2 vb->vb2_queue->lock

drivers/accel/habanalabs/common/memory.c get_user_memory() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-34359738360
BUF_SIZE 1 pages 0-34359738360
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 3 offset 1
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
DATA_SOURCE 2 n_pages $3
DATA_SOURCE 3 offset $5
DATA_SOURCE 4 size $2
USER_DATA 2 n_pages 0-u32max[c]
USER_DATA 3 offset 0-4095[c]
USER_DATA 4 size 1-u64max[u]
NO_OVERFLOW_SIMPLE 4 size
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte

drivers/dma-buf/udmabuf.c get_sg_table() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-18446744073709547520
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8-s32max
DATA_SOURCE 0 sgt r _kzalloc_noprof
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

drivers/usb/gadget/function/f_fs.c ffs_build_sg_list() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 1-18446744073709551614
PARAM_VALUE 2 n_pages 0-s32max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-34359738360
BUF_SIZE 1 pages 0-34359738360
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages r __kvmalloc_node_noprof
DATA_SOURCE 4 size $1
NOSPEC 4 size
NOSPEC 4 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 n_pages 0-s32max[c]
USER_DATA 4 size 0-u64max
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte
HALF_LOCKED2 &epfile->mutex
HALF_LOCKED2 &pool->lock

drivers/rapidio/devices/rio_mport_cdev.c rio_dma_transfer() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 0-s32max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-36028797018963960
BUF_SIZE 1 pages 0-36028797018963960
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 1 pages r _kmalloc_noprof
USER_DATA 2 n_pages 0-s32max[c]
USER_DATA 3 offset 0-4095[c]
USER_DATA 4 size 1-u64max[u]
UNITS 2 n_pages unit_array_size
ELEM_COUNT 1 ==pages2 8051

drivers/gpu/drm/gud/gud_drv.c gud_alloc_bulk_buffer() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 2 n_pages 0-16384
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0-67108864
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 1 pages 0-131072
BUF_SIZE 1 pages 0-131072
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 1 pages r _kmalloc_noprof
FUZZY_MAX 2 n_pages 1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size

drivers/xen/gntdev-dmabuf.c dmabuf_pages_to_sgt() -> sg_alloc_table_from_pages()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-4294963200
PARAM_VALUE 5 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8-524288
BUF_SIZE 1 pages 8-524288
DATA_SOURCE 0 sgt r _kmalloc_noprof
DATA_SOURCE 1 pages $0
DATA_SOURCE 2 n_pages $1
BIT_INFO 4 size 0x0,0xfffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
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