Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_dpp.c139 if (scl_data->viewport.width > scl_data->recout.width) in dpp_get_optimal_number_of_taps()
142 pixel_width = scl_data->viewport.width; in dpp_get_optimal_number_of_taps()
151 if (scl_data->viewport.width > scl_data->h_active && in dpp_get_optimal_number_of_taps()
153 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp_get_optimal_number_of_taps()
456 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in dpp1_set_cursor_position()
457 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in dpp1_set_cursor_position()
464 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in dpp1_set_cursor_position()
465 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in dpp1_set_cursor_position()
468 src_x_offset = pos->x - param->viewport.x; in dpp1_set_cursor_position()
469 src_y_offset = pos->y - param->viewport.y; in dpp1_set_cursor_position()
[all …]
Ddcn10_hubp.c814 const struct rect *viewport, in min_set_viewport() argument
820 PRI_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
821 PRI_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
824 PRI_VIEWPORT_X_START, viewport->x, in min_set_viewport()
825 PRI_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
829 SEC_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
830 SEC_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
833 SEC_VIEWPORT_X_START, viewport->x, in min_set_viewport()
834 SEC_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
1129 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp1_cursor_set_position()
[all …]
Ddcn10_hw_sequencer.c2334 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in update_dchubp_dpp()
2358 &pipe_ctx->plane_res.scl_data.viewport, in update_dchubp_dpp()
2962 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn10_set_cursor_position()
2985 pos_cpy.x = pipe_ctx->plane_res.scl_data.viewport.width - in dcn10_set_cursor_position()
2986 (pos_cpy.y - pipe_ctx->plane_res.scl_data.viewport.x) + pipe_ctx->plane_res.scl_data.viewport.x; in dcn10_set_cursor_position()
2992 if (pos_cpy.x > pipe_ctx->plane_res.scl_data.viewport.height) { in dcn10_set_cursor_position()
2993 pos_cpy.x = pos_cpy.x - pipe_ctx->plane_res.scl_data.viewport.height; in dcn10_set_cursor_position()
2994 pos_cpy.y = pipe_ctx->plane_res.scl_data.viewport.height - pos_cpy.x; in dcn10_set_cursor_position()
2996 pos_cpy.y = 2 * pipe_ctx->plane_res.scl_data.viewport.height - pos_cpy.x; in dcn10_set_cursor_position()
3002 …if (pos_cpy.x >= pipe_ctx->plane_res.scl_data.viewport.width + pipe_ctx->plane_res.scl_data.viewpo… in dcn10_set_cursor_position()
[all …]
Ddcn10_dpp_dscl.c420 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dpp1_dscl_calc_lb_num_partitions()
421 scl_data->viewport.width : scl_data->recout.width; in dpp1_dscl_calc_lb_num_partitions()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dpp.c273 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions()
274 scl_data->viewport.width : scl_data->recout.width; in dscl2_calc_lb_num_partitions()
381 if (scl_data->viewport.width > scl_data->recout.width) in dpp2_get_optimal_number_of_taps()
384 pixel_width = scl_data->viewport.width; in dpp2_get_optimal_number_of_taps()
387 if (scl_data->viewport.width != scl_data->h_active && in dpp2_get_optimal_number_of_taps()
388 scl_data->viewport.height != scl_data->v_active && in dpp2_get_optimal_number_of_taps()
393 if (scl_data->viewport.width > scl_data->h_active && in dpp2_get_optimal_number_of_taps()
395 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp2_get_optimal_number_of_taps()
Ddcn20_hubp.c944 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp2_cursor_set_position()
945 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in hubp2_cursor_set_position()
967 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in hubp2_cursor_set_position()
968 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in hubp2_cursor_set_position()
971 src_x_offset = pos->x - param->viewport.x; in hubp2_cursor_set_position()
972 src_y_offset = pos->y - param->viewport.y; in hubp2_cursor_set_position()
976 x_hotspot = param->viewport.width - x_hotspot; in hubp2_cursor_set_position()
977 src_x_offset = param->viewport.x + param->viewport.width - src_x_offset; in hubp2_cursor_set_position()
991 if (src_x_offset >= (int)param->viewport.width) in hubp2_cursor_set_position()
997 if (src_y_offset >= (int)param->viewport.height) in hubp2_cursor_set_position()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_transform_v.c55 luma_viewport->x = scl_data->viewport.x - scl_data->viewport.x % 2; in calculate_viewport()
56 luma_viewport->y = scl_data->viewport.y - scl_data->viewport.y % 2; in calculate_viewport()
58 scl_data->viewport.width - scl_data->viewport.width % 2; in calculate_viewport()
60 scl_data->viewport.height - scl_data->viewport.height % 2; in calculate_viewport()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c617 data->viewport.x = surf_src.x + (clip.x - dest.x) * surf_src.width / dest.width; in calculate_viewport()
618 data->viewport.width = clip.width * surf_src.width / dest.width; in calculate_viewport()
620 data->viewport.y = surf_src.y + (clip.y - dest.y) * surf_src.height / dest.height; in calculate_viewport()
621 data->viewport.height = clip.height * surf_src.height / dest.height; in calculate_viewport()
627 data->viewport.height /= 2; in calculate_viewport()
629 data->viewport.y += data->viewport.height / 2; in calculate_viewport()
631 data->viewport.height = (data->viewport.height + 1) / 2; in calculate_viewport()
635 data->viewport.width /= 2; in calculate_viewport()
637 data->viewport.x += data->viewport.width / 2; in calculate_viewport()
639 data->viewport.width = (data->viewport.width + 1) / 2; in calculate_viewport()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/calcs/
Ddcn_calcs.c336 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
337 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params()
338 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
339 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
914 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
915 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
920 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
921 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
922 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
923 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Dgmc_v9_0.c1079 u32 viewport; in gmc_v9_0_get_vbios_fb_size() local
1084 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
1085 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1087 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1095 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1096 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1097 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v9_0_get_vbios_fb_size()
Dgmc_v10_0.c614 u32 viewport; in gmc_v10_0_get_vbios_fb_size() local
617 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v10_0_get_vbios_fb_size()
619 size = (REG_GET_FIELD(viewport, in gmc_v10_0_get_vbios_fb_size()
Dgmc_v6_0.c828 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v6_0_get_vbios_fb_size() local
829 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v6_0_get_vbios_fb_size()
830 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v6_0_get_vbios_fb_size()
/Linux-v5.4/drivers/usb/phy/
DMakefile25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/hw/
Dhubp.h86 const struct rect *viewport,
Dmem_input.h104 const struct rect *viewport,
Dtransform.h174 struct rect viewport; member
/Linux-v5.4/arch/arm64/boot/dts/freescale/
Dfsl-ls208xa.dtsi642 num-viewport = <6>;
663 num-viewport = <6>;
684 num-viewport = <256>;
705 num-viewport = <6>;
Dfsl-ls1043a.dtsi680 num-viewport = <6>;
706 num-viewport = <6>;
732 num-viewport = <6>;
Dfsl-ls1088a.dtsi472 num-viewport = <256>;
497 num-viewport = <6>;
522 num-viewport = <6>;
/Linux-v5.4/Documentation/devicetree/bindings/pci/
Duniphier-pcie.txt58 num-viewport = <1>;
Ddesignware-pcie.txt42 - num-viewport: number of view ports configured in hardware. If a platform
/Linux-v5.4/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-v5.4/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h283 uint32_t viewport : 1; member
/Linux-v5.4/arch/arm64/boot/dts/nvidia/
Dtegra194.dtsi1168 num-viewport = <8>;
1214 num-viewport = <8>;
1260 num-viewport = <8>;
1306 num-viewport = <8>;
1352 num-viewport = <8>;
1398 num-viewport = <8>;
/Linux-v5.4/arch/arm/boot/dts/
Dimx7d.dtsi167 num-viewport = <4>;

12