Lines Matching refs:links

117 	entd->links = ent->num_links - ent->num_backlinks;  in media_device_enum_entities()
153 struct media_links_enum *links = arg; in media_device_enum_links() local
156 entity = find_entity(mdev, links->entity); in media_device_enum_links()
160 if (links->pads) { in media_device_enum_links()
168 if (copy_to_user(&links->pads[p], &pad, sizeof(pad))) in media_device_enum_links()
173 if (links->links) { in media_device_enum_links()
175 struct media_link_desc __user *ulink_desc = links->links; in media_device_enum_links()
177 list_for_each_entry(link, &entity->links, list) { in media_device_enum_links()
195 memset(links->reserved, 0, sizeof(links->reserved)); in media_device_enum_links()
489 compat_uptr_t links; /* struct media_link_desc * */ member
496 struct media_links_enum links; in media_device_enum_links32() local
500 memset(&links, 0, sizeof(links)); in media_device_enum_links32()
502 if (get_user(links.entity, &ulinks->entity) in media_device_enum_links32()
504 || get_user(links_ptr, &ulinks->links)) in media_device_enum_links32()
507 links.pads = compat_ptr(pads_ptr); in media_device_enum_links32()
508 links.links = compat_ptr(links_ptr); in media_device_enum_links32()
510 ret = media_device_enum_links(mdev, &links); in media_device_enum_links32()
514 if (copy_to_user(ulinks->reserved, links.reserved, in media_device_enum_links32()
590 list_for_each_entry_safe(link, tmp, &intf->links, list) { in __media_device_unregister_entity()
632 INIT_LIST_HEAD(&entity->links); in media_device_register_entity()
709 INIT_LIST_HEAD(&mdev->links); in media_device_init()