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()
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 = kzalloc(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()
171 if (dpr->ch[i].base_reg) in dcss_dpr_init()
172 iounmap(dpr->ch[i].base_reg); in dcss_dpr_init()
175 kfree(dpr); in dcss_dpr_init()
183 void dcss_dpr_exit(struct dcss_dpr *dpr) in dcss_dpr_exit() argument
189 struct dcss_dpr_ch *ch = &dpr->ch[ch_no]; in dcss_dpr_exit()
197 kfree(dpr); in dcss_dpr_exit()
232 void dcss_dpr_set_res(struct dcss_dpr *dpr, int ch_num, u32 xres, u32 yres) in dcss_dpr_set_res() argument
234 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_set_res()
259 void dcss_dpr_addr_set(struct dcss_dpr *dpr, int ch_num, u32 luma_base_addr, in dcss_dpr_addr_set() argument
262 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_addr_set()
340 void dcss_dpr_enable(struct dcss_dpr *dpr, int ch_num, bool en) in dcss_dpr_enable() argument
342 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_enable()
507 void dcss_dpr_format_set(struct dcss_dpr *dpr, int ch_num, in dcss_dpr_format_set() argument
510 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_format_set()
528 void dcss_dpr_write_sysctrl(struct dcss_dpr *dpr) in dcss_dpr_write_sysctrl() argument
532 dcss_ctxld_assert_locked(dpr->ctxld); in dcss_dpr_write_sysctrl()
535 struct dcss_dpr_ch *ch = &dpr->ch[chnum]; in dcss_dpr_write_sysctrl()
538 dcss_ctxld_write_irqsafe(dpr->ctxld, dpr->ctx_id, in dcss_dpr_write_sysctrl()
547 void dcss_dpr_set_rotation(struct dcss_dpr *dpr, int ch_num, u32 rotation) in dcss_dpr_set_rotation() argument
549 struct dcss_dpr_ch *ch = &dpr->ch[ch_num]; in dcss_dpr_set_rotation()