Home
last modified time | relevance | path

Searched refs:ana_state (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/nvme/host/
Dmultipath.c221 switch (ns->ana_state) { in __nvme_find_path()
273 if (ns->ana_state == NVME_ANA_OPTIMIZED) { in nvme_round_robin_path()
277 if (ns->ana_state == NVME_ANA_NONOPTIMIZED) in nvme_round_robin_path()
288 (old->ana_state == NVME_ANA_OPTIMIZED || in nvme_round_robin_path()
289 (!found && old->ana_state == NVME_ANA_NONOPTIMIZED))) in nvme_round_robin_path()
302 ns->ana_state == NVME_ANA_OPTIMIZED; in nvme_path_is_optimized()
624 ns->ana_state = desc->state; in nvme_update_ns_ana_state()
635 if (nvme_state_is_live(ns->ana_state) && in nvme_update_ns_ana_state()
796 return sysfs_emit(buf, "%s\n", nvme_ana_state_names[ns->ana_state]); in ana_state_show()
798 DEVICE_ATTR_RO(ana_state);
[all …]
Dnvme.h466 enum nvme_ana_state ana_state; member
/linux-6.1.9/drivers/nvme/target/
Dconfigfs.c1491 enum nvme_ana_state state = grp->port->ana_state[grp->grpid]; in nvmet_ana_group_ana_state_show()
1506 enum nvme_ana_state *ana_state = grp->port->ana_state; in nvmet_ana_group_ana_state_store() local
1519 ana_state[grp->grpid] = (enum nvme_ana_state) nvmet_ana_state[i].type; in nvmet_ana_group_ana_state_store()
1526 CONFIGFS_ATTR(nvmet_ana_group_, ana_state);
1541 grp->port->ana_state[grp->grpid] = NVME_ANA_INACCESSIBLE; in nvmet_ana_group_release()
1614 kfree(port->ana_state); in nvmet_port_release()
1655 port->ana_state = kcalloc(NVMET_MAX_ANAGRPS + 1, in nvmet_ports_make()
1656 sizeof(*port->ana_state), GFP_KERNEL); in nvmet_ports_make()
1657 if (!port->ana_state) { in nvmet_ports_make()
1664 port->ana_state[1] = NVME_ANA_OPTIMIZED; in nvmet_ports_make()
[all …]
Dadmin-cmd.c268 desc->state = req->port->ana_state[grpid]; in nvmet_format_ana_group()
529 switch (req->port->ana_state[req->ns->anagrpid]) { in nvmet_execute_identify_ns()
Dnvmet.h159 enum nvme_ana_state *ana_state; member
Dcore.c845 enum nvme_ana_state state = port->ana_state[ns->anagrpid]; in nvmet_check_ana_state()