• Home
  • Raw
  • Download

Lines Matching refs:uds

34 static inline void vsp1_uds_write(struct vsp1_uds *uds, struct vsp1_dl_list *dl,  in vsp1_uds_write()  argument
37 vsp1_dl_list_write(dl, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write()
47 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha() local
49 vsp1_uds_write(uds, dl, VI6_UDS_ALPVAL, in vsp1_uds_set_alpha()
134 struct vsp1_uds *uds = to_uds(subdev); in uds_enum_frame_size() local
139 config = vsp1_entity_get_pad_config(&uds->entity, cfg, fse->which); in uds_enum_frame_size()
143 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_enum_frame_size()
146 mutex_lock(&uds->entity.lock); in uds_enum_frame_size()
166 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size()
170 static void uds_try_format(struct vsp1_uds *uds, in uds_try_format() argument
191 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_try_format()
210 struct vsp1_uds *uds = to_uds(subdev); in uds_set_format() local
215 mutex_lock(&uds->entity.lock); in uds_set_format()
217 config = vsp1_entity_get_pad_config(&uds->entity, cfg, fmt->which); in uds_set_format()
223 uds_try_format(uds, config, fmt->pad, &fmt->format); in uds_set_format()
225 format = vsp1_entity_get_pad_format(&uds->entity, config, fmt->pad); in uds_set_format()
230 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_set_format()
234 uds_try_format(uds, config, UDS_PAD_SOURCE, format); in uds_set_format()
238 mutex_unlock(&uds->entity.lock); in uds_set_format()
267 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure() local
277 vsp1_uds_write(uds, dl, VI6_UDS_CLIP_SIZE, in uds_configure()
286 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure()
288 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure()
294 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure()
300 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure()
305 vsp1_uds_write(uds, dl, VI6_UDS_CTRL, in uds_configure()
306 (uds->scale_alpha ? VI6_UDS_CTRL_AON : 0) | in uds_configure()
309 vsp1_uds_write(uds, dl, VI6_UDS_PASS_BWIDTH, in uds_configure()
316 vsp1_uds_write(uds, dl, VI6_UDS_SCALE, in uds_configure()
324 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_max_width() local
329 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width()
331 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width()
356 struct vsp1_uds *uds; in vsp1_uds_create() local
360 uds = devm_kzalloc(vsp1->dev, sizeof(*uds), GFP_KERNEL); in vsp1_uds_create()
361 if (uds == NULL) in vsp1_uds_create()
364 uds->entity.ops = &uds_entity_ops; in vsp1_uds_create()
365 uds->entity.type = VSP1_ENTITY_UDS; in vsp1_uds_create()
366 uds->entity.index = index; in vsp1_uds_create()
369 ret = vsp1_entity_init(vsp1, &uds->entity, name, 2, &uds_ops, in vsp1_uds_create()
374 return uds; in vsp1_uds_create()