Lines Matching refs:NvmeNamespace

30 void nvme_ns_init_format(NvmeNamespace *ns)  in nvme_ns_init_format()
60 static int nvme_ns_init(NvmeNamespace *ns, Error **errp) in nvme_ns_init()
152 static int nvme_ns_init_blk(NvmeNamespace *ns, Error **errp) in nvme_ns_init_blk()
179 static int nvme_ns_zoned_check_calc_geometry(NvmeNamespace *ns, Error **errp) in nvme_ns_zoned_check_calc_geometry()
229 static void nvme_ns_zoned_init_state(NvmeNamespace *ns) in nvme_ns_zoned_init_state()
268 static void nvme_ns_init_zoned(NvmeNamespace *ns) in nvme_ns_init_zoned()
331 static void nvme_clear_zone(NvmeNamespace *ns, NvmeZone *zone) in nvme_clear_zone()
358 static void nvme_zoned_ns_shutdown(NvmeNamespace *ns) in nvme_zoned_ns_shutdown()
398 static bool nvme_ns_init_fdp(NvmeNamespace *ns, Error **errp) in nvme_ns_init_fdp()
541 static int nvme_ns_check_constraints(NvmeNamespace *ns, Error **errp) in nvme_ns_check_constraints()
651 int nvme_ns_setup(NvmeNamespace *ns, Error **errp) in nvme_ns_setup()
680 void nvme_ns_drain(NvmeNamespace *ns) in nvme_ns_drain()
685 void nvme_ns_shutdown(NvmeNamespace *ns) in nvme_ns_shutdown()
693 void nvme_ns_cleanup(NvmeNamespace *ns) in nvme_ns_cleanup()
708 NvmeNamespace *ns = NVME_NS(dev); in nvme_ns_unrealize()
717 NvmeNamespace *ns = NVME_NS(dev); in nvme_ns_realize()
796 DEFINE_BLOCK_PROPERTIES(NvmeNamespace, blkconf),
797 DEFINE_PROP_BOOL("detached", NvmeNamespace, params.detached, false),
798 DEFINE_PROP_BOOL("shared", NvmeNamespace, params.shared, true),
799 DEFINE_PROP_UINT32("nsid", NvmeNamespace, params.nsid, 0),
800 DEFINE_PROP_UUID_NODEFAULT("uuid", NvmeNamespace, params.uuid),
801 DEFINE_PROP_NGUID_NODEFAULT("nguid", NvmeNamespace, params.nguid),
802 DEFINE_PROP_UINT64("eui64", NvmeNamespace, params.eui64, 0),
803 DEFINE_PROP_UINT16("ms", NvmeNamespace, params.ms, 0),
804 DEFINE_PROP_UINT8("mset", NvmeNamespace, params.mset, 0),
805 DEFINE_PROP_UINT8("pi", NvmeNamespace, params.pi, 0),
806 DEFINE_PROP_UINT8("pil", NvmeNamespace, params.pil, 0),
807 DEFINE_PROP_UINT8("pif", NvmeNamespace, params.pif, 0),
808 DEFINE_PROP_UINT16("mssrl", NvmeNamespace, params.mssrl, 128),
809 DEFINE_PROP_UINT32("mcl", NvmeNamespace, params.mcl, 128),
810 DEFINE_PROP_UINT8("msrc", NvmeNamespace, params.msrc, 127),
811 DEFINE_PROP_BOOL("zoned", NvmeNamespace, params.zoned, false),
812 DEFINE_PROP_SIZE("zoned.zone_size", NvmeNamespace, params.zone_size_bs,
814 DEFINE_PROP_SIZE("zoned.zone_capacity", NvmeNamespace, params.zone_cap_bs,
816 DEFINE_PROP_BOOL("zoned.cross_read", NvmeNamespace,
818 DEFINE_PROP_UINT32("zoned.max_active", NvmeNamespace,
820 DEFINE_PROP_UINT32("zoned.max_open", NvmeNamespace,
822 DEFINE_PROP_UINT32("zoned.descr_ext_size", NvmeNamespace,
824 DEFINE_PROP_UINT32("zoned.numzrwa", NvmeNamespace, params.numzrwa, 0),
825 DEFINE_PROP_SIZE("zoned.zrwas", NvmeNamespace, params.zrwas, 0),
826 DEFINE_PROP_SIZE("zoned.zrwafg", NvmeNamespace, params.zrwafg, -1),
827 DEFINE_PROP_BOOL("eui64-default", NvmeNamespace, params.eui64_default,
829 DEFINE_PROP_STRING("fdp.ruhs", NvmeNamespace, params.fdp.ruhs),
848 NvmeNamespace *ns = NVME_NS(obj); in nvme_ns_instance_init()
861 .instance_size = sizeof(NvmeNamespace),