Searched refs:lba_shift (Results 1 – 3 of 3) sorted by relevance
452 int lba_shift; member576 return sector >> (ns->lba_shift - SECTOR_SHIFT); in nvme_sect_to_lba()584 return lba << (ns->lba_shift - SECTOR_SHIFT); in nvme_lba_to_sect()
728 u32 nlb = blk_rq_sectors(req) >> (ns->lba_shift - 9); in nvme_setup_discard()737 u32 nlb = bio->bi_iter.bi_size >> ns->lba_shift; in nvme_setup_discard()780 cpu_to_le16((blk_rq_bytes(req) >> ns->lba_shift) - 1); in nvme_setup_write_zeroes()807 cmnd->rw.length = cpu_to_le16((blk_rq_bytes(req) >> ns->lba_shift) - 1); in nvme_setup_rw()1563 length = (io.nblocks + 1) << ns->lba_shift; in nvme_submit_io()1995 *phys_bs = ns->sws * (1 << ns->lba_shift); in nvme_setup_streams_ns()2069 unsigned short bs = 1 << ns->lba_shift; in nvme_update_disk_info()2077 if (ns->lba_shift > PAGE_SHIFT || ns->lba_shift < SECTOR_SHIFT) { in nvme_update_disk_info()2182 ns->lba_shift = id->lbaf[lbaf].ds; in nvme_update_ns_info()
872 length = (vio.nppas + 1) << ns->lba_shift; in nvme_nvm_submit_vio()962 geo->csecs = 1 << ns->lba_shift; in nvme_nvm_register()