Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/gpu/drm/drm_client.c drm_client_buffer_create() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->fbs.next 4096-ptr_max
PARAM_VALUE 1 file_priv->fbs.next->next 4096-ptr_max
PARAM_VALUE 1 file_priv->fbs.next->prev 4096-ptr_max
PARAM_VALUE 1 file_priv->fbs_lock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 1 file_priv->fbs_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 file_priv->fbs_lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 file_priv->table_lock.rlock.dep_map->name 0-255
CAPPED_DATA 0 dev->mode_config.min_height 1
CAPPED_DATA 0 dev->mode_config.min_width 1
PARAM_COMPARE 0 dev->mode_config.max_height >= $0->mode_config.min_height
PARAM_COMPARE 0 dev->mode_config.max_width >= $0->mode_config.min_width
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
UNITS 2 id unit_array_size
LOCK2 &client->modeset_mutex
HALF_LOCKED2 &up->lock
HALF_LOCKED2 flags
HALF_LOCKED2 global &target_list_lock
TYPE_LOCK (struct drm_client_dev)->modeset_mutex

drivers/gpu/drm/drm_atomic_uapi.c drm_atomic_connector_set_property() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev->mode_config.writeback_fb_id_property 4096-ptr_max
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 1 file_priv $2
DATA_SOURCE 2 id $4
NOSPEC 2 id
NOSPEC 2 id
USER_DATA 2 id 0-u32max
UNITS 0 dev unit_byte

drivers/gpu/drm/drm_atomic_uapi.c drm_atomic_plane_set_property() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev->mode_config.prop_fb_id 4096-ptr_max
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 1 file_priv $2
DATA_SOURCE 2 id $4
NOSPEC 2 id
NOSPEC 2 id
USER_DATA 2 id 0-u32max
UNITS 0 dev unit_byte

drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c vmw_present_ioctl() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte
LOCK2 0 &dev->mode_config.mutex
TYPE_LOCK (struct drm_mode_config)->mutex

drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c vmw_present_readback_ioctl() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte
LOCK2 0 &dev->mode_config.mutex
TYPE_LOCK (struct drm_mode_config)->mutex

drivers/gpu/drm/tests/drm_framebuffer_test.c drm_test_framebuffer_lookup() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.fb_list.next 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.fb_list.next->next 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.fb_list.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.fb_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.fb_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.fb_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 1 file_priv 0
PARAM_VALUE 2 id 0-s32max
BUF_SIZE 0 dev 3696
CAPPED_DATA 0 dev 1
CAPPED_DATA 0 dev->mode_config.object_idr.idr_base 1
UNITS 2 id unit_array_size

drivers/gpu/drm/tests/drm_framebuffer_test.c drm_test_framebuffer_lookup_inexistent() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 1 file_priv 0
PARAM_VALUE 2 id 0
BUF_SIZE 0 dev 3696

drivers/gpu/drm/drm_framebuffer.c drm_mode_closefb_ioctl() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte

drivers/gpu/drm/drm_framebuffer.c drm_mode_dirtyfb_ioctl() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte

drivers/gpu/drm/drm_framebuffer.c drm_mode_getfb() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte
UNITS 2 id unit_array_size

drivers/gpu/drm/drm_framebuffer.c drm_mode_getfb2_ioctl() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte
UNITS 2 id unit_array_size

drivers/gpu/drm/drm_framebuffer.c drm_mode_rmfb() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-1),1-s32max
BUF_SIZE 1 file_priv s32min-(-1),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
DATA_SOURCE 2 id $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 id 0-u32max[u]
UNITS 0 dev unit_byte
UNITS 2 id unit_array_size

drivers/gpu/drm/drm_plane.c drm_mode_page_flip_ioctl() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.idr_mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master 0,4096-ptr_max
PARAM_VALUE 1 file_priv->master->refcount.refcount.refs.counter s32min-s32max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 0-u32max
UNITS 0 dev unit_byte
LOCK2 &crtc->mutex
LOCK2 &plane->mutex
TYPE_LOCK (struct drm_crtc)->mutex
TYPE_LOCK (struct drm_plane)->mutex

drivers/gpu/drm/drm_plane.c drm_mode_setplane() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.idr_mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master->refcount.refcount.refs.counter s32min-s32max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
PARAM_VALUE 2 id 1-u32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
USER_DATA 2 id 1-u32max[u]
UNITS 0 dev unit_byte

drivers/gpu/drm/drm_crtc.c drm_mode_setcrtc() -> drm_framebuffer_lookup()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->mode_config.funcs->atomic_commit 0,1709437739929436160,3385958169767186432,9025212985888776192
PARAM_VALUE 0 dev->mode_config.idr_mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mode_config.idr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->unplugged 0
PARAM_VALUE 1 file_priv 4096-ptr_max
PARAM_VALUE 1 file_priv->master 0,4096-ptr_max
PARAM_VALUE 1 file_priv->master_lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 file_priv->minor 4096-ptr_max
PARAM_VALUE 1 file_priv->minor->dev 4096-ptr_max
PARAM_VALUE 2 id 0-4294967294
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
BUF_SIZE 1 file_priv s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 file_priv $2
NOSPEC 2 id
USER_DATA 2 id 0-4294967294
UNITS 0 dev unit_byte
UNITS 2 id unit_array_size
HALF_LOCKED2 0 &dev->mode_config.connection_mutex
HALF_LOCKED2 0 &dev->mode_config.mutex