Lines Matching full:entity
32 vsp1_dl_body_write(dlb, reg + wpf->entity.index * VI6_WPF_OFFSET, data); in vsp1_wpf_write()
68 sink_format = v4l2_subdev_state_get_format(wpf->entity.state, in vsp1_wpf_set_rotation()
70 source_format = v4l2_subdev_state_get_format(wpf->entity.state, in vsp1_wpf_set_rotation()
73 mutex_lock(&wpf->entity.lock); in vsp1_wpf_set_rotation()
85 mutex_unlock(&wpf->entity.lock); in vsp1_wpf_set_rotation()
134 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_init_controls()
139 if (wpf->entity.index != 0) { in wpf_init_controls()
179 wpf->entity.index); in wpf_init_controls()
187 * VSP1 Entity Operations
192 struct vsp1_device *vsp1 = wpf->entity.vsp1; in vsp1_wpf_stop()
198 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); in vsp1_wpf_stop()
199 vsp1_write(vsp1, wpf->entity.index * VI6_WPF_OFFSET + in vsp1_wpf_stop()
203 static void vsp1_wpf_destroy(struct vsp1_entity *entity) in vsp1_wpf_destroy() argument
205 struct vsp1_rwpf *wpf = entity_to_rwpf(entity); in vsp1_wpf_destroy()
213 unsigned int index = wpf->entity.index; in wpf_configure_writeback_chain()
219 dev_err(wpf->entity.vsp1->dev, in wpf_configure_writeback_chain()
231 static void wpf_configure_stream(struct vsp1_entity *entity, in wpf_configure_stream() argument
237 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_configure_stream()
238 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_configure_stream()
241 unsigned int index = wpf->entity.index; in wpf_configure_stream()
303 ? VI6_WPF_SRCRPF_RPF_ACT_MST(input->entity.index) in wpf_configure_stream()
304 : VI6_WPF_SRCRPF_RPF_ACT_SUB(input->entity.index); in wpf_configure_stream()
337 static void wpf_configure_frame(struct vsp1_entity *entity, in wpf_configure_frame() argument
344 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_configure_frame()
363 static void wpf_configure_partition(struct vsp1_entity *entity, in wpf_configure_partition() argument
369 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_configure_partition()
370 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_configure_partition()
497 static unsigned int wpf_max_width(struct vsp1_entity *entity, in wpf_max_width() argument
501 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_max_width()
506 static void wpf_partition(struct vsp1_entity *entity, in wpf_partition() argument
547 wpf->entity.ops = &wpf_entity_ops; in vsp1_wpf_create()
548 wpf->entity.type = VSP1_ENTITY_WPF; in vsp1_wpf_create()
549 wpf->entity.index = index; in vsp1_wpf_create()
552 ret = vsp1_entity_init(vsp1, &wpf->entity, name, 2, &vsp1_rwpf_subdev_ops, in vsp1_wpf_create()
577 vsp1_entity_destroy(&wpf->entity); in vsp1_wpf_create()