Home
last modified time | relevance | path

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

12345

/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_dpp.c43 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl32_calc_lb_num_partitions()
44 scl_data->viewport.width : scl_data->recout.width; in dscl32_calc_lb_num_partitions()
67 if (scl_data->viewport.width == scl_data->h_active && in dscl32_calc_lb_num_partitions()
68 scl_data->viewport.height == scl_data->v_active) { in dscl32_calc_lb_num_partitions()
81 if (scl_data->viewport.width == scl_data->h_active && in dscl32_calc_lb_num_partitions()
82 scl_data->viewport.height == scl_data->v_active) { in dscl32_calc_lb_num_partitions()
Ddcn32_hubp.c65 * For Pstate change using the MALL with sub-viewport buffering, in hubp32_prepare_subvp_buffering()
67 * and sub-viewport positioning by Display FW has to avoid the cursor in hubp32_prepare_subvp_buffering()
71 * Setting this should allow the sub-viewport position to always avoid the cursor because in hubp32_prepare_subvp_buffering()
72 * we do not allow the sub-viewport region to overlap with display prefetch (i.e. during blank). in hubp32_prepare_subvp_buffering()
Ddcn32_resource_helpers.c76 * pipes or only half the viewport size is counted in dcn32_helper_calculate_num_ways_for_subvp()
83 /* Get full viewport height from main pipe (required for MBLK calculation) */ in dcn32_helper_calculate_num_ways_for_subvp()
87 full_vp_height = main_pipe->plane_res.scl_data.viewport.height; in dcn32_helper_calculate_num_ways_for_subvp()
99 full_vp_width_blk_aligned = ((pipe->plane_res.scl_data.viewport.x + in dcn32_helper_calculate_num_ways_for_subvp()
100 pipe->plane_res.scl_data.viewport.width + mblk_width - 1) / mblk_width * mblk_width) + in dcn32_helper_calculate_num_ways_for_subvp()
101 (pipe->plane_res.scl_data.viewport.x / mblk_width * mblk_width); in dcn32_helper_calculate_num_ways_for_subvp()
106 full_vp_height_blk_aligned = ((pipe->plane_res.scl_data.viewport.y + in dcn32_helper_calculate_num_ways_for_subvp()
108 (pipe->plane_res.scl_data.viewport.y / mblk_height * mblk_height); in dcn32_helper_calculate_num_ways_for_subvp()
114 … mall_alloc_height_blk_aligned = (pipe->plane_res.scl_data.viewport.height - 1 + mblk_height - 1) / in dcn32_helper_calculate_num_ways_for_subvp()
Ddcn32_hwseq.c244 mall_alloc_width_blk_aligned = ((pipe->plane_res.scl_data.viewport.x + in dcn32_calculate_cab_allocation()
245 pipe->plane_res.scl_data.viewport.width + mblk_width - 1) / mblk_width * mblk_width) - in dcn32_calculate_cab_allocation()
246 (pipe->plane_res.scl_data.viewport.x / mblk_width * mblk_width); in dcn32_calculate_cab_allocation()
253 mall_alloc_height_blk_aligned = ((pipe->plane_res.scl_data.viewport.y + in dcn32_calculate_cab_allocation()
254 pipe->plane_res.scl_data.viewport.height + mblk_height - 1) / mblk_height * mblk_height) - in dcn32_calculate_cab_allocation()
255 (pipe->plane_res.scl_data.viewport.y / mblk_height * mblk_height); in dcn32_calculate_cab_allocation()
461 /* Sub-Viewport DMUB lock needs to be acquired by driver whenever SubVP is active and:
766 /* Program the sub-viewport pipe configuration after the main / phantom pipes
1336 /* For SubVP the main pipe can have a viewport position change
1338 * viewport positions for the phantom pipe accordingly.
/Linux-v6.1/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()
533 /* 1. Calculate viewport, viewport programming should happen after init in dce110_xfmv_set_scaler()
534 * calculations as they may require an adjustment in the viewport. in dce110_xfmv_set_scaler()
600 /* 7. Program the viewport */ in dce110_xfmv_set_scaler()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn201/
Ddcn201_dpp.c190 if (scl_data->viewport.width > scl_data->recout.width) in dpp201_get_optimal_number_of_taps()
193 pixel_width = scl_data->viewport.width; in dpp201_get_optimal_number_of_taps()
195 if (scl_data->viewport.width != scl_data->h_active && in dpp201_get_optimal_number_of_taps()
196 scl_data->viewport.height != scl_data->v_active && in dpp201_get_optimal_number_of_taps()
201 if (scl_data->viewport.width > scl_data->h_active && in dpp201_get_optimal_number_of_taps()
203 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp201_get_optimal_number_of_taps()
/Linux-v6.1/Documentation/devicetree/bindings/pci/
Dsamsung,exynos-pcie.yaml64 num-viewport:
80 - num-viewport
110 num-viewport = <3>;
Dsocionext,uniphier-pcie.yaml44 num-viewport: true
94 num-viewport = <1>;
Dsnps,dw-pcie.yaml70 num-viewport:
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn10/
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()
1182 int x_pos = pos->x - param->viewport.x; in hubp1_cursor_set_position()
[all …]
Ddcn10_dpp.c136 if (scl_data->viewport.width > scl_data->h_active && in dpp1_get_optimal_number_of_taps()
138 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp1_get_optimal_number_of_taps()
439 int x_pos = pos->x - param->viewport.x; in dpp1_set_cursor_position()
440 int y_pos = pos->y - param->viewport.y; in dpp1_set_cursor_position()
471 if (src_x_offset >= (int)param->viewport.width) in dpp1_set_cursor_position()
477 if (src_y_offset >= (int)param->viewport.height) in dpp1_set_cursor_position()
Ddcn10_hw_sequencer.c1885 * the case where the viewport changes in the same frame as the cursor.
2754 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn10_update_dchubp_dpp()
2778 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp()
3340 * plane that contains this pipe's viewport to prevent double cursor in dcn10_can_pipe_disable_cursor()
3383 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn10_set_cursor_position()
3399 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn10_set_cursor_position()
3400 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn10_set_cursor_position()
3435 * If the cursor's source viewport is clipped then we need to in dcn10_set_cursor_position()
3479 pipe_ctx->plane_res.scl_data.viewport.width; in dcn10_set_cursor_position()
3481 pipe_ctx->plane_res.scl_data.viewport.x; in dcn10_set_cursor_position()
[all …]
/Linux-v6.1/drivers/video/fbdev/
Dsh_mobile_lcdcfb.h52 * @base_addr_y: Frame buffer viewport base address (luma component)
53 * @base_addr_c: Frame buffer viewport base address (chroma component)
/Linux-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c791 data->viewport.width = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.horz, data->recout.width)); in calculate_viewport_size()
792 data->viewport.height = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.vert, data->recout.height)); in calculate_viewport_size()
797 swap(data->viewport.width, data->viewport.height); in calculate_viewport_size()
965 * If viewport has non 0 offset and there are more taps than covered by init then in calculate_init_and_vp()
967 * outside of viewport. in calculate_init_and_vp()
978 * If taps are sampling outside of viewport at end of recout and there are more pixels in calculate_init_and_vp()
979 * available in the surface we should increase the viewport size, regardless set vp to in calculate_init_and_vp()
990 * Note that outside of viewport all scaling hardware works in recout space. in calculate_init_and_vp()
1050 &data->viewport.x, in calculate_inits_and_viewports()
1051 &data->viewport.width); in calculate_inits_and_viewports()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dml/calcs/
Ddcn_calcs.c341 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
342 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params()
343 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
344 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
942 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
943 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
948 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
949 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
950 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
951 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c368 "viewport:%d, %d, %d, %d\n" in dce60_program_front_end_for_pipe()
371 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-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
Drv1_clk_mgr.c129 * pipe 0: recout=(0,40,1920,980) viewport=(0,0,1920,979) in ramp_up_dispclk_with_dpp()
130 * pipe 1: recout=(0,0,1920,1080) viewport=(0,0,1920,1080) in ramp_up_dispclk_with_dpp()
134 * pipe 0: recout=(0,0,960,1080) viewport=(0,0,960,1080) in ramp_up_dispclk_with_dpp()
135 * pipe 1: recout=(960,0,960,1080) viewport=(960,0,960,1080) in ramp_up_dispclk_with_dpp()
/Linux-v6.1/arch/arm64/boot/dts/marvell/
Dcn9132-db.dtsi156 num-viewport = <8>;
166 num-viewport = <8>;
Dcn9130-crb-A.dts15 num-viewport = <8>;
Dcn9130-crb-B.dts15 num-viewport = <8>;
/Linux-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_trace.h442 __entry->viewport_x = plane_res->scl_data.viewport.x;
443 __entry->viewport_y = plane_res->scl_data.viewport.y;
444 __entry->viewport_w = plane_res->scl_data.viewport.width;
445 __entry->viewport_h = plane_res->scl_data.viewport.height;
454 "viewport=(%d,%d,%d,%d) flip_immediate=%d pitch=%d "
/Linux-v6.1/drivers/usb/phy/
DMakefile25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Dgmc_v9_0.c1151 u32 viewport; in gmc_v9_0_get_vbios_fb_size() local
1156 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
1157 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1159 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1164 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION_DCN2); in gmc_v9_0_get_vbios_fb_size()
1165 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1167 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1172 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1173 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1174 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v9_0_get_vbios_fb_size()
/Linux-v6.1/include/linux/usb/
Dulpi.h74 /* access ops for controllers with a viewport register */

12345