Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 5 of 5) sorted by relevance

/block/
Dbio.c904 void bio_advance(struct bio *bio, unsigned bytes) in bio_advance() argument
907 bio_integrity_advance(bio, bytes); in bio_advance()
909 bio_advance_iter(bio, &bio->bi_iter, bytes); in bio_advance()
958 unsigned bytes; in bio_copy_data() local
983 bytes = min(src_bv.bv_len, dst_bv.bv_len); in bio_copy_data()
990 bytes); in bio_copy_data()
995 bio_advance_iter(src, &src_iter, bytes); in bio_copy_data()
996 bio_advance_iter(dst, &dst_iter, bytes); in bio_copy_data()
1194 unsigned int bytes = PAGE_SIZE; in bio_copy_user_iov() local
1196 bytes -= offset; in bio_copy_user_iov()
[all …]
Dbio-integrity.c280 unsigned int bytes, offset, i; in bio_integrity_prep() local
321 bytes = PAGE_SIZE - offset; in bio_integrity_prep()
326 if (bytes > len) in bio_integrity_prep()
327 bytes = len; in bio_integrity_prep()
330 bytes, offset); in bio_integrity_prep()
335 if (ret < bytes) in bio_integrity_prep()
338 buf += bytes; in bio_integrity_prep()
339 len -= bytes; in bio_integrity_prep()
426 unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9); in bio_integrity_advance() local
428 bvec_iter_advance(bip->bip_vec, &bip->bip_iter, bytes); in bio_integrity_advance()
Dscsi_ioctl.c424 unsigned int in_len, out_len, bytes, opcode, cmdlen; in sg_scsi_ioctl() local
442 bytes = max(in_len, out_len); in sg_scsi_ioctl()
443 if (bytes) { in sg_scsi_ioctl()
444 buffer = kzalloc(bytes, q->bounce_gfp | GFP_USER| __GFP_NOWARN); in sg_scsi_ioctl()
501 if (bytes && blk_rq_map_kern(q, rq, buffer, bytes, __GFP_RECLAIM)) { in sg_scsi_ioctl()
515 bytes = (OMAX_SB_LEN > rq->sense_len) ? in sg_scsi_ioctl()
517 if (copy_to_user(sic->data, rq->sense, bytes)) in sg_scsi_ioctl()
Dblk-core.c1862 static bool should_fail_request(struct hd_struct *part, unsigned int bytes) in should_fail_request() argument
1864 return part->make_it_fail && should_fail(&fail_make_request, bytes); in should_fail_request()
1880 unsigned int bytes) in should_fail_request() argument
2265 unsigned int bytes = 0; in blk_rq_err_bytes() local
2281 bytes += bio->bi_iter.bi_size; in blk_rq_err_bytes()
2285 BUG_ON(blk_rq_bytes(rq) && !bytes); in blk_rq_err_bytes()
2286 return bytes; in blk_rq_err_bytes()
2290 void blk_account_io_completion(struct request *req, unsigned int bytes) in blk_account_io_completion() argument
2299 part_stat_add(cpu, part, sectors[rw], bytes >> 9); in blk_account_io_completion()
Dblk.h112 void blk_account_io_completion(struct request *req, unsigned int bytes);