Lines Matching refs:fc_port
271 static struct qla_tgt_cmd *tcm_qla2xxx_get_cmd(struct fc_port *sess) in tcm_qla2xxx_get_cmd()
349 struct fc_port *sess = container_of(kref, in tcm_qla2xxx_release_session()
350 struct fc_port, sess_kref); in tcm_qla2xxx_release_session()
355 static void tcm_qla2xxx_put_sess(struct fc_port *sess) in tcm_qla2xxx_put_sess()
365 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
449 struct fc_port *sess; in tcm_qla2xxx_handle_cmd()
574 struct fc_port *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
619 static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess, in tcm_qla2xxx_find_cmd_by_tag()
774 struct tcm_qla2xxx_nacl *, struct fc_port *);
778 static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess) in tcm_qla2xxx_clear_nacl_from_fcport_map()
817 static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess) in tcm_qla2xxx_shutdown_sess()
1167 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha, in tcm_qla2xxx_find_sess_by_s_id()
1194 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_s_id()
1199 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_s_id()
1210 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_s_id() argument
1234 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1235 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1239 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_s_id()
1243 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_s_id()
1248 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1249 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1261 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1262 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1265 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_s_id()
1271 static struct fc_port *tcm_qla2xxx_find_sess_by_loop_id( in tcm_qla2xxx_find_sess_by_loop_id()
1299 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_loop_id()
1304 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_loop_id()
1315 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_loop_id() argument
1330 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1331 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1332 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1333 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1337 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_loop_id()
1341 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_loop_id()
1347 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1348 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1349 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1350 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1362 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1363 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1364 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1365 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1368 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_loop_id()
1375 struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess) in tcm_qla2xxx_clear_sess_lookup()
1385 static void tcm_qla2xxx_free_session(struct fc_port *sess) in tcm_qla2xxx_free_session()
1423 struct fc_port *qlat_sess = p; in tcm_qla2xxx_session_cb()
1448 struct fc_port *qlat_sess) in tcm_qla2xxx_check_initiator_node_acl()
1492 static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id, in tcm_qla2xxx_update_sess()