Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/i915/gem/i915_gem_context.c i915_gem_context_close() -> context_close()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/i915/gem/i915_gem_context.c i915_gem_context_destroy_ioctl() -> context_close()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1-u64max
DATA_SOURCE 0 ctx r xa_erase
NOCHECK_CALL

drivers/gpu/drm/i915/gem/i915_gem_context.c kernel_context_close() -> context_close()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1-u64max
BUF_SIZE 0 ctx (-1)-s32max
BUF_SIZE 0 ctx (-1)-s32max
BUF_SIZE 0 ctx->i915 (-1),424,1216
DATA_SOURCE 0 ctx $0
NOCHECK_CALL

drivers/gpu/drm/i915/gem/i915_gem_context.c live_context() -> context_close()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->engines 4096-ptr_max
PARAM_VALUE 0 ctx->engines->fence.error 0
PARAM_VALUE 0 ctx->engines->fence.pending.counter 1
PARAM_VALUE 0 ctx->engines->fence.wait.head.next 4096-ptr_max
PARAM_VALUE 0 ctx->engines->fence.wait.head.prev 4096-ptr_max
PARAM_VALUE 0 ctx->engines_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->engines_mutex.first_waiter 0
PARAM_VALUE 0 ctx->engines_mutex.magic 4096-ptr_max
PARAM_VALUE 0 ctx->engines_mutex.osq.tail.counter 0
PARAM_VALUE 0 ctx->engines_mutex.owner.counter 0
PARAM_VALUE 0 ctx->handles_vma.xa_flags 3264
PARAM_VALUE 0 ctx->handles_vma.xa_head 0
PARAM_VALUE 0 ctx->hang_timestamp 4096-ptr_max
PARAM_VALUE 0 ctx->i915 4096-ptr_max
PARAM_VALUE 0 ctx->link.next 4096-ptr_max
PARAM_VALUE 0 ctx->link.next->next 4096-ptr_max
PARAM_VALUE 0 ctx->link.prev 4096-ptr_max
PARAM_VALUE 0 ctx->link.prev->next 4096-ptr_max
PARAM_VALUE 0 ctx->link.prev->prev 4096-ptr_max
PARAM_VALUE 0 ctx->lut_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->lut_mutex.first_waiter 0
PARAM_VALUE 0 ctx->lut_mutex.magic 4096-ptr_max
PARAM_VALUE 0 ctx->lut_mutex.osq.tail.counter 0
PARAM_VALUE 0 ctx->lut_mutex.owner.counter 0
PARAM_VALUE 0 ctx->mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->mutex.first_waiter 0
PARAM_VALUE 0 ctx->mutex.magic 4096-ptr_max
PARAM_VALUE 0 ctx->mutex.osq.tail.counter 0
PARAM_VALUE 0 ctx->mutex.owner.counter 0
PARAM_VALUE 0 ctx->ref.refcount.refs.counter 1
PARAM_VALUE 0 ctx->stale.engines.next 4096-ptr_max
PARAM_VALUE 0 ctx->stale.engines.next->next 4096-ptr_max
PARAM_VALUE 0 ctx->stale.engines.prev 4096-ptr_max
PARAM_VALUE 0 ctx->stale.engines.prev->next 4096-ptr_max
PARAM_VALUE 0 ctx->stale.engines.prev->prev 4096-ptr_max
PARAM_VALUE 0 ctx->user_flags 12,28
BUF_SIZE 0 ctx 920
BUF_SIZE 0 ctx->i915 (-1),424,1216
DATA_SOURCE 0 ctx r i915_gem_create_context
BIT_INFO 0 ctx->user_flags 0xc,0xffffffffffffffff
NOCHECK_CALL

drivers/gpu/drm/i915/gem/i915_gem_context.c mock_context_close() -> context_close()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1-u64max
BUF_SIZE 0 ctx (-1),920
BUF_SIZE 0 ctx (-1),920
DATA_SOURCE 0 ctx $0
NOCHECK_CALL

drivers/gpu/drm/msm/msm_drv.c msm_postclose() -> context_close()

Type Parameter Key Value
BUF_SIZE 0 ctx 16,48,104,120,152,248,256,352,424,464,576,768,968,1120,1424,2256,4712,13184
BUF_SIZE 0 ctx 16,48,104,120,152,248,256,352,424,464,576,768,968,1120,1424,2256,4712,13184
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL