Lines Matching refs:data

81 #define RQ_VENDOR_ROM_DATA		0x18 /* Rom file data */
83 #define RQ_VENDOR_FW_DATA 0x20 /* Firmware data */
189 * bytes of data in the message. Return the number of bytes in the
214 u8 *data, size_t size)
223 data, size,
246 u8 *data, size_t size)
255 data, size,
267 /* Send a vendor request without any data */
279 * data being read from the port. Since all the data comes over one
281 * port->throttle. Instead tell the device to stop sending us data for
299 * the data being read from the port. Tell the device it can resume
300 * sending us received data from the port.
315 * Processes one chunk of data received for a port. Mostly a copy of
319 char *data, int size)
324 for (i = 0; i < size; i++, data++) {
325 if (!usb_serial_handle_sysrq_char(port, *data))
326 tty_insert_flip_char(&port->port, *data,
330 tty_insert_flip_string(&port->port, data, size);
448 * sending the device data and it will buffer it if
460 * One URB can contain data for multiple ports. Demultiplex the data,
467 u8 *data = urb->transfer_buffer;
468 u8 *end = data + urb->actual_length;
474 while (data < end) {
475 if (data + HEADER_SIZE > end) {
481 rcv_port = get_unaligned_be16(data);
489 rcv_len = get_unaligned_be16(data + 2);
490 if (!rcv_len || data + HEADER_SIZE + rcv_len > end) {
491 dev_warn(&port->dev, "%s - short data\n", __func__);
496 ch = data + HEADER_SIZE;
499 dev_dbg(&demux_port->dev, "%s - data for closed port\n",
502 data += HEADER_SIZE + rcv_len;
514 u8 *data = urb->transfer_buffer;
515 u8 *end = data + urb->actual_length;
521 while (data < end) {
522 if (data + EVENT_LENGTH > end) {
528 rcv_port = get_unaligned_be16(data);
537 ch = data + HEADER_SIZE;
538 rcv_event = get_unaligned_be16(data + 2);
545 data += EVENT_LENGTH;
550 * This is called when we have received data on the bulk in
552 * contain serial data or events.
858 /* Set data bit of termios */
1020 memcpy(fw_buf, &fw_p->data[fwidx], txlen);
1083 local_ver = ((fw_p->data[VER_ADDR_1] << 16) |
1084 (fw_p->data[VER_ADDR_2] << 8) |
1085 fw_p->data[VER_ADDR_3]);
1088 fw_p->data[VER_ADDR_1], fw_p->data[VER_ADDR_2],
1089 fw_p->data[VER_ADDR_3]);
1132 /* Set the port private data */
1160 * All data from the ports is received on the first bulk in