• Home
  • Raw
  • Download

Lines Matching refs:lport

166 	struct tcm_qla2xxx_lport *lport = tpg->lport;  in tcm_qla2xxx_get_fabric_wwn()  local
168 return lport->lport_naa_name; in tcm_qla2xxx_get_fabric_wwn()
783 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local
791 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map()
799 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map()
814 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map()
919 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_tpg_enable_store() local
921 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_tpg_enable_store()
1006 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local
1027 tpg->lport = lport; in tcm_qla2xxx_make_tpg()
1045 lport->tpg_1 = tpg; in tcm_qla2xxx_make_tpg()
1054 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_drop_tpg() local
1055 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_drop_tpg()
1067 lport->tpg_1 = NULL; in tcm_qla2xxx_drop_tpg()
1082 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_npiv_tpg_enable_store() local
1084 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_npiv_tpg_enable_store()
1127 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_make_tpg() local
1143 tpg->lport = lport; in tcm_qla2xxx_npiv_make_tpg()
1160 lport->tpg_1 = tpg; in tcm_qla2xxx_npiv_make_tpg()
1170 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_find_sess_by_s_id() local
1175 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_find_sess_by_s_id()
1176 if (!lport) { in tcm_qla2xxx_find_sess_by_s_id()
1185 se_nacl = btree_lookup32(&lport->lport_fcport_map, key); in tcm_qla2xxx_find_sess_by_s_id()
1206 struct tcm_qla2xxx_lport *lport, in tcm_qla2xxx_set_sess_by_s_id() argument
1220 slot = btree_lookup32(&lport->lport_fcport_map, key); in tcm_qla2xxx_set_sess_by_s_id()
1225 rc = btree_insert32(&lport->lport_fcport_map, key, in tcm_qla2xxx_set_sess_by_s_id()
1242 btree_remove32(&lport->lport_fcport_map, key); in tcm_qla2xxx_set_sess_by_s_id()
1247 btree_update32(&lport->lport_fcport_map, key, new_se_nacl); in tcm_qla2xxx_set_sess_by_s_id()
1255 btree_remove32(&lport->lport_fcport_map, key); in tcm_qla2xxx_set_sess_by_s_id()
1260 btree_update32(&lport->lport_fcport_map, key, new_se_nacl); in tcm_qla2xxx_set_sess_by_s_id()
1275 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_find_sess_by_loop_id() local
1280 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_find_sess_by_loop_id()
1281 if (!lport) { in tcm_qla2xxx_find_sess_by_loop_id()
1289 fc_loopid = lport->lport_loopid_map + loop_id; in tcm_qla2xxx_find_sess_by_loop_id()
1311 struct tcm_qla2xxx_lport *lport, in tcm_qla2xxx_set_sess_by_loop_id() argument
1324 lport->lport_loopid_map)[loop_id]; in tcm_qla2xxx_set_sess_by_loop_id()
1374 static void tcm_qla2xxx_clear_sess_lookup(struct tcm_qla2xxx_lport *lport, in tcm_qla2xxx_clear_sess_lookup() argument
1379 tcm_qla2xxx_set_sess_by_s_id(lport, NULL, nacl, se_sess, in tcm_qla2xxx_clear_sess_lookup()
1381 tcm_qla2xxx_set_sess_by_loop_id(lport, NULL, nacl, se_sess, in tcm_qla2xxx_clear_sess_lookup()
1391 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_free_session() local
1402 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_free_session()
1403 if (!lport) { in tcm_qla2xxx_free_session()
1418 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_session_cb() local
1419 struct qla_hw_data *ha = lport->qla_vha->hw; in tcm_qla2xxx_session_cb()
1432 tcm_qla2xxx_set_sess_by_s_id(lport, se_nacl, nacl, se_sess, qlat_sess, in tcm_qla2xxx_session_cb()
1434 tcm_qla2xxx_set_sess_by_loop_id(lport, se_nacl, nacl, in tcm_qla2xxx_session_cb()
1451 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_check_initiator_node_acl() local
1458 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_check_initiator_node_acl()
1459 if (!lport) { in tcm_qla2xxx_check_initiator_node_acl()
1467 tpg = lport->tpg_1; in tcm_qla2xxx_check_initiator_node_acl()
1498 struct tcm_qla2xxx_lport *lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_update_sess() local
1521 if (lport->lport_loopid_map[sess->loop_id].se_nacl == se_nacl) in tcm_qla2xxx_update_sess()
1522 lport->lport_loopid_map[sess->loop_id].se_nacl = NULL; in tcm_qla2xxx_update_sess()
1524 lport->lport_loopid_map[loop_id].se_nacl = se_nacl; in tcm_qla2xxx_update_sess()
1534 if (btree_lookup32(&lport->lport_fcport_map, key)) in tcm_qla2xxx_update_sess()
1535 WARN(btree_remove32(&lport->lport_fcport_map, key) != in tcm_qla2xxx_update_sess()
1548 if (btree_lookup32(&lport->lport_fcport_map, key)) { in tcm_qla2xxx_update_sess()
1551 btree_update32(&lport->lport_fcport_map, key, se_nacl); in tcm_qla2xxx_update_sess()
1553 btree_insert32(&lport->lport_fcport_map, key, se_nacl, in tcm_qla2xxx_update_sess()
1589 static int tcm_qla2xxx_init_lport(struct tcm_qla2xxx_lport *lport) in tcm_qla2xxx_init_lport() argument
1593 rc = btree_init32(&lport->lport_fcport_map); in tcm_qla2xxx_init_lport()
1599 lport->lport_loopid_map = in tcm_qla2xxx_init_lport()
1602 if (!lport->lport_loopid_map) { in tcm_qla2xxx_init_lport()
1605 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_init_lport()
1618 struct tcm_qla2xxx_lport *lport = in tcm_qla2xxx_lport_register_cb() local
1625 lport->qla_vha = vha; in tcm_qla2xxx_lport_register_cb()
1635 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_make_lport() local
1642 lport = kzalloc(sizeof(struct tcm_qla2xxx_lport), GFP_KERNEL); in tcm_qla2xxx_make_lport()
1643 if (!lport) { in tcm_qla2xxx_make_lport()
1647 lport->lport_wwpn = wwpn; in tcm_qla2xxx_make_lport()
1648 tcm_qla2xxx_format_wwn(&lport->lport_name[0], TCM_QLA2XXX_NAMELEN, in tcm_qla2xxx_make_lport()
1650 sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) wwpn); in tcm_qla2xxx_make_lport()
1652 ret = tcm_qla2xxx_init_lport(lport); in tcm_qla2xxx_make_lport()
1656 ret = qlt_lport_register(lport, wwpn, 0, 0, in tcm_qla2xxx_make_lport()
1661 return &lport->lport_wwn; in tcm_qla2xxx_make_lport()
1663 vfree(lport->lport_loopid_map); in tcm_qla2xxx_make_lport()
1664 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_make_lport()
1666 kfree(lport); in tcm_qla2xxx_make_lport()
1672 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_drop_lport() local
1674 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_drop_lport()
1688 vfree(lport->lport_loopid_map); in tcm_qla2xxx_drop_lport()
1689 btree_for_each_safe32(&lport->lport_fcport_map, key, node) in tcm_qla2xxx_drop_lport()
1690 btree_remove32(&lport->lport_fcport_map, key); in tcm_qla2xxx_drop_lport()
1691 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_drop_lport()
1692 kfree(lport); in tcm_qla2xxx_drop_lport()
1702 struct tcm_qla2xxx_lport *lport = in tcm_qla2xxx_lport_register_npiv_cb() local
1736 lport->qla_vha = npiv_vha; in tcm_qla2xxx_lport_register_npiv_cb()
1747 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_npiv_make_lport() local
1768 lport = kzalloc(sizeof(struct tcm_qla2xxx_lport), GFP_KERNEL); in tcm_qla2xxx_npiv_make_lport()
1769 if (!lport) { in tcm_qla2xxx_npiv_make_lport()
1773 lport->lport_npiv_wwpn = npiv_wwpn; in tcm_qla2xxx_npiv_make_lport()
1774 lport->lport_npiv_wwnn = npiv_wwnn; in tcm_qla2xxx_npiv_make_lport()
1775 sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) npiv_wwpn); in tcm_qla2xxx_npiv_make_lport()
1777 ret = tcm_qla2xxx_init_lport(lport); in tcm_qla2xxx_npiv_make_lport()
1781 ret = qlt_lport_register(lport, phys_wwpn, npiv_wwpn, npiv_wwnn, in tcm_qla2xxx_npiv_make_lport()
1786 return &lport->lport_wwn; in tcm_qla2xxx_npiv_make_lport()
1788 vfree(lport->lport_loopid_map); in tcm_qla2xxx_npiv_make_lport()
1789 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_npiv_make_lport()
1791 kfree(lport); in tcm_qla2xxx_npiv_make_lport()
1797 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_drop_lport() local
1799 struct scsi_qla_host *npiv_vha = lport->qla_vha; in tcm_qla2xxx_npiv_drop_lport()
1809 kfree(lport); in tcm_qla2xxx_npiv_drop_lport()