Lines Matching refs:uif

29 static inline u32 vsp1_uif_read(struct vsp1_uif *uif, u32 reg)  in vsp1_uif_read()  argument
31 return vsp1_read(uif->entity.vsp1, in vsp1_uif_read()
32 uif->entity.index * VI6_UIF_OFFSET + reg); in vsp1_uif_read()
35 static inline void vsp1_uif_write(struct vsp1_uif *uif, in vsp1_uif_write() argument
38 vsp1_dl_body_write(dlb, reg + uif->entity.index * VI6_UIF_OFFSET, data); in vsp1_uif_write()
41 u32 vsp1_uif_get_crc(struct vsp1_uif *uif) in vsp1_uif_get_crc() argument
43 return vsp1_uif_read(uif, VI6_UIF_DISCOM_DOCMCCRCR); in vsp1_uif_get_crc()
88 struct vsp1_uif *uif = to_uif(subdev); in uif_get_selection() local
96 mutex_lock(&uif->entity.lock); in uif_get_selection()
98 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_get_selection()
124 mutex_unlock(&uif->entity.lock); in uif_get_selection()
132 struct vsp1_uif *uif = to_uif(subdev); in uif_set_selection() local
142 mutex_lock(&uif->entity.lock); in uif_set_selection()
144 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_set_selection()
165 mutex_unlock(&uif->entity.lock); in uif_set_selection()
196 struct vsp1_uif *uif = to_uif(&entity->subdev); in uif_configure_stream() local
201 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMPMR, in uif_configure_stream()
210 if (uif->m3w_quirk) { in uif_configure_stream()
215 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPXR, left); in uif_configure_stream()
216 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPYR, crop->top); in uif_configure_stream()
217 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZXR, width); in uif_configure_stream()
218 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZYR, crop->height); in uif_configure_stream()
220 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMCR, in uif_configure_stream()
239 struct vsp1_uif *uif; in vsp1_uif_create() local
243 uif = devm_kzalloc(vsp1->dev, sizeof(*uif), GFP_KERNEL); in vsp1_uif_create()
244 if (!uif) in vsp1_uif_create()
248 uif->m3w_quirk = true; in vsp1_uif_create()
250 uif->entity.ops = &uif_entity_ops; in vsp1_uif_create()
251 uif->entity.type = VSP1_ENTITY_UIF; in vsp1_uif_create()
252 uif->entity.index = index; in vsp1_uif_create()
256 ret = vsp1_entity_init(vsp1, &uif->entity, name, 2, &uif_ops, in vsp1_uif_create()
261 return uif; in vsp1_uif_create()