Home | History | Annotate | Download | only in libusb

Lines Matching full:tbuf

681 	unsigned char tbuf[255]; /* Some devices choke on size > 255 */
697 r = libusb_get_string_descriptor(dev, 0, 0, tbuf, sizeof(tbuf));
704 langid = tbuf[2] | (tbuf[3] << 8);
706 r = libusb_get_string_descriptor(dev, desc_index, langid, tbuf,
707 sizeof(tbuf));
711 if (tbuf[1] != LIBUSB_DT_STRING)
714 if (tbuf[0] > r)
717 for (di = 0, si = 2; si < tbuf[0]; si += 2) {
721 if (tbuf[si + 1]) /* high byte */
724 data[di++] = tbuf[si];