Lines Matching refs:fc_port
326 struct fc_port *sess = container_of(kref, in tcm_qla2xxx_release_session()
327 struct fc_port, sess_kref); in tcm_qla2xxx_release_session()
332 static void tcm_qla2xxx_put_sess(struct fc_port *sess) in tcm_qla2xxx_put_sess()
342 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
426 struct fc_port *sess; in tcm_qla2xxx_handle_cmd()
551 struct fc_port *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
596 static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess, in tcm_qla2xxx_find_cmd_by_tag()
755 struct tcm_qla2xxx_nacl *, struct fc_port *);
759 static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess) in tcm_qla2xxx_clear_nacl_from_fcport_map()
798 static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess) in tcm_qla2xxx_shutdown_sess()
1146 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha, in tcm_qla2xxx_find_sess_by_s_id()
1173 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_s_id()
1178 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_s_id()
1189 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_s_id() argument
1213 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1214 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1218 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_s_id()
1222 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_s_id()
1227 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1228 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1240 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1241 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1244 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_s_id()
1250 static struct fc_port *tcm_qla2xxx_find_sess_by_loop_id( in tcm_qla2xxx_find_sess_by_loop_id()
1278 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_loop_id()
1283 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_loop_id()
1294 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_loop_id() argument
1309 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1310 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1311 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1312 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1316 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_loop_id()
1320 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_loop_id()
1326 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1327 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1328 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1329 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1341 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1342 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1343 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1344 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1347 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_loop_id()
1354 struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess) in tcm_qla2xxx_clear_sess_lookup()
1364 static void tcm_qla2xxx_free_session(struct fc_port *sess) in tcm_qla2xxx_free_session()
1402 struct fc_port *qlat_sess = p; in tcm_qla2xxx_session_cb()
1427 struct fc_port *qlat_sess) in tcm_qla2xxx_check_initiator_node_acl()
1471 static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id, in tcm_qla2xxx_update_sess()