Lines Matching full:buffer
22 u8 *buffer, void *context, void(*handler)(struct urb *urb)) in usb6fire_comm_init_urb() argument
25 urb->transfer_buffer = buffer; in usb6fire_comm_init_urb()
55 static void usb6fire_comm_init_buffer(u8 *buffer, u8 id, u8 request, in usb6fire_comm_init_buffer() argument
58 buffer[0] = 0x01; in usb6fire_comm_init_buffer()
59 buffer[2] = request; in usb6fire_comm_init_buffer()
60 buffer[3] = id; in usb6fire_comm_init_buffer()
63 buffer[1] = 0x05; /* length (starting at buffer[2]) */ in usb6fire_comm_init_buffer()
64 buffer[4] = reg; in usb6fire_comm_init_buffer()
65 buffer[5] = vl; in usb6fire_comm_init_buffer()
66 buffer[6] = vh; in usb6fire_comm_init_buffer()
70 buffer[1] = 0x0b; /* length (starting at buffer[2]) */ in usb6fire_comm_init_buffer()
71 buffer[4] = 0x00; in usb6fire_comm_init_buffer()
72 buffer[5] = 0x18; in usb6fire_comm_init_buffer()
73 buffer[6] = 0x05; in usb6fire_comm_init_buffer()
74 buffer[7] = 0x00; in usb6fire_comm_init_buffer()
75 buffer[8] = 0x01; in usb6fire_comm_init_buffer()
76 buffer[9] = 0x00; in usb6fire_comm_init_buffer()
77 buffer[10] = 0x9e; in usb6fire_comm_init_buffer()
78 buffer[11] = reg; in usb6fire_comm_init_buffer()
79 buffer[12] = vl; in usb6fire_comm_init_buffer()
85 buffer[1] = 0x04; in usb6fire_comm_init_buffer()
86 buffer[4] = reg; in usb6fire_comm_init_buffer()
87 buffer[5] = vl; in usb6fire_comm_init_buffer()
92 static int usb6fire_comm_send_buffer(u8 *buffer, struct usb_device *dev) in usb6fire_comm_send_buffer() argument
98 buffer, buffer[1] + 2, &actual_len, 1000); in usb6fire_comm_send_buffer()
101 else if (actual_len != buffer[1] + 2) in usb6fire_comm_send_buffer()
109 u8 *buffer; in usb6fire_comm_write8() local
113 buffer = kmalloc(13, GFP_KERNEL); in usb6fire_comm_write8()
114 if (!buffer) in usb6fire_comm_write8()
117 usb6fire_comm_init_buffer(buffer, 0x00, request, reg, value, 0x00); in usb6fire_comm_write8()
118 ret = usb6fire_comm_send_buffer(buffer, rt->chip->dev); in usb6fire_comm_write8()
120 kfree(buffer); in usb6fire_comm_write8()
127 u8 *buffer; in usb6fire_comm_write16() local
131 buffer = kmalloc(13, GFP_KERNEL); in usb6fire_comm_write16()
132 if (!buffer) in usb6fire_comm_write16()
135 usb6fire_comm_init_buffer(buffer, 0x00, request, reg, vl, vh); in usb6fire_comm_write16()
136 ret = usb6fire_comm_send_buffer(buffer, rt->chip->dev); in usb6fire_comm_write16()
138 kfree(buffer); in usb6fire_comm_write16()