Lines Matching refs:tpg
215 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi() local
223 tpg->se_tpg_tfo->fabric_name); in core_get_se_deve_from_rtpi()
241 struct se_portal_group *tpg) in core_free_device_list_for_node() argument
247 core_disable_device_list_for_node(deve->se_lun, deve, nacl, tpg); in core_free_device_list_for_node()
328 struct se_portal_group *tpg) in core_enable_device_list_for_node() argument
409 struct se_portal_group *tpg) in core_disable_device_list_for_node() argument
462 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument
467 mutex_lock(&tpg->acl_node_mutex); in core_clear_lun_from_tpg()
468 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg()
475 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_clear_lun_from_tpg()
479 mutex_unlock(&tpg->acl_node_mutex); in core_clear_lun_from_tpg()
555 struct se_portal_group *tpg, in core_dev_add_lun() argument
561 rc = core_tpg_add_lun(tpg, lun, false, dev); in core_dev_add_lun()
566 " CORE HBA: %u\n", tpg->se_tpg_tfo->fabric_name, in core_dev_add_lun()
567 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_dev_add_lun()
568 tpg->se_tpg_tfo->fabric_name, dev->se_hba->hba_id); in core_dev_add_lun()
573 if (tpg->se_tpg_tfo->tpg_check_demo_mode(tpg)) { in core_dev_add_lun()
576 mutex_lock(&tpg->acl_node_mutex); in core_dev_add_lun()
577 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in core_dev_add_lun()
579 (!tpg->se_tpg_tfo->tpg_check_demo_mode_login_only || in core_dev_add_lun()
580 !tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg))) { in core_dev_add_lun()
581 core_tpg_add_node_to_devs(acl, tpg, lun); in core_dev_add_lun()
584 mutex_unlock(&tpg->acl_node_mutex); in core_dev_add_lun()
595 struct se_portal_group *tpg, in core_dev_del_lun() argument
599 " device object\n", tpg->se_tpg_tfo->fabric_name, in core_dev_del_lun()
600 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_dev_del_lun()
601 tpg->se_tpg_tfo->fabric_name); in core_dev_del_lun()
603 core_tpg_remove_lun(tpg, lun); in core_dev_del_lun()
607 struct se_portal_group *tpg, in core_dev_init_initiator_node_lun_acl() argument
616 tpg->se_tpg_tfo->fabric_name); in core_dev_init_initiator_node_lun_acl()
634 struct se_portal_group *tpg, in core_dev_add_initiator_node_lun_acl() argument
655 lun_access_ro, nacl, tpg) < 0) in core_dev_add_initiator_node_lun_acl()
659 " InitiatorNode: %s\n", tpg->se_tpg_tfo->fabric_name, in core_dev_add_initiator_node_lun_acl()
660 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lacl->mapped_lun, in core_dev_add_initiator_node_lun_acl()
667 core_scsi3_check_aptpl_registration(dev, tpg, lun, nacl, in core_dev_add_initiator_node_lun_acl()
676 struct se_portal_group *tpg = lun->lun_tpg; in core_dev_del_initiator_node_lun_acl() local
687 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_dev_del_initiator_node_lun_acl()
692 tpg->se_tpg_tfo->fabric_name, in core_dev_del_initiator_node_lun_acl()
693 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_dev_del_initiator_node_lun_acl()
700 struct se_portal_group *tpg, in core_dev_free_initiator_node_lun_acl() argument
704 " Mapped LUN: %llu\n", tpg->se_tpg_tfo->fabric_name, in core_dev_free_initiator_node_lun_acl()
705 tpg->se_tpg_tfo->tpg_get_tag(tpg), in core_dev_free_initiator_node_lun_acl()
706 tpg->se_tpg_tfo->fabric_name, in core_dev_free_initiator_node_lun_acl()