• Home
  • Raw
  • Download

Lines Matching refs:vbif

28 static int _dpu_vbif_wait_for_xin_halt(struct dpu_hw_vbif *vbif, u32 xin_id)  in _dpu_vbif_wait_for_xin_halt()  argument
34 if (!vbif || !vbif->cap || !vbif->ops.get_halt_ctrl) { in _dpu_vbif_wait_for_xin_halt()
35 DPU_ERROR("invalid arguments vbif %d\n", vbif != NULL); in _dpu_vbif_wait_for_xin_halt()
39 timeout = ktime_add_us(ktime_get(), vbif->cap->xin_halt_timeout); in _dpu_vbif_wait_for_xin_halt()
41 status = vbif->ops.get_halt_ctrl(vbif, xin_id); in _dpu_vbif_wait_for_xin_halt()
45 status = vbif->ops.get_halt_ctrl(vbif, xin_id); in _dpu_vbif_wait_for_xin_halt()
54 vbif->idx - VBIF_0, xin_id); in _dpu_vbif_wait_for_xin_halt()
58 vbif->idx - VBIF_0, xin_id); in _dpu_vbif_wait_for_xin_halt()
70 static void _dpu_vbif_apply_dynamic_ot_limit(struct dpu_hw_vbif *vbif, in _dpu_vbif_apply_dynamic_ot_limit() argument
77 if (!vbif || !(vbif->cap->features & BIT(DPU_VBIF_QOS_OTLIM))) in _dpu_vbif_apply_dynamic_ot_limit()
88 tbl = params->rd ? &vbif->cap->dynamic_ot_rd_tbl : in _dpu_vbif_apply_dynamic_ot_limit()
89 &vbif->cap->dynamic_ot_wr_tbl; in _dpu_vbif_apply_dynamic_ot_limit()
99 vbif->idx - VBIF_0, params->xin_id, in _dpu_vbif_apply_dynamic_ot_limit()
110 static u32 _dpu_vbif_get_ot_limit(struct dpu_hw_vbif *vbif, in _dpu_vbif_get_ot_limit() argument
116 if (!vbif || !vbif->cap) { in _dpu_vbif_get_ot_limit()
117 DPU_ERROR("invalid arguments vbif %d\n", vbif != NULL); in _dpu_vbif_get_ot_limit()
121 if (vbif->cap->default_ot_wr_limit && !params->rd) in _dpu_vbif_get_ot_limit()
122 ot_lim = vbif->cap->default_ot_wr_limit; in _dpu_vbif_get_ot_limit()
123 else if (vbif->cap->default_ot_rd_limit && params->rd) in _dpu_vbif_get_ot_limit()
124 ot_lim = vbif->cap->default_ot_rd_limit; in _dpu_vbif_get_ot_limit()
134 _dpu_vbif_apply_dynamic_ot_limit(vbif, &ot_lim, params); in _dpu_vbif_get_ot_limit()
136 if (vbif && vbif->ops.get_limit_conf) { in _dpu_vbif_get_ot_limit()
137 val = vbif->ops.get_limit_conf(vbif, in _dpu_vbif_get_ot_limit()
145 vbif->idx - VBIF_0, params->xin_id, ot_lim); in _dpu_vbif_get_ot_limit()
159 struct dpu_hw_vbif *vbif; in dpu_vbif_set_ot_limit() local
167 vbif = dpu_get_vbif(dpu_kms, params->vbif_idx); in dpu_vbif_set_ot_limit()
168 if (!vbif || !mdp) { in dpu_vbif_set_ot_limit()
170 vbif != NULL, mdp != NULL); in dpu_vbif_set_ot_limit()
175 !vbif->ops.set_limit_conf || in dpu_vbif_set_ot_limit()
176 !vbif->ops.set_halt_ctrl) in dpu_vbif_set_ot_limit()
180 if (vbif->ops.set_write_gather_en && !params->rd) in dpu_vbif_set_ot_limit()
181 vbif->ops.set_write_gather_en(vbif, params->xin_id); in dpu_vbif_set_ot_limit()
183 ot_lim = _dpu_vbif_get_ot_limit(vbif, params) & 0xFF; in dpu_vbif_set_ot_limit()
193 vbif->ops.set_limit_conf(vbif, params->xin_id, params->rd, ot_lim); in dpu_vbif_set_ot_limit()
195 vbif->ops.set_halt_ctrl(vbif, params->xin_id, true); in dpu_vbif_set_ot_limit()
197 ret = _dpu_vbif_wait_for_xin_halt(vbif, params->xin_id); in dpu_vbif_set_ot_limit()
199 trace_dpu_vbif_wait_xin_halt_fail(vbif->idx, params->xin_id); in dpu_vbif_set_ot_limit()
201 vbif->ops.set_halt_ctrl(vbif, params->xin_id, false); in dpu_vbif_set_ot_limit()
210 struct dpu_hw_vbif *vbif; in dpu_vbif_set_qos_remap() local
222 vbif = dpu_get_vbif(dpu_kms, params->vbif_idx); in dpu_vbif_set_qos_remap()
224 if (!vbif || !vbif->cap) { in dpu_vbif_set_qos_remap()
229 if (!vbif->ops.set_qos_remap || !mdp->ops.setup_clk_force_ctrl) { in dpu_vbif_set_qos_remap()
234 qos_tbl = params->is_rt ? &vbif->cap->qos_rt_tbl : in dpu_vbif_set_qos_remap()
235 &vbif->cap->qos_nrt_tbl; in dpu_vbif_set_qos_remap()
248 vbif->ops.set_qos_remap(vbif, params->xin_id, i, in dpu_vbif_set_qos_remap()
258 struct dpu_hw_vbif *vbif; in dpu_vbif_clear_errors() local
262 vbif = dpu_kms->hw_vbif[i]; in dpu_vbif_clear_errors()
263 if (vbif && vbif->ops.clear_errors) { in dpu_vbif_clear_errors()
264 vbif->ops.clear_errors(vbif, &pnd, &src); in dpu_vbif_clear_errors()
267 vbif->idx - VBIF_0, pnd, src); in dpu_vbif_clear_errors()
275 struct dpu_hw_vbif *vbif; in dpu_vbif_init_memtypes() local
279 vbif = dpu_kms->hw_vbif[i]; in dpu_vbif_init_memtypes()
280 if (vbif && vbif->cap && vbif->ops.set_mem_type) { in dpu_vbif_init_memtypes()
281 for (j = 0; j < vbif->cap->memtype_count; j++) in dpu_vbif_init_memtypes()
282 vbif->ops.set_mem_type( in dpu_vbif_init_memtypes()
283 vbif, j, vbif->cap->memtype[j]); in dpu_vbif_init_memtypes()
299 const struct dpu_vbif_cfg *vbif = &dpu_kms->catalog->vbif[i]; in dpu_debugfs_vbif_init() local
301 snprintf(vbif_name, sizeof(vbif_name), "%d", vbif->id); in dpu_debugfs_vbif_init()
306 (u32 *)&vbif->features); in dpu_debugfs_vbif_init()
309 (u32 *)&vbif->xin_halt_timeout); in dpu_debugfs_vbif_init()
312 (u32 *)&vbif->default_ot_rd_limit); in dpu_debugfs_vbif_init()
315 (u32 *)&vbif->default_ot_wr_limit); in dpu_debugfs_vbif_init()
317 for (j = 0; j < vbif->dynamic_ot_rd_tbl.count; j++) { in dpu_debugfs_vbif_init()
319 &vbif->dynamic_ot_rd_tbl.cfg[j]; in dpu_debugfs_vbif_init()
331 for (j = 0; j < vbif->dynamic_ot_wr_tbl.count; j++) { in dpu_debugfs_vbif_init()
333 &vbif->dynamic_ot_wr_tbl.cfg[j]; in dpu_debugfs_vbif_init()