Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/gpu/drm/display/drm_hdmi_state_helper.c drm_hdmi_connector_mode_valid() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 0,3
DATA_SOURCE 0 mode $1
FUZZY_MAX 2 fmt 3
HARD_MAX 2 fmt 3
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 mode->clock
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/display/drm_hdmi_state_helper.c hdmi_compute_clock() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8-u32max
PARAM_VALUE 2 fmt 0-3
BUF_SIZE 0 mode (-1),120
BUF_SIZE 0 mode (-1),120
DATA_SOURCE 0 mode $2
DATA_SOURCE 1 bpc $3
DATA_SOURCE 2 fmt $4
FUZZY_MAX 1 bpc 8
HARD_MAX 2 fmt 3
RX_PATH
TASK_NOT_RUNNING
UNITS 1 bpc unit_array_size
UNITS 2 fmt unit_array_size
HALF_LOCKED2 &state->dev->mode_config.connection_mutex
HALF_LOCKED2 &state->dev->mode_config.connection_mutex.mutex

drivers/gpu/drm/tests/drm_connector_test.c drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 3
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 3
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_connector_hdmi_compute_mode_clock_yuv420_valid() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 3
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 2
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 2
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 2
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_drm_hdmi_compute_mode_clock_rgb() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 0
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 0
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 0
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic

drivers/gpu/drm/tests/drm_connector_test.c drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_connector_test.c drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic

drivers/gpu/drm/tests/drm_connector_test.c drm_test_drm_hdmi_compute_mode_clock_rgb_double() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 0
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic

drivers/gpu/drm/bridge/ite-it6263.c it6263_bridge_mode_valid() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &first_bridge->encoder->bridge_chain_mutex
TYPE_LOCK (struct drm_encoder)->bridge_chain_mutex

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 8
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 3
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 2
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_rgb() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_rgb() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode
BIT_INFO 0 mode->flags 0x0,0xffffefff

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_yuv420() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 3
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_max_tmds_rate_bpc_fallback_yuv420() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 10
PARAM_VALUE 2 fmt 3
BUF_SIZE 0 mode 120
DATA_SOURCE 0 mode r drm_kunit_display_mode_from_cea_vic

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_output_bpc_format_display_8bpc_only() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_output_bpc_format_display_rgb_only() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_output_bpc_format_display_rgb_only() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 2
DATA_SOURCE 0 mode r find_preferred_mode

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_output_bpc_format_driver_8bpc_only() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_output_bpc_format_driver_rgb_only() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 0
DATA_SOURCE 0 mode r find_preferred_mode

drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c drm_test_check_output_bpc_format_driver_rgb_only() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
PARAM_VALUE 1 bpc 12
PARAM_VALUE 2 fmt 2
DATA_SOURCE 0 mode r find_preferred_mode

drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_mode_needs_scrambling() -> drm_hdmi_compute_mode_clock()

Type Parameter Key Value
PARAM_VALUE 0 mode 4096-ptr_max
BUF_SIZE 0 mode (-1),120
BUF_SIZE 0 mode (-1),120
DATA_SOURCE 0 mode $0
DATA_SOURCE 1 bpc $1
DATA_SOURCE 2 fmt $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 bpc unit_array_size
UNITS 2 fmt unit_array_size
HALF_LOCKED2 &crtc->mutex
HALF_LOCKED2 &drm->mode_config.connection_mutex
HALF_LOCKED2 &vc4_hdmi->mutex
HALF_LOCKED2 global &drm_unplug_srcu