/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_dpp.c | 144 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()
|
D | dcn10_hubp.c | 827 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 …]
|
D | dcn10_hw_sequencer.c | 2555 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 …]
|
D | dcn10_dpp_dscl.c | 418 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/ |
D | dce110_transform_v.c | 55 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()
|
D | dce110_hw_sequencer.c | 2642 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/ |
D | dc_resource.c | 720 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/ |
D | dcn21_hubp.c | 188 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/ |
D | dce60_hw_sequencer.c | 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()
|
/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dcn_calcs.c | 340 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/ |
D | dcn20_hubp.c | 970 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()
|
D | dcn20_dpp.c | 277 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()
|
D | dcn20_hwseq.c | 1247 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/ |
D | gmc_v9_0.c | 1086 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()
|
D | gmc_v6_0.c | 810 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()
|
D | gmc_v10_0.c | 585 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()
|
D | gmc_v7_0.c | 975 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/ |
D | Makefile | 25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
|
/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | mem_input.h | 103 const struct rect *viewport,
|
D | hubp.h | 108 const struct rect *viewport,
|
D | transform.h | 174 struct rect viewport; member
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_transform.c | 480 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/ |
D | dcn30_dpp.c | 389 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/ |
D | core_types.h | 302 uint32_t viewport : 1; member
|
/drivers/gpu/drm/amd/display/dc/ |
D | dc_hw_types.h | 431 struct rect viewport; member
|