Lines Matching refs:buf_len
110 int buf_len; member
1333 int pkt_len, pos, buf_len, tmp; in usbtouch_process_multi() local
1336 if (unlikely(usbtouch->buf_len)) { in usbtouch_process_multi()
1339 usbtouch->buffer, usbtouch->buf_len); in usbtouch_process_multi()
1350 if (usbtouch->buf_len + append >= usbtouch->type->rept_size) in usbtouch_process_multi()
1352 memcpy(usbtouch->buffer + usbtouch->buf_len, pkt, append); in usbtouch_process_multi()
1353 usbtouch->buf_len += append; in usbtouch_process_multi()
1356 usbtouch->buffer, usbtouch->buf_len); in usbtouch_process_multi()
1362 tmp = pkt_len - usbtouch->buf_len; in usbtouch_process_multi()
1363 if (usbtouch->buf_len + tmp >= usbtouch->type->rept_size) in usbtouch_process_multi()
1365 memcpy(usbtouch->buffer + usbtouch->buf_len, pkt, tmp); in usbtouch_process_multi()
1369 buf_len = len - tmp; in usbtouch_process_multi()
1372 buf_len = len; in usbtouch_process_multi()
1377 while (pos < buf_len) { in usbtouch_process_multi()
1380 buf_len - pos); in usbtouch_process_multi()
1389 if (likely((pkt_len > 0) && (pkt_len <= buf_len - pos))) { in usbtouch_process_multi()
1393 memcpy(usbtouch->buffer, buffer + pos, buf_len - pos); in usbtouch_process_multi()
1394 usbtouch->buf_len = buf_len - pos; in usbtouch_process_multi()
1401 usbtouch->buf_len = 0; in usbtouch_process_multi()