Lines Matching defs:buf
22 * @buf: at least 256 bytes, must be 16-bit aligned
36 usb_gadget_get_string (const struct usb_gadget_strings *table, int id, u8 *buf)
43 buf [0] = 4;
44 buf [1] = USB_DT_STRING;
45 buf [2] = (u8) table->language;
46 buf [3] = (u8) (table->language >> 8);
60 (wchar_t *) &buf[2], USB_MAX_STRING_LEN);
63 buf [0] = (len + 1) * 2;
64 buf [1] = USB_DT_STRING;
65 return buf [0];