Home | History | Annotate | Download | only in libusb

Lines Matching refs:tbuf

1143 	unsigned char tbuf[255]; /* Some devices choke on size > 255 */
1159 r = libusb_get_string_descriptor(dev_handle, 0, 0, tbuf, sizeof(tbuf));
1166 langid = tbuf[2] | (tbuf[3] << 8);
1168 r = libusb_get_string_descriptor(dev_handle, desc_index, langid, tbuf,
1169 sizeof(tbuf));
1173 if (tbuf[1] != LIBUSB_DT_STRING)
1176 if (tbuf[0] > r)
1179 for (di = 0, si = 2; si < tbuf[0]; si += 2) {
1183 if ((tbuf[si] & 0x80) || (tbuf[si + 1])) /* non-ASCII */
1186 data[di++] = tbuf[si];