Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c, line 6155
- drivers/gpu/drm/drm_atomic.c
- drivers/gpu/drm/drm_atomic_helper.c
- drivers/gpu/drm/drm_atomic_uapi.c, line 1163
- drivers/gpu/drm/drm_framebuffer.c, line 1053
- drivers/gpu/drm/drm_self_refresh_helper.c, line 102
- drivers/gpu/drm/i915/display/intel_display.c
- drivers/gpu/drm/i915/display/intel_dp.c, line 6646
- drivers/gpu/drm/i915/display/intel_modeset_setup.c, line 81
Smatch caller information:
drivers/gpu/drm/i915/display/intel_modeset_setup.c intel_crtc_disable_noatomic_begin() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| BUF_SIZE | 0 | state | 176 |
| DATA_SOURCE | 0 | state | r drm_atomic_commit_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | &display->drm->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &display->drm->mode_config.mutex |
drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_check_modeset() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 0 | state->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->dev->mode_config.num_crtc | 1-s32max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| BUF_SIZE | 0 | state | (-1),176 |
| BUF_SIZE | 0 | state | (-1),176 |
| BUF_SIZE | 0 | state->acquire_ctx | (-1),192 |
| BUF_SIZE | 0 | state->dev | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | state->dev->mode_config.num_crtc | 1 |
| DATA_SOURCE | 0 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | state->dev->mode_config.connector_ida.xa.xa_flags | 67108869 |
| HOST_DATA | 0 | state->dev->mode_config.object_idr.idr_rt.xa_flags | 0,67108864-u32max |
| HOST_DATA | 0 | state->dev->mode_config.tile_idr.idr_rt.xa_flags | 0,67108864-u32max |
| HOST_DATA | 0 | state->dev->num_crtcs | 2[c] |
| HOST_DATA | 0 | state->dev->ref.refcount.refs.counter | s32min-s32max |
| USER_DATA | 0 | state->allow_modeset | 0-1 |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | 0 | &state->dev->mode_config.connection_mutex | |
| HALF_LOCKED2 | 0 | &state->dev->mode_config.connection_mutex.mutex |
drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_disable_all() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 0 | state->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc->dev | 0,4096-ptr_max |
| BUF_SIZE | 0 | state | 176 |
| BUF_SIZE | 0 | state->dev | s32min-(-1),1-s32max |
| CAPPED_DATA | 1 | &crtc->head | 1 |
| DATA_SOURCE | 0 | state | r drm_atomic_commit_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | &dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &dev->mode_config.mutex |
drivers/gpu/drm/drm_atomic.c update_output_state() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx | 0,4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.deadlock_inject_countdown | 0-3758096380,u32max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.deadlock_inject_interval | 0-3758096380,u32max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.wounded | 0-1 |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 0 | state->planes | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc->dev->mode_config.funcs->atomic_commit | 0,1709437739929436160,3385958169767186432,9025212985888776192 |
| PARAM_VALUE | 1 | crtc->dev->mode_config.funcs->atomic_state_alloc | 0,4313866966076465152,8746944527109378048 |
| PARAM_VALUE | 1 | crtc->funcs->cursor_set | 0,3495628013979901952,4537023485923934208,6131130537578876928,8872617624633417728 |
| PARAM_VALUE | 1 | crtc->funcs->cursor_set2 | 0,1789627235925843968,4458553803064295424,6181444555894923264,8421415535485173760 |
| PARAM_VALUE | 1 | crtc->primary | 4096-ptr_max |
| BUF_SIZE | 0 | state | 176 |
| BUF_SIZE | 0 | state->acquire_ctx | (-1),192 |
| DATA_SOURCE | 0 | state | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | &client->modeset_mutex | ||
| HALF_LOCKED2 | &dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &dev->mode_config.connection_mutex.mutex |
drivers/gpu/drm/drm_atomic_uapi.c drm_atomic_connector_commit_dpms() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx | 0,4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->trylock_only | 0 |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.deadlock_inject_countdown | 0-3758096380,u32max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.deadlock_inject_interval | 0-3758096380,u32max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.wounded | 0-1 |
| PARAM_VALUE | 0 | state->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->dev->mode_config.dpms_property | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 1-u64max |
| BUF_SIZE | 0 | state | 176 |
| BUF_SIZE | 0 | state->acquire_ctx | (-1),192 |
| CAPPED_DATA | 0 | state->dev->mode_config.dpms_property | 1 |
| DATA_SOURCE | 0 | state | $0 |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | 0 | &state->dev->mode_config.connection_mutex | |
| HALF_LOCKED2 | 0 | &state->dev->mode_config.connection_mutex.mutex |
drivers/gpu/drm/i915/display/intel_dp.c intel_modeset_affected_transcoders() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &_state->dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &_state->dev->mode_config.connection_mutex.mutex |
drivers/gpu/drm/drm_self_refresh_helper.c drm_self_refresh_helper_entry_work() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx | 256353514714103808 |
| PARAM_VALUE | 0 | state->acquire_ctx->contended | 0 |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->stack_depot | 0 |
| PARAM_VALUE | 0 | state->acquire_ctx->trylock_only | 0 |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc->dev->mode_config.funcs->atomic_state_alloc | 0,4313866966076465152,8746944527109378048 |
| BUF_SIZE | 0 | state | 176 |
| BUF_SIZE | 0 | state->acquire_ctx | 192 |
| DATA_SOURCE | 0 | state | r drm_atomic_commit_alloc |
| MEM_ZERO | 0 | state->acquire_ctx | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/drm_framebuffer.c atomic_remove_fb() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx | 8893787205649690624 |
| PARAM_VALUE | 0 | state->acquire_ctx->contended | 0 |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->stack_depot | 0 |
| PARAM_VALUE | 0 | state->acquire_ctx->trylock_only | 0 |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.deadlock_inject_countdown | 0-3758096380,u32max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.deadlock_inject_interval | 0-3758096380,u32max |
| PARAM_VALUE | 0 | state->acquire_ctx->ww_ctx.wounded | 0-1 |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 0 | state->planes | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc->primary | 4096-ptr_max |
| BUF_SIZE | 0 | state | 176 |
| BUF_SIZE | 0 | state->acquire_ctx | 192 |
| CAPPED_DATA | 1 | crtc->primary | 1 |
| DATA_SOURCE | 0 | state | r drm_atomic_commit_alloc |
| MEM_ZERO | 0 | state->acquire_ctx | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | &dev->clientlist_mutex | ||
| HALF_LOCKED2 | &dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &helper->lock |
drivers/gpu/drm/i915/display/intel_display.c intel_initial_commit() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->locked.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | state->acquire_ctx->trylock_only | 0 |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 0 | state->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc->dev | 0,4096-ptr_max |
| BUF_SIZE | 0 | state | 176 |
| DATA_SOURCE | 0 | state | r drm_atomic_commit_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | state->dev->mode_config.connector_ida.xa.xa_flags | 67108869 |
| HOST_DATA | 0 | state->dev->mode_config.object_idr.idr_rt.xa_flags | 0,4-u32max |
| HOST_DATA | 0 | state->dev->mode_config.tile_idr.idr_rt.xa_flags | 0,67108864-u32max |
| HOST_DATA | 0 | state->dev->num_crtcs | 2[c] |
| HOST_DATA | 0 | state->dev->ref.refcount.refs.counter | s32min-s32max |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | state->dev->num_crtcs | |
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/i915/display/intel_display.c intel_joiner_add_affected_crtcs() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 0 | state->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/i915/display/intel_display.c intel_modeset_pipe() -> drm_atomic_add_affected_connectors()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 4096-ptr_max |
| PARAM_VALUE | 0 | state->crtcs | 4096-ptr_max |
| PARAM_VALUE | 1 | crtc | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | state->num_connector |