Lines Matching refs:entity
44 struct media_entity *entity; member
58 struct xvip_graph_entity *entity; in xvip_graph_find_entity() local
60 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_find_entity()
61 if (entity->node == node) in xvip_graph_find_entity()
62 return entity; in xvip_graph_find_entity()
69 struct xvip_graph_entity *entity) in xvip_graph_build_one() argument
72 struct media_entity *local = entity->entity; in xvip_graph_build_one()
86 next = of_graph_get_next_endpoint(entity->node, ep); in xvip_graph_build_one()
140 remote = ent->entity; in xvip_graph_build_one()
246 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma()
255 source = &dma->video.entity; in xvip_graph_build_dma()
257 sink = ent->entity; in xvip_graph_build_dma()
260 source = ent->entity; in xvip_graph_build_dma()
262 sink = &dma->video.entity; in xvip_graph_build_dma()
293 struct xvip_graph_entity *entity; in xvip_graph_notify_complete() local
299 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_notify_complete()
300 ret = xvip_graph_build_one(xdev, entity); in xvip_graph_notify_complete()
323 struct xvip_graph_entity *entity; in xvip_graph_notify_bound() local
328 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_notify_bound()
329 if (entity->node != subdev->dev->of_node) in xvip_graph_notify_bound()
332 if (entity->subdev) { in xvip_graph_notify_bound()
334 entity->node->full_name); in xvip_graph_notify_bound()
339 entity->entity = &subdev->entity; in xvip_graph_notify_bound()
340 entity->subdev = subdev; in xvip_graph_notify_bound()
351 struct xvip_graph_entity *entity; in xvip_graph_parse_one() local
382 entity = devm_kzalloc(xdev->dev, sizeof(*entity), GFP_KERNEL); in xvip_graph_parse_one()
383 if (entity == NULL) { in xvip_graph_parse_one()
389 entity->node = remote; in xvip_graph_parse_one()
390 entity->asd.match_type = V4L2_ASYNC_MATCH_OF; in xvip_graph_parse_one()
391 entity->asd.match.of.node = remote; in xvip_graph_parse_one()
392 list_add_tail(&entity->list, &xdev->entities); in xvip_graph_parse_one()
402 struct xvip_graph_entity *entity; in xvip_graph_parse() local
415 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_parse()
416 ret = xvip_graph_parse_one(xdev, entity->node); in xvip_graph_parse()
489 struct xvip_graph_entity *entity; in xvip_graph_cleanup() local
495 list_for_each_entry_safe(entity, entityp, &xdev->entities, list) { in xvip_graph_cleanup()
496 of_node_put(entity->node); in xvip_graph_cleanup()
497 list_del(&entity->list); in xvip_graph_cleanup()
508 struct xvip_graph_entity *entity; in xvip_graph_init() local
543 list_for_each_entry(entity, &xdev->entities, list) in xvip_graph_init()
544 subdevs[i++] = &entity->asd; in xvip_graph_init()