Lines Matching refs:nacl
424 static void tcm_qla2xxx_set_default_node_attrs(struct se_node_acl *nacl)
785 struct tcm_qla2xxx_nacl *nacl = container_of(se_nacl,
789 pr_debug("fc_rport domain: port_id 0x%06x\n", nacl->nport_id);
791 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id);
794 * The nacl no longer matches what we think it should be.
799 btree_insert32(&lport->lport_fcport_map, nacl->nport_id,
804 se_nacl, nacl->nport_wwnn, nacl->nport_id);
814 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess);
825 struct tcm_qla2xxx_nacl *nacl =
832 nacl->nport_wwnn = wwnn;
833 tcm_qla2xxx_format_wwn(&nacl->nport_name[0], TCM_QLA2XXX_NAMELEN, wwnn);
1172 struct tcm_qla2xxx_nacl *nacl;
1193 nacl = container_of(se_nacl, struct tcm_qla2xxx_nacl, se_node_acl);
1194 if (!nacl->fc_port) {
1199 return nacl->fc_port;
1208 struct tcm_qla2xxx_nacl *nacl,
1224 nacl->nport_id = key;
1235 nacl->fc_port = fc_port;
1239 if (nacl->fc_port) {
1241 pr_debug("Clearing existing nacl->fc_port and fc_port entry\n");
1243 nacl->fc_port = NULL;
1246 pr_debug("Replacing existing nacl->fc_port and fc_port entry\n");
1249 nacl->fc_port = fc_port;
1259 pr_debug("Replacing existing fc_port entry w/o active nacl->fc_port\n");
1262 nacl->fc_port = fc_port;
1264 pr_debug("Setup nacl->fc_port %p by s_id for se_nacl: %p, initiatorname: %s\n",
1265 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname);
1277 struct tcm_qla2xxx_nacl *nacl;
1297 nacl = container_of(se_nacl, struct tcm_qla2xxx_nacl, se_node_acl);
1299 if (!nacl->fc_port) {
1304 return nacl->fc_port;
1313 struct tcm_qla2xxx_nacl *nacl,
1332 if (nacl->fc_port != fc_port)
1333 nacl->fc_port = fc_port;
1337 if (nacl->fc_port) {
1339 pr_debug("Clearing nacl->fc_port and fc_loopid->se_nacl\n");
1341 nacl->fc_port = NULL;
1345 pr_debug("Replacing existing nacl->fc_port and fc_loopid->se_nacl\n");
1349 if (nacl->fc_port != fc_port)
1350 nacl->fc_port = fc_port;
1360 pr_debug("Replacing existing fc_loopid->se_nacl w/o active nacl->fc_port\n");
1364 if (nacl->fc_port != fc_port)
1365 nacl->fc_port = fc_port;
1367 pr_debug("Setup nacl->fc_port %p by loop_id for se_nacl: %p, initiatorname: %s\n",
1368 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname);
1375 struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess)
1379 tcm_qla2xxx_set_sess_by_s_id(lport, NULL, nacl, se_sess,
1381 tcm_qla2xxx_set_sess_by_loop_id(lport, NULL, nacl, se_sess,
1421 struct tcm_qla2xxx_nacl *nacl = container_of(se_nacl,
1432 tcm_qla2xxx_set_sess_by_s_id(lport, se_nacl, nacl, se_sess, qlat_sess,
1434 tcm_qla2xxx_set_sess_by_loop_id(lport, se_nacl, nacl,
1500 struct tcm_qla2xxx_nacl *nacl = container_of(se_nacl,
1558 nacl->nport_id = key;