Lines Matching defs:nr_bytes
936 * @nr_bytes: number of bytes to complete for @req
943 * Passing the result of blk_rq_bytes() as @nr_bytes guarantees
955 unsigned int nr_bytes)
961 trace_block_rq_complete(req, error, nr_bytes);
968 blk_integrity_complete(req, nr_bytes);
974 if (blk_crypto_rq_has_keyslot(req) && nr_bytes >= blk_rq_bytes(req))
980 trace_block_rq_error(req, error, nr_bytes);
983 blk_account_io_completion(req, nr_bytes);
988 unsigned bio_bytes = min(bio->bi_iter.bi_size, nr_bytes);
1020 nr_bytes -= bio_bytes;
1022 if (!nr_bytes)