Lines Matching defs:fc_port
271 static struct qla_tgt_cmd *tcm_qla2xxx_get_cmd(struct fc_port *sess)
349 struct fc_port *sess = container_of(kref,
350 struct fc_port, sess_kref);
355 static void tcm_qla2xxx_put_sess(struct fc_port *sess)
365 struct fc_port *sess = se_sess->fabric_sess_ptr;
449 struct fc_port *sess;
464 pr_err("Unable to locate struct fc_port from qla_tgt_cmd\n");
574 struct fc_port *sess = mcmd->sess;
619 static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess,
774 struct tcm_qla2xxx_nacl *, struct fc_port *);
778 static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess)
817 static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess)
1167 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha,
1194 if (!nacl->fc_port) {
1195 pr_err("Unable to locate struct fc_port\n");
1199 return nacl->fc_port;
1210 struct fc_port *fc_port,
1223 pr_debug("Setting up new fc_port entry to new_se_nacl\n");
1231 pr_debug("Wiping nonexisting fc_port entry\n");
1234 fc_port->se_sess = se_sess;
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");
1248 fc_port->se_sess = se_sess;
1249 nacl->fc_port = fc_port;
1254 pr_debug("Clearing existing fc_port entry\n");
1259 pr_debug("Replacing existing fc_port entry w/o active nacl->fc_port\n");
1261 fc_port->se_sess = se_sess;
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);
1271 static struct fc_port *tcm_qla2xxx_find_sess_by_loop_id(
1299 if (!nacl->fc_port) {
1300 pr_err("Unable to locate struct fc_port\n");
1304 return nacl->fc_port;
1315 struct fc_port *fc_port,
1330 if (fc_port->se_sess != se_sess)
1331 fc_port->se_sess = se_sess;
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");
1347 if (fc_port->se_sess != se_sess)
1348 fc_port->se_sess = se_sess;
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");
1362 if (fc_port->se_sess != se_sess)
1363 fc_port->se_sess = se_sess;
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)
1385 static void tcm_qla2xxx_free_session(struct fc_port *sess)
1397 pr_err("struct fc_port->se_sess is NULL\n");
1423 struct fc_port *qlat_sess = p;
1448 struct fc_port *qlat_sess)
1492 static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id,