Home
last modified time | relevance | path

Searched refs:rport (Results 1 – 25 of 73) sorted by relevance

123

/drivers/scsi/bfa/
Dbfa_fcs_rport.c36 static void bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport);
37 static void bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport);
38 static void bfa_fcs_rport_fcs_online_action(struct bfa_fcs_rport_s *rport);
39 static void bfa_fcs_rport_hal_online_action(struct bfa_fcs_rport_s *rport);
40 static void bfa_fcs_rport_fcs_offline_action(struct bfa_fcs_rport_s *rport);
41 static void bfa_fcs_rport_hal_offline_action(struct bfa_fcs_rport_s *rport);
42 static void bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport,
72 static void bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport,
74 static void bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport,
77 static void bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport,
[all …]
Dbfa_fcs_fcpim.c74 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline()
85 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_offline()
106 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send()
117 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli_send()
123 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_send()
141 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli()
146 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) in bfa_fcs_itnim_sm_prli()
152 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli()
169 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli()
175 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli()
[all …]
Dbfa_fcs.h285 struct bfa_rport_qualifier_s rport[], int *nrports);
334 struct bfa_fcs_rport_s *rport);
336 struct bfa_fcs_rport_s *rport);
406 struct bfa_fcs_rport_s *rport; /* parent rport */ member
453 bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) in bfa_fcs_rport_get_halrport() argument
455 return rport->bfa_rport; in bfa_fcs_rport_get_halrport()
461 void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport,
469 void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport,
471 void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);
480 void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
[all …]
Dbfa_fcs_lport.c189 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_online() local
214 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
215 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
230 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
231 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
249 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_offline() local
272 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
273 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
285 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
286 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
[all …]
Dbfad_im.c928 struct fc_rport *rport) in bfad_im_check_if_make_lun_visible() argument
931 (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_check_if_make_lun_visible()
933 struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; in bfad_im_check_if_make_lun_visible()
955 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in bfad_im_slave_alloc() local
959 if (!rport || fc_remote_port_chkready(rport)) in bfad_im_slave_alloc()
962 itnim_data = (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_slave_alloc()
980 if (bfad_im_check_if_make_lun_visible(sdev, rport) != in bfad_im_slave_alloc()
985 sdev->hostdata = rport->dd_data; in bfad_im_slave_alloc()
1214 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in bfad_im_queuecommand_lck() local
1216 rc = fc_remote_port_chkready(rport); in bfad_im_queuecommand_lck()
Dbfa_svc.h576 void bfa_rport_online(struct bfa_rport_s *rport,
578 void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed);
579 void bfa_cb_rport_online(void *rport);
580 void bfa_cb_rport_offline(void *rport);
581 void bfa_cb_rport_qos_scn_flowid(void *rport,
587 void bfa_cb_rport_qos_scn_prio(void *rport,
627 void bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
Dbfa_fcpim.c432 if (itnim->rport->rport_info.lp_tag != lp_tag) in bfa_fcpim_port_iostats()
510 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_uninit()
531 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_created()
562 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_fwcreate()
597 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_fwcreate_qfull()
635 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_delete_pending()
662 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_online()
704 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_sler()
736 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_cleanup_offline()
773 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_cleanup_delete()
[all …]
/drivers/scsi/
Dscsi_transport_srp.c124 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_id() local
125 return sprintf(buf, "%16phC\n", rport->port_id); in show_srp_rport_id()
142 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_roles() local
147 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles()
160 struct srp_rport *rport = transport_class_to_srp_rport(dev); in store_srp_rport_delete() local
165 i->f->rport_delete(rport); in store_srp_rport_delete()
184 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_state() local
185 enum srp_rport_state state = rport->state; in show_srp_rport_state()
215 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_reconnect_delay() local
217 return srp_show_tmo(buf, rport->reconnect_delay); in show_reconnect_delay()
[all …]
Dscsi_transport_fc.c350 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local
357 if (rport) { in fc_target_setup()
358 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup()
359 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup()
360 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup()
695 struct fc_rport *rport = transport_class_to_rport(dev); \
696 struct Scsi_Host *shost = rport_to_shost(rport); \
699 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
700 (rport->port_state == FC_PORTSTATE_DELETED) || \
701 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
[all …]
/drivers/phy/rockchip/
Dphy-rockchip-inno-usb2.c405 struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); in rockchip_usb2phy_init() local
409 mutex_lock(&rport->mutex); in rockchip_usb2phy_init()
411 if (rport->port_id == USB2PHY_PORT_OTG) { in rockchip_usb2phy_init()
412 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_init()
413 rport->mode != USB_DR_MODE_UNKNOWN) { in rockchip_usb2phy_init()
416 &rport->port_cfg->bvalid_det_clr, in rockchip_usb2phy_init()
422 &rport->port_cfg->bvalid_det_en, in rockchip_usb2phy_init()
427 schedule_delayed_work(&rport->otg_sm_work, in rockchip_usb2phy_init()
431 dev_dbg(&rport->phy->dev, "mode %d\n", rport->mode); in rockchip_usb2phy_init()
433 } else if (rport->port_id == USB2PHY_PORT_HOST) { in rockchip_usb2phy_init()
[all …]
/drivers/nvme/host/
Dfc.c58 struct nvme_fc_rport *rport; member
70 struct nvme_fc_rport *rport; member
157 struct nvme_fc_rport *rport; member
494 struct nvme_fc_rport *rport) in nvme_fc_signal_discovery_scan() argument
500 if (!(rport->remoteport.port_role & FC_PORT_ROLE_NVME_DISCOVERY)) in nvme_fc_signal_discovery_scan()
508 rport->remoteport.node_name, rport->remoteport.port_name); in nvme_fc_signal_discovery_scan()
515 struct nvme_fc_rport *rport = in nvme_fc_free_rport() local
518 localport_to_lport(rport->remoteport.localport); in nvme_fc_free_rport()
521 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport()
522 WARN_ON(!list_empty(&rport->ctrl_list)); in nvme_fc_free_rport()
[all …]
/drivers/nvme/target/
Dfcloop.c238 struct fcloop_rport *rport; member
321 struct fcloop_rport *rport = in fcloop_rport_lsrqst_work() local
325 spin_lock(&rport->lock); in fcloop_rport_lsrqst_work()
327 tls_req = list_first_entry_or_null(&rport->ls_list, in fcloop_rport_lsrqst_work()
333 spin_unlock(&rport->lock); in fcloop_rport_lsrqst_work()
341 spin_lock(&rport->lock); in fcloop_rport_lsrqst_work()
343 spin_unlock(&rport->lock); in fcloop_rport_lsrqst_work()
352 struct fcloop_rport *rport = remoteport->private; in fcloop_h2t_ls_req() local
358 if (!rport->targetport) { in fcloop_h2t_ls_req()
360 spin_lock(&rport->lock); in fcloop_h2t_ls_req()
[all …]
/drivers/s390/scsi/
Dzfcp_scsi.c70 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand() local
77 scsi_result = fc_remote_port_chkready(rport); in zfcp_scsi_queuecommand()
115 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc() local
126 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_slave_alloc()
293 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_task_mgmt_function() local
305 ret = fc_block_rport(rport); in zfcp_scsi_task_mgmt_function()
346 struct fc_rport *rport = starget_to_rport(starget); in zfcp_scsi_eh_target_reset_handler() local
347 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_eh_target_reset_handler()
530 port->rport = NULL; in zfcp_scsi_adapter_unregister()
686 static void zfcp_scsi_set_rport_dev_loss_tmo(struct fc_rport *rport, in zfcp_scsi_set_rport_dev_loss_tmo() argument
[all …]
Dzfcp_unit.c24 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan() local
29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
30 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, in zfcp_unit_scsi_scan()
/drivers/scsi/csiostor/
Dcsio_attr.c64 struct fc_rport *rport; in csio_reg_rnode() local
73 rport = rn->rport; in csio_reg_rnode()
74 CSIO_ASSERT(rport != NULL); in csio_reg_rnode()
78 rn->rport = fc_remote_port_add(shost, 0, &ids); in csio_reg_rnode()
79 if (!rn->rport) { in csio_reg_rnode()
86 rport = rn->rport; in csio_reg_rnode()
88 *((struct csio_rnode **)rport->dd_data) = rn; in csio_reg_rnode()
92 rport->maxframe_size = ntohs(sp->csp.sp_bb_data); in csio_reg_rnode()
94 rport->supported_classes = FC_COS_CLASS3; in csio_reg_rnode()
96 rport->supported_classes = FC_COS_UNSPECIFIED; in csio_reg_rnode()
[all …]
/drivers/message/fusion/
Dmptfc.c102 static void mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout);
193 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in mptfc_block_error_handler() local
202 while ((ready = fc_remote_port_chkready(rport) >> 16) == DID_IMM_RETRY in mptfc_block_error_handler()
256 mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) in mptfc_set_rport_loss_tmo() argument
259 rport->dev_loss_tmo = timeout; in mptfc_set_rport_loss_tmo()
261 rport->dev_loss_tmo = mptfc_dev_loss_tmo; in mptfc_set_rport_loss_tmo()
425 struct fc_rport *rport; in mptfc_register_dev() local
461 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev()
462 if (rport) { in mptfc_register_dev()
463 ri->rport = rport; in mptfc_register_dev()
[all …]
/drivers/scsi/libfc/
Dfc_fcp.c466 struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; in get_fsp_rec_tov()
953 fsp->rport->port_id); in fc_fcp_resp()
958 fsp->rport->port_id, in fc_fcp_resp()
966 fsp->rport->port_id, in fc_fcp_resp()
1179 struct fc_rport *rport; in fc_fcp_cmd_send() local
1195 rport = fsp->rport; in fc_fcp_cmd_send()
1196 fsp->max_payload = rport->maxframe_size; in fc_fcp_cmd_send()
1197 rpriv = rport->dd_data; in fc_fcp_cmd_send()
1199 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send()
1430 struct fc_rport *rport = fsp->rport; in fc_fcp_timeout() local
[all …]
Dfc_rport.c203 void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) in fc_set_rport_loss_tmo() argument
206 rport->dev_loss_tmo = timeout; in fc_set_rport_loss_tmo()
208 rport->dev_loss_tmo = 1; in fc_set_rport_loss_tmo()
268 struct fc_rport *rport; in fc_rport_work() local
275 rport = rdata->rport; in fc_rport_work()
287 if (!rport) { in fc_rport_work()
289 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work()
291 if (!rport) { in fc_rport_work()
298 if (rdata->rport) in fc_rport_work()
300 rdata->rport = rport; in fc_rport_work()
[all …]
/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c84 struct fc_rport *rport = rdata->rport; in bnx2fc_offload_session() local
95 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session()
355 struct fc_rport *rport = rdata->rport; in bnx2fc_init_tgt() local
361 tgt->rport = rport; in bnx2fc_init_tgt()
446 struct fc_rport *rport = rdata->rport; in bnx2fc_rport_event_handler() local
455 if (!rport) { in bnx2fc_rport_event_handler()
460 rp = rport->dd_data; in bnx2fc_rport_event_handler()
461 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler()
532 if (!rport) { in bnx2fc_rport_event_handler()
537 rp = rport->dd_data; in bnx2fc_rport_event_handler()
Dbnx2fc_debug.c55 tgt->rport) in BNX2FC_TGT_DBG()
58 tgt->rport->port_id, &vaf); in BNX2FC_TGT_DBG()
/drivers/scsi/ibmvscsi/
Dibmvfc.c1084 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument
1087 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo()
1089 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo()
1556 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local
1560 if (rport == tgt->rport) { in ibmvfc_relogin()
1666 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand_lck() local
1671 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand_lck()
1691 vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); in ibmvfc_queuecommand_lck()
1870 struct fc_rport *rport = fc_bsg_to_rport(job); in ibmvfc_bsg_request() local
1883 if (rport) in ibmvfc_bsg_request()
[all …]
/drivers/scsi/qla2xxx/
Dqla_nvme.c16 struct qla_nvme_rport *rport; in qla_nvme_register_remote() local
79 rport = fcport->nvme_remote_port->private; in qla_nvme_register_remote()
80 rport->fcport = fcport; in qla_nvme_register_remote()
261 struct nvme_fc_remote_port *rport, struct nvmefc_ls_req *fd) in qla_nvme_ls_abort() argument
283 struct nvme_fc_remote_port *rport, struct nvmefc_ls_req *fd) in qla_nvme_ls_req() argument
285 struct qla_nvme_rport *qla_rport = rport->private; in qla_nvme_ls_req()
344 struct nvme_fc_remote_port *rport, void *hw_queue_handle, in qla_nvme_fcp_abort() argument
549 struct nvme_fc_remote_port *rport, void *hw_queue_handle, in qla_nvme_post_cmd() argument
559 struct qla_nvme_rport *qla_rport = rport->private; in qla_nvme_post_cmd()
633 static void qla_nvme_remoteport_delete(struct nvme_fc_remote_port *rport) in qla_nvme_remoteport_delete() argument
[all …]
/drivers/scsi/lpfc/
Dlpfc_nvme.c357 struct lpfc_nvme_rport *rport = remoteport->private; in lpfc_nvme_remoteport_delete() local
361 ndlp = rport->ndlp; in lpfc_nvme_remoteport_delete()
809 struct lpfc_nvme_rport *rport; in lpfc_nvme_ls_req() local
814 rport = (struct lpfc_nvme_rport *)pnvme_rport->private; in lpfc_nvme_ls_req()
815 if (unlikely(!lport) || unlikely(!rport)) in lpfc_nvme_ls_req()
824 ret = __lpfc_nvme_ls_req(vport, rport->ndlp, pnvme_lsreq, in lpfc_nvme_ls_req()
1625 struct lpfc_nvme_rport *rport; in lpfc_nvme_fcp_io_submit() local
1675 rport = (struct lpfc_nvme_rport *)pnvme_rport->private; in lpfc_nvme_fcp_io_submit()
1682 ndlp = rport->ndlp; in lpfc_nvme_fcp_io_submit()
1687 rport, ndlp, pnvme_rport->port_id); in lpfc_nvme_fcp_io_submit()
[all …]
Dlpfc_hbadisc.c77 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument
83 rdata = rport->dd_data; in lpfc_terminate_rport_io()
87 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io()
90 rport->port_id); in lpfc_terminate_rport_io()
111 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument
123 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk()
137 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk()
145 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
147 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
151 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
[all …]
/drivers/scsi/fnic/
Dfnic_scsi.c324 struct fc_rport *rport = starget_to_rport(scsi_target(sc->device)); in fnic_queue_wq_copy_desc() local
325 struct fc_rport_libfc_priv *rp = rport->dd_data; in fnic_queue_wq_copy_desc()
405 rport->maxframe_size, rp->r_a_tov, in fnic_queue_wq_copy_desc()
426 struct fc_rport *rport; in fnic_queuecommand_lck() local
446 rport = starget_to_rport(scsi_target(sc->device)); in fnic_queuecommand_lck()
447 if (!rport) { in fnic_queuecommand_lck()
455 ret = fc_remote_port_chkready(rport); in fnic_queuecommand_lck()
465 rp = rport->dd_data; in fnic_queuecommand_lck()
469 rport->port_id); in fnic_queuecommand_lck()
480 rport->port_id, rp->rp_state); in fnic_queuecommand_lck()
[all …]

123