Lines Matching defs:fcport
2642 fc_port_t *fcport;
2645 list_for_each_entry(fcport, &vha->vp_fcports, list) {
2646 if (fcport->rport &&
2647 starget->id == fcport->rport->scsi_target_id) {
2648 node_name = wwn_to_u64(fcport->node_name);
2661 fc_port_t *fcport;
2664 list_for_each_entry(fcport, &vha->vp_fcports, list) {
2665 if (fcport->rport &&
2666 starget->id == fcport->rport->scsi_target_id) {
2667 port_name = wwn_to_u64(fcport->port_name);
2680 fc_port_t *fcport;
2683 list_for_each_entry(fcport, &vha->vp_fcports, list) {
2684 if (fcport->rport &&
2685 starget->id == fcport->rport->scsi_target_id) {
2686 port_id = fcport->d_id.b.domain << 16 |
2687 fcport->d_id.b.area << 8 | fcport->d_id.b.al_pa;
2698 fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
2702 if (IS_ENABLED(CONFIG_NVME_FC) && fcport && fcport->nvme_remote_port)
2703 nvme_fc_set_remoteport_devloss(fcport->nvme_remote_port,
2711 fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
2714 if (!fcport)
2717 ql_dbg(ql_dbg_async, fcport->vha, 0x5101,
2718 DBG_FCPORT_PRFMT(fcport, "dev_loss_tmo expiry, rport_state=%d",
2722 * Now that the rport has been deleted, set the fcport state to
2723 * FCS_DEVICE_DEAD, if the fcport is still lost.
2725 if (fcport->scan_state != QLA_FCPORT_FOUND)
2726 qla2x00_set_fcport_state(fcport, FCS_DEVICE_DEAD);
2735 fcport->rport = NULL;
2740 if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags))
2743 if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) {
2744 qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16);
2752 fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
2755 if (!fcport)
2758 if (test_bit(UNLOADING, &fcport->vha->dpc_flags))
2761 if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags))
2763 vha = fcport->vha;
2765 if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) {
2766 qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16);
2767 qla2x00_eh_wait_for_pending_commands(fcport->vha, fcport->d_id.b24,
2772 * At this point all fcport's software-states are cleared. Perform any
2777 if (fcport->loop_id != FC_NO_LOOP_ID) {
2778 if (IS_FWI2_CAPABLE(fcport->vha->hw) &&
2779 fcport->scan_state != QLA_FCPORT_FOUND) {
2780 if (fcport->loop_id != FC_NO_LOOP_ID)
2781 fcport->logout_on_delete = 1;
2783 if (!EDIF_NEGOTIATION_PENDING(fcport)) {
2784 ql_dbg(ql_dbg_disc, fcport->vha, 0x911e,
2787 qlt_schedule_sess_for_deletion(fcport);
2789 } else if (!IS_FWI2_CAPABLE(fcport->vha->hw)) {
2790 qla2x00_port_logout(fcport->vha, fcport);
2795 if (qla2x00_eh_wait_for_pending_commands(fcport->vha, fcport->d_id.b24, 0, WAIT_TARGET)) {