Home
last modified time | relevance | path

Searched refs:lba_shift (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/nvme/host/
Dnvme.h500 int lba_shift; member
661 return sector >> (ns->lba_shift - SECTOR_SHIFT); in nvme_sect_to_lba()
669 return lba << (ns->lba_shift - SECTOR_SHIFT); in nvme_lba_to_sect()
Dcore.c320 (unsigned long long)blk_rq_bytes(req) >> ns->lba_shift, in nvme_log_error()
797 u32 nlb = blk_rq_sectors(req) >> (ns->lba_shift - 9); in nvme_setup_discard()
806 u32 nlb = bio->bi_iter.bi_size >> ns->lba_shift; in nvme_setup_discard()
874 cpu_to_le16((blk_rq_bytes(req) >> ns->lba_shift) - 1); in nvme_setup_write_zeroes()
915 cmnd->rw.length = cpu_to_le16((blk_rq_bytes(req) >> ns->lba_shift) - 1); in nvme_setup_rw()
1893 u32 bs = 1U << ns->lba_shift; in nvme_update_disk_info()
1901 if (ns->lba_shift > PAGE_SHIFT || ns->lba_shift < SECTOR_SHIFT) { in nvme_update_disk_info()
2047 ns->lba_shift = id->lbaf[lbaf].ds; in nvme_update_ns_info_block()
Dioctl.c287 length = (io.nblocks + 1) << ns->lba_shift; in nvme_submit_io()