Lines Matching refs:grp

1632 	struct nvmet_ana_group *grp = to_ana_group(item);  in nvmet_ana_group_ana_state_show()  local
1633 enum nvme_ana_state state = grp->port->ana_state[grp->grpid]; in nvmet_ana_group_ana_state_show()
1647 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_store() local
1648 enum nvme_ana_state *ana_state = grp->port->ana_state; in nvmet_ana_group_ana_state_store()
1661 ana_state[grp->grpid] = (enum nvme_ana_state) nvmet_ana_state[i].type; in nvmet_ana_group_ana_state_store()
1664 nvmet_port_send_ana_event(grp->port); in nvmet_ana_group_ana_state_store()
1677 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_release() local
1679 if (grp == &grp->port->ana_default_group) in nvmet_ana_group_release()
1683 grp->port->ana_state[grp->grpid] = NVME_ANA_INACCESSIBLE; in nvmet_ana_group_release()
1684 nvmet_ana_group_enabled[grp->grpid]--; in nvmet_ana_group_release()
1687 nvmet_port_send_ana_event(grp->port); in nvmet_ana_group_release()
1688 kfree(grp); in nvmet_ana_group_release()
1705 struct nvmet_ana_group *grp; in nvmet_ana_groups_make_group() local
1718 grp = kzalloc(sizeof(*grp), GFP_KERNEL); in nvmet_ana_groups_make_group()
1719 if (!grp) in nvmet_ana_groups_make_group()
1721 grp->port = port; in nvmet_ana_groups_make_group()
1722 grp->grpid = grpid; in nvmet_ana_groups_make_group()
1729 nvmet_port_send_ana_event(grp->port); in nvmet_ana_groups_make_group()
1731 config_group_init_type_name(&grp->group, name, &nvmet_ana_group_type); in nvmet_ana_groups_make_group()
1732 return &grp->group; in nvmet_ana_groups_make_group()