Lines Matching full:entity
130 config = vsp1_entity_get_pad_config(&sru->entity, cfg, fse->which); in sru_enum_frame_size()
134 format = vsp1_entity_get_pad_format(&sru->entity, config, SRU_PAD_SINK); in sru_enum_frame_size()
136 mutex_lock(&sru->entity.lock); in sru_enum_frame_size()
162 mutex_unlock(&sru->entity.lock); in sru_enum_frame_size()
187 format = vsp1_entity_get_pad_format(&sru->entity, config, in sru_try_format()
227 mutex_lock(&sru->entity.lock); in sru_set_format()
229 config = vsp1_entity_get_pad_config(&sru->entity, cfg, fmt->which); in sru_set_format()
237 format = vsp1_entity_get_pad_format(&sru->entity, config, fmt->pad); in sru_set_format()
242 format = vsp1_entity_get_pad_format(&sru->entity, config, in sru_set_format()
250 mutex_unlock(&sru->entity.lock); in sru_set_format()
267 * VSP1 Entity Operations
270 static void sru_configure_stream(struct vsp1_entity *entity, in sru_configure_stream() argument
276 struct vsp1_sru *sru = to_sru(&entity->subdev); in sru_configure_stream()
281 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_configure_stream()
283 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_configure_stream()
304 static unsigned int sru_max_width(struct vsp1_entity *entity, in sru_max_width() argument
307 struct vsp1_sru *sru = to_sru(&entity->subdev); in sru_max_width()
311 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_max_width()
313 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_max_width()
327 static void sru_partition(struct vsp1_entity *entity, in sru_partition() argument
333 struct vsp1_sru *sru = to_sru(&entity->subdev); in sru_partition()
337 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_partition()
339 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_partition()
370 sru->entity.ops = &sru_entity_ops; in vsp1_sru_create()
371 sru->entity.type = VSP1_ENTITY_SRU; in vsp1_sru_create()
373 ret = vsp1_entity_init(vsp1, &sru->entity, "sru", 2, &sru_ops, in vsp1_sru_create()
384 sru->entity.subdev.ctrl_handler = &sru->ctrls; in vsp1_sru_create()
389 vsp1_entity_destroy(&sru->entity); in vsp1_sru_create()