Lines Matching refs:term
924 struct uvc_entity *unit, *term;
1008 term = uvc_alloc_entity(type | UVC_TERM_INPUT, buffer[3],
1010 if (term == NULL)
1013 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) {
1014 term->camera.bControlSize = n;
1015 term->camera.bmControls = (u8 *)term + sizeof(*term);
1016 term->camera.wObjectiveFocalLengthMin =
1018 term->camera.wObjectiveFocalLengthMax =
1020 term->camera.wOcularFocalLength =
1022 memcpy(term->camera.bmControls, &buffer[15], n);
1023 } else if (UVC_ENTITY_TYPE(term) ==
1025 term->media.bControlSize = n;
1026 term->media.bmControls = (u8 *)term + sizeof(*term);
1027 term->media.bTransportModeSize = p;
1028 term->media.bmTransportModes = (u8 *)term
1029 + sizeof(*term) + n;
1030 memcpy(term->media.bmControls, &buffer[9], n);
1031 memcpy(term->media.bmTransportModes, &buffer[10+n], p);
1034 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA)
1036 else if (UVC_ENTITY_TYPE(term) == UVC_ITT_MEDIA_TRANSPORT_INPUT)
1041 uvc_entity_set_name(dev, term, type_name, buffer[7]);
1043 list_add_tail(&term->list, &dev->entities);
1067 term = uvc_alloc_entity(type | UVC_TERM_OUTPUT, buffer[3],
1069 if (term == NULL)
1072 memcpy(term->baSourceID, &buffer[7], 1);
1074 uvc_entity_set_name(dev, term, "Output", buffer[8]);
1076 list_add_tail(&term->list, &dev->entities);
1526 struct uvc_entity *term;
1547 term = uvc_entity_by_id(chain->dev, id);
1548 if (term == NULL || !UVC_ENTITY_IS_ITERM(term)) {
1555 if (term->chain.next || term->chain.prev) {
1558 term->id);
1562 uvc_dbg_cont(PROBE, " %d", term->id);
1564 list_add_tail(&term->chain, &chain->entities);
1565 uvc_scan_chain_forward(chain, term, entity);
1601 struct uvc_entity *term)
1607 entity = term;
1639 struct uvc_entity *term;
1643 list_for_each_entry(term, terms, chain) {
1644 if (!UVC_ENTITY_IS_TERM(term) ||
1645 UVC_TERM_DIRECTION(term) != dir)
1654 p += sprintf(p, "%u", term->id);
1787 struct uvc_entity *term;
1789 list_for_each_entry(term, &dev->entities, list) {
1790 if (!UVC_ENTITY_IS_OTERM(term))
1799 if (term->chain.next || term->chain.prev)
1806 term->flags |= UVC_ENTITY_FLAG_DEFAULT;
1808 if (uvc_scan_chain(chain, term) < 0) {
2029 struct uvc_entity *term;
2032 list_for_each_entry(term, &chain->entities, chain) {
2033 if (UVC_ENTITY_TYPE(term) != UVC_TT_STREAMING)
2036 stream = uvc_stream_by_id(dev, term->id);
2040 term->id);
2055 term->vdev = &stream->vdev;