Lines Matching refs:entity
51 static inline unsigned int __media_entity_type(struct media_entity *entity) in __media_entity_type() argument
53 return entity->info.type & MEDIA_ENT_TYPE_MASK; in __media_entity_type()
78 static struct media_link *__media_entity_add_link(struct media_entity *entity) in __media_entity_add_link() argument
89 static int __media_get_devname_sysfs(struct media_entity *entity) in __media_get_devname_sysfs() argument
98 snprintf(sysname, sizeof(sysname), "/sys/dev/char/%u:%u", entity->info.v4l.major, in __media_get_devname_sysfs()
99 entity->info.v4l.minor); in __media_get_devname_sysfs()
112 ret = mknod(devname, 0666 | S_IFCHR, MKDEV(81, entity->info.v4l.minor)); in __media_get_devname_sysfs()
113 strncpy(entity->devname, devname, sizeof(devname) - 1); in __media_get_devname_sysfs()
222 struct media_entity *entity = &media->entities[i]; in exynos_media_close() local
224 free(entity->pads); in exynos_media_close()
225 free(entity->links); in exynos_media_close()
226 if (entity->fd != -1) in exynos_media_close()
227 close(entity->fd); in exynos_media_close()
264 struct media_entity *entity; in exynos_media_get_entity_by_name() local
267 entity = &media->entities[i]; in exynos_media_get_entity_by_name()
269 if (strncmp(entity->info.name, name, length) == 0) in exynos_media_get_entity_by_name()
270 return entity; in exynos_media_get_entity_by_name()
291 struct media_entity *entity = &media->entities[i]; in exynos_media_get_entity_by_id() local
293 if (entity->info.id == id) in exynos_media_get_entity_by_id()
294 return entity; in exynos_media_get_entity_by_id()
357 struct media_entity *entity) in __media_get_devname_udev() argument
367 devnum = makedev(entity->info.v4l.major, entity->info.v4l.minor); in __media_get_devname_udev()
374 strncpy(entity->devname, p, sizeof(entity->devname)); in __media_get_devname_udev()
375 entity->devname[sizeof(entity->devname) - 1] = '\0'; in __media_get_devname_udev()
394 struct media_entity *entity) in __media_get_devname_udev() argument
454 for (i = 0; i < source->entity->num_links; i++) { in exynos_media_parse_link()
455 link = &source->entity->links[i]; in exynos_media_parse_link()