Lines Matching refs:tpg
238 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi() local
252 tpg->se_tpg_tfo->get_fabric_name()); in core_get_se_deve_from_rtpi()
259 tpg->se_tpg_tfo->get_fabric_name()); in core_get_se_deve_from_rtpi()
278 struct se_portal_group *tpg) in core_free_device_list_for_node() argument
297 tpg->se_tpg_tfo->get_fabric_name()); in core_free_device_list_for_node()
304 TRANSPORT_LUNFLAGS_NO_ACCESS, nacl, tpg, 0); in core_free_device_list_for_node()
355 struct se_portal_group *tpg, in core_update_device_list_for_node() argument
461 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument
467 spin_lock_irq(&tpg->acl_node_lock); in core_clear_lun_from_tpg()
468 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg()
469 spin_unlock_irq(&tpg->acl_node_lock); in core_clear_lun_from_tpg()
480 nacl, tpg, 0); in core_clear_lun_from_tpg()
486 spin_lock_irq(&tpg->acl_node_lock); in core_clear_lun_from_tpg()
488 spin_unlock_irq(&tpg->acl_node_lock); in core_clear_lun_from_tpg()
545 struct se_portal_group *tpg, in core_export_port() argument
554 port->sep_tpg = tpg; in core_export_port()
575 dev->transport->name, tpg->se_tpg_tfo->get_fabric_name()); in core_export_port()
606 struct se_portal_group *tpg, in core_dev_export() argument
619 core_export_port(dev, tpg, port, lun); in core_dev_export()
625 struct se_portal_group *tpg, in core_dev_unexport() argument
1344 struct se_portal_group *tpg, in core_dev_add_lun() argument
1359 lun_p = core_tpg_pre_addlun(tpg, lun); in core_dev_add_lun()
1368 rc = core_tpg_post_addlun(tpg, lun_p, lun_access, dev); in core_dev_add_lun()
1373 " CORE HBA: %u\n", tpg->se_tpg_tfo->get_fabric_name(), in core_dev_add_lun()
1374 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun_p->unpacked_lun, in core_dev_add_lun()
1375 tpg->se_tpg_tfo->get_fabric_name(), hba->hba_id); in core_dev_add_lun()
1380 if (tpg->se_tpg_tfo->tpg_check_demo_mode(tpg)) { in core_dev_add_lun()
1382 spin_lock_irq(&tpg->acl_node_lock); in core_dev_add_lun()
1383 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in core_dev_add_lun()
1385 (!tpg->se_tpg_tfo->tpg_check_demo_mode_login_only || in core_dev_add_lun()
1386 !tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg))) { in core_dev_add_lun()
1387 spin_unlock_irq(&tpg->acl_node_lock); in core_dev_add_lun()
1388 core_tpg_add_node_to_devs(acl, tpg); in core_dev_add_lun()
1389 spin_lock_irq(&tpg->acl_node_lock); in core_dev_add_lun()
1392 spin_unlock_irq(&tpg->acl_node_lock); in core_dev_add_lun()
1403 struct se_portal_group *tpg, in core_dev_del_lun() argument
1408 lun = core_tpg_pre_dellun(tpg, unpacked_lun); in core_dev_del_lun()
1412 core_tpg_post_dellun(tpg, lun); in core_dev_del_lun()
1415 " device object\n", tpg->se_tpg_tfo->get_fabric_name(), in core_dev_del_lun()
1416 tpg->se_tpg_tfo->tpg_get_tag(tpg), unpacked_lun, in core_dev_del_lun()
1417 tpg->se_tpg_tfo->get_fabric_name()); in core_dev_del_lun()
1422 struct se_lun *core_get_lun_from_tpg(struct se_portal_group *tpg, u32 unpacked_lun) in core_get_lun_from_tpg() argument
1426 spin_lock(&tpg->tpg_lun_lock); in core_get_lun_from_tpg()
1430 tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_get_lun_from_tpg()
1432 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in core_get_lun_from_tpg()
1433 spin_unlock(&tpg->tpg_lun_lock); in core_get_lun_from_tpg()
1436 lun = tpg->tpg_lun_list[unpacked_lun]; in core_get_lun_from_tpg()
1441 tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_get_lun_from_tpg()
1442 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in core_get_lun_from_tpg()
1443 spin_unlock(&tpg->tpg_lun_lock); in core_get_lun_from_tpg()
1446 spin_unlock(&tpg->tpg_lun_lock); in core_get_lun_from_tpg()
1455 static struct se_lun *core_dev_get_lun(struct se_portal_group *tpg, u32 unpacked_lun) in core_dev_get_lun() argument
1459 spin_lock(&tpg->tpg_lun_lock); in core_dev_get_lun()
1463 tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_dev_get_lun()
1465 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in core_dev_get_lun()
1466 spin_unlock(&tpg->tpg_lun_lock); in core_dev_get_lun()
1469 lun = tpg->tpg_lun_list[unpacked_lun]; in core_dev_get_lun()
1474 tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_dev_get_lun()
1475 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in core_dev_get_lun()
1476 spin_unlock(&tpg->tpg_lun_lock); in core_dev_get_lun()
1479 spin_unlock(&tpg->tpg_lun_lock); in core_dev_get_lun()
1485 struct se_portal_group *tpg, in core_dev_init_initiator_node_lun_acl() argument
1494 tpg->se_tpg_tfo->get_fabric_name()); in core_dev_init_initiator_node_lun_acl()
1515 struct se_portal_group *tpg, in core_dev_add_initiator_node_lun_acl() argument
1523 lun = core_dev_get_lun(tpg, unpacked_lun); in core_dev_add_initiator_node_lun_acl()
1527 tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_dev_add_initiator_node_lun_acl()
1528 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in core_dev_add_initiator_node_lun_acl()
1543 lun_access, nacl, tpg, 1) < 0) in core_dev_add_initiator_node_lun_acl()
1553 " InitiatorNode: %s\n", tpg->se_tpg_tfo->get_fabric_name(), in core_dev_add_initiator_node_lun_acl()
1554 tpg->se_tpg_tfo->tpg_get_tag(tpg), unpacked_lun, lacl->mapped_lun, in core_dev_add_initiator_node_lun_acl()
1561 core_scsi3_check_aptpl_registration(lun->lun_se_dev, tpg, lun, lacl); in core_dev_add_initiator_node_lun_acl()
1570 struct se_portal_group *tpg, in core_dev_del_initiator_node_lun_acl() argument
1587 TRANSPORT_LUNFLAGS_NO_ACCESS, nacl, tpg, 0); in core_dev_del_initiator_node_lun_acl()
1593 tpg->se_tpg_tfo->get_fabric_name(), in core_dev_del_initiator_node_lun_acl()
1594 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_dev_del_initiator_node_lun_acl()
1601 struct se_portal_group *tpg, in core_dev_free_initiator_node_lun_acl() argument
1605 " Mapped LUN: %u\n", tpg->se_tpg_tfo->get_fabric_name(), in core_dev_free_initiator_node_lun_acl()
1606 tpg->se_tpg_tfo->tpg_get_tag(tpg), in core_dev_free_initiator_node_lun_acl()
1607 tpg->se_tpg_tfo->get_fabric_name(), in core_dev_free_initiator_node_lun_acl()