Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c523 data->viewport.x = surf_src.x + (clip.x - plane_state->dst_rect.x) * in calculate_viewport()
525 data->viewport.width = clip.width * in calculate_viewport()
528 data->viewport.y = surf_src.y + (clip.y - plane_state->dst_rect.y) * in calculate_viewport()
530 data->viewport.height = clip.height * in calculate_viewport()
534 data->viewport_c.x = data->viewport.x / vpc_div; in calculate_viewport()
535 data->viewport_c.y = data->viewport.y / vpc_div; in calculate_viewport()
536 data->inits.h_c = (data->viewport.x % vpc_div) != 0 ? in calculate_viewport()
538 data->inits.v_c = (data->viewport.y % vpc_div) != 0 ? in calculate_viewport()
541 data->viewport_c.width = (data->viewport.width + vpc_div - 1) / vpc_div; in calculate_viewport()
542 data->viewport_c.height = (data->viewport.height + vpc_div - 1) / vpc_div; in calculate_viewport()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hubp.c771 const struct rect *viewport, in min_set_viewport() argument
777 PRI_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
778 PRI_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
781 PRI_VIEWPORT_X_START, viewport->x, in min_set_viewport()
782 PRI_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
786 SEC_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
787 SEC_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
790 SEC_VIEWPORT_X_START, viewport->x, in min_set_viewport()
791 SEC_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
1071 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp1_cursor_set_position()
[all …]
Ddcn10_dpp.c142 if (scl_data->viewport.width > scl_data->recout.width) in dpp_get_optimal_number_of_taps()
145 pixel_width = scl_data->viewport.width; in dpp_get_optimal_number_of_taps()
154 if (scl_data->viewport.width > scl_data->h_active && in dpp_get_optimal_number_of_taps()
156 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp_get_optimal_number_of_taps()
448 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in dpp1_set_cursor_position()
451 if (src_x_offset >= (int)param->viewport.width) in dpp1_set_cursor_position()
Ddcn10_dpp_dscl.c409 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dpp1_dscl_calc_lb_num_partitions()
410 scl_data->viewport.width : scl_data->recout.width; in dpp1_dscl_calc_lb_num_partitions()
Ddcn10_hw_sequencer.c2041 size.grph.surface_size = pipe_ctx->plane_res.scl_data.viewport; in update_dchubp_dpp()
2063 &pipe_ctx->plane_res.scl_data.viewport, in update_dchubp_dpp()
2588 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn10_set_cursor_position()
Ddcn10_hubp.h721 const struct rect *viewport,
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_transform_v.c53 luma_viewport->x = scl_data->viewport.x - scl_data->viewport.x % 2; in calculate_viewport()
54 luma_viewport->y = scl_data->viewport.y - scl_data->viewport.y % 2; in calculate_viewport()
56 scl_data->viewport.width - scl_data->viewport.width % 2; in calculate_viewport()
58 scl_data->viewport.height - scl_data->viewport.height % 2; in calculate_viewport()
Ddce110_hw_sequencer.c2698 pipe_ctx->plane_res.scl_data.viewport.width, in dce110_program_front_end_for_pipe()
2699 pipe_ctx->plane_res.scl_data.viewport.height, in dce110_program_front_end_for_pipe()
2700 pipe_ctx->plane_res.scl_data.viewport.x, in dce110_program_front_end_for_pipe()
2701 pipe_ctx->plane_res.scl_data.viewport.y, in dce110_program_front_end_for_pipe()
2817 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dce110_set_cursor_position()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/calcs/
Ddcn_calcs.c276 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
277 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params()
278 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
279 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
866 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
867 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
872 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
873 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
874 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
875 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
[all …]
Ddce_calcs.c2796 data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.width); in populate_initial_data()
2798 data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.height); in populate_initial_data()
2850 …t[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.viewport.height); in populate_initial_data()
2851 …th[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.viewport.width); in populate_initial_data()
2894 data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.width); in populate_initial_data()
2896 data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.height); in populate_initial_data()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Dgmc_v9_0.c815 u32 viewport; in gmc_v9_0_get_vbios_fb_size()
819 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
820 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
822 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
829 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
830 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
831 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v9_0_get_vbios_fb_size()
Dgmc_v6_0.c832 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v6_0_get_vbios_fb_size() local
833 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v6_0_get_vbios_fb_size()
834 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v6_0_get_vbios_fb_size()
Dgmc_v7_0.c964 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v7_0_get_vbios_fb_size() local
965 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v7_0_get_vbios_fb_size()
966 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v7_0_get_vbios_fb_size()
Dgmc_v8_0.c1060 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v8_0_get_vbios_fb_size() local
1061 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v8_0_get_vbios_fb_size()
1062 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v8_0_get_vbios_fb_size()
/Linux-v4.19/drivers/usb/phy/
DMakefile25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
DKconfig184 controllers with a viewport register (e.g. Chipidea/ARC controllers).
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/
Dhubp.h70 const struct rect *viewport,
Dmem_input.h100 const struct rect *viewport,
Dtransform.h174 struct rect viewport; member
/Linux-v4.19/Documentation/devicetree/bindings/pci/
Ddesignware-pcie.txt35 - num-viewport: number of view ports configured in hardware. If a platform
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c393 program_viewport(xfm_dce, &data->viewport); in dce_transform_set_scaler()
897 int pixel_width = scl_data->viewport.width; in dce_transform_get_optimal_number_of_taps()
901 (scl_data->viewport.width > scl_data->recout.width)) in dce_transform_get_optimal_number_of_taps()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/
Ddc_hw_types.h407 struct rect viewport; member
/Linux-v4.19/arch/arm64/boot/dts/marvell/
Darmada-8040-mcbin.dts185 num-viewport = <8>;
/Linux-v4.19/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_cmd.h1466 SVGA3dRect viewport; member
/Linux-v4.19/Documentation/media/v4l-drivers/
Dphilips.rst216 64 0x40 Show viewport and image sizes Off