Lines Matching refs:uds
30 static inline void vsp1_uds_write(struct vsp1_uds *uds, in vsp1_uds_write() argument
33 vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write()
43 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha() local
45 vsp1_uds_write(uds, dlb, VI6_UDS_ALPVAL, in vsp1_uds_set_alpha()
130 struct vsp1_uds *uds = to_uds(subdev); in uds_enum_frame_size() local
135 state = vsp1_entity_get_state(&uds->entity, sd_state, fse->which); in uds_enum_frame_size()
141 mutex_lock(&uds->entity.lock); in uds_enum_frame_size()
161 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size()
165 static void uds_try_format(struct vsp1_uds *uds, in uds_try_format() argument
204 struct vsp1_uds *uds = to_uds(subdev); in uds_set_format() local
209 mutex_lock(&uds->entity.lock); in uds_set_format()
211 state = vsp1_entity_get_state(&uds->entity, sd_state, fmt->which); in uds_set_format()
217 uds_try_format(uds, state, fmt->pad, &fmt->format); in uds_set_format()
227 uds_try_format(uds, state, UDS_PAD_SOURCE, format); in uds_set_format()
231 mutex_unlock(&uds->entity.lock); in uds_set_format()
260 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_stream() local
273 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream()
280 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure_stream()
285 vsp1_uds_write(uds, dlb, VI6_UDS_CTRL, in uds_configure_stream()
286 (uds->scale_alpha ? VI6_UDS_CTRL_AON : 0) | in uds_configure_stream()
289 vsp1_uds_write(uds, dlb, VI6_UDS_PASS_BWIDTH, in uds_configure_stream()
296 vsp1_uds_write(uds, dlb, VI6_UDS_SCALE, in uds_configure_stream()
307 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_partition() local
310 vsp1_uds_write(uds, dlb, VI6_UDS_HSZCLIP, VI6_UDS_HSZCLIP_HCEN | in uds_configure_partition()
316 vsp1_uds_write(uds, dlb, VI6_UDS_CLIP_SIZE, in uds_configure_partition()
395 struct vsp1_uds *uds; in vsp1_uds_create() local
399 uds = devm_kzalloc(vsp1->dev, sizeof(*uds), GFP_KERNEL); in vsp1_uds_create()
400 if (uds == NULL) in vsp1_uds_create()
403 uds->entity.ops = &uds_entity_ops; in vsp1_uds_create()
404 uds->entity.type = VSP1_ENTITY_UDS; in vsp1_uds_create()
405 uds->entity.index = index; in vsp1_uds_create()
408 ret = vsp1_entity_init(vsp1, &uds->entity, name, 2, &uds_ops, in vsp1_uds_create()
413 return uds; in vsp1_uds_create()