Lines Matching refs:entity

32 	vsp1_dl_body_write(dlb, reg + wpf->entity.index * VI6_WPF_OFFSET, data);  in vsp1_wpf_write()
68 sink_format = vsp1_entity_get_pad_format(&wpf->entity, in vsp1_wpf_set_rotation()
69 wpf->entity.config, in vsp1_wpf_set_rotation()
71 source_format = vsp1_entity_get_pad_format(&wpf->entity, in vsp1_wpf_set_rotation()
72 wpf->entity.config, in vsp1_wpf_set_rotation()
75 mutex_lock(&wpf->entity.lock); in vsp1_wpf_set_rotation()
87 mutex_unlock(&wpf->entity.lock); in vsp1_wpf_set_rotation()
136 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_init_controls()
141 if (wpf->entity.index != 0) { in wpf_init_controls()
181 wpf->entity.index); in wpf_init_controls()
194 struct vsp1_device *vsp1 = wpf->entity.vsp1; in vsp1_wpf_stop()
200 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); in vsp1_wpf_stop()
201 vsp1_write(vsp1, wpf->entity.index * VI6_WPF_OFFSET + in vsp1_wpf_stop()
205 static void vsp1_wpf_destroy(struct vsp1_entity *entity) in vsp1_wpf_destroy() argument
207 struct vsp1_rwpf *wpf = entity_to_rwpf(entity); in vsp1_wpf_destroy()
215 unsigned int index = wpf->entity.index; in wpf_configure_writeback_chain()
221 dev_err(wpf->entity.vsp1->dev, in wpf_configure_writeback_chain()
233 static void wpf_configure_stream(struct vsp1_entity *entity, in wpf_configure_stream() argument
238 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_configure_stream()
239 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_configure_stream()
242 unsigned int index = wpf->entity.index; in wpf_configure_stream()
248 sink_format = vsp1_entity_get_pad_format(&wpf->entity, in wpf_configure_stream()
249 wpf->entity.config, in wpf_configure_stream()
251 source_format = vsp1_entity_get_pad_format(&wpf->entity, in wpf_configure_stream()
252 wpf->entity.config, in wpf_configure_stream()
308 ? VI6_WPF_SRCRPF_RPF_ACT_MST(input->entity.index) in wpf_configure_stream()
309 : VI6_WPF_SRCRPF_RPF_ACT_SUB(input->entity.index); in wpf_configure_stream()
342 static void wpf_configure_frame(struct vsp1_entity *entity, in wpf_configure_frame() argument
349 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_configure_frame()
368 static void wpf_configure_partition(struct vsp1_entity *entity, in wpf_configure_partition() argument
373 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_configure_partition()
374 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_configure_partition()
386 sink_format = vsp1_entity_get_pad_format(&wpf->entity, in wpf_configure_partition()
387 wpf->entity.config, in wpf_configure_partition()
510 static unsigned int wpf_max_width(struct vsp1_entity *entity, in wpf_max_width() argument
513 struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); in wpf_max_width()
518 static void wpf_partition(struct vsp1_entity *entity, in wpf_partition() argument
558 wpf->entity.ops = &wpf_entity_ops; in vsp1_wpf_create()
559 wpf->entity.type = VSP1_ENTITY_WPF; in vsp1_wpf_create()
560 wpf->entity.index = index; in vsp1_wpf_create()
563 ret = vsp1_entity_init(vsp1, &wpf->entity, name, 2, &vsp1_rwpf_subdev_ops, in vsp1_wpf_create()
588 vsp1_entity_destroy(&wpf->entity); in vsp1_wpf_create()