Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_connector.c is_duplicate_mode() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 1 mode2 (-1),120
BUF_SIZE 1 mode2 (-1),120
CAPPED_DATA 0 &mode1->head 1
DATA_SOURCE 1 mode2 $1
BIT_INFO 1 mode2->type 0x0,0xf7
NO_OVERFLOW_SIMPLE 1 mode2->clock

drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_check_modeset() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/tests/drm_probe_helper_test.c drm_test_connector_helper_tv_get_modes_check() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 1-u64max
LOCK2 &priv->drm->mode_config.mutex
TYPE_LOCK (struct drm_mode_config)->mutex

drivers/gpu/drm/tests/drm_probe_helper_test.c drm_test_connector_helper_tv_get_modes_check() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 1-u64max
LOCK2 &priv->drm->mode_config.mutex
TYPE_LOCK (struct drm_mode_config)->mutex

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c dm_update_crtc_state() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 0 mode1->clock s32min-(-1),1-s32max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 1 mode2 (-1),120
BUF_SIZE 1 mode2 (-1),120
DATA_SOURCE 1 mode2 r amdgpu_dm_get_highest_refresh_rate_mode
NO_OVERFLOW_SIMPLE 1 mode2->clock

drivers/gpu/drm/sti/sti_hda.c hda_get_mode_idx() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 1 mode2 4096-ptr_max
DATA_SOURCE 1 mode2 $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 mode2->clock

drivers/gpu/drm/drm_crtc_helper.c drm_crtc_helper_set_config() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 1-u64max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 (-1)-0,120
BUF_SIZE 0 mode1 (-1)-0,120
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/tests/drm_modes_test.c drm_test_modes_analog_tv_ntsc_480i_inlined() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 0 mode1->clock 0-4294967
PARAM_VALUE 0 mode1->flags 10,26
PARAM_VALUE 0 mode1->type 64
PARAM_VALUE 0 mode1->vtotal 525,625
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 120
BUF_SIZE 1 mode2 120
DATA_SOURCE 0 mode1 r drm_analog_tv_mode
DATA_SOURCE 1 mode2 r drm_mode_analog_ntsc_480i

drivers/gpu/drm/tests/drm_modes_test.c drm_test_modes_analog_tv_pal_576i_inlined() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 0 mode1->clock 0-4294967
PARAM_VALUE 0 mode1->flags 10,26
PARAM_VALUE 0 mode1->type 64
PARAM_VALUE 0 mode1->vtotal 525,625
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 120
BUF_SIZE 1 mode2 120
DATA_SOURCE 0 mode1 r drm_analog_tv_mode
DATA_SOURCE 1 mode2 r drm_mode_analog_pal_576i

drivers/gpu/drm/drm_client_modeset.c drm_client_pick_crtcs() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 1 mode2 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &client->modeset_mutex
HALF_LOCKED2 &dev->mode_config.mutex

drivers/gpu/drm/drm_client_modeset.c drm_test_pick_cmdline_named() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 120
DATA_SOURCE 1 mode2 r drm_connector_pick_cmdline_mode
NO_OVERFLOW_SIMPLE 1 mode2->clock

drivers/gpu/drm/drm_client_modeset.c drm_test_pick_cmdline_res_1920_1080_60() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 120
DATA_SOURCE 0 mode1 r drm_mode_find_dmt
DATA_SOURCE 1 mode2 r drm_connector_pick_cmdline_mode
NO_OVERFLOW_SIMPLE 1 mode2->clock

drivers/gpu/drm/drm_modes.c drm_connector_list_update() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
CAPPED_DATA 0 &mode1->head 1
CAPPED_DATA 1 &mode2->head 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &client->modeset_mutex
HALF_LOCKED2 &connector->dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.mutex
HALF_LOCKED2 &drm->mode_config.mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_outp_atomic_check_view() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 1-u64max
BUF_SIZE 0 mode1 120
BUF_SIZE 1 mode2 (-1),120
BUF_SIZE 1 mode2 (-1),120
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 mode1->clock
NO_OVERFLOW_SIMPLE 0 mode1->crtc_clock
HALF_LOCKED2 &state->dev->mode_config.connection_mutex
HALF_LOCKED2 &state->dev->mode_config.connection_mutex.mutex

drivers/gpu/drm/imx/dcss/dcss-crtc.c dcss_crtc_atomic_disable() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 120
BUF_SIZE 1 mode2 120
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &state->dev->mode_config.connection_mutex
HALF_LOCKED2 &state->dev->mode_config.connection_mutex.mutex

drivers/gpu/drm/imx/dcss/dcss-crtc.c dcss_crtc_atomic_enable() -> drm_mode_equal()

Type Parameter Key Value
PARAM_VALUE 0 mode1 4096-ptr_max
PARAM_VALUE 1 mode2 4096-ptr_max
BUF_SIZE 0 mode1 120
BUF_SIZE 1 mode2 120
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &state->dev->mode_config.connection_mutex
HALF_LOCKED2 &state->dev->mode_config.connection_mutex.mutex