Lines Matching refs:tbuf
712 char tbuf[256];
735 ret = usb_get_string(dev, index, 0, tbuf, sizeof (tbuf));
741 langid = tbuf[2] | (tbuf[3] << 8);
746 ret = usb_get_string(dev, index, langid, tbuf, sizeof (tbuf));
751 if (tbuf[1] != USB_DT_STRING) {
755 if (tbuf[0] > ret) {
760 for (di = 0, si = 2; si < tbuf[0]; si += 2) {
765 if (tbuf[si + 1]) { /* high byte */
768 buf[di++] = tbuf[si];