Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 33694397967622144,7983593899040030720
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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3072
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
UNITS 2 n_pages unit_array_size
HALF_LOCKED2 &con->mutex
HALF_LOCKED2 &pool->lock

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 5749662880018636800
PARAM_VALUE 1 pages 1-u64max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
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 $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

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

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 0,4096-18446744073709547520
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xfffffffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-17592186040320
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 pages 8,16
BUF_SIZE 1 pages 8,16
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 4 size 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xfffffff8
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

fs/erofs/decompressor_crypto.c __z_erofs_crypto_decompress() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 0 sgt 7321959932976726016
PARAM_VALUE 1 pages 4096-ptr_max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
RX_PATH
TASK_NOT_RUNNING
UNITS 3 offset unit_byte
LOCK2 &pcl->lock
LOCK2 global &z_erofs_crypto_rwsem
TYPE_LOCK (struct z_erofs_pcluster)->lock

fs/erofs/decompressor_crypto.c __z_erofs_crypto_decompress() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 0 sgt 3897006723983491072
PARAM_VALUE 2 n_pages 0-s32max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
CAPPED_DATA 2 n_pages 1
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_byte
LOCK2 &pcl->lock
LOCK2 global &z_erofs_crypto_rwsem
TYPE_LOCK (struct z_erofs_pcluster)->lock

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

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264,8192-u32max
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 6 gfp_mask 0x0,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
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

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

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-1048576
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0-u32max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-8388608
BUF_SIZE 1 pages 0-8388608
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
LOCK2 _T->lock
LOCK2 global &qdev_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &txn->lock

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

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
RX_PATH
TASK_NOT_RUNNING
UNITS 1 pages unit_page
LOCK2 obj->resv
HALF_LOCKED2 _T->lock

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

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 4197568
BUF_SIZE 1 pages 8-2147483640
BUF_SIZE 1 pages 8-2147483640
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
CAPABLE 0 12
BIT_INFO 4 size 0x0,0xfffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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/gpu/drm/i915/gem/i915_gem_ttm.c i915_ttm_tt_get_st() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 0 sgt->sgl 0
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-17592186040320
PARAM_VALUE 5 max_segment 0,4096-4294963200
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8,16
CAPPED_DATA 5 max_segment 1
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 obj->base.resv
HALF_LOCKED2 src->base.resv

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

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_array_size
UNITS 4 size unit_byte
HALF_LOCKED2 &pool->lock

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

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
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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/gpu/drm/i915/gem/i915_gem_userptr.c i915_gem_userptr_get_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment 0,4096-4294963200
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages (-1)-s32max
BUF_SIZE 1 pages (-1)-s32max
CAPPED_DATA 5 max_segment 1
DATA_SOURCE 0 sgt r _kmalloc_noprof
FUZZY_MAX 5 max_segment 4096
BIT_INFO 4 size 0x0,0xfffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
UNITS 5 max_segment unit_byte
HALF_LOCKED2 obj->base.resv

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 0-ptr_max
PARAM_VALUE 2 n_pages 0-s32max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 0-u32max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 0,3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-8388600
BUF_SIZE 1 pages 0-8388600
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
HARD_MAX 6 gfp_mask 3264
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/gpu/drm/xe/xe_bo.c xe_tt_map_sg() -> sg_alloc_table_from_pages_segment()

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 max_segment 0,131072-2147479552
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 8,16
CAPPED_DATA 5 max_segment 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-u32max[c]
USER_DATA 4 size 0,4096-17592186040320[c]
NO_OVERFLOW_SIMPLE 2 n_pages
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 ttm_bo->base.resv

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

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 1-s32max
BUF_SIZE 1 pages 1-s32max
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xfffffffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 3 offset 0
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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/drm_prime.c drm_prime_pages_to_sg() -> sg_alloc_table_from_pages_segment()

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 max_segment 262144,264192-2147743744,u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages (-1)-s32max
BUF_SIZE 1 pages (-1)-s32max
DATA_SOURCE 0 sgt r _kmalloc_noprof
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
BIT_INFO 4 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 n_pages 0-u32max[c]
USER_DATA 4 size 0,4096-17592186040320[c]
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte
HALF_LOCKED2 &etnaviv_obj->lock

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

Type Parameter Key Value
PARAM_VALUE 3 offset 0
PARAM_VALUE 4 size 0,4096-17592186040320
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 pages 8,16
BUF_SIZE 1 pages 8,16
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 4 size 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xffffffff000
BIT_INFO 4 size 0x0,0xffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 8-s32max
BUF_SIZE 1 pages 8-s32max
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xfffffffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8,16
BUF_SIZE 1 pages 8,16
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 4 size 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 1 pages 16,4096-ptr_max
PARAM_VALUE 3 offset 0-4095
PARAM_VALUE 4 size 1-u64max
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
CAPPED_DATA 3 offset 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8-s32max
BUF_SIZE 1 pages 8-s32max
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xfffffffffffff000
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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
PARAM_VALUE 5 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c vmw_ttm_map_dma() -> sg_alloc_table_from_pages_segment()

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 max_segment 1-u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 8,16
BUF_SIZE 1 pages 8,16
BIT_INFO 4 size 0x0,0xffffffff000
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n_pages unit_page
UNITS 4 size unit_byte

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

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 0-s32max
BUF_SIZE 1 pages 0-s32max
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 1 pages 0-131072
BUF_SIZE 1 pages 0-131072
CAPPED_DATA 2 n_pages 1
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
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 sg_alloc_table_from_pages() -> sg_alloc_table_from_pages_segment()

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 max_segment u32max
PARAM_VALUE 6 gfp_mask 3264
BUF_SIZE 0 sgt 16
BUF_SIZE 1 pages 8-524288
BUF_SIZE 1 pages 8-524288
DATA_SOURCE 0 sgt $0
DATA_SOURCE 1 pages $1
DATA_SOURCE 2 n_pages $2
DATA_SOURCE 3 offset $3
DATA_SOURCE 4 size $4
DATA_SOURCE 6 gfp_mask $5
BIT_INFO 4 size 0x0,0xfffff000
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