/linux-6.1.9/include/linux/ |
D | t10-pi.h | 48 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()
|
D | blktrace_api.h | 117 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()
|
D | blk-mq.h | 1030 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/ |
D | elevator.c | 54 #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()
|
D | blk-merge.c | 642 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()
|
D | mq-deadline.c | 304 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()
|
D | bfq-iosched.c | 507 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/ |
D | scsi_cmnd.h | 219 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/ |
D | dasd_fba.c | 338 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()
|
D | dasd_diag.c | 530 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()
|
D | dasd_eckd.c | 3206 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/ |
D | z2ram.c | 72 unsigned long start = blk_rq_pos(req) << 9; in z2_queue_rq() 80 (unsigned long long)blk_rq_pos(req), in z2_queue_rq()
|
D | swim3.c | 348 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()
|
D | virtio_blk.c | 157 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()
|
D | ps3disk.c | 116 start_sector = blk_rq_pos(req) * priv->blocking_factor; in ps3disk_submit_request_sg()
|
D | floppy.c | 2294 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/ |
D | dm-rq.c | 132 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/ |
D | block.h | 120 __entry->sector = blk_rq_pos(rq); 539 __entry->sector = blk_rq_pos(rq);
|
/linux-6.1.9/drivers/scsi/ |
D | sr.c | 328 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()
|
D | sd.c | 839 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()
|
D | sd_zbc.c | 329 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/ |
D | zns.c | 243 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/ |
D | block.c | 1117 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/ |
D | mtd_blkdevs.c | 54 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request()
|
/linux-6.1.9/drivers/mtd/ubi/ |
D | block.c | 192 pos = blk_rq_pos(req) << 9; in ubiblock_read()
|