Lines Matching refs:fcport
23 struct fc_port *fcport;
36 int qla_nvme_register_remote(struct scsi_qla_host *vha, struct fc_port *fcport)
55 if (!(fcport->nvme_prli_service_param &
57 (fcport->nvme_flag & NVME_FLAG_REGISTERED))
60 fcport->nvme_flag &= ~NVME_FLAG_RESETTING;
63 req.port_name = wwn_to_u64(fcport->port_name);
64 req.node_name = wwn_to_u64(fcport->node_name);
66 req.dev_loss_tmo = fcport->dev_loss_tmo;
68 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_INITIATOR)
71 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_TARGET)
74 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_DISCOVERY)
77 req.port_id = fcport->d_id.b24;
85 &fcport->nvme_remote_port);
93 nvme_fc_set_remoteport_devloss(fcport->nvme_remote_port,
94 fcport->dev_loss_tmo);
96 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_SLER)
100 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_PI_CTRL)
104 rport = fcport->nvme_remote_port->private;
105 rport->fcport = fcport;
107 fcport->nvme_flag |= NVME_FLAG_REGISTERED;
304 fc_port_t *fcport = sp->fcport;
305 struct qla_hw_data *ha = fcport->vha->hw;
310 ql_dbg(ql_dbg_io, fcport->vha, 0xffff,
311 "%s called for sp=%p, hndl=%x on fcport=%p desc=%p deleted=%d\n",
312 __func__, sp, sp->handle, fcport, sp->u.iocb_cmd.u.nvme.desc, fcport->deleted);
314 if (!ha->flags.fw_started || fcport->deleted == QLA_SESS_DELETED)
318 ql_log(ql_log_info, sp->fcport->vha, 0xffff,
335 ql_dbg(ql_dbg_io, fcport->vha, 0x212b,
336 "%s: %s command for sp=%p, handle=%x on fcport=%p rval=%x\n",
338 sp, handle, fcport, rval);
367 fc_port_t *fcport = qla_rport->fcport;
376 if (!fcport || fcport->deleted)
383 sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
413 fcport->d_id.b24, fcport->port_name, uctx->exchange_address,
472 fc_port_t *fcport = qla_rport->fcport;
480 if (!fcport || fcport->deleted)
483 vha = fcport->vha;
490 sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
563 struct scsi_qla_host *vha = sp->fcport->vha;
650 (sp->fcport->nvme_prli_service_param &
653 sp->fcport->nvme_first_burst_size) ||
654 (sp->fcport->nvme_first_burst_size == 0))
664 if (sp->fcport->edif.enable && fd->io_dir != 0)
674 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
675 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
676 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
677 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
678 cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
764 fc_port_t *fcport;
779 fcport = qla_rport->fcport;
781 if (unlikely(!qpair || !fcport || fcport->deleted))
784 if (!(fcport->nvme_flag & NVME_FLAG_REGISTERED))
787 vha = fcport->vha;
800 if (fcport->nvme_flag & NVME_FLAG_RESETTING)
806 sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, GFP_ATOMIC);
856 fc_port_t *fcport;
859 fcport = qla_rport->fcport;
860 fcport->nvme_remote_port = NULL;
861 fcport->nvme_flag &= ~NVME_FLAG_REGISTERED;
862 fcport->nvme_flag &= ~NVME_FLAG_DELETING;
863 ql_log(ql_log_info, fcport->vha, 0x2110,
865 fcport, fcport->port_name);
866 complete(&fcport->nvme_del_done);
890 void qla_nvme_unregister_remote_port(struct fc_port *fcport)
897 ql_log(ql_log_warn, fcport->vha, 0x2112,
899 __func__, fcport, fcport->port_name);
901 if (test_bit(PFLG_DRIVER_REMOVING, &fcport->vha->pci_flags))
902 nvme_fc_set_remoteport_devloss(fcport->nvme_remote_port, 0);
904 init_completion(&fcport->nvme_del_done);
905 ret = nvme_fc_unregister_remoteport(fcport->nvme_remote_port);
907 ql_log(ql_log_info, fcport->vha, 0x2114,
910 wait_for_completion(&fcport->nvme_del_done);
1009 ha = orig_sp->fcport->vha->hw;
1029 vha = orig_sp->fcport->vha;
1187 ret = nvme_fc_rcv_ls_req(uctx->fcport->nvme_remote_port, &uctx->lsrsp,
1235 fc_port_t *fcport = NULL;
1266 fcport = qla2x00_find_fcport_by_nportid(vha, &id, 0);
1267 if (!fcport) {
1276 rport = fcport->nvme_remote_port;
1298 uctx->fcport = fcport;
1304 list_add_tail(&uctx->elem, &fcport->unsol_ctx_head);
1310 fcport->d_id.b24);