Lines Matching refs:dpr
92 struct dcss_dpr *dpr; member
123 struct dcss_dpr *dpr = ch->dpr; in dcss_dpr_write() local
125 dcss_ctxld_write(dpr->ctxld, dpr->ctx_id, val, ch->base_ofs + ofs); in dcss_dpr_write()
128 static int dcss_dpr_ch_init_all(struct dcss_dpr *dpr, unsigned long dpr_base) in dcss_dpr_ch_init_all() argument
134 ch = &dpr->ch[i]; in dcss_dpr_ch_init_all()
138 ch->base_reg = devm_ioremap(dpr->dev, ch->base_ofs, SZ_4K); in dcss_dpr_ch_init_all()
140 dev_err(dpr->dev, "dpr: unable to remap ch %d base\n", in dcss_dpr_ch_init_all()
145 ch->dpr = dpr; in dcss_dpr_ch_init_all()
156 struct dcss_dpr *dpr; in dcss_dpr_init() local
158 dpr = devm_kzalloc(dcss->dev, sizeof(*dpr), GFP_KERNEL); in dcss_dpr_init()
159 if (!dpr) in dcss_dpr_init()
162 dcss->dpr = dpr; in dcss_dpr_init()
163 dpr->dev = dcss->dev; in dcss_dpr_init()
164 dpr->ctxld = dcss->ctxld; in dcss_dpr_init()
165 dpr->ctx_id = CTX_SB_HP; in dcss_dpr_init()
167 if (dcss_dpr_ch_init_all(dpr, dpr_base)) in dcss_dpr_init()
173 void dcss_dpr_exit(struct dcss_dpr *dpr) in dcss_dpr_exit() argument
179 struct dcss_dpr_ch *ch = &dpr->ch[ch_no]; in dcss_dpr_exit()
217 void dcss_dpr_set_res(struct dcss_dpr *dpr, int ch_num, u32 xres, u32 yres) in dcss_dpr_set_res() argument
219 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_set_res()
244 void dcss_dpr_addr_set(struct dcss_dpr *dpr, int ch_num, u32 luma_base_addr, in dcss_dpr_addr_set() argument
247 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_addr_set()
325 void dcss_dpr_enable(struct dcss_dpr *dpr, int ch_num, bool en) in dcss_dpr_enable() argument
327 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_enable()
492 void dcss_dpr_format_set(struct dcss_dpr *dpr, int ch_num, in dcss_dpr_format_set() argument
495 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_format_set()
513 void dcss_dpr_write_sysctrl(struct dcss_dpr *dpr) in dcss_dpr_write_sysctrl() argument
517 dcss_ctxld_assert_locked(dpr->ctxld); in dcss_dpr_write_sysctrl()
520 struct dcss_dpr_ch *ch = &dpr->ch[chnum]; in dcss_dpr_write_sysctrl()
523 dcss_ctxld_write_irqsafe(dpr->ctxld, dpr->ctx_id, in dcss_dpr_write_sysctrl()
532 void dcss_dpr_set_rotation(struct dcss_dpr *dpr, int ch_num, u32 rotation) in dcss_dpr_set_rotation() argument
534 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_set_rotation()