• Home
  • Raw
  • Download

Lines Matching refs:vbif

40 static int _dpu_vbif_wait_for_xin_halt(struct dpu_hw_vbif *vbif, u32 xin_id)  in _dpu_vbif_wait_for_xin_halt()  argument
46 if (!vbif || !vbif->cap || !vbif->ops.get_halt_ctrl) { in _dpu_vbif_wait_for_xin_halt()
47 DPU_ERROR("invalid arguments vbif %d\n", vbif != NULL); in _dpu_vbif_wait_for_xin_halt()
51 timeout = ktime_add_us(ktime_get(), vbif->cap->xin_halt_timeout); in _dpu_vbif_wait_for_xin_halt()
53 status = vbif->ops.get_halt_ctrl(vbif, xin_id); in _dpu_vbif_wait_for_xin_halt()
57 status = vbif->ops.get_halt_ctrl(vbif, xin_id); in _dpu_vbif_wait_for_xin_halt()
66 dpu_vbif_name(vbif->idx), xin_id); in _dpu_vbif_wait_for_xin_halt()
70 dpu_vbif_name(vbif->idx), xin_id); in _dpu_vbif_wait_for_xin_halt()
82 static void _dpu_vbif_apply_dynamic_ot_limit(struct dpu_hw_vbif *vbif, in _dpu_vbif_apply_dynamic_ot_limit() argument
89 if (!vbif || !(vbif->cap->features & BIT(DPU_VBIF_QOS_OTLIM))) in _dpu_vbif_apply_dynamic_ot_limit()
100 tbl = params->rd ? &vbif->cap->dynamic_ot_rd_tbl : in _dpu_vbif_apply_dynamic_ot_limit()
101 &vbif->cap->dynamic_ot_wr_tbl; in _dpu_vbif_apply_dynamic_ot_limit()
111 dpu_vbif_name(vbif->idx), params->xin_id, in _dpu_vbif_apply_dynamic_ot_limit()
122 static u32 _dpu_vbif_get_ot_limit(struct dpu_hw_vbif *vbif, in _dpu_vbif_get_ot_limit() argument
128 if (!vbif || !vbif->cap) { in _dpu_vbif_get_ot_limit()
129 DPU_ERROR("invalid arguments vbif %d\n", vbif != NULL); in _dpu_vbif_get_ot_limit()
133 if (vbif->cap->default_ot_wr_limit && !params->rd) in _dpu_vbif_get_ot_limit()
134 ot_lim = vbif->cap->default_ot_wr_limit; in _dpu_vbif_get_ot_limit()
135 else if (vbif->cap->default_ot_rd_limit && params->rd) in _dpu_vbif_get_ot_limit()
136 ot_lim = vbif->cap->default_ot_rd_limit; in _dpu_vbif_get_ot_limit()
146 _dpu_vbif_apply_dynamic_ot_limit(vbif, &ot_lim, params); in _dpu_vbif_get_ot_limit()
148 if (vbif && vbif->ops.get_limit_conf) { in _dpu_vbif_get_ot_limit()
149 val = vbif->ops.get_limit_conf(vbif, in _dpu_vbif_get_ot_limit()
157 dpu_vbif_name(vbif->idx), params->xin_id, ot_lim); in _dpu_vbif_get_ot_limit()
171 struct dpu_hw_vbif *vbif; in dpu_vbif_set_ot_limit() local
179 vbif = dpu_get_vbif(dpu_kms, params->vbif_idx); in dpu_vbif_set_ot_limit()
180 if (!vbif || !mdp) { in dpu_vbif_set_ot_limit()
182 vbif != NULL, mdp != NULL); in dpu_vbif_set_ot_limit()
187 !vbif->ops.set_limit_conf || in dpu_vbif_set_ot_limit()
188 !vbif->ops.set_halt_ctrl) in dpu_vbif_set_ot_limit()
192 if (vbif->ops.set_write_gather_en && !params->rd) in dpu_vbif_set_ot_limit()
193 vbif->ops.set_write_gather_en(vbif, params->xin_id); in dpu_vbif_set_ot_limit()
195 ot_lim = _dpu_vbif_get_ot_limit(vbif, params) & 0xFF; in dpu_vbif_set_ot_limit()
205 vbif->ops.set_limit_conf(vbif, params->xin_id, params->rd, ot_lim); in dpu_vbif_set_ot_limit()
207 vbif->ops.set_halt_ctrl(vbif, params->xin_id, true); in dpu_vbif_set_ot_limit()
209 ret = _dpu_vbif_wait_for_xin_halt(vbif, params->xin_id); in dpu_vbif_set_ot_limit()
211 trace_dpu_vbif_wait_xin_halt_fail(vbif->idx, params->xin_id); in dpu_vbif_set_ot_limit()
213 vbif->ops.set_halt_ctrl(vbif, params->xin_id, false); in dpu_vbif_set_ot_limit()
222 struct dpu_hw_vbif *vbif; in dpu_vbif_set_qos_remap() local
234 vbif = dpu_get_vbif(dpu_kms, params->vbif_idx); in dpu_vbif_set_qos_remap()
236 if (!vbif || !vbif->cap) { in dpu_vbif_set_qos_remap()
241 if (!vbif->ops.set_qos_remap || !mdp->ops.setup_clk_force_ctrl) { in dpu_vbif_set_qos_remap()
246 qos_tbl = params->is_rt ? &vbif->cap->qos_rt_tbl : in dpu_vbif_set_qos_remap()
247 &vbif->cap->qos_nrt_tbl; in dpu_vbif_set_qos_remap()
260 vbif->ops.set_qos_remap(vbif, params->xin_id, i, in dpu_vbif_set_qos_remap()
270 struct dpu_hw_vbif *vbif; in dpu_vbif_clear_errors() local
274 vbif = dpu_kms->hw_vbif[i]; in dpu_vbif_clear_errors()
275 if (vbif && vbif->ops.clear_errors) { in dpu_vbif_clear_errors()
276 vbif->ops.clear_errors(vbif, &pnd, &src); in dpu_vbif_clear_errors()
279 dpu_vbif_name(vbif->idx), pnd, src); in dpu_vbif_clear_errors()
287 struct dpu_hw_vbif *vbif; in dpu_vbif_init_memtypes() local
291 vbif = dpu_kms->hw_vbif[i]; in dpu_vbif_init_memtypes()
292 if (vbif && vbif->cap && vbif->ops.set_mem_type) { in dpu_vbif_init_memtypes()
293 for (j = 0; j < vbif->cap->memtype_count; j++) in dpu_vbif_init_memtypes()
294 vbif->ops.set_mem_type( in dpu_vbif_init_memtypes()
295 vbif, j, vbif->cap->memtype[j]); in dpu_vbif_init_memtypes()
311 const struct dpu_vbif_cfg *vbif = &dpu_kms->catalog->vbif[i]; in dpu_debugfs_vbif_init() local
313 snprintf(vbif_name, sizeof(vbif_name), "%d", vbif->id); in dpu_debugfs_vbif_init()
318 (u32 *)&vbif->features); in dpu_debugfs_vbif_init()
321 (u32 *)&vbif->xin_halt_timeout); in dpu_debugfs_vbif_init()
324 (u32 *)&vbif->default_ot_rd_limit); in dpu_debugfs_vbif_init()
327 (u32 *)&vbif->default_ot_wr_limit); in dpu_debugfs_vbif_init()
329 for (j = 0; j < vbif->dynamic_ot_rd_tbl.count; j++) { in dpu_debugfs_vbif_init()
331 &vbif->dynamic_ot_rd_tbl.cfg[j]; in dpu_debugfs_vbif_init()
343 for (j = 0; j < vbif->dynamic_ot_wr_tbl.count; j++) { in dpu_debugfs_vbif_init()
345 &vbif->dynamic_ot_wr_tbl.cfg[j]; in dpu_debugfs_vbif_init()