Defined in 1 files as a prototype:

Defined in 4 files as a function:

Referenced in 10 files:

Smatch caller information:

drivers/gpu/drm/i915/gvt/aperture_gm.c intel_vgpu_alloc_resource() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 4096-ptr_max
PARAM_VALUE 0 vgpu->cfg_space.pmcsr_off 0,4-259
PARAM_VALUE 0 vgpu->d3_entered 0
PARAM_VALUE 0 vgpu->dmabuf_lock.dep_map->name 0-255
PARAM_VALUE 0 vgpu->dmabuf_lock.first_waiter 0
PARAM_VALUE 0 vgpu->dmabuf_lock.magic 4096-ptr_max
PARAM_VALUE 0 vgpu->dmabuf_lock.osq.tail.counter 0
PARAM_VALUE 0 vgpu->dmabuf_lock.owner.counter 0
PARAM_VALUE 0 vgpu->dmabuf_obj_list_head.next 4096-ptr_max
PARAM_VALUE 0 vgpu->dmabuf_obj_list_head.next->next 4096-ptr_max
PARAM_VALUE 0 vgpu->dmabuf_obj_list_head.prev 4096-ptr_max
PARAM_VALUE 0 vgpu->dmabuf_obj_list_head.prev->next 4096-ptr_max
PARAM_VALUE 0 vgpu->dmabuf_obj_list_head.prev->prev 4096-ptr_max
PARAM_VALUE 0 vgpu->gvt 4096-ptr_max
PARAM_VALUE 0 vgpu->gvt->gt 4096-ptr_max
PARAM_VALUE 0 vgpu->gvt->gt->ggtt 4096-ptr_max
PARAM_VALUE 0 vgpu->gvt->gt->i915 4096-ptr_max
PARAM_VALUE 0 vgpu->gvt->lock.dep_map->name 0-255
PARAM_VALUE 0 vgpu->gvt->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 vgpu->gvt->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 vgpu->gvt->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 vgpu->gvt->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 vgpu->gvt->lock.wait_lock.owner (-1)
PARAM_VALUE 0 vgpu->gvt->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 vgpu->id 0-s32max
PARAM_VALUE 0 vgpu->mmio.vreg 4096-ptr_max
PARAM_VALUE 0 vgpu->object_idr.idr_base 1
PARAM_VALUE 0 vgpu->object_idr.idr_next 0
PARAM_VALUE 0 vgpu->object_idr.idr_rt.xa_flags 33554436
PARAM_VALUE 0 vgpu->object_idr.idr_rt.xa_head 0
PARAM_VALUE 0 vgpu->page_track_tree.xa_flags 3264
PARAM_VALUE 0 vgpu->page_track_tree.xa_head 0
PARAM_VALUE 0 vgpu->sched_ctl.weight 2,4,8,16
PARAM_VALUE 0 vgpu->vgpu_lock.dep_map->name 0-255
PARAM_VALUE 0 vgpu->vgpu_lock.first_waiter 0
PARAM_VALUE 0 vgpu->vgpu_lock.magic 4096-ptr_max
PARAM_VALUE 0 vgpu->vgpu_lock.osq.tail.counter 0
PARAM_VALUE 0 vgpu->vgpu_lock.owner.counter 0
PARAM_VALUE 0 *vgpu->cfg_space.virtual_cfg_space 0-255
PARAM_VALUE 0 *vgpu->mmio.vreg (-4611686018427387904),1
PARAM_VALUE 1 conf 4096-ptr_max
PARAM_VALUE 1 conf->weight 2,4,8,16
DATA_SOURCE 0 vgpu $0
DATA_SOURCE 1 conf $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &gvt->lock
TYPE_LOCK (struct intel_gvt)->lock

kernel/resource.c __request_region() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 3264

kernel/resource.c __reserve_region_with_split() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 2080
LOCK2 global &resource_lock

kernel/resource.c __reserve_region_with_split() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 2080
LOCK2 global &resource_lock

kernel/resource.c get_free_mem_region() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 3264
RX_PATH
TASK_NOT_RUNNING

kernel/resource.c release_mem_region_adjustable() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 3264,36032
BIT_INFO 0 vgpu 0xcc0,0xffff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &device_hotplug_lock

kernel/resource.c release_mem_region_adjustable() -> alloc_resource()

Type Parameter Key Value
PARAM_VALUE 0 vgpu 2080
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &resource_lock
HALF_LOCKED2 global &device_hotplug_lock