Lines Matching defs:amount

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