Lines Matching refs:this_part
685 size_t this_part; in usbtmc_read() local
714 this_part = remaining; in usbtmc_read()
767 if (n_characters > this_part) { in usbtmc_read()
842 int this_part; in usbtmc_write() local
862 this_part = USBTMC_SIZE_IOBUFFER - USBTMC_HEADER_SIZE; in usbtmc_write()
865 this_part = remaining; in usbtmc_write()
874 buffer[4] = this_part >> 0; in usbtmc_write()
875 buffer[5] = this_part >> 8; in usbtmc_write()
876 buffer[6] = this_part >> 16; in usbtmc_write()
877 buffer[7] = this_part >> 24; in usbtmc_write()
883 if (copy_from_user(&buffer[USBTMC_HEADER_SIZE], buf + done, this_part)) { in usbtmc_write()
888 n_bytes = roundup(USBTMC_HEADER_SIZE + this_part, 4); in usbtmc_write()
889 memset(buffer + USBTMC_HEADER_SIZE + this_part, 0, n_bytes - (USBTMC_HEADER_SIZE + this_part)); in usbtmc_write()
916 remaining -= this_part; in usbtmc_write()
917 done += this_part; in usbtmc_write()