Lines Matching refs:fcport
2642 fc_port_t *fcport; in qla2x00_get_starget_node_name() local
2645 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_node_name()
2646 if (fcport->rport && in qla2x00_get_starget_node_name()
2647 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_node_name()
2648 node_name = wwn_to_u64(fcport->node_name); in qla2x00_get_starget_node_name()
2661 fc_port_t *fcport; in qla2x00_get_starget_port_name() local
2664 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_port_name()
2665 if (fcport->rport && in qla2x00_get_starget_port_name()
2666 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_port_name()
2667 port_name = wwn_to_u64(fcport->port_name); in qla2x00_get_starget_port_name()
2680 fc_port_t *fcport; in qla2x00_get_starget_port_id() local
2683 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_port_id()
2684 if (fcport->rport && in qla2x00_get_starget_port_id()
2685 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_port_id()
2686 port_id = fcport->d_id.b.domain << 16 | in qla2x00_get_starget_port_id()
2687 fcport->d_id.b.area << 8 | fcport->d_id.b.al_pa; in qla2x00_get_starget_port_id()
2698 fc_port_t *fcport = *(fc_port_t **)rport->dd_data; in qla2x00_set_rport_loss_tmo() local
2702 if (IS_ENABLED(CONFIG_NVME_FC) && fcport && fcport->nvme_remote_port) in qla2x00_set_rport_loss_tmo()
2703 nvme_fc_set_remoteport_devloss(fcport->nvme_remote_port, in qla2x00_set_rport_loss_tmo()
2711 fc_port_t *fcport = *(fc_port_t **)rport->dd_data; in qla2x00_dev_loss_tmo_callbk() local
2714 if (!fcport) in qla2x00_dev_loss_tmo_callbk()
2717 ql_dbg(ql_dbg_async, fcport->vha, 0x5101, in qla2x00_dev_loss_tmo_callbk()
2718 DBG_FCPORT_PRFMT(fcport, "dev_loss_tmo expiry, rport_state=%d", in qla2x00_dev_loss_tmo_callbk()
2725 if (fcport->scan_state != QLA_FCPORT_FOUND) in qla2x00_dev_loss_tmo_callbk()
2726 qla2x00_set_fcport_state(fcport, FCS_DEVICE_DEAD); in qla2x00_dev_loss_tmo_callbk()
2735 fcport->rport = NULL; in qla2x00_dev_loss_tmo_callbk()
2740 if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags)) in qla2x00_dev_loss_tmo_callbk()
2743 if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) { in qla2x00_dev_loss_tmo_callbk()
2744 qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16); in qla2x00_dev_loss_tmo_callbk()
2752 fc_port_t *fcport = *(fc_port_t **)rport->dd_data; in qla2x00_terminate_rport_io() local
2754 if (!fcport) in qla2x00_terminate_rport_io()
2757 if (test_bit(UNLOADING, &fcport->vha->dpc_flags)) in qla2x00_terminate_rport_io()
2760 if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags)) in qla2x00_terminate_rport_io()
2763 if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) { in qla2x00_terminate_rport_io()
2764 qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16); in qla2x00_terminate_rport_io()
2773 if (fcport->loop_id != FC_NO_LOOP_ID) { in qla2x00_terminate_rport_io()
2774 if (IS_FWI2_CAPABLE(fcport->vha->hw) && in qla2x00_terminate_rport_io()
2775 fcport->scan_state != QLA_FCPORT_FOUND) { in qla2x00_terminate_rport_io()
2776 if (fcport->loop_id != FC_NO_LOOP_ID) in qla2x00_terminate_rport_io()
2777 fcport->logout_on_delete = 1; in qla2x00_terminate_rport_io()
2779 if (!EDIF_NEGOTIATION_PENDING(fcport)) { in qla2x00_terminate_rport_io()
2780 ql_dbg(ql_dbg_disc, fcport->vha, 0x911e, in qla2x00_terminate_rport_io()
2783 qlt_schedule_sess_for_deletion(fcport); in qla2x00_terminate_rport_io()
2785 } else if (!IS_FWI2_CAPABLE(fcport->vha->hw)) { in qla2x00_terminate_rport_io()
2786 qla2x00_port_logout(fcport->vha, fcport); in qla2x00_terminate_rport_io()