/linux-6.6.21/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 | 121 if (blk_rq_is_passthrough(rq) || blk_rq_pos(rq) == (sector_t)-1) in blk_rq_trace_sector() 123 return blk_rq_pos(rq); in blk_rq_trace_sector()
|
D | blk-mq.h | 1031 static inline sector_t blk_rq_pos(const struct request *rq) in blk_rq_pos() function 1151 return disk_zone_no(rq->q->disk, blk_rq_pos(rq)); in blk_rq_zone_no() 1156 return disk_zone_is_seq(rq->q->disk, blk_rq_pos(rq)); in blk_rq_zone_is_seq()
|
/linux-6.6.21/block/ |
D | elevator.c | 54 #define rq_hash_key(rq) (blk_rq_pos(rq) + blk_rq_sectors(rq)) 237 if (blk_rq_pos(rq) < blk_rq_pos(__rq)) in elv_rb_add() 239 else if (blk_rq_pos(rq) >= blk_rq_pos(__rq)) in elv_rb_add() 264 if (sector < blk_rq_pos(rq)) in elv_rb_find() 266 else if (sector > blk_rq_pos(rq)) in elv_rb_find() 357 __rq = elv_rqhash_find(q, blk_rq_pos(rq)); in elv_attempt_insert_merge()
|
D | mq-deadline.c | 183 if (blk_rq_pos(rq) >= pos) { in deadline_from_pos() 321 return blk_rq_pos(prev) + blk_rq_sectors(prev) == blk_rq_pos(rq); in deadline_is_seq_write() 331 sector_t pos = blk_rq_pos(rq); in deadline_skip_seq_writes() 336 } while (rq && blk_rq_pos(rq) == pos); in deadline_skip_seq_writes() 370 rb_rq = deadline_from_pos(per_prio, data_dir, blk_rq_pos(rq)); in deadline_fifo_request() 371 if (rb_rq && blk_rq_pos(rb_rq) < blk_rq_pos(rq)) in deadline_fifo_request() 550 dd->per_prio[prio].latest_pos[data_dir] = blk_rq_pos(rq); in __dd_dispatch_request() 758 BUG_ON(sector != blk_rq_pos(__rq)); in dd_request_merge()
|
D | blk-merge.c | 646 blk_rq_get_max_sectors(req, blk_rq_pos(req))) { in ll_back_merge_fn() 681 blk_rq_get_max_sectors(req, blk_rq_pos(req))) in req_attempt_discard_merge() 703 blk_rq_get_max_sectors(req, blk_rq_pos(req))) in ll_merge_requests_fn() 795 else if (blk_rq_pos(req) + blk_rq_sectors(req) == blk_rq_pos(next)) in blk_try_req_merge() 954 else if (blk_rq_pos(rq) + blk_rq_sectors(rq) == bio->bi_iter.bi_sector) in blk_try_merge() 956 else if (blk_rq_pos(rq) - bio_sectors(bio) == bio->bi_iter.bi_sector) in blk_try_merge() 1039 blk_rq_get_max_sectors(req, blk_rq_pos(req))) in bio_attempt_discard_merge()
|
D | bfq-iosched.c | 518 s1 = blk_rq_pos(rq1); in bfq_choose_req() 519 s2 = blk_rq_pos(rq2); in bfq_choose_req() 747 if (sector > blk_rq_pos(bfqq->next_rq)) in bfq_rq_pos_tree_lookup() 749 else if (sector < blk_rq_pos(bfqq->next_rq)) in bfq_rq_pos_tree_lookup() 813 blk_rq_pos(bfqq->next_rq), &parent, &p); in bfq_pos_tree_add_move() 1039 return bfq_choose_req(bfqd, next, prev, blk_rq_pos(last)); in bfq_find_next_rq() 2375 return abs(blk_rq_pos(rq) - last_pos); in get_sdist() 2508 blk_rq_pos(req) < in bfq_request_merged() 2509 blk_rq_pos(container_of(rb_prev(&req->rb_node), in bfq_request_merged() 2669 return blk_rq_pos(io_struct); in bfq_io_struct_pos() [all …]
|
/linux-6.6.21/include/scsi/ |
D | scsi_cmnd.h | 225 return blk_rq_pos(scsi_cmd_to_rq(scmd)); in scsi_get_sector() 232 return blk_rq_pos(scsi_cmd_to_rq(scmd)) >> shift; in scsi_get_lba()
|
/linux-6.6.21/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 | 3209 first_trk = blk_rq_pos(req) >> block->s2b_shift; in dasd_eckd_ese_format() 3212 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_ese_format() 3295 first_trk = first_blk = blk_rq_pos(req) >> block->s2b_shift; in dasd_eckd_ese_read() 3298 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_ese_read() 4689 first_rec = first_trk = blk_rq_pos(req) >> block->s2b_shift; in dasd_eckd_build_cp() 4692 (blk_rq_pos(req) + blk_rq_sectors(req) - 1) >> block->s2b_shift; in dasd_eckd_build_cp() 4770 start_padding_sectors = blk_rq_pos(req) % DASD_RAW_SECTORS_PER_TRACK; in dasd_eckd_build_cp_raw() 4771 end_sector_offset = (blk_rq_pos(req) + blk_rq_sectors(req)) % in dasd_eckd_build_cp_raw() 4784 first_trk = blk_rq_pos(req) / DASD_RAW_SECTORS_PER_TRACK; in dasd_eckd_build_cp_raw() 4785 last_trk = (blk_rq_pos(req) + blk_rq_sectors(req) - 1) / in dasd_eckd_build_cp_raw() [all …]
|
/linux-6.6.21/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 | virtio_blk.c | 185 range[0].sector = cpu_to_le64(blk_rq_pos(req)); in virtblk_setup_discard_write_zeroes_erase() 257 sector = blk_rq_pos(req); in virtblk_setup_cmd() 261 sector = blk_rq_pos(req); in virtblk_setup_cmd() 278 sector = blk_rq_pos(req); in virtblk_setup_cmd() 282 sector = blk_rq_pos(req); in virtblk_setup_cmd() 286 sector = blk_rq_pos(req); in virtblk_setup_cmd() 290 sector = blk_rq_pos(req); in virtblk_setup_cmd() 295 sector = blk_rq_pos(req); in virtblk_setup_cmd()
|
D | swim3.c | 347 fs->req_cyl = ((long)blk_rq_pos(req)) / fs->secpercyl; in swim3_queue_rq() 348 x = ((long)blk_rq_pos(req)) % fs->secpercyl; in swim3_queue_rq() 649 (long)blk_rq_pos(fs->cur_req)); in xfer_timeout() 767 (long)blk_rq_pos(req), err); in swim3_interrupt()
|
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.6.21/drivers/md/ |
D | dm-rq.c | 134 blk_rq_pos(orig), tio->n_sectors, true, in rq_end_stats() 385 blk_rq_pos(rq)); in map_request() 443 blk_rq_pos(orig), tio->n_sectors, false, 0, in dm_start_request()
|
/linux-6.6.21/include/trace/events/ |
D | block.h | 122 __entry->sector = blk_rq_pos(rq); 567 __entry->sector = blk_rq_pos(rq);
|
/linux-6.6.21/drivers/scsi/ |
D | sr.c | 331 good_bytes = (error_sector - blk_rq_pos(rq)) << 9; in sr_done() 430 if (((unsigned int)blk_rq_pos(rq) % (s_size >> 9)) || in sr_init_command() 446 block = (unsigned int)blk_rq_pos(rq) / (s_size >> 9); in sr_init_command()
|
D | sd.c | 893 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_unmap_cmnd() 924 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same16_cmnd() 951 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same10_cmnd() 977 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_zeroes_cmnd() 1188 sector_t lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_read_write_cmnd() 1209 if (blk_rq_pos(rq) + blk_rq_sectors(rq) > get_capacity(rq->q->disk)) { in sd_setup_read_write_cmnd() 1214 if ((blk_rq_pos(rq) & mask) || (blk_rq_sectors(rq) & mask)) { in sd_setup_read_write_cmnd() 1282 (unsigned long long)blk_rq_pos(rq), in sd_setup_read_write_cmnd() 2089 start_lba = sectors_to_logical(sdev, blk_rq_pos(req)); in sd_completed_bytes()
|
D | sd_zbc.c | 334 sector_t sector = blk_rq_pos(rq); in sd_zbc_cmnd_checks() 481 sector_t sector = blk_rq_pos(rq); in sd_zbc_setup_zone_mgmt_cmnd()
|
/linux-6.6.21/drivers/nvme/host/ |
D | zns.c | 242 c->zms.slba = cpu_to_le64(nvme_sect_to_lba(ns, blk_rq_pos(req))); in nvme_setup_zone_mgmt_send()
|
/linux-6.6.21/drivers/mmc/core/ |
D | block.c | 1163 from = blk_rq_pos(req); in mmc_blk_issue_erase_rq() 1218 from = blk_rq_pos(req); in mmc_blk_issue_secdiscard_rq() 1297 if (!IS_ALIGNED(blk_rq_pos(req), card->ext_csd.rel_sectors)) in mmc_apply_rel_rw() 1399 brq->data.blk_addr = blk_rq_pos(req); in mmc_blk_data_prep() 1423 (blk_rq_pos(req) + blk_rq_sectors(req) == in mmc_blk_data_prep() 1665 brq->cmd.arg = blk_rq_pos(req); in mmc_blk_rw_rq_prep()
|
/linux-6.6.21/drivers/mtd/ubi/ |
D | block.c | 184 u64 pos = blk_rq_pos(req) << 9; in ubiblock_read()
|
/linux-6.6.21/drivers/mtd/ |
D | mtd_blkdevs.c | 54 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request()
|