Home
last modified time | relevance | path

Searched refs:common_modes (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_benchmark.c125 static const int common_modes[AMDGPU_BENCHMARK_COMMON_MODES_N] = { in amdgpu_benchmark() local
216 r = amdgpu_benchmark_move(adev, common_modes[i], in amdgpu_benchmark()
229 r = amdgpu_benchmark_move(adev, common_modes[i], in amdgpu_benchmark()
242 r = amdgpu_benchmark_move(adev, common_modes[i], in amdgpu_benchmark()
Damdgpu_vkms.c214 } common_modes[] = { in amdgpu_vkms_conn_get_modes() local
239 for (i = 0; i < ARRAY_SIZE(common_modes); i++) { in amdgpu_vkms_conn_get_modes()
240 mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); in amdgpu_vkms_conn_get_modes()
246 return ARRAY_SIZE(common_modes); in amdgpu_vkms_conn_get_modes()
Damdgpu_connectors.c429 } common_modes[17] = { in amdgpu_connector_add_common_modes() local
451 if (common_modes[i].w > 1024 || in amdgpu_connector_add_common_modes()
452 common_modes[i].h > 768) in amdgpu_connector_add_common_modes()
456 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes()
457 common_modes[i].h > native_mode->vdisplay || in amdgpu_connector_add_common_modes()
458 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes()
459 common_modes[i].h == native_mode->vdisplay)) in amdgpu_connector_add_common_modes()
462 if (common_modes[i].w < 320 || common_modes[i].h < 200) in amdgpu_connector_add_common_modes()
465 mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); in amdgpu_connector_add_common_modes()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_benchmark.c170 int common_modes[RADEON_BENCHMARK_COMMON_MODES_N] = { in radeon_benchmark() local
227 radeon_benchmark_move(rdev, common_modes[i], in radeon_benchmark()
234 radeon_benchmark_move(rdev, common_modes[i], in radeon_benchmark()
241 radeon_benchmark_move(rdev, common_modes[i], in radeon_benchmark()
Dradeon_connectors.c489 } common_modes[17] = { in radeon_add_common_modes() local
511 if (common_modes[i].w > 1024 || in radeon_add_common_modes()
512 common_modes[i].h > 768) in radeon_add_common_modes()
516 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes()
517 common_modes[i].h > native_mode->vdisplay || in radeon_add_common_modes()
518 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes()
519 common_modes[i].h == native_mode->vdisplay)) in radeon_add_common_modes()
522 if (common_modes[i].w < 320 || common_modes[i].h < 200) in radeon_add_common_modes()
525 mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); in radeon_add_common_modes()
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c6684 } common_modes[] = { in amdgpu_dm_connector_add_common_modes() local
6698 n = ARRAY_SIZE(common_modes); in amdgpu_dm_connector_add_common_modes()
6704 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_dm_connector_add_common_modes()
6705 common_modes[i].h > native_mode->vdisplay || in amdgpu_dm_connector_add_common_modes()
6706 (common_modes[i].w == native_mode->hdisplay && in amdgpu_dm_connector_add_common_modes()
6707 common_modes[i].h == native_mode->vdisplay)) in amdgpu_dm_connector_add_common_modes()
6711 if (common_modes[i].w == curmode->hdisplay && in amdgpu_dm_connector_add_common_modes()
6712 common_modes[i].h == curmode->vdisplay) { in amdgpu_dm_connector_add_common_modes()
6722 common_modes[i].name, common_modes[i].w, in amdgpu_dm_connector_add_common_modes()
6723 common_modes[i].h); in amdgpu_dm_connector_add_common_modes()