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 config = vsp1_entity_get_pad_config(&uds->entity, sd_state, in uds_enum_frame_size()
140 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_enum_frame_size()
143 mutex_lock(&uds->entity.lock); in uds_enum_frame_size()
163 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size()
167 static void uds_try_format(struct vsp1_uds *uds, in uds_try_format() argument
188 format = vsp1_entity_get_pad_format(&uds->entity, sd_state, in uds_try_format()
207 struct vsp1_uds *uds = to_uds(subdev); in uds_set_format() local
212 mutex_lock(&uds->entity.lock); in uds_set_format()
214 config = vsp1_entity_get_pad_config(&uds->entity, sd_state, in uds_set_format()
221 uds_try_format(uds, config, fmt->pad, &fmt->format); in uds_set_format()
223 format = vsp1_entity_get_pad_format(&uds->entity, config, fmt->pad); in uds_set_format()
228 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_set_format()
232 uds_try_format(uds, config, UDS_PAD_SOURCE, format); in uds_set_format()
236 mutex_unlock(&uds->entity.lock); in uds_set_format()
265 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_stream() local
272 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_stream()
274 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_stream()
280 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream()
287 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure_stream()
292 vsp1_uds_write(uds, dlb, VI6_UDS_CTRL, in uds_configure_stream()
293 (uds->scale_alpha ? VI6_UDS_CTRL_AON : 0) | in uds_configure_stream()
296 vsp1_uds_write(uds, dlb, VI6_UDS_PASS_BWIDTH, in uds_configure_stream()
303 vsp1_uds_write(uds, dlb, VI6_UDS_SCALE, in uds_configure_stream()
313 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_partition() local
317 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_partition()
321 vsp1_uds_write(uds, dlb, VI6_UDS_HSZCLIP, VI6_UDS_HSZCLIP_HCEN | in uds_configure_partition()
327 vsp1_uds_write(uds, dlb, VI6_UDS_CLIP_SIZE, in uds_configure_partition()
337 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_max_width() local
342 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width()
344 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width()
376 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_partition() local
384 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_partition()
386 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_partition()
410 struct vsp1_uds *uds; in vsp1_uds_create() local
414 uds = devm_kzalloc(vsp1->dev, sizeof(*uds), GFP_KERNEL); in vsp1_uds_create()
415 if (uds == NULL) in vsp1_uds_create()
418 uds->entity.ops = &uds_entity_ops; in vsp1_uds_create()
419 uds->entity.type = VSP1_ENTITY_UDS; in vsp1_uds_create()
420 uds->entity.index = index; in vsp1_uds_create()
423 ret = vsp1_entity_init(vsp1, &uds->entity, name, 2, &uds_ops, in vsp1_uds_create()
428 return uds; in vsp1_uds_create()