Lines Matching full:entity
103 return v4l2_subdev_get_try_compose(&brx->entity.subdev, sd_state, pad); in brx_get_compose()
122 format = vsp1_entity_get_pad_format(&brx->entity, sd_state, in brx_try_format()
143 mutex_lock(&brx->entity.lock); in brx_set_format()
145 config = vsp1_entity_get_pad_config(&brx->entity, sd_state, in brx_set_format()
154 format = vsp1_entity_get_pad_format(&brx->entity, config, fmt->pad); in brx_set_format()
158 if (fmt->pad != brx->entity.source_pad) { in brx_set_format()
172 for (i = 0; i <= brx->entity.source_pad; ++i) { in brx_set_format()
173 format = vsp1_entity_get_pad_format(&brx->entity, in brx_set_format()
180 mutex_unlock(&brx->entity.lock); in brx_set_format()
191 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
203 config = vsp1_entity_get_pad_config(&brx->entity, sd_state, in brx_get_selection()
208 mutex_lock(&brx->entity.lock); in brx_get_selection()
210 mutex_unlock(&brx->entity.lock); in brx_get_selection()
228 if (sel->pad == brx->entity.source_pad) in brx_set_selection()
234 mutex_lock(&brx->entity.lock); in brx_set_selection()
236 config = vsp1_entity_get_pad_config(&brx->entity, sd_state, in brx_set_selection()
247 format = vsp1_entity_get_pad_format(&brx->entity, config, in brx_set_selection()
248 brx->entity.source_pad); in brx_set_selection()
256 format = vsp1_entity_get_pad_format(&brx->entity, config, sel->pad); in brx_set_selection()
264 mutex_unlock(&brx->entity.lock); in brx_set_selection()
283 * VSP1 Entity Operations
286 static void brx_configure_stream(struct vsp1_entity *entity, in brx_configure_stream() argument
291 struct vsp1_brx *brx = to_brx(&entity->subdev); in brx_configure_stream()
296 format = vsp1_entity_get_pad_format(&brx->entity, brx->entity.config, in brx_configure_stream()
297 brx->entity.source_pad); in brx_configure_stream()
333 if (entity->type == VSP1_ENTITY_BRU) in brx_configure_stream()
339 for (i = 0; i < brx->entity.source_pad; ++i) { in brx_configure_stream()
373 if (!(entity->type == VSP1_ENTITY_BRU && i == 1)) in brx_configure_stream()
422 brx->entity.ops = &brx_entity_ops; in vsp1_brx_create()
423 brx->entity.type = type; in vsp1_brx_create()
433 ret = vsp1_entity_init(vsp1, &brx->entity, name, num_pads, &brx_ops, in vsp1_brx_create()
445 brx->entity.subdev.ctrl_handler = &brx->ctrls; in vsp1_brx_create()
450 vsp1_entity_destroy(&brx->entity); in vsp1_brx_create()