| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/core/ |
| D | dc_resource.c | 521 data->viewport.x = surf_src.x + (clip.x - plane_state->dst_rect.x) * in calculate_viewport() 523 data->viewport.width = clip.width * in calculate_viewport() 526 data->viewport.y = surf_src.y + (clip.y - plane_state->dst_rect.y) * in calculate_viewport() 528 data->viewport.height = clip.height * in calculate_viewport() 532 data->viewport_c.x = data->viewport.x / vpc_div; in calculate_viewport() 533 data->viewport_c.y = data->viewport.y / vpc_div; in calculate_viewport() 534 data->inits.h_c = (data->viewport.x % vpc_div) != 0 ? in calculate_viewport() 536 data->inits.v_c = (data->viewport.y % vpc_div) != 0 ? in calculate_viewport() 539 data->viewport_c.width = (data->viewport.width + vpc_div - 1) / vpc_div; in calculate_viewport() 540 data->viewport_c.height = (data->viewport.height + vpc_div - 1) / vpc_div; in calculate_viewport() [all …]
|
| /kernel/linux/linux-5.10/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() 536 /* 1. Calculate viewport, viewport programming should happen after init in dce110_xfmv_set_scaler() 537 * calculations as they may require an adjustment in the viewport. in dce110_xfmv_set_scaler() 603 /* 7. Program the viewport */ in dce110_xfmv_set_scaler()
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/dce110/ |
| D | dce110_transform_v.c | 53 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() 534 /* 1. Calculate viewport, viewport programming should happen after init in dce110_xfmv_set_scaler() 535 * calculations as they may require an adjustment in the viewport. in dce110_xfmv_set_scaler() 601 /* 7. Program the viewport */ in dce110_xfmv_set_scaler()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
| 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_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_hw_sequencer.c | 1734 * the case where the viewport changes in the same frame as the cursor. 2163 "viewport:%d, %d, %d, %d\n" in dcn10_enable_plane() 2167 pipe_ctx->plane_res.scl_data.viewport.width, in dcn10_enable_plane() 2168 pipe_ctx->plane_res.scl_data.viewport.height, in dcn10_enable_plane() 2169 pipe_ctx->plane_res.scl_data.viewport.x, in dcn10_enable_plane() 2170 pipe_ctx->plane_res.scl_data.viewport.y, in dcn10_enable_plane() 2551 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn10_update_dchubp_dpp() 2575 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp() 2804 …if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeof(… in dcn10_disconnect_pipes() 2807 new_pipe->update_flags.bits.viewport = 1; in dcn10_disconnect_pipes() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/dcn10/ |
| D | dcn10_hubp.c | 771 const struct rect *viewport, in min_set_viewport() argument 777 PRI_VIEWPORT_WIDTH, viewport->width, in min_set_viewport() 778 PRI_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport() 781 PRI_VIEWPORT_X_START, viewport->x, in min_set_viewport() 782 PRI_VIEWPORT_Y_START, viewport->y); in min_set_viewport() 786 SEC_VIEWPORT_WIDTH, viewport->width, in min_set_viewport() 787 SEC_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport() 790 SEC_VIEWPORT_X_START, viewport->x, in min_set_viewport() 791 SEC_VIEWPORT_Y_START, viewport->y); in min_set_viewport() 1071 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp1_cursor_set_position() [all …]
|
| D | dcn10_dpp.c | 142 if (scl_data->viewport.width > scl_data->recout.width) in dpp_get_optimal_number_of_taps() 145 pixel_width = scl_data->viewport.width; in dpp_get_optimal_number_of_taps() 154 if (scl_data->viewport.width > scl_data->h_active && in dpp_get_optimal_number_of_taps() 156 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp_get_optimal_number_of_taps() 452 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in dpp1_set_cursor_position() 455 if (src_x_offset >= (int)param->viewport.width) in dpp1_set_cursor_position()
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/ |
| D | sh_mobile_lcdcfb.h | 52 * @base_addr_y: Frame buffer viewport base address (luma component) 53 * @base_addr_c: Frame buffer viewport base address (chroma component)
|
| /kernel/linux/linux-4.19/drivers/video/fbdev/ |
| D | sh_mobile_lcdcfb.h | 52 * @base_addr_y: Frame buffer viewport base address (luma component) 53 * @base_addr_c: Frame buffer viewport base address (chroma component)
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/calcs/ |
| D | dcn_calcs.c | 276 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params() 277 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params() 278 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params() 279 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params() 866 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth() 867 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth() 872 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth() 873 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth() 874 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth() 875 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce60/ |
| D | dce60_hw_sequencer.c | 368 "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()
|
| /kernel/linux/linux-5.10/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() 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
| D | rv1_clk_mgr.c | 129 * 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()
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/marvell/ |
| D | cn9132-db.dts | 157 num-viewport = <8>; 167 num-viewport = <8>;
|
| /kernel/linux/linux-5.10/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_hwseq.c | 1129 "viewport:%d, %d, %d, %d\n" in dcn20_enable_plane() 1133 pipe_ctx->plane_res.scl_data.viewport.width, in dcn20_enable_plane() 1134 pipe_ctx->plane_res.scl_data.viewport.height, in dcn20_enable_plane() 1135 pipe_ctx->plane_res.scl_data.viewport.x, in dcn20_enable_plane() 1136 pipe_ctx->plane_res.scl_data.viewport.y, in dcn20_enable_plane() 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() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdgpu/ |
| D | gmc_v9_0.c | 815 u32 viewport; in gmc_v9_0_get_vbios_fb_size() 819 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size() 820 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size() 822 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size() 829 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size() 830 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size() 831 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v9_0_get_vbios_fb_size()
|
| /kernel/linux/linux-4.19/drivers/usb/phy/ |
| D | Makefile | 25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
|
| /kernel/linux/linux-5.10/drivers/usb/phy/ |
| D | Makefile | 25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/pci/ |
| D | designware-pcie.txt | 35 - num-viewport: number of view ports configured in hardware. If a platform
|
| /kernel/linux/linux-4.19/include/linux/usb/ |
| D | ulpi.h | 67 /* access ops for controllers with a viewport register */
|
| /kernel/linux/linux-5.10/include/linux/usb/ |
| D | ulpi.h | 78 /* access ops for controllers with a viewport register */
|