• 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()
764 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local
772 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map()
780 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map()
795 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map()
900 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_tpg_enable_store() local
902 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_tpg_enable_store()
986 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local
1007 tpg->lport = lport; in tcm_qla2xxx_make_tpg()
1025 lport->tpg_1 = tpg; in tcm_qla2xxx_make_tpg()
1034 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_drop_tpg() local
1035 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_drop_tpg()
1047 lport->tpg_1 = NULL; in tcm_qla2xxx_drop_tpg()
1062 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_npiv_tpg_enable_store() local
1064 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_npiv_tpg_enable_store()
1106 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_make_tpg() local
1122 tpg->lport = lport; in tcm_qla2xxx_npiv_make_tpg()
1139 lport->tpg_1 = tpg; in tcm_qla2xxx_npiv_make_tpg()
1149 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_find_sess_by_s_id() local
1154 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_find_sess_by_s_id()
1155 if (!lport) { in tcm_qla2xxx_find_sess_by_s_id()
1164 se_nacl = btree_lookup32(&lport->lport_fcport_map, key); in tcm_qla2xxx_find_sess_by_s_id()
1185 struct tcm_qla2xxx_lport *lport, in tcm_qla2xxx_set_sess_by_s_id() argument
1199 slot = btree_lookup32(&lport->lport_fcport_map, key); in tcm_qla2xxx_set_sess_by_s_id()
1204 rc = btree_insert32(&lport->lport_fcport_map, key, in tcm_qla2xxx_set_sess_by_s_id()
1221 btree_remove32(&lport->lport_fcport_map, key); in tcm_qla2xxx_set_sess_by_s_id()
1226 btree_update32(&lport->lport_fcport_map, key, new_se_nacl); in tcm_qla2xxx_set_sess_by_s_id()
1234 btree_remove32(&lport->lport_fcport_map, key); in tcm_qla2xxx_set_sess_by_s_id()
1239 btree_update32(&lport->lport_fcport_map, key, new_se_nacl); in tcm_qla2xxx_set_sess_by_s_id()
1254 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_find_sess_by_loop_id() local
1259 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_find_sess_by_loop_id()
1260 if (!lport) { in tcm_qla2xxx_find_sess_by_loop_id()
1268 fc_loopid = lport->lport_loopid_map + loop_id; in tcm_qla2xxx_find_sess_by_loop_id()
1290 struct tcm_qla2xxx_lport *lport, in tcm_qla2xxx_set_sess_by_loop_id() argument
1303 lport->lport_loopid_map)[loop_id]; in tcm_qla2xxx_set_sess_by_loop_id()
1353 static void tcm_qla2xxx_clear_sess_lookup(struct tcm_qla2xxx_lport *lport, in tcm_qla2xxx_clear_sess_lookup() argument
1358 tcm_qla2xxx_set_sess_by_s_id(lport, NULL, nacl, se_sess, in tcm_qla2xxx_clear_sess_lookup()
1360 tcm_qla2xxx_set_sess_by_loop_id(lport, NULL, nacl, se_sess, in tcm_qla2xxx_clear_sess_lookup()
1370 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_free_session() local
1381 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_free_session()
1382 if (!lport) { in tcm_qla2xxx_free_session()
1397 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_session_cb() local
1398 struct qla_hw_data *ha = lport->qla_vha->hw; in tcm_qla2xxx_session_cb()
1411 tcm_qla2xxx_set_sess_by_s_id(lport, se_nacl, nacl, se_sess, qlat_sess, in tcm_qla2xxx_session_cb()
1413 tcm_qla2xxx_set_sess_by_loop_id(lport, se_nacl, nacl, in tcm_qla2xxx_session_cb()
1430 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_check_initiator_node_acl() local
1437 lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_check_initiator_node_acl()
1438 if (!lport) { in tcm_qla2xxx_check_initiator_node_acl()
1446 tpg = lport->tpg_1; in tcm_qla2xxx_check_initiator_node_acl()
1477 struct tcm_qla2xxx_lport *lport = vha->vha_tgt.target_lport_ptr; in tcm_qla2xxx_update_sess() local
1500 if (lport->lport_loopid_map[sess->loop_id].se_nacl == se_nacl) in tcm_qla2xxx_update_sess()
1501 lport->lport_loopid_map[sess->loop_id].se_nacl = NULL; in tcm_qla2xxx_update_sess()
1503 lport->lport_loopid_map[loop_id].se_nacl = se_nacl; in tcm_qla2xxx_update_sess()
1513 if (btree_lookup32(&lport->lport_fcport_map, key)) in tcm_qla2xxx_update_sess()
1514 WARN(btree_remove32(&lport->lport_fcport_map, key) != in tcm_qla2xxx_update_sess()
1527 if (btree_lookup32(&lport->lport_fcport_map, key)) { in tcm_qla2xxx_update_sess()
1530 btree_update32(&lport->lport_fcport_map, key, se_nacl); in tcm_qla2xxx_update_sess()
1532 btree_insert32(&lport->lport_fcport_map, key, se_nacl, in tcm_qla2xxx_update_sess()
1566 static int tcm_qla2xxx_init_lport(struct tcm_qla2xxx_lport *lport) in tcm_qla2xxx_init_lport() argument
1570 rc = btree_init32(&lport->lport_fcport_map); in tcm_qla2xxx_init_lport()
1576 lport->lport_loopid_map = in tcm_qla2xxx_init_lport()
1579 if (!lport->lport_loopid_map) { in tcm_qla2xxx_init_lport()
1582 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_init_lport()
1595 struct tcm_qla2xxx_lport *lport = in tcm_qla2xxx_lport_register_cb() local
1602 lport->qla_vha = vha; in tcm_qla2xxx_lport_register_cb()
1612 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_make_lport() local
1619 lport = kzalloc(sizeof(struct tcm_qla2xxx_lport), GFP_KERNEL); in tcm_qla2xxx_make_lport()
1620 if (!lport) { in tcm_qla2xxx_make_lport()
1624 lport->lport_wwpn = wwpn; in tcm_qla2xxx_make_lport()
1625 tcm_qla2xxx_format_wwn(&lport->lport_name[0], TCM_QLA2XXX_NAMELEN, in tcm_qla2xxx_make_lport()
1627 sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) wwpn); in tcm_qla2xxx_make_lport()
1629 ret = tcm_qla2xxx_init_lport(lport); in tcm_qla2xxx_make_lport()
1633 ret = qlt_lport_register(lport, wwpn, 0, 0, in tcm_qla2xxx_make_lport()
1638 return &lport->lport_wwn; in tcm_qla2xxx_make_lport()
1640 vfree(lport->lport_loopid_map); in tcm_qla2xxx_make_lport()
1641 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_make_lport()
1643 kfree(lport); in tcm_qla2xxx_make_lport()
1649 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_drop_lport() local
1651 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_drop_lport()
1665 vfree(lport->lport_loopid_map); in tcm_qla2xxx_drop_lport()
1666 btree_for_each_safe32(&lport->lport_fcport_map, key, node) in tcm_qla2xxx_drop_lport()
1667 btree_remove32(&lport->lport_fcport_map, key); in tcm_qla2xxx_drop_lport()
1668 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_drop_lport()
1669 kfree(lport); in tcm_qla2xxx_drop_lport()
1679 struct tcm_qla2xxx_lport *lport = in tcm_qla2xxx_lport_register_npiv_cb() local
1713 lport->qla_vha = npiv_vha; in tcm_qla2xxx_lport_register_npiv_cb()
1724 struct tcm_qla2xxx_lport *lport; in tcm_qla2xxx_npiv_make_lport() local
1745 lport = kzalloc(sizeof(struct tcm_qla2xxx_lport), GFP_KERNEL); in tcm_qla2xxx_npiv_make_lport()
1746 if (!lport) { in tcm_qla2xxx_npiv_make_lport()
1750 lport->lport_npiv_wwpn = npiv_wwpn; in tcm_qla2xxx_npiv_make_lport()
1751 lport->lport_npiv_wwnn = npiv_wwnn; in tcm_qla2xxx_npiv_make_lport()
1752 sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) npiv_wwpn); in tcm_qla2xxx_npiv_make_lport()
1754 ret = tcm_qla2xxx_init_lport(lport); in tcm_qla2xxx_npiv_make_lport()
1758 ret = qlt_lport_register(lport, phys_wwpn, npiv_wwpn, npiv_wwnn, in tcm_qla2xxx_npiv_make_lport()
1763 return &lport->lport_wwn; in tcm_qla2xxx_npiv_make_lport()
1765 vfree(lport->lport_loopid_map); in tcm_qla2xxx_npiv_make_lport()
1766 btree_destroy32(&lport->lport_fcport_map); in tcm_qla2xxx_npiv_make_lport()
1768 kfree(lport); in tcm_qla2xxx_npiv_make_lport()
1774 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_drop_lport() local
1776 struct scsi_qla_host *npiv_vha = lport->qla_vha; in tcm_qla2xxx_npiv_drop_lport()
1786 kfree(lport); in tcm_qla2xxx_npiv_drop_lport()