Lines Matching full:entity
33 vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write()
40 void vsp1_uds_set_alpha(struct vsp1_entity *entity, struct vsp1_dl_body *dlb, in vsp1_uds_set_alpha() argument
43 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha()
135 config = vsp1_entity_get_pad_config(&uds->entity, cfg, fse->which); in uds_enum_frame_size()
139 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_enum_frame_size()
142 mutex_lock(&uds->entity.lock); in uds_enum_frame_size()
162 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size()
187 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_try_format()
211 mutex_lock(&uds->entity.lock); in uds_set_format()
213 config = vsp1_entity_get_pad_config(&uds->entity, cfg, fmt->which); in uds_set_format()
221 format = vsp1_entity_get_pad_format(&uds->entity, config, fmt->pad); in uds_set_format()
226 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_set_format()
234 mutex_unlock(&uds->entity.lock); in uds_set_format()
255 * VSP1 Entity Operations
258 static void uds_configure_stream(struct vsp1_entity *entity, in uds_configure_stream() argument
263 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_stream()
270 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_stream()
272 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_stream()
278 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream()
306 static void uds_configure_partition(struct vsp1_entity *entity, in uds_configure_partition() argument
311 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_partition()
315 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_partition()
332 static unsigned int uds_max_width(struct vsp1_entity *entity, in uds_max_width() argument
335 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_max_width()
340 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width()
342 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width()
368 static void uds_partition(struct vsp1_entity *entity, in uds_partition() argument
374 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_partition()
382 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_partition()
384 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_partition()
416 uds->entity.ops = &uds_entity_ops; in vsp1_uds_create()
417 uds->entity.type = VSP1_ENTITY_UDS; in vsp1_uds_create()
418 uds->entity.index = index; in vsp1_uds_create()
421 ret = vsp1_entity_init(vsp1, &uds->entity, name, 2, &uds_ops, in vsp1_uds_create()