Lines Matching defs:fc_port
276 static struct qla_tgt_cmd *tcm_qla2xxx_get_cmd(struct fc_port *sess)
354 struct fc_port *sess = container_of(kref,
355 struct fc_port, sess_kref);
360 static void tcm_qla2xxx_put_sess(struct fc_port *sess)
370 struct fc_port *sess = se_sess->fabric_sess_ptr;
439 struct fc_port *sess;
455 pr_err("Unable to locate struct fc_port from qla_tgt_cmd\n");
578 struct fc_port *sess = mcmd->sess;
621 static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess,
779 struct tcm_qla2xxx_nacl *, struct fc_port *);
783 static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess)
822 static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess)
1122 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha,
1149 if (!nacl->fc_port) {
1150 pr_err("Unable to locate struct fc_port\n");
1154 return nacl->fc_port;
1165 struct fc_port *fc_port,
1178 pr_debug("Setting up new fc_port entry to new_se_nacl\n");
1186 pr_debug("Wiping nonexisting fc_port entry\n");
1189 fc_port->se_sess = se_sess;
1190 nacl->fc_port = fc_port;
1194 if (nacl->fc_port) {
1196 pr_debug("Clearing existing nacl->fc_port and fc_port entry\n");
1198 nacl->fc_port = NULL;
1201 pr_debug("Replacing existing nacl->fc_port and fc_port entry\n");
1203 fc_port->se_sess = se_sess;
1204 nacl->fc_port = fc_port;
1209 pr_debug("Clearing existing fc_port entry\n");
1214 pr_debug("Replacing existing fc_port entry w/o active nacl->fc_port\n");
1216 fc_port->se_sess = se_sess;
1217 nacl->fc_port = fc_port;
1219 pr_debug("Setup nacl->fc_port %p by s_id for se_nacl: %p, initiatorname: %s\n",
1220 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname);
1226 static struct fc_port *tcm_qla2xxx_find_sess_by_loop_id(
1254 if (!nacl->fc_port) {
1255 pr_err("Unable to locate struct fc_port\n");
1259 return nacl->fc_port;
1270 struct fc_port *fc_port,
1285 if (fc_port->se_sess != se_sess)
1286 fc_port->se_sess = se_sess;
1287 if (nacl->fc_port != fc_port)
1288 nacl->fc_port = fc_port;
1292 if (nacl->fc_port) {
1294 pr_debug("Clearing nacl->fc_port and fc_loopid->se_nacl\n");
1296 nacl->fc_port = NULL;
1300 pr_debug("Replacing existing nacl->fc_port and fc_loopid->se_nacl\n");
1302 if (fc_port->se_sess != se_sess)
1303 fc_port->se_sess = se_sess;
1304 if (nacl->fc_port != fc_port)
1305 nacl->fc_port = fc_port;
1315 pr_debug("Replacing existing fc_loopid->se_nacl w/o active nacl->fc_port\n");
1317 if (fc_port->se_sess != se_sess)
1318 fc_port->se_sess = se_sess;
1319 if (nacl->fc_port != fc_port)
1320 nacl->fc_port = fc_port;
1322 pr_debug("Setup nacl->fc_port %p by loop_id for se_nacl: %p, initiatorname: %s\n",
1323 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname);
1330 struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess)
1340 static void tcm_qla2xxx_free_session(struct fc_port *sess)
1350 pr_err("struct fc_port->se_sess is NULL\n");
1376 struct fc_port *qlat_sess = p;
1401 struct fc_port *qlat_sess)
1445 static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id,