Lines Matching defs:amount

705 	unsigned int		amount;
739 * Try to read the remaining amount.
746 amount = min(amount_left, FSG_BUFLEN);
749 amount = min(amount, (unsigned int) PAGE_CACHE_SIZE -
762 if (amount == 0) {
774 lldiv(amount, curlun->blksize),
781 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount,
789 } else if (nread < amount) {
791 (int) nread, amount);
801 if (nread < amount) {
833 unsigned int amount;
877 * Try to get the remaining amount.
885 amount = min(amount_left_to_req, FSG_BUFLEN);
888 amount = min(amount,
891 if (amount == 0) {
898 amount -= (amount & (curlun->blksize - 1));
899 if (amount == 0) {
908 usb_offset += amount;
909 common->usb_amount_left -= amount;
910 amount_left_to_req -= amount;
914 /* amount is always divisible by 512, hence by
916 bh->outreq->length = amount;
917 bh->bulk_out_intended_length = amount;
943 amount = bh->outreq->actual;
948 lldiv(amount, curlun->blksize),
954 VLDBG(curlun, "file write %u @ %llu -> %d\n", amount,
962 } else if (nwritten < amount) {
964 (int) nwritten, amount);
973 if (nwritten < amount) {
974 printf("nwritten:%zd amount:%u\n", nwritten,
975 amount);
1015 unsigned int amount;
1048 * Try to read the remaining amount, but not more than
1053 amount = min(amount_left, FSG_BUFLEN);
1054 if (amount == 0) {
1064 lldiv(amount, curlun->blksize),
1070 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount,
1077 } else if (nread < amount) {
1079 (int) nread, amount);
1465 u32 amount;
1491 amount = min(common->usb_amount_left, FSG_BUFLEN);
1493 /* amount is always divisible by 512, hence by
1495 bh->outreq->length = amount;
1496 bh->bulk_out_intended_length = amount;
1504 common->usb_amount_left -= amount;