Lines Matching refs:qi
136 struct intel_qgv_info *qi) in icl_get_qgv_points() argument
141 qi->num_points = dram_info->num_qgv_points; in icl_get_qgv_points()
142 qi->num_psf_points = dram_info->num_psf_gv_points; in icl_get_qgv_points()
147 qi->t_bl = 4; in icl_get_qgv_points()
150 qi->t_bl = 8; in icl_get_qgv_points()
153 qi->t_bl = 16; in icl_get_qgv_points()
157 qi->t_bl = dev_priv->dram_info.type == INTEL_DRAM_DDR4 ? 4 : 8; in icl_get_qgv_points()
160 qi->num_points > ARRAY_SIZE(qi->points))) in icl_get_qgv_points()
161 qi->num_points = ARRAY_SIZE(qi->points); in icl_get_qgv_points()
163 for (i = 0; i < qi->num_points; i++) { in icl_get_qgv_points()
164 struct intel_qgv_point *sp = &qi->points[i]; in icl_get_qgv_points()
180 if (qi->num_psf_points > 0) { in icl_get_qgv_points()
181 ret = adls_pcode_read_psf_gv_point_info(dev_priv, qi->psf_points); in icl_get_qgv_points()
184 qi->num_psf_points = 0; in icl_get_qgv_points()
187 for (i = 0; i < qi->num_psf_points; i++) in icl_get_qgv_points()
190 i, qi->psf_points[i].clk); in icl_get_qgv_points()
212 static int icl_sagv_max_dclk(const struct intel_qgv_info *qi) in icl_sagv_max_dclk() argument
217 for (i = 0; i < qi->num_points; i++) in icl_sagv_max_dclk()
218 dclk = max(dclk, qi->points[i].dclk); in icl_sagv_max_dclk()
265 struct intel_qgv_info qi = {}; in icl_get_bw_info() local
274 ret = icl_get_qgv_points(dev_priv, &qi); in icl_get_bw_info()
282 dclk_max = icl_sagv_max_dclk(&qi); in icl_get_bw_info()
298 bi->num_qgv_points = qi.num_points; in icl_get_bw_info()
299 bi->num_psf_gv_points = qi.num_psf_points; in icl_get_bw_info()
301 for (j = 0; j < qi.num_points; j++) { in icl_get_bw_info()
302 const struct intel_qgv_point *sp = &qi.points[j]; in icl_get_bw_info()
312 (clpchgroup - 1) * qi.t_bl + sp->t_rdpre); in icl_get_bw_info()
323 for (j = 0; j < qi.num_psf_points; j++) { in icl_get_bw_info()
324 const struct intel_psf_gv_point *sp = &qi.psf_points[j]; in icl_get_bw_info()
342 if (qi.num_points == 1) in icl_get_bw_info()