Home
last modified time | relevance | path

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

123

/drivers/scsi/bfa/
Dbfa_fcs_rport.c44 static void bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport);
45 static void bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport);
46 static void bfa_fcs_rport_fcs_online_action(struct bfa_fcs_rport_s *rport);
47 static void bfa_fcs_rport_hal_online_action(struct bfa_fcs_rport_s *rport);
48 static void bfa_fcs_rport_fcs_offline_action(struct bfa_fcs_rport_s *rport);
49 static void bfa_fcs_rport_hal_offline_action(struct bfa_fcs_rport_s *rport);
50 static void bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport,
80 static void bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport,
82 static void bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport,
85 static void bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport,
[all …]
Dbfa_fcs_fcpim.c82 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline()
93 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_offline()
114 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send()
125 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli_send()
131 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_send()
149 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli()
154 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) in bfa_fcs_itnim_sm_prli()
160 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli()
177 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli()
183 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli()
[all …]
Dbfa_fcs.h293 struct bfa_rport_qualifier_s rport[], int *nrports);
342 struct bfa_fcs_rport_s *rport);
344 struct bfa_fcs_rport_s *rport);
414 struct bfa_fcs_rport_s *rport; /* parent rport */ member
461 bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) in bfa_fcs_rport_get_halrport() argument
463 return rport->bfa_rport; in bfa_fcs_rport_get_halrport()
469 void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport,
477 void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport,
479 void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);
488 void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
[all …]
Dbfa_fcs_lport.c186 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_online() local
211 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
212 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
227 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
228 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
246 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_offline() local
269 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
270 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
282 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
283 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
[all …]
Dbfad_im.c944 struct fc_rport *rport) in bfad_im_check_if_make_lun_visible() argument
947 (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_check_if_make_lun_visible()
949 struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; in bfad_im_check_if_make_lun_visible()
971 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in bfad_im_slave_alloc() local
975 if (!rport || fc_remote_port_chkready(rport)) in bfad_im_slave_alloc()
978 itnim_data = (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_slave_alloc()
996 if (bfad_im_check_if_make_lun_visible(sdev, rport) != in bfad_im_slave_alloc()
1001 sdev->hostdata = rport->dd_data; in bfad_im_slave_alloc()
1230 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in bfad_im_queuecommand_lck() local
1232 rc = fc_remote_port_chkready(rport); in bfad_im_queuecommand_lck()
Dbfa_svc.h584 void bfa_rport_online(struct bfa_rport_s *rport,
586 void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed);
587 void bfa_cb_rport_online(void *rport);
588 void bfa_cb_rport_offline(void *rport);
589 void bfa_cb_rport_qos_scn_flowid(void *rport,
595 void bfa_cb_rport_qos_scn_prio(void *rport,
635 void bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
Dbfa_fcpim.c441 if (itnim->rport->rport_info.lp_tag != lp_tag) in bfa_fcpim_port_iostats()
519 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_uninit()
540 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_created()
571 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_fwcreate()
606 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_fwcreate_qfull()
644 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_delete_pending()
671 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_online()
713 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_sler()
745 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_cleanup_offline()
782 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_cleanup_delete()
[all …]
/drivers/scsi/
Dscsi_transport_srp.c131 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_id() local
132 return sprintf(buf, SRP_PID_FMT "\n", SRP_PID(rport)); in show_srp_rport_id()
149 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_roles() local
154 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles()
167 struct srp_rport *rport = transport_class_to_srp_rport(dev); in store_srp_rport_delete() local
172 i->f->rport_delete(rport); in store_srp_rport_delete()
191 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_state() local
192 enum srp_rport_state state = rport->state; in show_srp_rport_state()
222 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_reconnect_delay() local
224 return srp_show_tmo(buf, rport->reconnect_delay); in show_reconnect_delay()
[all …]
Dscsi_transport_fc.c358 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local
365 if (rport) { in fc_target_setup()
366 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup()
367 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup()
368 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup()
704 struct fc_rport *rport = transport_class_to_rport(dev); \
705 struct Scsi_Host *shost = rport_to_shost(rport); \
708 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
709 (rport->port_state == FC_PORTSTATE_DELETED) || \
710 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
[all …]
/drivers/phy/
Dphy-rockchip-inno-usb2.c268 struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); in rockchip_usb2phy_init() local
272 if (rport->port_id == USB2PHY_PORT_HOST) { in rockchip_usb2phy_init()
274 mutex_lock(&rport->mutex); in rockchip_usb2phy_init()
276 ret = property_enable(rphy, &rport->port_cfg->ls_det_clr, true); in rockchip_usb2phy_init()
278 mutex_unlock(&rport->mutex); in rockchip_usb2phy_init()
282 ret = property_enable(rphy, &rport->port_cfg->ls_det_en, true); in rockchip_usb2phy_init()
284 mutex_unlock(&rport->mutex); in rockchip_usb2phy_init()
288 mutex_unlock(&rport->mutex); in rockchip_usb2phy_init()
289 schedule_delayed_work(&rport->sm_work, SCHEDULE_DELAY); in rockchip_usb2phy_init()
297 struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); in rockchip_usb2phy_power_on() local
[all …]
/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/s390/scsi/
Dzfcp_scsi.c65 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand() local
72 scsi_result = fc_remote_port_chkready(rport); in zfcp_scsi_queuecommand()
110 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc() local
121 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_slave_alloc()
421 port->rport = NULL; in zfcp_scsi_adapter_unregister()
576 static void zfcp_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in zfcp_set_rport_dev_loss_tmo() argument
578 rport->dev_loss_tmo = timeout; in zfcp_set_rport_dev_loss_tmo()
591 static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport) in zfcp_scsi_terminate_rport_io() argument
594 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_terminate_rport_io()
598 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_terminate_rport_io()
[all …]
Dzfcp_unit.c23 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan() local
28 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
29 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, in zfcp_unit_scsi_scan()
/drivers/message/fusion/
Dmptfc.c102 static void mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout);
194 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in mptfc_block_error_handler() local
203 while ((ready = fc_remote_port_chkready(rport) >> 16) == DID_IMM_RETRY in mptfc_block_error_handler()
264 mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) in mptfc_set_rport_loss_tmo() argument
267 rport->dev_loss_tmo = timeout; in mptfc_set_rport_loss_tmo()
269 rport->dev_loss_tmo = mptfc_dev_loss_tmo; in mptfc_set_rport_loss_tmo()
433 struct fc_rport *rport; in mptfc_register_dev() local
469 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev()
470 if (rport) { in mptfc_register_dev()
471 ri->rport = rport; in mptfc_register_dev()
[all …]
/drivers/scsi/libfc/
Dfc_fcp.c919 fsp->rport->port_id, in fc_fcp_resp()
1126 struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; in get_fsp_rec_tov()
1144 struct fc_rport *rport; in fc_fcp_cmd_send() local
1160 rport = fsp->rport; in fc_fcp_cmd_send()
1161 fsp->max_payload = rport->maxframe_size; in fc_fcp_cmd_send()
1162 rpriv = rport->dd_data; in fc_fcp_cmd_send()
1164 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send()
1388 struct fc_rport *rport = fsp->rport; in fc_fcp_timeout() local
1389 struct fc_rport_libfc_priv *rpriv = rport->dd_data; in fc_fcp_timeout()
1418 struct fc_rport *rport; in fc_fcp_rec() local
[all …]
Dfc_rport.c193 void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) in fc_set_rport_loss_tmo() argument
196 rport->dev_loss_tmo = timeout; in fc_set_rport_loss_tmo()
198 rport->dev_loss_tmo = 1; in fc_set_rport_loss_tmo()
256 struct fc_rport *rport; in fc_rport_work() local
263 rport = rdata->rport; in fc_rport_work()
275 if (!rport) in fc_rport_work()
276 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work()
277 if (!rport) { in fc_rport_work()
284 if (rdata->rport) in fc_rport_work()
286 rdata->rport = rport; in fc_rport_work()
[all …]
Dfc_libfc.h76 (pkt)->rport->port_id, \
81 (pkt)->rport->port_id, ##args); \
/drivers/hwtracing/coresight/
Dof_coresight.c114 struct device_node *rport = NULL; in of_get_coresight_platform_data() local
159 rport = of_graph_get_remote_port(ep); in of_get_coresight_platform_data()
161 if (!rparent || !rport) in of_get_coresight_platform_data()
164 if (of_graph_parse_endpoint(rport, &rendpoint)) in of_get_coresight_platform_data()
/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.c54 tgt->rport) in BNX2FC_TGT_DBG()
57 tgt->rport->port_id, &vaf); in BNX2FC_TGT_DBG()
Dbnx2fc_io.c663 struct fc_rport *rport; in bnx2fc_initiate_tmf() local
682 rport = starget_to_rport(scsi_target(sc_cmd->device)); in bnx2fc_initiate_tmf()
686 if (rport == NULL) { in bnx2fc_initiate_tmf()
691 rp = rport->dd_data; in bnx2fc_initiate_tmf()
750 did = rport->port_id; in bnx2fc_initiate_tmf()
823 struct fc_rport *rport = tgt->rport; in bnx2fc_initiate_abts() local
851 if (rport == NULL) { in bnx2fc_initiate_abts()
887 did = rport->port_id; in bnx2fc_initiate_abts()
1114 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in bnx2fc_eh_abort() local
1115 struct fc_rport_libfc_priv *rp = rport->dd_data; in bnx2fc_eh_abort()
[all …]
/drivers/scsi/ibmvscsi/
Dibmvfc.c1038 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument
1041 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo()
1043 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo()
1511 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local
1515 if (rport == tgt->rport) { in ibmvfc_relogin()
1621 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand_lck() local
1626 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand_lck()
1646 vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); in ibmvfc_queuecommand_lck()
1825 struct fc_rport *rport = job->rport; in ibmvfc_bsg_request() local
1836 if (rport) in ibmvfc_bsg_request()
[all …]
/drivers/scsi/lpfc/
Dlpfc_hbadisc.c71 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument
77 rdata = rport->dd_data; in lpfc_terminate_rport_io()
81 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io()
84 rport->port_id); in lpfc_terminate_rport_io()
105 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument
116 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk()
130 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk()
138 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
140 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
144 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()
411 rport->maxframe_size, rp->r_a_tov, in fnic_queue_wq_copy_desc()
432 struct fc_rport *rport; in fnic_queuecommand_lck() local
448 rport = starget_to_rport(scsi_target(sc->device)); in fnic_queuecommand_lck()
449 ret = fc_remote_port_chkready(rport); in fnic_queuecommand_lck()
457 if (rport) { in fnic_queuecommand_lck()
458 struct fc_rport_libfc_priv *rp = rport->dd_data; in fnic_queuecommand_lck()
541 io_req->port_id = rport->port_id; in fnic_queuecommand_lck()
1616 void fnic_terminate_rport_io(struct fc_rport *rport) in fnic_terminate_rport_io() argument
[all …]
/drivers/infiniband/ulp/srp/
Dib_srp.c923 srp_rport_get(target->rport); in srp_remove_target()
926 srp_stop_rport_timers(target->rport); in srp_remove_target()
933 srp_rport_put(target->rport); in srp_remove_target()
958 static void srp_rport_delete(struct srp_rport *rport) in srp_rport_delete() argument
960 struct srp_target_port *target = rport->lld_data; in srp_rport_delete()
1161 static void srp_terminate_io(struct srp_rport *rport) in srp_terminate_io() argument
1163 struct srp_target_port *target = rport->lld_data; in srp_terminate_io()
1197 static int srp_rport_reconnect(struct srp_rport *rport) in srp_rport_reconnect() argument
1199 struct srp_target_port *target = rport->lld_data; in srp_rport_reconnect()
2082 if (target->rport) in srp_tl_err_work()
[all …]

123