Lines Matching full:entity

130 	config = vsp1_entity_get_pad_config(&sru->entity, sd_state,  in sru_enum_frame_size()
135 format = vsp1_entity_get_pad_format(&sru->entity, config, SRU_PAD_SINK); in sru_enum_frame_size()
137 mutex_lock(&sru->entity.lock); in sru_enum_frame_size()
163 mutex_unlock(&sru->entity.lock); in sru_enum_frame_size()
188 format = vsp1_entity_get_pad_format(&sru->entity, sd_state, in sru_try_format()
228 mutex_lock(&sru->entity.lock); in sru_set_format()
230 config = vsp1_entity_get_pad_config(&sru->entity, sd_state, in sru_set_format()
239 format = vsp1_entity_get_pad_format(&sru->entity, config, fmt->pad); in sru_set_format()
244 format = vsp1_entity_get_pad_format(&sru->entity, config, in sru_set_format()
252 mutex_unlock(&sru->entity.lock); in sru_set_format()
269 * VSP1 Entity Operations
272 static void sru_configure_stream(struct vsp1_entity *entity, in sru_configure_stream() argument
278 struct vsp1_sru *sru = to_sru(&entity->subdev); in sru_configure_stream()
283 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_configure_stream()
285 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_configure_stream()
306 static unsigned int sru_max_width(struct vsp1_entity *entity, in sru_max_width() argument
309 struct vsp1_sru *sru = to_sru(&entity->subdev); in sru_max_width()
313 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_max_width()
315 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_max_width()
329 static void sru_partition(struct vsp1_entity *entity, in sru_partition() argument
335 struct vsp1_sru *sru = to_sru(&entity->subdev); in sru_partition()
339 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_partition()
341 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_partition()
372 sru->entity.ops = &sru_entity_ops; in vsp1_sru_create()
373 sru->entity.type = VSP1_ENTITY_SRU; in vsp1_sru_create()
375 ret = vsp1_entity_init(vsp1, &sru->entity, "sru", 2, &sru_ops, in vsp1_sru_create()
386 sru->entity.subdev.ctrl_handler = &sru->ctrls; in vsp1_sru_create()
391 vsp1_entity_destroy(&sru->entity); in vsp1_sru_create()