• Home
  • Raw
  • Download

Lines Matching full:entity

34  * struct xvip_graph_entity - Entity in the video graph
36 * @node: the entity's DT node
37 * @entity: media entity, from the corresponding V4L2 subdev
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()
81 dev_dbg(xdev->dev, "creating links for entity %s\n", local->name); in xvip_graph_build_one()
85 ep = of_graph_get_next_endpoint(entity->node, ep); in xvip_graph_build_one()
129 /* Find the remote entity. */ in xvip_graph_build_one()
133 dev_err(xdev->dev, "no entity found for %pOF\n", in xvip_graph_build_one()
140 remote = ent->entity; in xvip_graph_build_one()
232 /* Find the remote entity. */ in xvip_graph_build_dma()
236 dev_err(xdev->dev, "no entity found for %pOF\n", in xvip_graph_build_dma()
243 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma()
253 source = &dma->video.entity; in xvip_graph_build_dma()
255 sink = ent->entity; in xvip_graph_build_dma()
258 source = ent->entity; in xvip_graph_build_dma()
260 sink = &dma->video.entity; in xvip_graph_build_dma()
291 struct xvip_graph_entity *entity; in xvip_graph_notify_complete() local
296 /* Create links for every entity. */ in xvip_graph_notify_complete()
297 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_notify_complete()
298 ret = xvip_graph_build_one(xdev, entity); in xvip_graph_notify_complete()
321 struct xvip_graph_entity *entity; in xvip_graph_notify_bound() local
323 /* Locate the entity corresponding to the bound subdev and store the in xvip_graph_notify_bound()
326 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_notify_bound()
327 if (entity->node != subdev->dev->of_node) in xvip_graph_notify_bound()
330 if (entity->subdev) { in xvip_graph_notify_bound()
332 entity->node); in xvip_graph_notify_bound()
337 entity->entity = &subdev->entity; in xvip_graph_notify_bound()
338 entity->subdev = subdev; in xvip_graph_notify_bound()
342 dev_err(xdev->dev, "no entity for subdev %s\n", subdev->name); in xvip_graph_notify_bound()
354 struct xvip_graph_entity *entity; in xvip_graph_parse_one() local
381 entity = devm_kzalloc(xdev->dev, sizeof(*entity), GFP_KERNEL); in xvip_graph_parse_one()
382 if (entity == NULL) { in xvip_graph_parse_one()
388 entity->node = remote; in xvip_graph_parse_one()
389 entity->asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in xvip_graph_parse_one()
390 entity->asd.match.fwnode = of_fwnode_handle(remote); in xvip_graph_parse_one()
391 list_add_tail(&entity->list, &xdev->entities); in xvip_graph_parse_one()
401 struct xvip_graph_entity *entity; in xvip_graph_parse() local
414 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_parse()
415 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()