Home
last modified time | relevance | path

Searched refs:flbas (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/drivers/nvme/
H A Dnvme.c640 u8 flbas; in nvme_blk_probe() local
652 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()
H A Dnvme_show.c72 if (i == ns->flbas) in print_formats()
H A Dnvme.h99 __u8 flbas; member
642 u8 flbas; member
/openbmc/qemu/hw/nvme/
H A Dns.c38 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()
H A Dnvme.h309 return !!NVME_ID_NS_FLBAS_EXTENDED(ns->id_ns.flbas); in nvme_ns_ext()
H A Dctrl.c6807 ns->id_ns.flbas = (lbafu << 5) | (mset << 4) | lbafl; in nvme_format_set()
/openbmc/linux/include/linux/
H A Dnvme.h396 __u8 flbas; member
572 static inline __u8 nvme_lbaf_index(__u8 flbas) in nvme_lbaf_index() argument
574 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()
/openbmc/linux/drivers/nvme/target/
H A Dpassthru.c193 id->flbas = id->flbas & ~(1 << 4); in nvmet_passthru_override_id_ns()
H A Dadmin-cmd.c545 id->flbas = 0; in nvmet_execute_identify_ns()
564 id->flbas = NVME_NS_FLBAS_META_EXT; in nvmet_execute_identify_ns()
/openbmc/qemu/include/block/
H A Dnvme.h1380 uint8_t flbas; member
1515 #define NVME_ID_NS_FLBAS_EXTENDED(flbas) ((flbas >> 4) & 0x1) argument
1516 #define NVME_ID_NS_FLBAS_INDEX(flbas) ((flbas & 0xf)) argument
/openbmc/linux/drivers/nvme/host/
H A Dcore.c1741 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()
/openbmc/qemu/block/
H A Dnvme.c599 lbaf = &id->ns.lbaf[NVME_ID_NS_FLBAS_INDEX(id->ns.flbas)]; in nvme_identify()