Lines Matching defs:bytes
668 static bool should_fail_request(struct hd_struct *part, unsigned int bytes)
670 return part->make_it_fail && should_fail(&fail_make_request, bytes);
686 unsigned int bytes)
1209 * blk_rq_err_bytes - determine number of bytes till the next failure boundary
1214 * handling. This function determines the number of bytes which
1219 * The number of bytes to fail.
1224 unsigned int bytes = 0;
1240 bytes += bio->bi_iter.bi_size;
1244 BUG_ON(blk_rq_bytes(rq) && !bytes);
1245 return bytes;
1264 static void blk_account_io_completion(struct request *req, unsigned int bytes)
1272 part_stat_add(part, sectors[sgrp], bytes >> 9);
1399 * @nr_bytes: number of bytes to complete @req
1402 * Ends I/O on a number of bytes attached to @req, but doesn't complete
1475 * can find how many bytes remain in the request