Home
last modified time | relevance | path

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

123

/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_dpp.c144 if (scl_data->viewport.width > scl_data->h_active && in dpp1_get_optimal_number_of_taps()
146 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp1_get_optimal_number_of_taps()
445 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in dpp1_set_cursor_position()
446 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in dpp1_set_cursor_position()
453 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in dpp1_set_cursor_position()
454 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in dpp1_set_cursor_position()
457 src_x_offset = pos->x - param->viewport.x; in dpp1_set_cursor_position()
458 src_y_offset = pos->y - param->viewport.y; in dpp1_set_cursor_position()
462 if (src_x_offset >= (int)param->viewport.width) in dpp1_set_cursor_position()
468 if (src_y_offset >= (int)param->viewport.height) in dpp1_set_cursor_position()
Ddcn10_hubp.c827 const struct rect *viewport, in min_set_viewport() argument
833 PRI_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
834 PRI_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
837 PRI_VIEWPORT_X_START, viewport->x, in min_set_viewport()
838 PRI_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
842 SEC_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
843 SEC_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
846 SEC_VIEWPORT_X_START, viewport->x, in min_set_viewport()
847 SEC_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
1153 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp1_cursor_set_position()
[all …]
Ddcn10_hw_sequencer.c2541 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn10_update_dchubp_dpp()
2565 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp()
2794 …if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeof(… in dcn10_disconnect_pipes()
2797 new_pipe->update_flags.bits.viewport = 1; in dcn10_disconnect_pipes()
2864 if (pipe_ctx->update_flags.bits.viewport || in dcn10_disconnect_pipes()
2871 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_disconnect_pipes()
3373 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn10_set_cursor_position()
3455 pos_cpy.x = pipe_ctx->plane_res.scl_data.viewport.width - in dcn10_set_cursor_position()
3456 (pos_cpy.y - pipe_ctx->plane_res.scl_data.viewport.x) + pipe_ctx->plane_res.scl_data.viewport.x; in dcn10_set_cursor_position()
3463 pipe_ctx->plane_res.scl_data.viewport.height; in dcn10_set_cursor_position()
[all …]
Ddcn10_dpp_dscl.c418 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dpp1_dscl_calc_lb_num_partitions()
419 scl_data->viewport.width : scl_data->recout.width; in dpp1_dscl_calc_lb_num_partitions()
/Linux-v5.10/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.10/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c720 data->viewport.x = surf_src.x + (clip.x - dest.x) * surf_src.width / dest.width; in calculate_viewport()
721 data->viewport.width = clip.width * surf_src.width / dest.width; in calculate_viewport()
723 data->viewport.y = surf_src.y + (clip.y - dest.y) * surf_src.height / dest.height; in calculate_viewport()
724 data->viewport.height = clip.height * surf_src.height / dest.height; in calculate_viewport()
737 epimo = split_count - data->viewport.height % (split_count + 1); in calculate_viewport()
739 data->viewport.y += (data->viewport.height / (split_count + 1)) * split_idx; in calculate_viewport()
741 data->viewport.y += split_idx - epimo - 1; in calculate_viewport()
742 data->viewport.height = data->viewport.height / (split_count + 1) + (split_idx > epimo ? 1 : 0); in calculate_viewport()
747 epimo = split_count - data->viewport.width % (split_count + 1); in calculate_viewport()
749 data->viewport.x += (data->viewport.width / (split_count + 1)) * split_idx; in calculate_viewport()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c371 pipe_ctx->plane_res.scl_data.viewport.width, in dce60_program_front_end_for_pipe()
372 pipe_ctx->plane_res.scl_data.viewport.height, in dce60_program_front_end_for_pipe()
373 pipe_ctx->plane_res.scl_data.viewport.x, in dce60_program_front_end_for_pipe()
374 pipe_ctx->plane_res.scl_data.viewport.y, in dce60_program_front_end_for_pipe()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hubp.c188 const struct rect *viewport, in hubp21_set_viewport() argument
194 PRI_VIEWPORT_WIDTH, viewport->width, in hubp21_set_viewport()
195 PRI_VIEWPORT_HEIGHT, viewport->height); in hubp21_set_viewport()
198 PRI_VIEWPORT_X_START, viewport->x, in hubp21_set_viewport()
199 PRI_VIEWPORT_Y_START, viewport->y); in hubp21_set_viewport()
203 SEC_VIEWPORT_WIDTH, viewport->width, in hubp21_set_viewport()
204 SEC_VIEWPORT_HEIGHT, viewport->height); in hubp21_set_viewport()
207 SEC_VIEWPORT_X_START, viewport->x, in hubp21_set_viewport()
208 SEC_VIEWPORT_Y_START, viewport->y); in hubp21_set_viewport()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/calcs/
Ddcn_calcs.c340 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
341 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params()
342 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
343 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
957 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
958 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
963 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
964 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
965 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
966 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_hubp.c967 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp2_cursor_set_position()
968 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in hubp2_cursor_set_position()
990 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in hubp2_cursor_set_position()
991 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in hubp2_cursor_set_position()
994 src_x_offset = pos->x - param->viewport.x; in hubp2_cursor_set_position()
995 src_y_offset = pos->y - param->viewport.y; in hubp2_cursor_set_position()
999 x_hotspot = param->viewport.width - x_hotspot; in hubp2_cursor_set_position()
1000 src_x_offset = param->viewport.x + param->viewport.width - src_x_offset; in hubp2_cursor_set_position()
1014 if (src_x_offset >= (int)param->viewport.width) in hubp2_cursor_set_position()
1020 if (src_y_offset >= (int)param->viewport.height) in hubp2_cursor_set_position()
Ddcn20_dpp.c277 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions()
278 scl_data->viewport.width : scl_data->recout.width; in dscl2_calc_lb_num_partitions()
/Linux-v5.10/drivers/usb/phy/
DMakefile25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Dgmc_v9_0.c1085 u32 viewport; in gmc_v9_0_get_vbios_fb_size() local
1090 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
1091 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1093 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1101 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1102 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1103 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v9_0_get_vbios_fb_size()
Dgmc_v6_0.c810 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v6_0_get_vbios_fb_size() local
811 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v6_0_get_vbios_fb_size()
812 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v6_0_get_vbios_fb_size()
Dgmc_v10_0.c584 u32 viewport; in gmc_v10_0_get_vbios_fb_size() local
587 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v10_0_get_vbios_fb_size()
589 size = (REG_GET_FIELD(viewport, in gmc_v10_0_get_vbios_fb_size()
/Linux-v5.10/arch/arm64/boot/dts/marvell/
Dcn9132-db.dts157 num-viewport = <8>;
167 num-viewport = <8>;
Dcn9131-db.dts116 num-viewport = <8>;
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/hw/
Dmem_input.h103 const struct rect *viewport,
Dhubp.h108 const struct rect *viewport,
Dtransform.h174 struct rect viewport; member
/Linux-v5.10/arch/arm64/boot/dts/freescale/
Dfsl-ls208xa.dtsi766 num-viewport = <6>;
788 num-viewport = <6>;
810 num-viewport = <256>;
832 num-viewport = <6>;
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c480 program_viewport(xfm_dce, &data->viewport); in dce_transform_set_scaler()
566 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-v5.10/Documentation/devicetree/bindings/pci/
Duniphier-pcie.txt59 num-viewport = <1>;
Ddesignware-pcie.txt42 - num-viewport: number of view ports configured in hardware. If a platform
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_dpp.c386 if (scl_data->viewport.width != scl_data->h_active && in dpp3_get_optimal_number_of_taps()
387 scl_data->viewport.height != scl_data->v_active && in dpp3_get_optimal_number_of_taps()
392 if (scl_data->viewport.width > scl_data->h_active && in dpp3_get_optimal_number_of_taps()
394 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp3_get_optimal_number_of_taps()

123