lu_gp            1088 drivers/target/target_core_alua.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            1103 drivers/target/target_core_alua.c 	lu_gp = local_lu_gp_mem->lu_gp;
lu_gp            1104 drivers/target/target_core_alua.c 	atomic_inc(&lu_gp->lu_gp_ref_cnt);
lu_gp            1111 drivers/target/target_core_alua.c 	if (!lu_gp->lu_gp_id) {
lu_gp            1120 drivers/target/target_core_alua.c 		atomic_dec_mb(&lu_gp->lu_gp_ref_cnt);
lu_gp            1128 drivers/target/target_core_alua.c 	spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1129 drivers/target/target_core_alua.c 	list_for_each_entry(lu_gp_mem, &lu_gp->lu_gp_mem_list,
lu_gp            1134 drivers/target/target_core_alua.c 		spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            1177 drivers/target/target_core_alua.c 		spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1180 drivers/target/target_core_alua.c 	spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            1185 drivers/target/target_core_alua.c 			 config_item_name(&lu_gp->lu_gp_group.cg_item),
lu_gp            1191 drivers/target/target_core_alua.c 	atomic_dec_mb(&lu_gp->lu_gp_ref_cnt);
lu_gp            1398 drivers/target/target_core_alua.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            1400 drivers/target/target_core_alua.c 	lu_gp = kmem_cache_zalloc(t10_alua_lu_gp_cache, GFP_KERNEL);
lu_gp            1401 drivers/target/target_core_alua.c 	if (!lu_gp) {
lu_gp            1405 drivers/target/target_core_alua.c 	INIT_LIST_HEAD(&lu_gp->lu_gp_node);
lu_gp            1406 drivers/target/target_core_alua.c 	INIT_LIST_HEAD(&lu_gp->lu_gp_mem_list);
lu_gp            1407 drivers/target/target_core_alua.c 	spin_lock_init(&lu_gp->lu_gp_lock);
lu_gp            1408 drivers/target/target_core_alua.c 	atomic_set(&lu_gp->lu_gp_ref_cnt, 0);
lu_gp            1411 drivers/target/target_core_alua.c 		lu_gp->lu_gp_id = alua_lu_gps_counter++;
lu_gp            1412 drivers/target/target_core_alua.c 		lu_gp->lu_gp_valid_id = 1;
lu_gp            1416 drivers/target/target_core_alua.c 	return lu_gp;
lu_gp            1419 drivers/target/target_core_alua.c int core_alua_set_lu_gp_id(struct t10_alua_lu_gp *lu_gp, u16 lu_gp_id)
lu_gp            1426 drivers/target/target_core_alua.c 	if (lu_gp->lu_gp_valid_id) {
lu_gp            1437 drivers/target/target_core_alua.c 		kmem_cache_free(t10_alua_lu_gp_cache, lu_gp);
lu_gp            1457 drivers/target/target_core_alua.c 	lu_gp->lu_gp_id = lu_gp_id_tmp;
lu_gp            1458 drivers/target/target_core_alua.c 	lu_gp->lu_gp_valid_id = 1;
lu_gp            1459 drivers/target/target_core_alua.c 	list_add_tail(&lu_gp->lu_gp_node, &lu_gps_list);
lu_gp            1486 drivers/target/target_core_alua.c void core_alua_free_lu_gp(struct t10_alua_lu_gp *lu_gp)
lu_gp            1498 drivers/target/target_core_alua.c 	list_del(&lu_gp->lu_gp_node);
lu_gp            1506 drivers/target/target_core_alua.c 	while (atomic_read(&lu_gp->lu_gp_ref_cnt))
lu_gp            1512 drivers/target/target_core_alua.c 	spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1514 drivers/target/target_core_alua.c 				&lu_gp->lu_gp_mem_list, lu_gp_mem_list) {
lu_gp            1517 drivers/target/target_core_alua.c 			lu_gp->lu_gp_members--;
lu_gp            1520 drivers/target/target_core_alua.c 		spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            1531 drivers/target/target_core_alua.c 		if (lu_gp != default_lu_gp)
lu_gp            1535 drivers/target/target_core_alua.c 			lu_gp_mem->lu_gp = NULL;
lu_gp            1538 drivers/target/target_core_alua.c 		spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1540 drivers/target/target_core_alua.c 	spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            1542 drivers/target/target_core_alua.c 	kmem_cache_free(t10_alua_lu_gp_cache, lu_gp);
lu_gp            1547 drivers/target/target_core_alua.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            1558 drivers/target/target_core_alua.c 	lu_gp = lu_gp_mem->lu_gp;
lu_gp            1559 drivers/target/target_core_alua.c 	if (lu_gp) {
lu_gp            1560 drivers/target/target_core_alua.c 		spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1563 drivers/target/target_core_alua.c 			lu_gp->lu_gp_members--;
lu_gp            1566 drivers/target/target_core_alua.c 		spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            1567 drivers/target/target_core_alua.c 		lu_gp_mem->lu_gp = NULL;
lu_gp            1576 drivers/target/target_core_alua.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            1580 drivers/target/target_core_alua.c 	list_for_each_entry(lu_gp, &lu_gps_list, lu_gp_node) {
lu_gp            1581 drivers/target/target_core_alua.c 		if (!lu_gp->lu_gp_valid_id)
lu_gp            1583 drivers/target/target_core_alua.c 		ci = &lu_gp->lu_gp_group.cg_item;
lu_gp            1585 drivers/target/target_core_alua.c 			atomic_inc(&lu_gp->lu_gp_ref_cnt);
lu_gp            1587 drivers/target/target_core_alua.c 			return lu_gp;
lu_gp            1595 drivers/target/target_core_alua.c void core_alua_put_lu_gp_from_name(struct t10_alua_lu_gp *lu_gp)
lu_gp            1598 drivers/target/target_core_alua.c 	atomic_dec(&lu_gp->lu_gp_ref_cnt);
lu_gp            1607 drivers/target/target_core_alua.c 	struct t10_alua_lu_gp *lu_gp)
lu_gp            1609 drivers/target/target_core_alua.c 	spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1610 drivers/target/target_core_alua.c 	lu_gp_mem->lu_gp = lu_gp;
lu_gp            1612 drivers/target/target_core_alua.c 	list_add_tail(&lu_gp_mem->lu_gp_mem_list, &lu_gp->lu_gp_mem_list);
lu_gp            1613 drivers/target/target_core_alua.c 	lu_gp->lu_gp_members++;
lu_gp            1614 drivers/target/target_core_alua.c 	spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            1622 drivers/target/target_core_alua.c 	struct t10_alua_lu_gp *lu_gp)
lu_gp            1624 drivers/target/target_core_alua.c 	spin_lock(&lu_gp->lu_gp_lock);
lu_gp            1626 drivers/target/target_core_alua.c 	lu_gp_mem->lu_gp = NULL;
lu_gp            1628 drivers/target/target_core_alua.c 	lu_gp->lu_gp_members--;
lu_gp            1629 drivers/target/target_core_alua.c 	spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            2196 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            2205 drivers/target/target_core_configfs.c 	lu_gp = lu_gp_mem->lu_gp;
lu_gp            2206 drivers/target/target_core_configfs.c 	if (lu_gp) {
lu_gp            2207 drivers/target/target_core_configfs.c 		lu_ci = &lu_gp->lu_gp_group.cg_item;
lu_gp            2209 drivers/target/target_core_configfs.c 			config_item_name(lu_ci), lu_gp->lu_gp_id);
lu_gp            2221 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp = NULL, *lu_gp_new = NULL;
lu_gp            2252 drivers/target/target_core_configfs.c 	lu_gp = lu_gp_mem->lu_gp;
lu_gp            2253 drivers/target/target_core_configfs.c 	if (lu_gp) {
lu_gp            2264 drivers/target/target_core_configfs.c 				config_item_name(&lu_gp->lu_gp_group.cg_item),
lu_gp            2265 drivers/target/target_core_configfs.c 				lu_gp->lu_gp_id);
lu_gp            2267 drivers/target/target_core_configfs.c 			__core_alua_drop_lu_gp_mem(lu_gp_mem, lu_gp);
lu_gp            2275 drivers/target/target_core_configfs.c 		__core_alua_drop_lu_gp_mem(lu_gp_mem, lu_gp);
lu_gp            2506 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp = to_lu_gp(item);
lu_gp            2508 drivers/target/target_core_configfs.c 	if (!lu_gp->lu_gp_valid_id)
lu_gp            2510 drivers/target/target_core_configfs.c 	return sprintf(page, "%hu\n", lu_gp->lu_gp_id);
lu_gp            2516 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp = to_lu_gp(item);
lu_gp            2517 drivers/target/target_core_configfs.c 	struct config_group *alua_lu_gp_cg = &lu_gp->lu_gp_group;
lu_gp            2533 drivers/target/target_core_configfs.c 	ret = core_alua_set_lu_gp_id(lu_gp, (u16)lu_gp_id);
lu_gp            2540 drivers/target/target_core_configfs.c 		lu_gp->lu_gp_id);
lu_gp            2547 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp = to_lu_gp(item);
lu_gp            2556 drivers/target/target_core_configfs.c 	spin_lock(&lu_gp->lu_gp_lock);
lu_gp            2557 drivers/target/target_core_configfs.c 	list_for_each_entry(lu_gp_mem, &lu_gp->lu_gp_mem_list, lu_gp_mem_list) {
lu_gp            2574 drivers/target/target_core_configfs.c 	spin_unlock(&lu_gp->lu_gp_lock);
lu_gp            2590 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp = container_of(to_config_group(item),
lu_gp            2593 drivers/target/target_core_configfs.c 	core_alua_free_lu_gp(lu_gp);
lu_gp            2614 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            2618 drivers/target/target_core_configfs.c 	lu_gp = core_alua_allocate_lu_gp(name, 0);
lu_gp            2619 drivers/target/target_core_configfs.c 	if (IS_ERR(lu_gp))
lu_gp            2622 drivers/target/target_core_configfs.c 	alua_lu_gp_cg = &lu_gp->lu_gp_group;
lu_gp            2640 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp = container_of(to_config_group(item),
lu_gp            2645 drivers/target/target_core_configfs.c 		config_item_name(item), lu_gp->lu_gp_id);
lu_gp            3460 drivers/target/target_core_configfs.c 	struct t10_alua_lu_gp *lu_gp;
lu_gp            3498 drivers/target/target_core_configfs.c 	lu_gp = core_alua_allocate_lu_gp("default_lu_gp", 1);
lu_gp            3499 drivers/target/target_core_configfs.c 	if (IS_ERR(lu_gp)) {
lu_gp            3504 drivers/target/target_core_configfs.c 	config_group_init_type_name(&lu_gp->lu_gp_group, "default_lu_gp",
lu_gp            3506 drivers/target/target_core_configfs.c 	configfs_add_default_group(&lu_gp->lu_gp_group, &alua_lu_gps_group);
lu_gp            3508 drivers/target/target_core_configfs.c 	default_lu_gp = lu_gp;
lu_gp             261 drivers/target/target_core_spc.c 		struct t10_alua_lu_gp *lu_gp;
lu_gp             329 drivers/target/target_core_spc.c 		lu_gp = lu_gp_mem->lu_gp;
lu_gp             330 drivers/target/target_core_spc.c 		if (!lu_gp) {
lu_gp             334 drivers/target/target_core_spc.c 		lu_gp_id = lu_gp->lu_gp_id;
lu_gp             282 include/target/target_core_base.h 	struct t10_alua_lu_gp *lu_gp;