Lines Matching full:term

935 	struct uvc_entity *unit, *term;  in uvc_parse_standard_control()  local
1019 term = uvc_alloc_entity(type | UVC_TERM_INPUT, buffer[3], in uvc_parse_standard_control()
1021 if (term == NULL) in uvc_parse_standard_control()
1024 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) { in uvc_parse_standard_control()
1025 term->camera.bControlSize = n; in uvc_parse_standard_control()
1026 term->camera.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control()
1027 term->camera.wObjectiveFocalLengthMin = in uvc_parse_standard_control()
1029 term->camera.wObjectiveFocalLengthMax = in uvc_parse_standard_control()
1031 term->camera.wOcularFocalLength = in uvc_parse_standard_control()
1033 memcpy(term->camera.bmControls, &buffer[15], n); in uvc_parse_standard_control()
1034 } else if (UVC_ENTITY_TYPE(term) == in uvc_parse_standard_control()
1036 term->media.bControlSize = n; in uvc_parse_standard_control()
1037 term->media.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control()
1038 term->media.bTransportModeSize = p; in uvc_parse_standard_control()
1039 term->media.bmTransportModes = (u8 *)term in uvc_parse_standard_control()
1040 + sizeof(*term) + n; in uvc_parse_standard_control()
1041 memcpy(term->media.bmControls, &buffer[9], n); in uvc_parse_standard_control()
1042 memcpy(term->media.bmTransportModes, &buffer[10+n], p); in uvc_parse_standard_control()
1045 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) in uvc_parse_standard_control()
1047 else if (UVC_ENTITY_TYPE(term) == UVC_ITT_MEDIA_TRANSPORT_INPUT) in uvc_parse_standard_control()
1052 uvc_entity_set_name(dev, term, type_name, buffer[7]); in uvc_parse_standard_control()
1054 list_add_tail(&term->list, &dev->entities); in uvc_parse_standard_control()
1078 term = uvc_alloc_entity(type | UVC_TERM_OUTPUT, buffer[3], in uvc_parse_standard_control()
1080 if (term == NULL) in uvc_parse_standard_control()
1083 memcpy(term->baSourceID, &buffer[7], 1); in uvc_parse_standard_control()
1085 uvc_entity_set_name(dev, term, "Output", buffer[8]); in uvc_parse_standard_control()
1087 list_add_tail(&term->list, &dev->entities); in uvc_parse_standard_control()
1537 struct uvc_entity *term; in uvc_scan_chain_backward() local
1558 term = uvc_entity_by_id(chain->dev, id); in uvc_scan_chain_backward()
1559 if (term == NULL || !UVC_ENTITY_IS_ITERM(term)) { in uvc_scan_chain_backward()
1566 if (term->chain.next || term->chain.prev) { in uvc_scan_chain_backward()
1569 term->id); in uvc_scan_chain_backward()
1573 uvc_dbg_cont(PROBE, " %d", term->id); in uvc_scan_chain_backward()
1575 list_add_tail(&term->chain, &chain->entities); in uvc_scan_chain_backward()
1576 uvc_scan_chain_forward(chain, term, entity); in uvc_scan_chain_backward()
1612 struct uvc_entity *term) in uvc_scan_chain() argument
1618 entity = term; in uvc_scan_chain()
1650 struct uvc_entity *term; in uvc_print_terms() local
1654 list_for_each_entry(term, terms, chain) { in uvc_print_terms()
1655 if (!UVC_ENTITY_IS_TERM(term) || in uvc_print_terms()
1656 UVC_TERM_DIRECTION(term) != dir) in uvc_print_terms()
1665 p += sprintf(p, "%u", term->id); in uvc_print_terms()
1798 struct uvc_entity *term; in uvc_scan_device() local
1800 list_for_each_entry(term, &dev->entities, list) { in uvc_scan_device()
1801 if (!UVC_ENTITY_IS_OTERM(term)) in uvc_scan_device()
1810 if (term->chain.next || term->chain.prev) in uvc_scan_device()
1817 term->flags |= UVC_ENTITY_FLAG_DEFAULT; in uvc_scan_device()
1819 if (uvc_scan_chain(chain, term) < 0) { in uvc_scan_device()
2040 struct uvc_entity *term; in uvc_register_terms() local
2043 list_for_each_entry(term, &chain->entities, chain) { in uvc_register_terms()
2044 if (UVC_ENTITY_TYPE(term) != UVC_TT_STREAMING) in uvc_register_terms()
2047 stream = uvc_stream_by_id(dev, term->id); in uvc_register_terms()
2051 term->id); in uvc_register_terms()
2066 term->vdev = &stream->vdev; in uvc_register_terms()