Lines Matching refs:firsthalf
1097 int firsthalf;
1130 firsthalf = min (bytesleft, copySize);
1131 dbg("%s - copy %d bytes of %d into fifo ", __FUNCTION__, firsthalf, bytesleft);
1134 memcpy(&fifo->fifo[fifo->head], data, firsthalf);
1135 usb_serial_debug_data(debug, &port->dev, __FUNCTION__, firsthalf, &fifo->fifo[fifo->head]);
1138 fifo->head += firsthalf;
1139 fifo->count += firsthalf;
1146 secondhalf = copySize-firsthalf;
1150 memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf);
1190 int firsthalf;
1240 firsthalf = min (bytesleft, count);
1241 memcpy(&buffer[2], &fifo->fifo[fifo->tail], firsthalf);
1242 fifo->tail += firsthalf;
1243 fifo->count -= firsthalf;
1248 secondhalf = count-firsthalf;
1250 memcpy(&buffer[2+firsthalf], &fifo->fifo[fifo->tail], secondhalf);