Lines Matching defs:nr_bytes
873 * @nr_bytes: number of bytes to complete for @req
880 * Passing the result of blk_rq_bytes() as @nr_bytes guarantees
892 unsigned int nr_bytes)
896 trace_block_rq_complete(req, error, nr_bytes);
904 req->q->integrity.profile->complete_fn(req, nr_bytes);
911 if (blk_crypto_rq_has_keyslot(req) && nr_bytes >= blk_rq_bytes(req))
918 trace_block_rq_error(req, error, nr_bytes);
921 blk_account_io_completion(req, nr_bytes);
926 unsigned bio_bytes = min(bio->bi_iter.bi_size, nr_bytes);
936 nr_bytes -= bio_bytes;
938 if (!nr_bytes)