Lines Matching refs:data
71 * packets data */
105 /* the real size of the data array, always > 0 */
107 __u8 data[];
227 * (if yes, all queued data will be dropped)
243 char *data, unsigned int actual_length)
246 usb_serial_debug_data(&port->dev, __func__, actual_length, data);
247 tty_insert_flip_string(&port->port, data, actual_length);
261 unsigned char *data, unsigned int data_length)
268 /* process only packets containing data ... */
276 memcpy(pkt->data, data, data_length);
290 /* in serial mode, if someone is waiting for data from
315 /* free up all queued data */
380 * (including pkt-id, data-length a. cksum)
431 queued data. */
445 * Called for data received from tty
447 * buf contains the data read, it may span more than one packet or even
459 * if the input is an abort command, drop all queued data.
473 /* skip: if set, skip incoming data until possible start of
477 __u8 data;
494 data = *(buf+offs);
497 if (data == DLE) {
503 dest[size++] = data;
508 } else if (data == ETX) {
512 data = dest[GSP_INITIAL_OFFSET];
514 if (data == ACK) {
517 } else if (data == NAK) {
522 data);
530 dest[size++] = data;
539 dest[size++] = data;
657 /* can't add stuffing DLEs in place, move data to end
701 * Process the next pending data packet - if there is one
710 result = gsp_send(garmin_data_p, pkt->data, pkt->size);
728 * Called for data received from tty
730 * The input data is expected to be in garmin usb-packet format.
732 * buf contains the data read, it may span more than one packet
745 /* if buffer contains header, copy rest of data */
785 flush all queued data. */
849 * clear all cached data
855 /* flush all queued data */
1126 unsigned char *data, unsigned data_length,
1138 put the received data in the input queue, otherwise
1141 pkt_add(garmin_data_p, data, data_length);
1143 getLayerId(data) == GARMIN_LAYERID_APPL)) {
1150 pkt_add(garmin_data_p, data, data_length);
1152 send_to_tty(garmin_data_p->port, data,
1166 unsigned char *data = urb->transfer_buffer;
1176 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data);
1178 garmin_read_process(garmin_data_p, data, urb->actual_length, 1);
1200 dev_dbg(&port->dev, "%s - end of bulk data\n", __func__);
1214 unsigned char *data = urb->transfer_buffer;
1238 memcmp(data, GARMIN_BULK_IN_AVAIL_REPLY,
1241 dev_dbg(&port->dev, "%s - bulk data available.\n", __func__);
1245 /* bulk data available */
1265 && memcmp(data, GARMIN_START_SESSION_REPLY,
1274 (__le32 *)(data+GARMIN_PKTHDR_LENGTH));
1280 garmin_read_process(garmin_data_p, data, urb->actual_length, 0);
1292 * and then sets a timer to call itself again until all queued data
1303 send_to_tty(garmin_data_p->port, pkt->data, pkt->size);
1322 /* set flag, data received will be put into a queue
1340 /* in native mode send queued data to tty, in