• Home
  • Raw
  • Download

Lines Matching refs:entity

38 		.entity		= UVC_GUID_UVC_PROCESSING,
47 .entity = UVC_GUID_UVC_PROCESSING,
56 .entity = UVC_GUID_UVC_PROCESSING,
66 .entity = UVC_GUID_UVC_PROCESSING,
75 .entity = UVC_GUID_UVC_PROCESSING,
84 .entity = UVC_GUID_UVC_PROCESSING,
93 .entity = UVC_GUID_UVC_PROCESSING,
103 .entity = UVC_GUID_UVC_PROCESSING,
113 .entity = UVC_GUID_UVC_PROCESSING,
122 .entity = UVC_GUID_UVC_PROCESSING,
131 .entity = UVC_GUID_UVC_PROCESSING,
139 .entity = UVC_GUID_UVC_PROCESSING,
147 .entity = UVC_GUID_UVC_PROCESSING,
155 .entity = UVC_GUID_UVC_PROCESSING,
163 .entity = UVC_GUID_UVC_PROCESSING,
172 .entity = UVC_GUID_UVC_PROCESSING,
181 .entity = UVC_GUID_UVC_PROCESSING,
188 .entity = UVC_GUID_UVC_PROCESSING,
195 .entity = UVC_GUID_UVC_CAMERA,
203 .entity = UVC_GUID_UVC_CAMERA,
212 .entity = UVC_GUID_UVC_CAMERA,
220 .entity = UVC_GUID_UVC_CAMERA,
230 .entity = UVC_GUID_UVC_CAMERA,
237 .entity = UVC_GUID_UVC_CAMERA,
247 .entity = UVC_GUID_UVC_CAMERA,
257 .entity = UVC_GUID_UVC_CAMERA,
267 .entity = UVC_GUID_UVC_CAMERA,
275 .entity = UVC_GUID_UVC_CAMERA,
285 .entity = UVC_GUID_UVC_CAMERA,
295 .entity = UVC_GUID_UVC_CAMERA,
305 .entity = UVC_GUID_UVC_CAMERA,
314 .entity = UVC_GUID_UVC_CAMERA,
324 .entity = UVC_GUID_UVC_CAMERA,
334 .entity = UVC_GUID_UVC_CAMERA,
342 .entity = UVC_GUID_UVC_CAMERA,
423 .entity = UVC_GUID_UVC_PROCESSING,
433 .entity = UVC_GUID_UVC_PROCESSING,
443 .entity = UVC_GUID_UVC_PROCESSING,
455 .entity = UVC_GUID_UVC_PROCESSING,
465 .entity = UVC_GUID_UVC_PROCESSING,
475 .entity = UVC_GUID_UVC_PROCESSING,
485 .entity = UVC_GUID_UVC_PROCESSING,
495 .entity = UVC_GUID_UVC_PROCESSING,
505 .entity = UVC_GUID_UVC_PROCESSING,
517 .entity = UVC_GUID_UVC_PROCESSING,
528 .entity = UVC_GUID_UVC_CAMERA,
541 .entity = UVC_GUID_UVC_CAMERA,
551 .entity = UVC_GUID_UVC_CAMERA,
563 .entity = UVC_GUID_UVC_PROCESSING,
574 .entity = UVC_GUID_UVC_PROCESSING,
586 .entity = UVC_GUID_UVC_PROCESSING,
598 .entity = UVC_GUID_UVC_PROCESSING,
610 .entity = UVC_GUID_UVC_PROCESSING,
622 .entity = UVC_GUID_UVC_CAMERA,
634 .entity = UVC_GUID_UVC_CAMERA,
645 .entity = UVC_GUID_UVC_CAMERA,
655 .entity = UVC_GUID_UVC_CAMERA,
665 .entity = UVC_GUID_UVC_CAMERA,
675 .entity = UVC_GUID_UVC_CAMERA,
687 .entity = UVC_GUID_UVC_CAMERA,
697 .entity = UVC_GUID_UVC_CAMERA,
707 .entity = UVC_GUID_UVC_CAMERA,
719 .entity = UVC_GUID_UVC_CAMERA,
731 .entity = UVC_GUID_UVC_CAMERA,
834 static int uvc_entity_match_guid(const struct uvc_entity *entity, in uvc_entity_match_guid() argument
837 switch (UVC_ENTITY_TYPE(entity)) { in uvc_entity_match_guid()
848 return memcmp(entity->extension.guidExtensionCode, in uvc_entity_match_guid()
860 static void __uvc_find_control(struct uvc_entity *entity, u32 v4l2_id, in __uvc_find_control() argument
868 if (entity == NULL) in __uvc_find_control()
871 for (i = 0; i < entity->ncontrols; ++i) { in __uvc_find_control()
872 ctrl = &entity->controls[i]; in __uvc_find_control()
896 struct uvc_entity *entity; in uvc_find_control() local
905 list_for_each_entry(entity, &chain->entities, chain) { in uvc_find_control()
906 __uvc_find_control(entity, v4l2_id, mapping, &ctrl, next); in uvc_find_control()
924 ret = uvc_query_ctrl(chain->dev, UVC_GET_DEF, ctrl->entity->id, in uvc_ctrl_populate_cache()
933 ret = uvc_query_ctrl(chain->dev, UVC_GET_MIN, ctrl->entity->id, in uvc_ctrl_populate_cache()
941 ret = uvc_query_ctrl(chain->dev, UVC_GET_MAX, ctrl->entity->id, in uvc_ctrl_populate_cache()
949 ret = uvc_query_ctrl(chain->dev, UVC_GET_RES, ctrl->entity->id, in uvc_ctrl_populate_cache()
954 if (UVC_ENTITY_TYPE(ctrl->entity) != in uvc_ctrl_populate_cache()
1004 ret = uvc_query_ctrl(chain->dev, UVC_GET_CUR, ctrl->entity->id, in __uvc_ctrl_get()
1042 __uvc_find_control(ctrl->entity, mapping->master_id, in __uvc_query_v4l2_ctrl()
1268 __uvc_find_control(master->entity, slave_id, &mapping, &ctrl, 0); in uvc_ctrl_send_slave_event()
1491 struct uvc_entity *entity, int rollback) in uvc_ctrl_commit_entity() argument
1497 if (entity == NULL) in uvc_ctrl_commit_entity()
1500 for (i = 0; i < entity->ncontrols; ++i) { in uvc_ctrl_commit_entity()
1501 ctrl = &entity->controls[i]; in uvc_ctrl_commit_entity()
1519 ret = uvc_query_ctrl(dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_commit_entity()
1545 struct uvc_entity *entity; in __uvc_ctrl_commit() local
1549 list_for_each_entry(entity, &chain->entities, chain) { in __uvc_ctrl_commit()
1550 ret = uvc_ctrl_commit_entity(chain->dev, entity, rollback); in __uvc_ctrl_commit()
1664 ctrl->entity->id, chain->dev->intfnum, in uvc_ctrl_set()
1711 ret = uvc_query_ctrl(dev, UVC_GET_INFO, ctrl->entity->id, dev->intfnum, in uvc_ctrl_get_flags()
1732 u8 entity; in uvc_ctrl_fixup_xu_info() member
1758 if (fixups[i].entity == ctrl->entity->id && in uvc_ctrl_fixup_xu_info()
1779 memcpy(info->entity, ctrl->entity->extension.guidExtensionCode, in uvc_ctrl_fill_xu_info()
1780 sizeof(info->entity)); in uvc_ctrl_fill_xu_info()
1785 ret = uvc_query_ctrl(dev, UVC_GET_LEN, ctrl->entity->id, dev->intfnum, in uvc_ctrl_fill_xu_info()
1790 info->entity, info->selector, ret); in uvc_ctrl_fill_xu_info()
1803 info->entity, info->selector, ret); in uvc_ctrl_fill_xu_info()
1811 info->entity, info->selector, info->size, in uvc_ctrl_fill_xu_info()
1840 "%pUl/%u on device %s entity %u\n", info.entity, in uvc_ctrl_init_xu_ctrl()
1841 info.selector, dev->udev->devpath, ctrl->entity->id); in uvc_ctrl_init_xu_ctrl()
1849 struct uvc_entity *entity; in uvc_xu_ctrl_query() local
1860 list_for_each_entry(entity, &chain->entities, chain) { in uvc_xu_ctrl_query()
1861 if (UVC_ENTITY_TYPE(entity) == UVC_VC_EXTENSION_UNIT && in uvc_xu_ctrl_query()
1862 entity->id == xqry->unit) { in uvc_xu_ctrl_query()
1876 for (i = 0; i < entity->ncontrols; ++i) { in uvc_xu_ctrl_query()
1877 ctrl = &entity->controls[i]; in uvc_xu_ctrl_query()
1886 entity->extension.guidExtensionCode, xqry->selector); in uvc_xu_ctrl_query()
1985 struct uvc_entity *entity; in uvc_ctrl_restore_values() local
1990 list_for_each_entry(entity, &dev->entities, list) { in uvc_ctrl_restore_values()
1992 for (i = 0; i < entity->ncontrols; ++i) { in uvc_ctrl_restore_values()
1993 ctrl = &entity->controls[i]; in uvc_ctrl_restore_values()
2000 ctrl->info.entity, ctrl->info.index, in uvc_ctrl_restore_values()
2005 ret = uvc_ctrl_commit_entity(dev, entity, 0); in uvc_ctrl_restore_values()
2035 "entity %u\n", ctrl->info.entity, ctrl->info.selector, in uvc_ctrl_add_info()
2036 dev->udev->devpath, ctrl->entity->id); in uvc_ctrl_add_info()
2075 map->name, ctrl->info.entity, ctrl->info.selector); in __uvc_ctrl_add_mapping()
2085 struct uvc_entity *entity; in uvc_ctrl_add_mapping() local
2098 list_for_each_entry(entity, &chain->entities, chain) { in uvc_ctrl_add_mapping()
2101 if (UVC_ENTITY_TYPE(entity) != UVC_VC_EXTENSION_UNIT || in uvc_ctrl_add_mapping()
2102 !uvc_entity_match_guid(entity, mapping->entity)) in uvc_ctrl_add_mapping()
2105 for (i = 0; i < entity->ncontrols; ++i) { in uvc_ctrl_add_mapping()
2106 ctrl = &entity->controls[i]; in uvc_ctrl_add_mapping()
2171 struct uvc_entity *entity) in uvc_ctrl_prune_entity() argument
2193 switch (UVC_ENTITY_TYPE(entity)) { in uvc_ctrl_prune_entity()
2197 controls = entity->processing.bmControls; in uvc_ctrl_prune_entity()
2198 size = entity->processing.bControlSize; in uvc_ctrl_prune_entity()
2204 controls = entity->camera.bmControls; in uvc_ctrl_prune_entity()
2205 size = entity->camera.bControlSize; in uvc_ctrl_prune_entity()
2221 "removing it.\n", entity->id, blacklist[i].index); in uvc_ctrl_prune_entity()
2244 if (UVC_ENTITY_TYPE(ctrl->entity) == UVC_VC_EXTENSION_UNIT) in uvc_ctrl_init_ctrl()
2248 if (uvc_entity_match_guid(ctrl->entity, info->entity) && in uvc_ctrl_init_ctrl()
2266 if (uvc_entity_match_guid(ctrl->entity, mapping->entity) && in uvc_ctrl_init_ctrl()
2277 struct uvc_entity *entity; in uvc_ctrl_init_device() local
2283 list_for_each_entry(entity, &dev->entities, list) { in uvc_ctrl_init_device()
2288 if (UVC_ENTITY_TYPE(entity) == UVC_VC_EXTENSION_UNIT) { in uvc_ctrl_init_device()
2289 bmControls = entity->extension.bmControls; in uvc_ctrl_init_device()
2290 bControlSize = entity->extension.bControlSize; in uvc_ctrl_init_device()
2291 } else if (UVC_ENTITY_TYPE(entity) == UVC_VC_PROCESSING_UNIT) { in uvc_ctrl_init_device()
2292 bmControls = entity->processing.bmControls; in uvc_ctrl_init_device()
2293 bControlSize = entity->processing.bControlSize; in uvc_ctrl_init_device()
2294 } else if (UVC_ENTITY_TYPE(entity) == UVC_ITT_CAMERA) { in uvc_ctrl_init_device()
2295 bmControls = entity->camera.bmControls; in uvc_ctrl_init_device()
2296 bControlSize = entity->camera.bControlSize; in uvc_ctrl_init_device()
2300 uvc_ctrl_prune_entity(dev, entity); in uvc_ctrl_init_device()
2307 entity->controls = kcalloc(ncontrols, sizeof(*ctrl), in uvc_ctrl_init_device()
2309 if (entity->controls == NULL) in uvc_ctrl_init_device()
2311 entity->ncontrols = ncontrols; in uvc_ctrl_init_device()
2314 ctrl = entity->controls; in uvc_ctrl_init_device()
2319 ctrl->entity = entity; in uvc_ctrl_init_device()
2347 struct uvc_entity *entity; in uvc_ctrl_cleanup_device() local
2355 list_for_each_entry(entity, &dev->entities, list) { in uvc_ctrl_cleanup_device()
2356 for (i = 0; i < entity->ncontrols; ++i) { in uvc_ctrl_cleanup_device()
2357 struct uvc_control *ctrl = &entity->controls[i]; in uvc_ctrl_cleanup_device()
2366 kfree(entity->controls); in uvc_ctrl_cleanup_device()