Home
last modified time | relevance | path

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

12

/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.c2555 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn10_update_dchubp_dpp()
2579 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp()
2808 …if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeof(… in dcn10_disconnect_pipes()
2811 new_pipe->update_flags.bits.viewport = 1; in dcn10_disconnect_pipes()
2878 if (pipe_ctx->update_flags.bits.viewport || in dcn10_disconnect_pipes()
2885 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_disconnect_pipes()
3389 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn10_set_cursor_position()
3471 pos_cpy.x = pipe_ctx->plane_res.scl_data.viewport.width - in dcn10_set_cursor_position()
3472 (pos_cpy.y - pipe_ctx->plane_res.scl_data.viewport.x) + pipe_ctx->plane_res.scl_data.viewport.x; in dcn10_set_cursor_position()
3479 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()
/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()
Ddce110_hw_sequencer.c2642 pipe_ctx->plane_res.scl_data.viewport.width, in dce110_program_front_end_for_pipe()
2643 pipe_ctx->plane_res.scl_data.viewport.height, in dce110_program_front_end_for_pipe()
2644 pipe_ctx->plane_res.scl_data.viewport.x, in dce110_program_front_end_for_pipe()
2645 pipe_ctx->plane_res.scl_data.viewport.y, in dce110_program_front_end_for_pipe()
2753 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dce110_set_cursor_position()
/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 …]
/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()
/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()
/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()
960 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
961 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
966 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
967 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
968 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
969 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_hubp.c970 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp2_cursor_set_position()
971 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in hubp2_cursor_set_position()
993 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in hubp2_cursor_set_position()
994 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in hubp2_cursor_set_position()
997 src_x_offset = pos->x - param->viewport.x; in hubp2_cursor_set_position()
998 src_y_offset = pos->y - param->viewport.y; in hubp2_cursor_set_position()
1002 x_hotspot = param->viewport.width - x_hotspot; in hubp2_cursor_set_position()
1003 src_x_offset = param->viewport.x + param->viewport.width - src_x_offset; in hubp2_cursor_set_position()
1017 if (src_x_offset >= (int)param->viewport.width) in hubp2_cursor_set_position()
1023 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()
Ddcn20_hwseq.c1247 new_pipe->update_flags.bits.viewport = 1; in dcn20_detect_pipe_changes()
1311 …if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeof(… in dcn20_detect_pipe_changes()
1314 new_pipe->update_flags.bits.viewport = 1; in dcn20_detect_pipe_changes()
1458 if (pipe_ctx->update_flags.bits.viewport || in dcn20_update_dchubp_dpp()
1465 &pipe_ctx->plane_res.scl_data.viewport, in dcn20_update_dchubp_dpp()
1543 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn20_update_dchubp_dpp()
/drivers/gpu/drm/amd/amdgpu/
Dgmc_v9_0.c1086 u32 viewport; in gmc_v9_0_get_vbios_fb_size() local
1091 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
1092 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1094 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1102 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1103 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1104 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.c585 u32 viewport; in gmc_v10_0_get_vbios_fb_size() local
588 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v10_0_get_vbios_fb_size()
590 size = (REG_GET_FIELD(viewport, in gmc_v10_0_get_vbios_fb_size()
Dgmc_v7_0.c975 u32 viewport = RREG32(mmVIEWPORT_SIZE); in gmc_v7_0_get_vbios_fb_size() local
976 size = (REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v7_0_get_vbios_fb_size()
977 REG_GET_FIELD(viewport, VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v7_0_get_vbios_fb_size()
/drivers/usb/phy/
DMakefile25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
/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
/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()
1182 int pixel_width = scl_data->viewport.width; in dce_transform_get_optimal_number_of_taps()
1186 (scl_data->viewport.width > scl_data->recout.width)) in dce_transform_get_optimal_number_of_taps()
/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_dpp.c389 if (scl_data->viewport.width != scl_data->h_active && in dpp3_get_optimal_number_of_taps()
390 scl_data->viewport.height != scl_data->v_active && in dpp3_get_optimal_number_of_taps()
395 if (scl_data->viewport.width > scl_data->h_active && in dpp3_get_optimal_number_of_taps()
397 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp3_get_optimal_number_of_taps()
/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h302 uint32_t viewport : 1; member
/drivers/gpu/drm/amd/display/dc/
Ddc_hw_types.h431 struct rect viewport; member

12