Lines Matching full:amount
748 unsigned int amount; in do_read() local
784 * Try to read the remaining amount. in do_read()
788 amount = min(amount_left, FSG_BUFLEN); in do_read()
789 amount = min((loff_t)amount, in do_read()
804 if (amount == 0) { in do_read()
819 amount, &file_offset_tmp); in do_read()
820 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read()
828 } else if (nread < amount) { in do_read()
830 (int)nread, amount); in do_read()
846 if (nread < amount) { in do_read()
879 unsigned int amount; in do_write() local
935 * Try to get the remaining amount, in do_write()
938 amount = min(amount_left_to_req, FSG_BUFLEN); in do_write()
952 usb_offset += amount; in do_write()
953 common->usb_amount_left -= amount; in do_write()
954 amount_left_to_req -= amount; in do_write()
959 * Except at the end of the transfer, amount will be in do_write()
963 set_bulk_out_req_length(common, bh, amount); in do_write()
989 amount = bh->outreq->actual; in do_write()
990 if (curlun->file_length - file_offset < amount) { in do_write()
993 amount, (unsigned long long)file_offset, in do_write()
995 amount = curlun->file_length - file_offset; in do_write()
1001 amount = min(amount, bh->bulk_out_intended_length); in do_write()
1004 amount = round_down(amount, curlun->blksize); in do_write()
1005 if (amount == 0) in do_write()
1012 amount, &file_offset_tmp); in do_write()
1013 VLDBG(curlun, "file write %u @ %llu -> %d\n", amount, in do_write()
1022 } else if (nwritten < amount) { in do_write()
1024 (int)nwritten, amount); in do_write()
1032 if (nwritten < amount) { in do_write()
1095 unsigned int amount; in do_verify() local
1138 * Try to read the remaining amount, but not more than in do_verify()
1142 amount = min(amount_left, FSG_BUFLEN); in do_verify()
1143 amount = min((loff_t)amount, in do_verify()
1145 if (amount == 0) { in do_verify()
1158 amount, &file_offset_tmp); in do_verify()
1159 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_verify()
1168 } else if (nread < amount) { in do_verify()
1170 (int)nread, amount); in do_verify()
1586 u32 amount; in throw_away_data() local
1613 amount = min(common->usb_amount_left, FSG_BUFLEN); in throw_away_data()
1616 * Except at the end of the transfer, amount will be in throw_away_data()
1620 set_bulk_out_req_length(common, bh, amount); in throw_away_data()
1625 common->usb_amount_left -= amount; in throw_away_data()