Lines Matching full:amount
1161 unsigned int amount; in do_read() local
1193 * Try to read the remaining amount. in do_read()
1197 amount = min((unsigned int) amount_left, mod_data.buflen); in do_read()
1198 amount = min((loff_t) amount, in do_read()
1211 if (amount == 0) { in do_read()
1225 amount, &file_offset_tmp); in do_read()
1226 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read()
1236 } else if (nread < amount) { in do_read()
1238 (int) nread, amount); in do_read()
1253 if (nread < amount) { in do_read()
1284 unsigned int amount; in do_write() local
1335 * Try to get the remaining amount, in do_write()
1338 amount = min(amount_left_to_req, mod_data.buflen); in do_write()
1351 usb_offset += amount; in do_write()
1352 fsg->usb_amount_left -= amount; in do_write()
1353 amount_left_to_req -= amount; in do_write()
1357 /* Except at the end of the transfer, amount will be in do_write()
1361 set_bulk_out_req_length(fsg, bh, amount); in do_write()
1385 amount = bh->outreq->actual; in do_write()
1386 if (curlun->file_length - file_offset < amount) { in do_write()
1389 amount, (unsigned long long) file_offset, in do_write()
1391 amount = curlun->file_length - file_offset; in do_write()
1397 amount = min(amount, bh->bulk_out_intended_length); in do_write()
1400 amount = round_down(amount, curlun->blksize); in do_write()
1401 if (amount == 0) in do_write()
1408 amount, &file_offset_tmp); in do_write()
1409 VLDBG(curlun, "file write %u @ %llu -> %d\n", amount, in do_write()
1419 } else if (nwritten < amount) { in do_write()
1421 (int) nwritten, amount); in do_write()
1429 if (nwritten < amount) { in do_write()
1491 unsigned int amount; in do_verify() local
1530 * Try to read the remaining amount, but not more than in do_verify()
1534 amount = min((unsigned int) amount_left, mod_data.buflen); in do_verify()
1535 amount = min((loff_t) amount, in do_verify()
1537 if (amount == 0) { in do_verify()
1549 amount, &file_offset_tmp); in do_verify()
1550 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_verify()
1560 } else if (nread < amount) { in do_verify()
1562 (int) nread, amount); in do_verify()
1969 u32 amount; in throw_away_data() local
1993 amount = min(fsg->usb_amount_left, in throw_away_data()
1996 /* Except at the end of the transfer, amount will be in throw_away_data()
2000 set_bulk_out_req_length(fsg, bh, amount); in throw_away_data()
2004 fsg->usb_amount_left -= amount; in throw_away_data()