Home
last modified time | relevance | path

Searched refs:blk_rq_sectors (Results 1 – 25 of 26) sorted by relevance

12

/linux/block/
H A Dblk-merge.c683 if (blk_rq_sectors(req) + bio_sectors(bio) > in ll_back_merge_fn()
702 if (blk_rq_sectors(req) + bio_sectors(bio) > in ll_front_merge_fn()
718 if (blk_rq_sectors(req) + bio_sectors(next->bio) > in req_attempt_discard_merge()
740 if ((blk_rq_sectors(req) + blk_rq_sectors(next)) > in ll_merge_requests_fn()
836 else if (blk_rq_pos(req) + blk_rq_sectors(req) == blk_rq_pos(next)) in blk_try_req_merge()
1002 else if (blk_rq_pos(rq) + blk_rq_sectors(rq) == bio->bi_iter.bi_sector) in blk_try_merge()
1090 if (blk_rq_sectors(req) + bio_sectors(bio) > in bio_attempt_discard_merge()
H A Dbfq-iosched.c235 blk_rq_sectors(rq) < BFQQ_SECT_THR_NONROT))
1059 return blk_rq_sectors(rq); in bfq_serv_to_charge()
1061 return blk_rq_sectors(rq) * bfq_async_charge_factor; in bfq_serv_to_charge()
3453 blk_rq_sectors(rq); in bfq_reset_rate_computation()
3639 bfqd->tot_sectors_dispatched += blk_rq_sectors(rq); in bfq_update_peak_rate()
3644 max_t(u32, blk_rq_sectors(rq), bfqd->last_rq_max_size); in bfq_update_peak_rate()
3646 bfqd->last_rq_max_size = blk_rq_sectors(rq); in bfq_update_peak_rate()
3657 bfqd->last_position = blk_rq_pos(rq) + blk_rq_sectors(rq); in bfq_update_peak_rate()
4130 next_rq ? blk_rq_sectors(next_rq) : 0, in __bfq_bfqq_recalc_budget()
4742 blk_rq_sectors(bfqq->next_rq) >= in bfq_choose_bfqq_for_injection()
[all …]
H A Dblk-flush.c392 if (blk_rq_sectors(rq)) in blk_insert_flush()
H A Delevator.c54 #define rq_hash_key(rq) (blk_rq_pos(rq) + blk_rq_sectors(rq))
H A Dblk-mq.c817 blk_rq_sectors(rq), blk_rq_cur_sectors(rq)); in blk_dump_rq_flags()
1342 rq->stats_sectors = blk_rq_sectors(rq); in blk_mq_start_request()
3181 if (blk_rq_sectors(rq) > max_sectors) { in blk_insert_cloned_request()
3196 __func__, blk_rq_sectors(rq), max_sectors); in blk_insert_cloned_request()
/linux/include/linux/
H A Dblktrace_api.h128 return blk_rq_is_passthrough(rq) ? 0 : blk_rq_sectors(rq); in blk_rq_trace_nr_sectors()
H A Dblk-mq.h1074 static inline unsigned int blk_rq_sectors(const struct request *rq) in blk_rq_sectors() function
/linux/drivers/s390/block/
H A Ddasd_fba.c336 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_fba_build_cp_discard()
453 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_fba_build_cp_regular()
489 block->bp_block, blk_rq_pos(req), blk_rq_sectors(req)); in dasd_fba_build_cp_regular()
H A Ddasd_eckd.c3198 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_ese_format()
3284 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_ese_read()
4673 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_build_cp()
4752 end_sector_offset = (blk_rq_pos(req) + blk_rq_sectors(req)) % in dasd_eckd_build_cp_raw()
4766 last_trk = (blk_rq_pos(req) + blk_rq_sectors(req) - 1) / in dasd_eckd_build_cp_raw()
H A Ddasd.c783 sectors = blk_rq_sectors(req); in dasd_profile_end()
/linux/drivers/block/
H A Dps3disk.c113 __func__, __LINE__, op, n, blk_rq_sectors(req)); in ps3disk_submit_request_sg()
117 sectors = blk_rq_sectors(req) * priv->blocking_factor; in ps3disk_submit_request_sg()
H A Dfloppy.c2440 blk_rq_sectors(current_req)); in copy_buffer()
2443 buffer_max > fsector_t + blk_rq_sectors(current_req)) in copy_buffer()
2445 blk_rq_sectors(current_req)); in copy_buffer()
2453 blk_rq_sectors(current_req)); in copy_buffer()
2592 blk_rq_sectors(current_req)); in make_raw_rw_request()
2644 max_size = blk_rq_sectors(current_req); in make_raw_rw_request()
2653 } else if (in_sector_offset || blk_rq_sectors(current_req) < ssize) { in make_raw_rw_request()
2657 sectors = fsector_t + blk_rq_sectors(current_req); in make_raw_rw_request()
2677 (!in_sector_offset && blk_rq_sectors(current_req) >= ssize)) && in make_raw_rw_request()
H A Dublk_drv.c445 iod->nr_sectors = blk_rq_sectors(req); in ublk_setup_iod_zoned()
1016 iod->nr_sectors = blk_rq_sectors(req); in ublk_setup_iod()
H A Dataflop.c1512 blk_rq_sectors(bd->rq), bd->last)); in ataflop_queue_rq()
H A Dvirtio_blk.c184 range[0].num_sectors = cpu_to_le32(blk_rq_sectors(req)); in virtblk_setup_discard_write_zeroes_erase()
H A Dxen-blkfront.c563 ring_req->u.discard.nr_sectors = blk_rq_sectors(req); in blkif_queue_discard_req()
/linux/drivers/scsi/
H A Dsd.c919 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_unmap_cmnd()
1008 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same16_cmnd()
1035 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same10_cmnd()
1061 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_zeroes_cmnd()
1326 unsigned int nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_read_write_cmnd()
1345 if (blk_rq_pos(rq) + blk_rq_sectors(rq) > get_capacity(rq->q->disk)) { in sd_setup_read_write_cmnd()
1350 if ((blk_rq_pos(rq) & mask) || (blk_rq_sectors(rq) & mask)) { in sd_setup_read_write_cmnd()
1417 blk_rq_sectors(rq))); in sd_setup_read_write_cmnd()
1422 blk_rq_sectors(rq))); in sd_setup_read_write_cmnd()
H A Dsr.c376 "Finishing %u sectors\n", blk_rq_sectors(rq))); in sr_init_command()
443 this_count, blk_rq_sectors(rq))); in sr_init_command()
H A Dvirtio_scsi.c548 blk_rq_sectors(rq))); in virtio_scsi_init_hdr_pi()
552 blk_rq_sectors(rq))); in virtio_scsi_init_hdr_pi()
H A Dscsi_lib.c1060 blk_rq_sectors(req), good_bytes)); in scsi_io_completion()
/linux/drivers/md/
H A Ddm-rq.c441 tio->n_sectors = blk_rq_sectors(orig); in dm_start_request()
/linux/drivers/mmc/core/
H A Dblock.c1229 nr = blk_rq_sectors(req); in mmc_blk_issue_erase_rq()
1285 nr = blk_rq_sectors(req); in mmc_blk_issue_secdiscard_rq()
1464 brq->data.blocks = blk_rq_sectors(req); in mmc_blk_data_prep()
1489 (blk_rq_pos(req) + blk_rq_sectors(req) == in mmc_blk_data_prep()
1539 if (brq->data.blocks != blk_rq_sectors(req)) { in mmc_blk_data_prep()
/linux/drivers/cdrom/
H A Dgdrom.c584 block_cnt = blk_rq_sectors(req)/GD_TO_BLK; in gdrom_readdisk_dma()
/linux/drivers/block/mtip32xx/
H A Dmtip32xx.c2055 unsigned int nsect = blk_rq_sectors(rq); in mtip_hw_submit_io()
3252 if (blk_rq_sectors(rq) <= 64) { in mtip_check_unal_depth()
3253 if ((blk_rq_pos(rq) & 7) || (blk_rq_sectors(rq) & 7)) in mtip_check_unal_depth()
/linux/drivers/nvme/host/
H A Dcore.c847 u32 nlb = blk_rq_sectors(req) >> (ns->head->lba_shift - 9); in nvme_setup_discard()

12