Lines Matching refs:term

347 	 * Stop if the current term is bigger than or equal to the given
1140 struct uvc_entity *unit, *term;
1224 term = uvc_alloc_entity(type | UVC_TERM_INPUT, buffer[3],
1226 if (term == NULL)
1229 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA) {
1230 term->camera.bControlSize = n;
1231 term->camera.bmControls = (u8 *)term + sizeof(*term);
1232 term->camera.wObjectiveFocalLengthMin =
1234 term->camera.wObjectiveFocalLengthMax =
1236 term->camera.wOcularFocalLength =
1238 memcpy(term->camera.bmControls, &buffer[15], n);
1239 } else if (UVC_ENTITY_TYPE(term) ==
1241 term->media.bControlSize = n;
1242 term->media.bmControls = (u8 *)term + sizeof(*term);
1243 term->media.bTransportModeSize = p;
1244 term->media.bmTransportModes = (u8 *)term
1245 + sizeof(*term) + n;
1246 memcpy(term->media.bmControls, &buffer[9], n);
1247 memcpy(term->media.bmTransportModes, &buffer[10+n], p);
1251 usb_string(udev, buffer[7], term->name, sizeof(term->name)) < 0) {
1252 if (UVC_ENTITY_TYPE(term) == UVC_ITT_CAMERA)
1253 sprintf(term->name, "Camera %u", buffer[3]);
1254 if (UVC_ENTITY_TYPE(term) == UVC_ITT_MEDIA_TRANSPORT_INPUT)
1255 sprintf(term->name, "Media %u", buffer[3]);
1257 sprintf(term->name, "Input %u", buffer[3]);
1260 list_add_tail(&term->list, &dev->entities);
1283 term = uvc_alloc_entity(type | UVC_TERM_OUTPUT, buffer[3],
1285 if (term == NULL)
1288 memcpy(term->baSourceID, &buffer[7], 1);
1291 usb_string(udev, buffer[8], term->name, sizeof(term->name)) < 0)
1292 sprintf(term->name, "Output %u", buffer[3]);
1294 list_add_tail(&term->list, &dev->entities);
1654 struct uvc_entity *term;
1676 term = uvc_entity_by_id(chain->dev, id);
1677 if (term == NULL || !UVC_ENTITY_IS_ITERM(term)) {
1684 if (term->chain.next || term->chain.prev) {
1687 term->id);
1692 printk(KERN_CONT " %d", term->id);
1694 list_add_tail(&term->chain, &chain->entities);
1695 uvc_scan_chain_forward(chain, term, entity);
1732 struct uvc_entity *term)
1738 entity = term;
1769 struct uvc_entity *term;
1773 list_for_each_entry(term, terms, chain) {
1774 if (!UVC_ENTITY_IS_TERM(term) ||
1775 UVC_TERM_DIRECTION(term) != dir)
1784 p += sprintf(p, "%u", term->id);
1918 struct uvc_entity *term;
1920 list_for_each_entry(term, &dev->entities, list) {
1921 if (!UVC_ENTITY_IS_OTERM(term))
1929 if (term->chain.next || term->chain.prev)
1936 term->flags |= UVC_ENTITY_FLAG_DEFAULT;
1938 if (uvc_scan_chain(chain, term) < 0) {
2148 struct uvc_entity *term;
2151 list_for_each_entry(term, &chain->entities, chain) {
2152 if (UVC_ENTITY_TYPE(term) != UVC_TT_STREAMING)
2155 stream = uvc_stream_by_id(dev, term->id);
2158 "for terminal %u.", term->id);
2172 term->vdev = &stream->vdev;