Home
last modified time | relevance | path

Searched refs:viewport (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn401/
H A Ddcn401_dpp.c293 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl401_calc_lb_num_partitions()
294 scl_data->viewport.width : scl_data->recout.width; in dscl401_calc_lb_num_partitions()
317 if (scl_data->viewport.width == scl_data->h_active && in dscl401_calc_lb_num_partitions()
318 scl_data->viewport.height == scl_data->v_active) { in dscl401_calc_lb_num_partitions()
331 if (scl_data->viewport.width == scl_data->h_active && in dscl401_calc_lb_num_partitions()
332 scl_data->viewport.height == scl_data->v_active) { in dscl401_calc_lb_num_partitions()
368 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl401_spl_calc_lb_num_partitions()
369 scl_data->viewport.width : scl_data->recout.width; in dscl401_spl_calc_lb_num_partitions()
392 if (scl_data->viewport.width == scl_data->h_active && in dscl401_spl_calc_lb_num_partitions()
393 scl_data->viewport in dscl401_spl_calc_lb_num_partitions()
[all...]
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/
H A Ddml21_translation_helper.c423 plane->composition.viewport.plane0.width = width; in populate_dml21_dummy_plane_cfg()
424 plane->composition.viewport.plane0.height = height; in populate_dml21_dummy_plane_cfg()
425 plane->composition.viewport.plane1.width = 0; in populate_dml21_dummy_plane_cfg()
426 plane->composition.viewport.plane1.height = 0; in populate_dml21_dummy_plane_cfg()
428 plane->composition.viewport.stationary = false; in populate_dml21_dummy_plane_cfg()
429 plane->composition.viewport.plane0.x_start = 0; in populate_dml21_dummy_plane_cfg()
430 plane->composition.viewport.plane0.y_start = 0; in populate_dml21_dummy_plane_cfg()
431 plane->composition.viewport.plane1.x_start = 0; in populate_dml21_dummy_plane_cfg()
432 plane->composition.viewport.plane1.y_start = 0; in populate_dml21_dummy_plane_cfg()
559 plane->composition.viewport in populate_dml21_plane_config_from_plane_state()
[all...]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn201/
H A Ddcn201_dpp.c196 if (scl_data->viewport.width != scl_data->h_active && in dpp201_get_optimal_number_of_taps()
197 scl_data->viewport.height != scl_data->v_active && in dpp201_get_optimal_number_of_taps()
202 if (scl_data->viewport.width > scl_data->h_active && in dpp201_get_optimal_number_of_taps()
204 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp201_get_optimal_number_of_taps()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dgmc_v9_0.c1268 u32 viewport; in gmc_v9_0_override_vm_pte_flags()
1273 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_override_vm_pte_flags()
1274 size = (REG_GET_FIELD(viewport, in gmc_v9_0_override_vm_pte_flags()
1276 REG_GET_FIELD(viewport,
1281 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION_DCN2); in gmc_v9_0_get_vbios_fb_size()
1282 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1284 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1289 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1290 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1291 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZ in gmc_v9_0_get_vbios_fb_size()
1287 u32 viewport; gmc_v9_0_get_vbios_fb_size() local
[all...]
H A Dgmc_v11_0.c523 u32 viewport; in gmc_v11_0_get_vbios_fb_size() local
526 viewport = RREG32_SOC15(DCE, 0, regHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v11_0_get_vbios_fb_size()
528 size = (REG_GET_FIELD(viewport, in gmc_v11_0_get_vbios_fb_size()
H A Dgmc_v10_0.c532 u32 viewport; in gmc_v10_0_get_vbios_fb_size() local
535 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v10_0_get_vbios_fb_size()
537 size = (REG_GET_FIELD(viewport, in gmc_v10_0_get_vbios_fb_size()
H A Dgmc_v6_0.c797 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v6_0_get_vbios_fb_size()
799 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v6_0_get_vbios_fb_size()
800 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v6_0_get_vbios_fb_size()
803 u32 viewport = RREG32(mmVIEWPORT_SIZE); gmc_v6_0_get_vbios_fb_size() local
H A Dgmc_v7_0.c968 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v7_0_get_vbios_fb_size()
970 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v7_0_get_vbios_fb_size()
971 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v7_0_get_vbios_fb_size()
974 u32 viewport = RREG32(mmVIEWPORT_SIZE); gmc_v7_0_get_vbios_fb_size() local
H A Dgmc_v8_0.c1076 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v8_0_get_vbios_fb_size()
1078 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v8_0_get_vbios_fb_size()
1079 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v8_0_get_vbios_fb_size()
1082 u32 viewport = RREG32(mmVIEWPORT_SIZE); gmc_v8_0_get_vbios_fb_size() local
/linux/arch/arm64/boot/dts/marvell/
H A Dcn9130-crb-A.dts15 num-viewport = <8>;
H A Darmada-8040-mcbin.dtsi183 num-viewport = <8>;
H A Darmada-8040-puzzle-m801.dts333 num-viewport = <8>;
/linux/drivers/usb/phy/
H A DMakefile23 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
H A DKconfig161 controllers with a viewport register (e.g. Chipidea/ARC controllers).
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/
H A Ddml2_core_utils.c597 phantom->composition.viewport.plane0.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
599 (double)main->composition.viewport.plane0.height); in create_phantom_plane_from_main_plane()
600 phantom->composition.viewport.plane1.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
602 (double)main->composition.viewport.plane1.height); in create_phantom_plane_from_main_plane()
H A Ddml2_core_dcn4_calcs.c859 SwathWidthSingleDPPY[k] = (unsigned int)display_cfg->plane_descriptors[k].composition.viewport.plane0.width; in CalculateSwathWidth()
861 SwathWidthSingleDPPY[k] = (unsigned int)display_cfg->plane_descriptors[k].composition.viewport.plane0.height; in CalculateSwathWidth()
864 DML_LOG_VERBOSE("DML::%s: k=%u ViewportWidth=%lu\n", __func__, k, display_cfg->plane_descriptors[k].composition.viewport.plane0.width); in CalculateSwathWidth()
865 DML_LOG_VERBOSE("DML::%s: k=%u ViewportHeight=%lu\n", __func__, k, display_cfg->plane_descriptors[k].composition.viewport.plane0.height); in CalculateSwathWidth()
934 DML_LOG_VERBOSE("DML::%s: k=%u ViewportStationary=%u\n", __func__, k, display_cfg->plane_descriptors[k].composition.viewport.stationary); in CalculateSwathWidth()
942 if (display_cfg->plane_descriptors[k].composition.viewport.stationary && DPPPerSurface[k] == 1) { in CalculateSwathWidth()
943 swath_width_luma_ub[k] = (unsigned int)(math_min2(surface_width_ub_l, math_floor2(display_cfg->plane_descriptors[k].composition.viewport.plane0.x_start + SwathWidthY[k] + req_width_horz_y - 1, req_width_horz_y) - math_floor2(display_cfg->plane_descriptors[k].composition.viewport.plane0.x_start, req_width_horz_y))); in CalculateSwathWidth()
950 if (display_cfg->plane_descriptors[k].composition.viewport.stationary && DPPPerSurface[k] == 1) { in CalculateSwathWidth()
951 swath_width_chroma_ub[k] = (unsigned int)(math_min2(surface_width_ub_c, math_floor2(display_cfg->plane_descriptors[k].composition.viewport in CalculateSwathWidth()
[all...]
H A Ddml2_core_dcn4.c291 phantom->composition.viewport.plane0.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
293 (double)main->composition.viewport.plane0.height); in create_phantom_plane_from_main_plane()
294 phantom->composition.viewport.plane1.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
296 (double)main->composition.viewport.plane1.height); in create_phantom_plane_from_main_plane()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c1299 * If viewport has non 0 offset and there are more taps than covered by init then in calculate_init_and_vp()
1301 * outside of viewport. in calculate_init_and_vp()
1312 * If taps are sampling outside of viewport at end of recout and there are more pixels in calculate_inits_and_viewports()
1313 * available in the surface we should increase the viewport size, regardless set vp to in calculate_inits_and_viewports()
1324 * Note that outside of viewport all scaling hardware works in recout space. in calculate_inits_and_viewports()
1381 &data->viewport.x, in calculate_inits_and_viewports()
1382 &data->viewport.width); in calculate_inits_and_viewports()
1401 &data->viewport.y, in convert_dp_to_controller_test_pattern()
1402 &data->viewport.height); in convert_dp_to_controller_test_pattern()
1414 swap(data->viewport in convert_dp_to_controller_test_pattern()
[all...]
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c491 /* 6. Program the viewport */ in dce_transform_set_scaler()
492 program_viewport(xfm_dce, &data->viewport); in dce_transform_set_scaler()
575 /* 6. Program the viewport */ in dce60_transform_set_scaler()
576 program_viewport(xfm_dce, &data->viewport); in dce60_transform_set_scaler()
1183 int pixel_width = scl_data->viewport.width; in dce_transform_get_optimal_number_of_taps()
1187 (scl_data->viewport.width > scl_data->recout.width)) in dce_transform_get_optimal_number_of_taps()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/
H A Ddml_top_display_cfg_types.h234 } viewport; member
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/
H A Ddcn401_hwseq.c1133 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn401_set_cursor_position()
1155 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn401_check_no_memory_request_for_cab()
1156 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn401_check_no_memory_request_for_cab()
1186 /* If the cursor's source viewport is clipped then we need to in dcn401_calculate_cab_allocation()
2910 new_pipe->update_flags.bits.viewport = 1; in dcn401_plane_atomic_power_down()
2989 if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeof(struct rect)) in dcn401_plane_atomic_power_down_sequence()
2992 new_pipe->update_flags.bits.viewport = 1; in dcn401_plane_atomic_power_down_sequence()
3783 /* Step 12: HUBP viewport programmin in dcn401_update_mpcc_sequence()
[all...]
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1043a.dtsi918 num-viewport = <6>;
945 num-viewport = <6>;
972 num-viewport = <6>;
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c3202 "viewport:%d, %d, %d, %d\n" in dce110_wait_for_mpcc_disconnect()
3205 pipe_ctx->plane_res.scl_data.viewport.width, in dce110_wait_for_mpcc_disconnect()
3206 pipe_ctx->plane_res.scl_data.viewport.height, in dce110_wait_for_mpcc_disconnect()
3207 pipe_ctx->plane_res.scl_data.viewport.x,
3208 pipe_ctx->plane_res.scl_data.viewport.y, in program_output_csc()
3326 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dce110_set_backlight_level()
3334 * If the cursor's source viewport is clipped then we need to in dce110_set_abm_immediate_disable()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/
H A Ddml2_translation_helper.c1081 out->ViewportWidth[location] = scaler_data->viewport.width; in populate_dml_plane_cfg_from_plane_state()
1082 out->ViewportHeight[location] = scaler_data->viewport.height; in populate_dml_plane_cfg_from_plane_state()
1085 out->ViewportXStart[location] = scaler_data->viewport.x; in populate_dml_plane_cfg_from_plane_state()
1086 out->ViewportYStart[location] = scaler_data->viewport.y; in populate_dml_plane_cfg_from_plane_state()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c1632 pipes[pipe_cnt].pipe.src.viewport_y_y = scl->viewport.y; in dcn20_populate_dml_pipes_from_context()
1634 pipes[pipe_cnt].pipe.src.viewport_x_y = scl->viewport.x; in dcn20_populate_dml_pipes_from_context()
1636 pipes[pipe_cnt].pipe.src.viewport_width = scl->viewport.width; in dcn20_populate_dml_pipes_from_context()
1638 pipes[pipe_cnt].pipe.src.viewport_height = scl->viewport.height; in dcn20_populate_dml_pipes_from_context()

12