Lines Matching defs:data

142 	EXPECT_DATA = 2,    /* Expect 'RxBytesRemaining' data */
149 * The maximum amount of data buffered in both the edgeport
221 __u8 rxPort; /* the port that we are currently receiving data for */
274 static void edge_tty_recv(struct usb_serial_port *port, unsigned char *data,
278 __u8 lsr, __u8 data);
293 __u16 length, const __u8 *data);
341 rec = (const struct ihex_binrec *)fw->data;
342 BootMajorVersion = rec->data[0];
343 BootMinorVersion = rec->data[1];
344 BootBuildNumber = (rec->data[2] << 8) | rec->data[3];
377 &rec->data[0]);
564 * this is the callback function for when we have received data on the
573 unsigned char *data = urb->transfer_buffer;
602 usb_serial_debug_data(dev, __func__, length, data);
605 bytes_avail = data[0] | (data[1] << 8);
639 txCredits = data[position] | (data[position+1] << 8);
657 if more data can be sent */
678 * this is the callback function for when we have received data on the
685 unsigned char *data = urb->transfer_buffer;
699 dev_dbg(&urb->dev->dev, "%s - read bulk callback with no data\n", __func__);
707 usb_serial_debug_data(dev, __func__, raw_data_length, data);
717 process_rcvd_data(edge_serial, data, urb->actual_length);
719 /* check to see if there's any more data for us to read */
740 * serial data on the bulk out endpoint.
759 /* Check if more data needs to be sent */
882 edge_port->txCredits = 0; /* Can't send any data yet */
944 * (1K of Edgeport data @ 2400 baud ==> 4 sec to empty)
1107 * this function is called by the tty driver when data should be written
1113 const unsigned char *data, int count)
1145 /* queue the data
1157 /* now copy our data */
1158 memcpy(&fifo->fifo[fifo->head], data, firsthalf);
1172 dev_dbg(&port->dev, "%s - copy rest of data %d\n", __func__, secondhalf);
1173 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf);
1200 * This routine attempts to write additional UART transmit data
1202 * data has been written to a port's TxBuffer from higher layers
1204 * that it can accept more Tx data for a given port; and (3) when
1233 /* since the amount of data in the fifo will always fit into the
1256 /* build the data header for the buffer and port that we are about
1267 /* now copy our data */
1287 /* fill up the urb with all of our data and submit it */
1302 "%s - usb_submit_urb(write bulk) failed, status = %d, data lost\n",
1321 * many bytes of data we can accept for a specific port.
1343 * many bytes of data we currently have outstanding in the port (data that
1367 * this function is called by the tty driver when it wants to stop the data
1406 * data being read from the port (called after SerialThrottle is called)
1607 * this function handles the data received on the bulk in pipe.
1648 * data or status */
1665 * more data.
1692 case EXPECT_DATA: /* Expect data */
1695 /* Expect data to start next buffer */
1707 /* spit this data back into the tty driver if this
1838 /* byte3 is broken data byte */
1867 * this function passes data on to the tty flip buffer
1869 static void edge_tty_recv(struct usb_serial_port *port, unsigned char *data,
1874 cnt = tty_insert_flip_string(&port->port, data, length);
1876 dev_err(&port->dev, "%s - dropping data, %d bytes lost\n",
1879 data += cnt;
1920 __u8 lsr, __u8 data)
1937 /* Place LSR data byte into Rx buffer */
1939 edge_tty_recv(edge_port->port, &data, 1);
1962 __u16 length, const __u8 *data)
1983 memcpy(transfer_buffer, data, current_length);
1993 data += current_length;
2009 __u16 length, const __u8 *data)
2026 memcpy(transfer_buffer, data, current_length);
2036 data += current_length;
2051 __u16 addr, __u16 length, __u8 *data)
2078 memcpy(data, transfer_buffer, current_length);
2081 data += current_length;
2357 dev_dbg(dev, "%s - data bits = 5\n", __func__);
2361 dev_dbg(dev, "%s - data bits = 6\n", __func__);
2365 dev_dbg(dev, "%s - data bits = 7\n", __func__);
2370 dev_dbg(dev, "%s - data bits = 8\n", __func__);
2661 rec = (const struct ihex_binrec *)fw->data;
2662 build = (rec->data[2] << 8) | rec->data[3];
2664 dev_dbg(dev, "%s %d.%d.%d\n", fw_info, rec->data[0], rec->data[1], build);
2666 edge_serial->product_info.FirmwareMajorVersion = rec->data[0];
2667 edge_serial->product_info.FirmwareMinorVersion = rec->data[1];
2677 &rec->data[0]);