Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c amdgpu_dma_buf_create_obj() -> amdgpu_gem_object_create()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 2 alignment 4096
PARAM_VALUE 3 initial_domain 1
PARAM_VALUE 4 flags 0,4-57348
PARAM_VALUE 5 type 2
PARAM_VALUE 6 resv->lock.base.dep_map->name 0-255
PARAM_VALUE 6 resv->lock.base.first_waiter 0,4096-5159360019465732095,5159360019465732097-ptr_max
PARAM_VALUE 6 resv->lock.base.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 6 resv->lock.base.osq.tail.counter 0-s32max
PARAM_VALUE 7 obj 5293766671856992256
PARAM_VALUE 8 xcp_id_plus1 0
DATA_SOURCE 0 adev r drm_to_adev
FUZZY_MAX 4 flags 0
BIT_INFO 4 flags 0x0,0xe004
BIT_INFO 4 flags 0x0,0xe004
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0-u64max
UNITS 1 size unit_byte
UNITS 2 alignment unit_byte
LOCK2 6 resv
HALF_LOCKED2 &dev->object_name_lock
HALF_LOCKED2 &file_priv->prime.lock
HALF_LOCKED2 &mem->lock
HALF_LOCKED2 &mem->process_info->lock
HALF_LOCKED2 &p->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_gem_create_ioctl() -> amdgpu_gem_object_create()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648,2712
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->encode_fh 0,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 3 initial_domain 0-126
PARAM_VALUE 4 flags 8-131080
PARAM_VALUE 5 type 0
PARAM_VALUE 6 resv->lock.base.first_waiter 0,4096-ptr_max
PARAM_VALUE 6 resv->lock.base.osq.tail.counter 0-s32max
PARAM_VALUE 7 obj 3758839357872222208
DATA_SOURCE 0 adev r drm_to_adev
USER_DATA 1 size 0-u64max[u]
USER_DATA 2 alignment s32min-s32max[u]
USER_DATA 3 initial_domain 0-126[c]
USER_DATA 4 flags 8-131080[c][u]
UNITS 1 size unit_byte
UNITS 2 alignment unit_byte
HALF_LOCKED2 vm->root.bo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_gem_userptr_ioctl() -> amdgpu_gem_object_create()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 2 alignment 0
PARAM_VALUE 3 initial_domain 1
PARAM_VALUE 4 flags 0
PARAM_VALUE 5 type 0
PARAM_VALUE 6 resv 0
PARAM_VALUE 7 obj 8151731903944015872
DATA_SOURCE 0 adev r drm_to_adev
USER_DATA 1 size 0-u64max[u]

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_mode_dumb_create() -> amdgpu_gem_object_create()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 1 size 4096-18446744065119621120
PARAM_VALUE 2 alignment 0
PARAM_VALUE 4 flags 37,45
PARAM_VALUE 5 type 0
PARAM_VALUE 6 resv 0
PARAM_VALUE 7 obj 9023323289920225280
DATA_SOURCE 0 adev r drm_to_adev
DATA_SOURCE 3 initial_domain r amdgpu_bo_get_preferred_domain
FUZZY_MAX 4 flags 37
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 4 flags 0x25,0x2d
BIT_INFO 4 flags 0x25,0x2d
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 4096-9223372030412328960[c]
UNITS 1 size unit_byte

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() -> amdgpu_gem_object_create()

Type Parameter Key Value
PARAM_VALUE 0 adev 0,4096-ptr_max
PARAM_VALUE 1 size 0,4096-u64max
PARAM_VALUE 2 alignment 1
PARAM_VALUE 3 initial_domain 1-2,4
PARAM_VALUE 4 flags 0,520-521,552-553,2048,8192,8712-8713,8744-8745,10240,16384-59392
PARAM_VALUE 5 type 0,2
PARAM_VALUE 6 resv 0
PARAM_VALUE 7 obj 2454746197035606016
PARAM_VALUE 7 *obj 0
DATA_SOURCE 0 adev $0
FUZZY_MAX 3 initial_domain 4
FUZZY_MAX 4 flags 2048
FUZZY_MAX 5 type 2
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 4 flags 0x0,0xea29
BIT_INFO 4 flags 0x0,0xea29
BIT_INFO 5 type 0x0,0x2
HARD_MAX 3 initial_domain 4
HARD_MAX 5 type 2
USER_DATA 1 size 0,4096-u64max[c]
USER_DATA 4 flags 520-521,552-553,8712-8713,8744-8745,16904-57897[c][u]
LOCK2 &p->mutex
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c create_dmamap_sg_bo() -> amdgpu_gem_object_create()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,4672,148606482432692224,436469935444291584,457356038048772096,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 adev->mman.bdev.pool.dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 adev->mman.bdev.pool.dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 2 alignment 1
PARAM_VALUE 3 initial_domain 1
PARAM_VALUE 4 flags 2048,10240-26624
PARAM_VALUE 5 type 2
PARAM_VALUE 6 resv->lock.base.dep_map->name 0-255
PARAM_VALUE 6 resv->lock.base.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 6 resv->lock.base.osq.tail.counter 0-s32max
PARAM_VALUE 6 resv->lock.ww_class->is_wait_die 0-1
PARAM_VALUE 7 obj 1046001300167991296
PARAM_VALUE 8 xcp_id_plus1 0
CAPPED_DATA 0 adev 1
DATA_SOURCE 0 adev $0
BIT_INFO 4 flags 0x800,0x6800
UNITS 1 size unit_byte
LOCK2 &mem->lock
LOCK2 &mem->process_info->lock
LOCK2 &p->mutex
LOCK2 6 resv
HALF_LOCKED2 &gobj->dev->object_name_lock
TYPE_LOCK (struct amdkfd_process_info)->lock
TYPE_LOCK (struct kfd_process)->mutex
TYPE_LOCK (struct kgd_mem)->lock