Lines Matching refs:amount
596 unsigned int amount; in do_read() local
639 amount = min(amount_left, FSG_BUFLEN); in do_read()
640 amount = min((loff_t)amount, in do_read()
653 if (amount == 0) { in do_read()
666 nread = kernel_read(curlun->filp, bh->buf, amount, in do_read()
668 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read()
676 } else if (nread < amount) { in do_read()
678 (int)nread, amount); in do_read()
694 if (nread < amount) { in do_read()
727 unsigned int amount; in do_write() local
789 amount = min(amount_left_to_req, FSG_BUFLEN); in do_write()
803 usb_offset += amount; in do_write()
804 common->usb_amount_left -= amount; in do_write()
805 amount_left_to_req -= amount; in do_write()
814 set_bulk_out_req_length(common, bh, amount); in do_write()
844 amount = bh->outreq->actual; in do_write()
845 if (curlun->file_length - file_offset < amount) { in do_write()
847 amount, (unsigned long long)file_offset, in do_write()
849 amount = curlun->file_length - file_offset; in do_write()
856 amount = min(amount, bh->bulk_out_intended_length); in do_write()
859 amount = round_down(amount, curlun->blksize); in do_write()
860 if (amount == 0) in do_write()
865 nwritten = kernel_write(curlun->filp, bh->buf, amount, in do_write()
867 VLDBG(curlun, "file write %u @ %llu -> %d\n", amount, in do_write()
876 } else if (nwritten < amount) { in do_write()
878 (int) nwritten, amount); in do_write()
886 if (nwritten < amount) { in do_write()
942 unsigned int amount; in do_verify() local
989 amount = min(amount_left, FSG_BUFLEN); in do_verify()
990 amount = min((loff_t)amount, in do_verify()
992 if (amount == 0) { in do_verify()
1003 nread = kernel_read(curlun->filp, bh->buf, amount, in do_verify()
1005 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_verify()
1014 } else if (nread < amount) { in do_verify()
1016 (int)nread, amount); in do_verify()
1450 u32 amount; in throw_away_data() local
1461 amount = min(common->usb_amount_left, FSG_BUFLEN); in throw_away_data()
1468 set_bulk_out_req_length(common, bh2, amount); in throw_away_data()
1473 common->usb_amount_left -= amount; in throw_away_data()