Searched refs:curread (Results 1 – 1 of 1) sorted by relevance
817 unsigned long curread = 0; in ptp_read_func() local824 while (curread < size) { in ptp_read_func()827 printf("Remaining size to read: 0x%04lx bytes\n", size - curread); in ptp_read_func()830 if (size - curread < CONTEXT_BLOCK_SIZE) in ptp_read_func()833 toread = size - curread; in ptp_read_func()840 else if (curread == 0) in ptp_read_func()849 (unsigned int) toread, (unsigned int) (size-curread)); in ptp_read_func()886 curread += result; in ptp_read_func()909 if (readbytes) *readbytes = curread; in ptp_read_func()915 curread % ptp_usb->outep_maxpacket == 0) { in ptp_read_func()