Lines Matching full:entity
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 state = vsp1_entity_get_state(&brx->entity, sd_state, fmt->which); in brx_set_format()
153 format = vsp1_entity_get_pad_format(&brx->entity, state, fmt->pad); in brx_set_format()
157 if (fmt->pad != brx->entity.source_pad) { in brx_set_format()
171 for (i = 0; i <= brx->entity.source_pad; ++i) { in brx_set_format()
172 format = vsp1_entity_get_pad_format(&brx->entity, in brx_set_format()
179 mutex_unlock(&brx->entity.lock); in brx_set_format()
190 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
202 state = vsp1_entity_get_state(&brx->entity, sd_state, in brx_get_selection()
207 mutex_lock(&brx->entity.lock); in brx_get_selection()
209 mutex_unlock(&brx->entity.lock); in brx_get_selection()
227 if (sel->pad == brx->entity.source_pad) in brx_set_selection()
233 mutex_lock(&brx->entity.lock); in brx_set_selection()
235 state = vsp1_entity_get_state(&brx->entity, sd_state, sel->which); in brx_set_selection()
245 format = vsp1_entity_get_pad_format(&brx->entity, state, in brx_set_selection()
246 brx->entity.source_pad); in brx_set_selection()
254 format = vsp1_entity_get_pad_format(&brx->entity, state, sel->pad); in brx_set_selection()
262 mutex_unlock(&brx->entity.lock); in brx_set_selection()
280 * VSP1 Entity Operations
283 static void brx_configure_stream(struct vsp1_entity *entity, in brx_configure_stream() argument
288 struct vsp1_brx *brx = to_brx(&entity->subdev); in brx_configure_stream()
293 format = vsp1_entity_get_pad_format(&brx->entity, brx->entity.state, in brx_configure_stream()
294 brx->entity.source_pad); in brx_configure_stream()
330 if (entity->type == VSP1_ENTITY_BRU) in brx_configure_stream()
336 for (i = 0; i < brx->entity.source_pad; ++i) { in brx_configure_stream()
370 if (!(entity->type == VSP1_ENTITY_BRU && i == 1)) in brx_configure_stream()
419 brx->entity.ops = &brx_entity_ops; in vsp1_brx_create()
420 brx->entity.type = type; in vsp1_brx_create()
430 ret = vsp1_entity_init(vsp1, &brx->entity, name, num_pads, &brx_ops, in vsp1_brx_create()
442 brx->entity.subdev.ctrl_handler = &brx->ctrls; in vsp1_brx_create()
447 vsp1_entity_destroy(&brx->entity); in vsp1_brx_create()