Home
last modified time | relevance | path

Searched refs:blk_rq_pos (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/include/linux/
Dt10-pi.h48 return blk_rq_pos(rq) >> (shift - SECTOR_SHIFT) & 0xffffffff; in t10_pi_ref_tag()
79 return lower_48_bits(blk_rq_pos(rq) >> (shift - SECTOR_SHIFT)); in ext_pi_ref_tag()
Dblktrace_api.h117 if (blk_rq_is_passthrough(rq) || blk_rq_pos(rq) == (sector_t)-1) in blk_rq_trace_sector()
119 return blk_rq_pos(rq); in blk_rq_trace_sector()
Dblk-mq.h1030 static inline sector_t blk_rq_pos(const struct request *rq) in blk_rq_pos() function
1150 return disk_zone_no(rq->q->disk, blk_rq_pos(rq)); in blk_rq_zone_no()
1155 return disk_zone_is_seq(rq->q->disk, blk_rq_pos(rq)); in blk_rq_zone_is_seq()
/linux-6.1.9/block/
Delevator.c54 #define rq_hash_key(rq) (blk_rq_pos(rq) + blk_rq_sectors(rq))
269 if (blk_rq_pos(rq) < blk_rq_pos(__rq)) in elv_rb_add()
271 else if (blk_rq_pos(rq) >= blk_rq_pos(__rq)) in elv_rb_add()
296 if (sector < blk_rq_pos(rq)) in elv_rb_find()
298 else if (sector > blk_rq_pos(rq)) in elv_rb_find()
389 __rq = elv_rqhash_find(q, blk_rq_pos(rq)); in elv_attempt_insert_merge()
Dblk-merge.c642 blk_rq_get_max_sectors(req, blk_rq_pos(req))) { in ll_back_merge_fn()
677 blk_rq_get_max_sectors(req, blk_rq_pos(req))) in req_attempt_discard_merge()
699 blk_rq_get_max_sectors(req, blk_rq_pos(req))) in ll_merge_requests_fn()
764 else if (blk_rq_pos(req) + blk_rq_sectors(req) == blk_rq_pos(next)) in blk_try_req_merge()
921 else if (blk_rq_pos(rq) + blk_rq_sectors(rq) == bio->bi_iter.bi_sector) in blk_try_merge()
923 else if (blk_rq_pos(rq) - bio_sectors(bio) == bio->bi_iter.bi_sector) in blk_try_merge()
1002 blk_rq_get_max_sectors(req, blk_rq_pos(req))) in bio_attempt_discard_merge()
Dmq-deadline.c304 return blk_rq_pos(prev) + blk_rq_sectors(prev) == blk_rq_pos(rq); in deadline_is_seq_write()
314 sector_t pos = blk_rq_pos(rq); in deadline_skip_seq_writes()
318 if (blk_rq_pos(rq) != pos + skipped_sectors) in deadline_skip_seq_writes()
733 BUG_ON(sector != blk_rq_pos(__rq)); in dd_request_merge()
Dbfq-iosched.c507 s1 = blk_rq_pos(rq1); in bfq_choose_req()
508 s2 = blk_rq_pos(rq2); in bfq_choose_req()
727 if (sector > blk_rq_pos(bfqq->next_rq)) in bfq_rq_pos_tree_lookup()
729 else if (sector < blk_rq_pos(bfqq->next_rq)) in bfq_rq_pos_tree_lookup()
793 blk_rq_pos(bfqq->next_rq), &parent, &p); in bfq_pos_tree_add_move()
1071 return bfq_choose_req(bfqd, next, prev, blk_rq_pos(last)); in bfq_find_next_rq()
2377 return abs(blk_rq_pos(rq) - last_pos); in get_sdist()
2525 blk_rq_pos(req) < in bfq_request_merged()
2526 blk_rq_pos(container_of(rb_prev(&req->rb_node), in bfq_request_merged()
2681 return blk_rq_pos(io_struct); in bfq_io_struct_pos()
[all …]
/linux-6.1.9/include/scsi/
Dscsi_cmnd.h219 return blk_rq_pos(scsi_cmd_to_rq(scmd)); in scsi_get_sector()
226 return blk_rq_pos(scsi_cmd_to_rq(scmd)) >> shift; in scsi_get_lba()
/linux-6.1.9/drivers/s390/block/
Ddasd_fba.c338 first_rec = blk_rq_pos(req) >> block->s2b_shift; in dasd_fba_build_cp_discard()
340 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_fba_build_cp_discard()
455 first_rec = blk_rq_pos(req) >> block->s2b_shift; in dasd_fba_build_cp_regular()
457 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_fba_build_cp_regular()
493 block->bp_block, blk_rq_pos(req), blk_rq_sectors(req)); in dasd_fba_build_cp_regular()
Ddasd_diag.c530 first_rec = blk_rq_pos(req) >> block->s2b_shift; in dasd_diag_build_cp()
532 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_diag_build_cp()
Ddasd_eckd.c3206 first_trk = blk_rq_pos(req) >> block->s2b_shift; in dasd_eckd_ese_format()
3209 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_ese_format()
3292 first_trk = first_blk = blk_rq_pos(req) >> block->s2b_shift; in dasd_eckd_ese_read()
3295 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_ese_read()
4659 first_rec = first_trk = blk_rq_pos(req) >> block->s2b_shift; in dasd_eckd_build_cp()
4662 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_build_cp()
4740 start_padding_sectors = blk_rq_pos(req) % DASD_RAW_SECTORS_PER_TRACK; in dasd_eckd_build_cp_raw()
4741 end_sector_offset = (blk_rq_pos(req) + blk_rq_sectors(req)) % in dasd_eckd_build_cp_raw()
4754 first_trk = blk_rq_pos(req) / DASD_RAW_SECTORS_PER_TRACK; in dasd_eckd_build_cp_raw()
4755 last_trk = (blk_rq_pos(req) + blk_rq_sectors(req) - 1) / in dasd_eckd_build_cp_raw()
[all …]
/linux-6.1.9/drivers/block/
Dz2ram.c72 unsigned long start = blk_rq_pos(req) << 9; in z2_queue_rq()
80 (unsigned long long)blk_rq_pos(req), in z2_queue_rq()
Dswim3.c348 fs->req_cyl = ((long)blk_rq_pos(req)) / fs->secpercyl; in swim3_queue_rq()
349 x = ((long)blk_rq_pos(req)) % fs->secpercyl; in swim3_queue_rq()
650 (long)blk_rq_pos(fs->cur_req)); in xfer_timeout()
768 (long)blk_rq_pos(req), err); in swim3_interrupt()
Dvirtio_blk.c157 range[0].sector = cpu_to_le64(blk_rq_pos(req)); in virtblk_setup_discard_write_zeroes_erase()
226 blk_rq_pos(req)); in virtblk_setup_cmd()
231 blk_rq_pos(req)); in virtblk_setup_cmd()
Dps3disk.c116 start_sector = blk_rq_pos(req) * priv->blocking_factor; in ps3disk_submit_request_sg()
Dfloppy.c2294 block = current_count_sectors + blk_rq_pos(req); in request_done()
2305 write_errors[current_drive].first_error_sector = blk_rq_pos(req); in request_done()
2308 write_errors[current_drive].last_error_sector = blk_rq_pos(req); in request_done()
2567 raw_cmd->cmd[TRACK] = (int)blk_rq_pos(current_req) / max_sector; in make_raw_rw_request()
2568 fsector_t = (int)blk_rq_pos(current_req) % max_sector; in make_raw_rw_request()
2861 current_req, (long)blk_rq_pos(current_req), in floppy_queue_rq()
/linux-6.1.9/drivers/md/
Ddm-rq.c132 blk_rq_pos(orig), tio->n_sectors, true, in rq_end_stats()
383 blk_rq_pos(rq)); in map_request()
440 blk_rq_pos(orig), tio->n_sectors, false, 0, in dm_start_request()
/linux-6.1.9/include/trace/events/
Dblock.h120 __entry->sector = blk_rq_pos(rq);
539 __entry->sector = blk_rq_pos(rq);
/linux-6.1.9/drivers/scsi/
Dsr.c328 good_bytes = (error_sector - blk_rq_pos(rq)) << 9; in sr_done()
427 if (((unsigned int)blk_rq_pos(rq) % (s_size >> 9)) || in sr_init_command()
443 block = (unsigned int)blk_rq_pos(rq) / (s_size >> 9); in sr_init_command()
Dsd.c839 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_unmap_cmnd()
875 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same16_cmnd()
907 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same10_cmnd()
938 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_zeroes_cmnd()
1118 sector_t lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_read_write_cmnd()
1138 if (blk_rq_pos(rq) + blk_rq_sectors(rq) > get_capacity(rq->q->disk)) { in sd_setup_read_write_cmnd()
1143 if ((blk_rq_pos(rq) & mask) || (blk_rq_sectors(rq) & mask)) { in sd_setup_read_write_cmnd()
1210 (unsigned long long)blk_rq_pos(rq), in sd_setup_read_write_cmnd()
1897 start_lba = sectors_to_logical(sdev, blk_rq_pos(req)); in sd_completed_bytes()
Dsd_zbc.c329 sector_t sector = blk_rq_pos(rq); in sd_zbc_cmnd_checks()
475 sector_t sector = blk_rq_pos(rq); in sd_zbc_setup_zone_mgmt_cmnd()
/linux-6.1.9/drivers/nvme/host/
Dzns.c243 c->zms.slba = cpu_to_le64(nvme_sect_to_lba(ns, blk_rq_pos(req))); in nvme_setup_zone_mgmt_send()
/linux-6.1.9/drivers/mmc/core/
Dblock.c1117 from = blk_rq_pos(req); in mmc_blk_issue_erase_rq()
1172 from = blk_rq_pos(req); in mmc_blk_issue_secdiscard_rq()
1251 if (!IS_ALIGNED(blk_rq_pos(req), card->ext_csd.rel_sectors)) in mmc_apply_rel_rw()
1353 brq->data.blk_addr = blk_rq_pos(req); in mmc_blk_data_prep()
1377 (blk_rq_pos(req) + blk_rq_sectors(req) == in mmc_blk_data_prep()
1617 brq->cmd.arg = blk_rq_pos(req); in mmc_blk_rw_rq_prep()
/linux-6.1.9/drivers/mtd/
Dmtd_blkdevs.c54 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request()
/linux-6.1.9/drivers/mtd/ubi/
Dblock.c192 pos = blk_rq_pos(req) << 9; in ubiblock_read()

12