swath_width_y 1251 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_width_y[k] = v->viewport_width[k] / v->dpp_per_plane[k]; swath_width_y 1254 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_width_y[k] = v->viewport_height[k] / v->dpp_per_plane[k]; swath_width_y 1281 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->read_bandwidth_plane_luma[k] = v->swath_width_y[k] * v->dpp_per_plane[k] *dcn_bw_ceil2(v->byte_per_pixel_dety[k], 1.0) / (v->htotal[k] / v->pixel_clock[k]) * v->v_ratio[k]; swath_width_y 1282 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->read_bandwidth_plane_chroma[k] = v->swath_width_y[k] / 2.0 * v->dpp_per_plane[k] *dcn_bw_ceil2(v->byte_per_pixel_detc[k], 2.0) / (v->htotal[k] / v->pixel_clock[k]) * v->v_ratio[k] / 2.0; swath_width_y 1297 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_luma[k] = v->swath_width_y[k] * v->dpp_per_plane[k] / v->h_ratio[k] / v->pixel_clock[k]; swath_width_y 1300 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_luma[k] = v->swath_width_y[k] / v->pscl_throughput[k] / v->dppclk; swath_width_y 1302 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->data_fabric_line_delivery_time_luma = v->swath_width_y[k] * v->swath_height_y[k] *dcn_bw_ceil2(v->byte_per_pixel_dety[k], 1.0) / (v->return_bw * v->read_bandwidth_plane_luma[k] / v->dpp_per_plane[k] / v->total_data_read_bandwidth); swath_width_y 1309 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_chroma[k] = v->swath_width_y[k] / 2.0 * v->dpp_per_plane[k] / (v->h_ratio[k] / 2.0) / v->pixel_clock[k]; swath_width_y 1312 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_chroma[k] = v->swath_width_y[k] / 2.0 / v->pscl_throughput_chroma[k] / v->dppclk; swath_width_y 1314 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->data_fabric_line_delivery_time_chroma = v->swath_width_y[k] / 2.0 * v->swath_height_c[k] *dcn_bw_ceil2(v->byte_per_pixel_detc[k], 2.0) / (v->return_bw * v->read_bandwidth_plane_chroma[k] / v->dpp_per_plane[k] / v->total_data_read_bandwidth); swath_width_y 1342 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_dety[k] = v->det_buffer_size_y[k] / v->byte_per_pixel_dety[k] / v->swath_width_y[k]; swath_width_y 1346 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_detc[k] = v->det_buffer_size_c[k] / v->byte_per_pixel_detc[k] / (v->swath_width_y[k] / 2.0); swath_width_y 1405 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dcfclk_deep_sleep_per_plane[k] =dcn_bw_max2(1.1 * v->swath_width_y[k] *dcn_bw_ceil2(v->byte_per_pixel_dety[k], 1.0) / 32.0 / v->display_pipe_line_delivery_time_luma[k], 1.1 * v->swath_width_y[k] / 2.0 *dcn_bw_ceil2(v->byte_per_pixel_detc[k], 2.0) / 32.0 / v->display_pipe_line_delivery_time_chroma[k]); swath_width_y 1408 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dcfclk_deep_sleep_per_plane[k] = 1.1 * v->swath_width_y[k] *dcn_bw_ceil2(v->byte_per_pixel_dety[k], 1.0) / 64.0 / v->display_pipe_line_delivery_time_luma[k]; swath_width_y 1424 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->urgent_latency_support_us_luma = v->effective_det_plus_lb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_det_plus_lb_lines_luma * v->swath_width_y[k] * v->byte_per_pixel_dety[k] / (v->return_bw / v->dpp_per_plane[k]); swath_width_y 1427 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->urgent_latency_support_us_chroma = v->effective_det_plus_lb_lines_chroma * (v->htotal[k] / v->pixel_clock[k]) / (v->v_ratio[k] / 2.0) - v->effective_det_plus_lb_lines_chroma * (v->swath_width_y[k] / 2.0) * v->byte_per_pixel_detc[k] / (v->return_bw / v->dpp_per_plane[k]); swath_width_y 1472 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->meta_surf_width_y =dcn_bw_ceil2(v->swath_width_y[k] - 1.0, v->meta_request_width_y) + v->meta_request_width_y; swath_width_y 1516 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->pixel_pte_bytes_per_row_y = 64.0 * (dcn_bw_ceil2((v->swath_width_y[k] *dcn_bw_min2(128.0, dcn_bw_pow(2.0,dcn_bw_floor2(dcn_bw_log(v->pte_buffer_size_in_requests * v->pixel_pte_req_width_y / v->swath_width_y[k], 2.0), 1.0))) - 1.0) / v->pixel_pte_req_width_y, 1.0) + 1); swath_width_y 1519 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->pixel_pte_bytes_per_row_y = 64.0 * (dcn_bw_ceil2((v->swath_width_y[k] - 1.0) / v->pixel_pte_req_width_y, 1.0) + 1); swath_width_y 1531 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->meta_surf_width_c =dcn_bw_ceil2(v->swath_width_y[k] / 2.0 - 1.0, v->meta_request_width_c) + v->meta_request_width_c; swath_width_y 1575 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->pixel_pte_bytes_per_row_c = 64.0 * (dcn_bw_ceil2((v->swath_width_y[k] / 2.0 * dcn_bw_min2(128.0, dcn_bw_pow(2.0,dcn_bw_floor2(dcn_bw_log(v->pte_buffer_size_in_requests * v->pixel_pte_req_width_c / (v->swath_width_y[k] / 2.0), 2.0), 1.0))) - 1.0) / v->pixel_pte_req_width_c, 1.0) + 1); swath_width_y 1578 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->pixel_pte_bytes_per_row_c = 64.0 * (dcn_bw_ceil2((v->swath_width_y[k] / 2.0 - 1.0) / v->pixel_pte_req_width_c, 1.0) + 1); swath_width_y 1670 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_bandwidth[k] = (v->meta_pte_bytes_frame[k] + 2.0 * v->meta_row_byte[k] + 2.0 * v->pixel_pte_bytes_per_row[k] + v->prefetch_source_lines_y[k] * v->swath_width_y[k] *dcn_bw_ceil2(v->byte_per_pixel_dety[k], 1.0) + v->prefetch_source_lines_c[k] * v->swath_width_y[k] / 2.0 *dcn_bw_ceil2(v->byte_per_pixel_detc[k], 2.0)) / (v->destination_lines_for_prefetch[k] * v->htotal[k] / v->pixel_clock[k]); swath_width_y 1744 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_prefetch_pix_data_bw = v->dpp_per_plane[k] * (v->prefetch_source_lines_y[k] / v->lines_to_request_prefetch_pixel_data *dcn_bw_ceil2(v->byte_per_pixel_dety[k], 1.0) + v->prefetch_source_lines_c[k] / v->lines_to_request_prefetch_pixel_data *dcn_bw_ceil2(v->byte_per_pixel_detc[k], 2.0) / 2.0) * v->swath_width_y[k] / (v->htotal[k] / v->pixel_clock[k]); swath_width_y 1783 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_luma_prefetch[k] = v->swath_width_y[k] * v->dpp_per_plane[k] / v->h_ratio[k] / v->pixel_clock[k]; swath_width_y 1786 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_luma_prefetch[k] = v->swath_width_y[k] / v->pscl_throughput[k] / v->dppclk; swath_width_y 1793 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_chroma_prefetch[k] = v->swath_width_y[k] * v->dpp_per_plane[k] / v->h_ratio[k] / v->pixel_clock[k]; swath_width_y 1796 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->display_pipe_line_delivery_time_chroma_prefetch[k] = v->swath_width_y[k] / v->pscl_throughput[k] / v->dppclk; swath_width_y 1826 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lb_latency_hiding_source_lines_y =dcn_bw_min2(v->max_line_buffer_lines,dcn_bw_floor2(v->line_buffer_size / v->lb_bit_per_pixel[k] / (v->swath_width_y[k] /dcn_bw_max2(v->h_ratio[k], 1.0)), 1.0)) - (v->vtaps[k] - 1.0); swath_width_y 1827 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lb_latency_hiding_source_lines_c =dcn_bw_min2(v->max_line_buffer_lines,dcn_bw_floor2(v->line_buffer_size / v->lb_bit_per_pixel[k] / (v->swath_width_y[k] / 2.0 /dcn_bw_max2(v->h_ratio[k] / 2.0, 1.0)), 1.0)) - (v->vta_pschroma[k] - 1.0); swath_width_y 1830 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->swath_width_y[k] > 2.0 * v->dpp_output_buffer_pixels) { swath_width_y 1831 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpp_output_buffer_lines_y = v->dpp_output_buffer_pixels / v->swath_width_y[k]; swath_width_y 1833 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c else if (v->swath_width_y[k] > v->dpp_output_buffer_pixels) { swath_width_y 1839 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->swath_width_y[k] / 2.0 > 2.0 * v->dpp_output_buffer_pixels) { swath_width_y 1840 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpp_output_buffer_lines_c = v->dpp_output_buffer_pixels / (v->swath_width_y[k] / 2.0); swath_width_y 1842 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c else if (v->swath_width_y[k] / 2.0 > v->dpp_output_buffer_pixels) { swath_width_y 1059 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->swath_width_y[k] = v->viewport_width[k] / v->dpp_per_plane[k]; swath_width_y 1061 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->swath_width_y[k] = v->viewport_height[k] / v->dpp_per_plane[k]; swath_width_y 1084 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->read_bandwidth_plane_luma[k] = v->swath_width_y[k] * v->dpp_per_plane[k] * swath_width_y 1086 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->read_bandwidth_plane_chroma[k] = v->swath_width_y[k] / 2.0 * v->dpp_per_plane[k] * swath_width_y 401 drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h float swath_width_y[number_of_planes_minus_one + 1];