Lines Matching refs:term

900 	struct uvc_entity *unit, *term;  in uvc_parse_standard_control()  local
983 term = uvc_alloc_entity(type | UVC_TERM_INPUT, buffer[3], in uvc_parse_standard_control()
985 if (term == NULL) in uvc_parse_standard_control()
988 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) { in uvc_parse_standard_control()
989 term->camera.bControlSize = n; in uvc_parse_standard_control()
990 term->camera.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control()
991 term->camera.wObjectiveFocalLengthMin = in uvc_parse_standard_control()
993 term->camera.wObjectiveFocalLengthMax = in uvc_parse_standard_control()
995 term->camera.wOcularFocalLength = in uvc_parse_standard_control()
997 memcpy(term->camera.bmControls, &buffer[15], n); in uvc_parse_standard_control()
998 } else if (UVC_ENTITY_TYPE(term) == in uvc_parse_standard_control()
1000 term->media.bControlSize = n; in uvc_parse_standard_control()
1001 term->media.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control()
1002 term->media.bTransportModeSize = p; in uvc_parse_standard_control()
1003 term->media.bmTransportModes = (u8 *)term in uvc_parse_standard_control()
1004 + sizeof(*term) + n; in uvc_parse_standard_control()
1005 memcpy(term->media.bmControls, &buffer[9], n); in uvc_parse_standard_control()
1006 memcpy(term->media.bmTransportModes, &buffer[10+n], p); in uvc_parse_standard_control()
1010 usb_string(udev, buffer[7], term->name, in uvc_parse_standard_control()
1011 sizeof(term->name)); in uvc_parse_standard_control()
1012 else if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) in uvc_parse_standard_control()
1013 sprintf(term->name, "Camera %u", buffer[3]); in uvc_parse_standard_control()
1014 else if (UVC_ENTITY_TYPE(term) == UVC_ITT_MEDIA_TRANSPORT_INPUT) in uvc_parse_standard_control()
1015 sprintf(term->name, "Media %u", buffer[3]); in uvc_parse_standard_control()
1017 sprintf(term->name, "Input %u", buffer[3]); in uvc_parse_standard_control()
1019 list_add_tail(&term->list, &dev->entities); in uvc_parse_standard_control()
1043 term = uvc_alloc_entity(type | UVC_TERM_OUTPUT, buffer[3], in uvc_parse_standard_control()
1045 if (term == NULL) in uvc_parse_standard_control()
1048 memcpy(term->baSourceID, &buffer[7], 1); in uvc_parse_standard_control()
1051 usb_string(udev, buffer[8], term->name, in uvc_parse_standard_control()
1052 sizeof(term->name)); in uvc_parse_standard_control()
1054 sprintf(term->name, "Output %u", buffer[3]); in uvc_parse_standard_control()
1056 list_add_tail(&term->list, &dev->entities); in uvc_parse_standard_control()
1520 struct uvc_entity *term; in uvc_scan_chain_backward() local
1541 term = uvc_entity_by_id(chain->dev, id); in uvc_scan_chain_backward()
1542 if (term == NULL || !UVC_ENTITY_IS_ITERM(term)) { in uvc_scan_chain_backward()
1549 if (term->chain.next || term->chain.prev) { in uvc_scan_chain_backward()
1552 term->id); in uvc_scan_chain_backward()
1556 uvc_dbg_cont(PROBE, " %d", term->id); in uvc_scan_chain_backward()
1558 list_add_tail(&term->chain, &chain->entities); in uvc_scan_chain_backward()
1559 uvc_scan_chain_forward(chain, term, entity); in uvc_scan_chain_backward()
1595 struct uvc_entity *term) in uvc_scan_chain() argument
1601 entity = term; in uvc_scan_chain()
1633 struct uvc_entity *term; in uvc_print_terms() local
1637 list_for_each_entry(term, terms, chain) { in uvc_print_terms()
1638 if (!UVC_ENTITY_IS_TERM(term) || in uvc_print_terms()
1639 UVC_TERM_DIRECTION(term) != dir) in uvc_print_terms()
1648 p += sprintf(p, "%u", term->id); in uvc_print_terms()
1781 struct uvc_entity *term; in uvc_scan_device() local
1783 list_for_each_entry(term, &dev->entities, list) { in uvc_scan_device()
1784 if (!UVC_ENTITY_IS_OTERM(term)) in uvc_scan_device()
1793 if (term->chain.next || term->chain.prev) in uvc_scan_device()
1800 term->flags |= UVC_ENTITY_FLAG_DEFAULT; in uvc_scan_device()
1802 if (uvc_scan_chain(chain, term) < 0) { in uvc_scan_device()
2020 struct uvc_entity *term; in uvc_register_terms() local
2023 list_for_each_entry(term, &chain->entities, chain) { in uvc_register_terms()
2024 if (UVC_ENTITY_TYPE(term) != UVC_TT_STREAMING) in uvc_register_terms()
2027 stream = uvc_stream_by_id(dev, term->id); in uvc_register_terms()
2031 term->id); in uvc_register_terms()
2046 term->vdev = &stream->vdev; in uvc_register_terms()