Searched refs:flbas (Results 1 – 12 of 12) sorted by relevance
640 u8 flbas; in nvme_blk_probe() local652 flbas = id->flbas & NVME_NS_FLBAS_LBA_MASK; in nvme_blk_probe()653 ns->flbas = flbas; in nvme_blk_probe()654 ns->lba_shift = id->lbaf[flbas].ds; in nvme_blk_probe()
72 if (i == ns->flbas) in print_formats()
99 __u8 flbas; member642 u8 flbas; member
38 ns->lbaf = id_ns->lbaf[NVME_ID_NS_FLBAS_INDEX(id_ns->flbas)]; in nvme_ns_init_format()106 id_ns->flbas |= NVME_ID_NS_FLBAS_EXTENDED; in nvme_ns_init()136 id_ns->flbas |= i; in nvme_ns_init()147 id_ns->flbas |= i; in nvme_ns_init()408 uint8_t lbafi = NVME_ID_NS_FLBAS_INDEX(ns->id_ns.flbas); in nvme_ns_init_fdp()
309 return !!NVME_ID_NS_FLBAS_EXTENDED(ns->id_ns.flbas); in nvme_ns_ext()
6807 ns->id_ns.flbas = (lbafu << 5) | (mset << 4) | lbafl; in nvme_format_set()
396 __u8 flbas; member572 static inline __u8 nvme_lbaf_index(__u8 flbas) in nvme_lbaf_index() argument574 return (flbas & NVME_NS_FLBAS_LBA_MASK) | in nvme_lbaf_index()575 ((flbas & NVME_NS_FLBAS_LBA_UMASK) >> NVME_NS_FLBAS_LBA_SHIFT); in nvme_lbaf_index()
193 id->flbas = id->flbas & ~(1 << 4); in nvmet_passthru_override_id_ns()
545 id->flbas = 0; in nvmet_execute_identify_ns()564 id->flbas = NVME_NS_FLBAS_META_EXT; in nvmet_execute_identify_ns()
1380 uint8_t flbas; member1515 #define NVME_ID_NS_FLBAS_EXTENDED(flbas) ((flbas >> 4) & 0x1) argument1516 #define NVME_ID_NS_FLBAS_INDEX(flbas) ((flbas & 0xf)) argument
1741 unsigned lbaf = nvme_lbaf_index(id->flbas); in nvme_init_ms()1817 if (WARN_ON_ONCE(!(id->flbas & NVME_NS_FLBAS_META_EXT))) in nvme_configure_metadata()1840 if (id->flbas & NVME_NS_FLBAS_META_EXT) in nvme_configure_metadata()2023 lbaf = nvme_lbaf_index(id->flbas); in nvme_update_ns_info_block()
599 lbaf = &id->ns.lbaf[NVME_ID_NS_FLBAS_INDEX(id->ns.flbas)]; in nvme_identify()