• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/uvc/

Lines Matching defs:term

179 	 * Stop if the current term is bigger than or equal to the given
889 struct uvc_entity *unit, *term;
965 term = uvc_alloc_entity(type | UVC_TERM_INPUT, buffer[3],
967 if (term == NULL)
970 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) {
971 term->camera.bControlSize = n;
972 term->camera.bmControls = (__u8 *)term + sizeof *term;
973 term->camera.wObjectiveFocalLengthMin =
975 term->camera.wObjectiveFocalLengthMax =
977 term->camera.wOcularFocalLength =
979 memcpy(term->camera.bmControls, &buffer[15], n);
980 } else if (UVC_ENTITY_TYPE(term) ==
982 term->media.bControlSize = n;
983 term->media.bmControls = (__u8 *)term + sizeof *term;
984 term->media.bTransportModeSize = p;
985 term->media.bmTransportModes = (__u8 *)term
986 + sizeof *term + n;
987 memcpy(term->media.bmControls, &buffer[9], n);
988 memcpy(term->media.bmTransportModes, &buffer[10+n], p);
992 usb_string(udev, buffer[7], term->name,
993 sizeof term->name);
994 else if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA)
995 sprintf(term->name, "Camera %u", buffer[3]);
996 else if (UVC_ENTITY_TYPE(term) == UVC_ITT_MEDIA_TRANSPORT_INPUT)
997 sprintf(term->name, "Media %u", buffer[3]);
999 sprintf(term->name, "Input %u", buffer[3]);
1001 list_add_tail(&term->list, &dev->entities);
1024 term = uvc_alloc_entity(type | UVC_TERM_OUTPUT, buffer[3],
1026 if (term == NULL)
1029 memcpy(term->baSourceID, &buffer[7], 1);
1032 usb_string(udev, buffer[8], term->name,
1033 sizeof term->name);
1035 sprintf(term->name, "Output %u", buffer[3]);
1037 list_add_tail(&term->list, &dev->entities);
1358 struct uvc_entity *term;
1380 term = uvc_entity_by_id(chain->dev, id);
1381 if (term == NULL || !UVC_ENTITY_IS_ITERM(term)) {
1389 printk(" %d", term->id);
1391 list_add_tail(&term->chain, &chain->entities);
1392 uvc_scan_chain_forward(chain, term, entity);
1429 struct uvc_entity *term)
1435 entity = term;
1466 struct uvc_entity *term;
1470 list_for_each_entry(term, terms, chain) {
1471 if (!UVC_ENTITY_IS_TERM(term) ||
1472 UVC_TERM_DIRECTION(term) != dir)
1481 p += sprintf(p, "%u", term->id);
1507 struct uvc_entity *term;
1509 list_for_each_entry(term, &dev->entities, list) {
1510 if (!UVC_ENTITY_IS_OTERM(term))
1518 if (term->chain.next || term->chain.prev)
1529 if (uvc_scan_chain(chain, term) < 0) {
1700 struct uvc_entity *term;
1703 list_for_each_entry(term, &chain->entities, chain) {
1704 if (UVC_ENTITY_TYPE(term) != UVC_TT_STREAMING)
1707 stream = uvc_stream_by_id(dev, term->id);
1710 "for terminal %u.", term->id);