/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_fcs_rport.c | 36 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 …]
|
H A D | bfa_fcs_fcpim.c | 74 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 …]
|
H A D | bfa_fcs.h | 282 struct bfa_rport_qualifier_s rport[], int *nrports); 331 struct bfa_fcs_rport_s *rport); 333 struct bfa_fcs_rport_s *rport); 403 struct bfa_fcs_rport_s *rport; /* parent rport */ member 450 bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) in bfa_fcs_rport_get_halrport() argument 452 return rport->bfa_rport; in bfa_fcs_rport_get_halrport() 458 void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport, 466 void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, 468 void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport); 477 void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs, [all …]
|
H A D | bfa_fcs_lport.c | 189 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 …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_transport_srp.c | 124 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 …]
|
H A D | scsi_transport_fc.c | 360 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local 367 if (rport) { in fc_target_setup() 368 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup() 369 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup() 370 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup() 655 struct fc_rport *rport; in fc_find_rport_by_wwpn() local 660 list_for_each_entry(rport, &fc_host_rports(shost), peers) { in fc_find_rport_by_wwpn() 661 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn() 664 if (rport->port_name == wwpn) { in fc_find_rport_by_wwpn() 666 return rport; in fc_find_rport_by_wwpn() [all …]
|
/openbmc/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-inno-usb2.c | 449 struct rockchip_usb2phy_port *rport, in rockchip_usb2phy_enable_host_disc_irq() argument 454 ret = property_enable(rphy->grf, &rport->port_cfg->disfall_clr, true); in rockchip_usb2phy_enable_host_disc_irq() 458 ret = property_enable(rphy->grf, &rport->port_cfg->disfall_en, en); in rockchip_usb2phy_enable_host_disc_irq() 462 ret = property_enable(rphy->grf, &rport->port_cfg->disrise_clr, true); in rockchip_usb2phy_enable_host_disc_irq() 466 return property_enable(rphy->grf, &rport->port_cfg->disrise_en, en); in rockchip_usb2phy_enable_host_disc_irq() 471 struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); in rockchip_usb2phy_init() local 475 mutex_lock(&rport->mutex); in rockchip_usb2phy_init() 477 if (rport->port_id == USB2PHY_PORT_OTG) { in rockchip_usb2phy_init() 478 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_init() 479 rport->mode != USB_DR_MODE_UNKNOWN) { in rockchip_usb2phy_init() [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | fc.c | 59 struct nvme_fc_rport *rport; member 71 struct nvme_fc_rport *rport; member 158 struct nvme_fc_rport *rport; member 495 struct nvme_fc_rport *rport) in nvme_fc_signal_discovery_scan() argument 501 if (!(rport->remoteport.port_role & FC_PORT_ROLE_NVME_DISCOVERY)) in nvme_fc_signal_discovery_scan() 509 rport->remoteport.node_name, rport->remoteport.port_name); in nvme_fc_signal_discovery_scan() 516 struct nvme_fc_rport *rport = in nvme_fc_free_rport() local 519 localport_to_lport(rport->remoteport.localport); in nvme_fc_free_rport() 522 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport() 523 WARN_ON(!list_empty(&rport->ctrl_list)); in nvme_fc_free_rport() [all …]
|
/openbmc/linux/include/scsi/ |
H A D | scsi_transport_srp.h | 100 int (*reconnect)(struct srp_rport *rport); 101 void (*terminate_rport_io)(struct srp_rport *rport); 102 void (*rport_delete)(struct srp_rport *rport); 109 extern void srp_rport_get(struct srp_rport *rport); 110 extern void srp_rport_put(struct srp_rport *rport); 117 extern int srp_reconnect_rport(struct srp_rport *rport); 118 extern void srp_start_tl_fail_timers(struct srp_rport *rport); 120 extern void srp_stop_rport_timers(struct srp_rport *rport); 131 static inline int srp_chkready(struct srp_rport *rport) in srp_chkready() argument 133 switch (rport->state) { in srp_chkready()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | fcloop.c | 238 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 …]
|
/openbmc/linux/drivers/s390/scsi/ |
H A D | zfcp_scsi.c | 70 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 …]
|
H A D | zfcp_unit.c | 24 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()
|
/openbmc/linux/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 64 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 …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | umcast_kern.c | 22 int rport; member 37 dpri->rport = init->rport; in umcast_init() 44 "%u\n", dpri->addr, dpri->rport, dpri->lport); in umcast_init() 108 init->rport = init->lport; in mcast_setup() 125 .rport = 1102 }); in ucast_setup() 145 init->rport = simple_strtoul(rport_str, &last, 10); in ucast_setup() 156 init->lport, init->addr, init->rport); in ucast_setup()
|
/openbmc/linux/drivers/message/fusion/ |
H A D | mptfc.c | 102 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 …]
|
/openbmc/linux/drivers/scsi/libfc/ |
H A D | fc_fcp.c | 459 struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; in get_fsp_rec_tov() 943 fsp->rport->port_id); in fc_fcp_resp() 948 fsp->rport->port_id, in fc_fcp_resp() 956 fsp->rport->port_id, in fc_fcp_resp() 1169 struct fc_rport *rport; in fc_fcp_cmd_send() local 1185 rport = fsp->rport; in fc_fcp_cmd_send() 1186 fsp->max_payload = rport->maxframe_size; in fc_fcp_cmd_send() 1187 rpriv = rport->dd_data; in fc_fcp_cmd_send() 1189 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send() 1420 struct fc_rport *rport = fsp->rport; in fc_fcp_timeout() local [all …]
|
H A D | fc_rport.c | 203 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 …]
|
/openbmc/linux/sound/soc/generic/ |
H A D | audio-graph-card2.c | 490 struct device_node *rport = of_get_parent(ep); in __graph_parse_node() local 491 struct device_node *rports = of_get_parent(rport); in __graph_parse_node() 495 snd_soc_of_parse_node_prefix(rport, cconf, codecs->of_node, "prefix"); in __graph_parse_node() 497 of_node_put(rport); in __graph_parse_node() 690 struct device_node *rport = of_graph_get_remote_port(ep); in audio_graph2_link_dpcm() local 724 ret = graph_parse_node(priv, GRAPH_DPCM, rport, li, 1); in audio_graph2_link_dpcm() 757 ret = graph_parse_node(priv, GRAPH_DPCM, rport, li, 0); in audio_graph2_link_dpcm() 767 graph_link_init(priv, rport, li, is_cpu); in audio_graph2_link_dpcm() 771 of_node_put(rport); in audio_graph2_link_dpcm() 980 struct device_node *rport = of_graph_get_remote_port(ep); in graph_count_dpcm() local [all …]
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | userspace_pm.sh | 611 rport "$client4_port" token "$server4_token" 624 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\ 649 dead:beef:2::2 rport "$client6_port" token "$server6_token" 663 dead:beef:2::2 rport "$client6_port" token "$server6_token" 687 ip netns exec "$ns1" ./pm_nl_ctl csf lip 10.0.2.1 lid 23 rip 10.0.2.2 rport\ 701 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\ 726 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\ 739 ip netns exec "$ns2" ./pm_nl_ctl dsf lip 10.0.2.2 lport "$sport" rip 10.0.2.1 rport\ 764 dead:beef:2::1 rport $app6_port token "$client6_token" 779 dead:beef:2::1 rport $app6_port token "$client6_token" [all …]
|
/openbmc/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_tgt.c | 84 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()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-fc_remote_ports | 1 What: /sys/class/fc_remote_ports/rport-X:Y-Z/statistics/fpin_cn_yyy 9 What: /sys/class/fc_remote_ports/rport-X:Y-Z/statistics/fpin_li_yyy 17 What: /sys/class/fc_remote_ports/rport-X:Y-Z/statistics/fpin_dn_yyy
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sockmap_kern.h | 111 __u32 rport = skb->remote_port; in bpf_prog2() local 115 __sink(rport); in bpf_prog2() 193 __u32 lport, rport; in bpf_sockmap() local 201 rport = skops->remote_port; in bpf_sockmap() 216 rport = skops->remote_port; in bpf_sockmap() 218 if (bpf_ntohl(rport) == 10001) { in bpf_sockmap()
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | trace_cm.h | 209 __field(u16, rport) 226 __entry->rport = cm_node->rem_port; 252 __entry->rport, __entry->ipv4) 286 __field(u16, rport) 301 __entry->rport = cm_node->rem_port; 324 __entry->rport, __entry->ipv4) 408 __field(u16, rport) 421 __entry->rport = cm_node->rem_port; 442 __entry->rport, __entry->ipv4)
|
/openbmc/linux/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 1339 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument 1342 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo() 1344 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo() 1798 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local 1804 if (rport == tgt->rport) { in ibmvfc_relogin() 1898 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_init_vfc_cmd() local 1908 vfc_cmd->target_wwpn = cpu_to_be64(rport->port_name); in ibmvfc_init_vfc_cmd() 1917 vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); in ibmvfc_init_vfc_cmd() 1934 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand() local 1943 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand() [all …]
|
/openbmc/linux/drivers/scsi/lpfc/ |
H A D | lpfc_nvme.c | 191 struct lpfc_nvme_rport *rport = remoteport->private; in lpfc_nvme_remoteport_delete() local 196 ndlp = rport->ndlp; in lpfc_nvme_remoteport_delete() 199 __func__, rport, remoteport); in lpfc_nvme_remoteport_delete() 206 __func__, ndlp, ndlp->nlp_state, rport); in lpfc_nvme_remoteport_delete() 667 struct lpfc_nvme_rport *rport; in lpfc_nvme_ls_req() local 672 rport = (struct lpfc_nvme_rport *)pnvme_rport->private; in lpfc_nvme_ls_req() 673 if (unlikely(!lport) || unlikely(!rport)) in lpfc_nvme_ls_req() 683 ret = __lpfc_nvme_ls_req(vport, rport->ndlp, pnvme_lsreq, in lpfc_nvme_ls_req() 1536 struct lpfc_nvme_rport *rport; in lpfc_nvme_fcp_io_submit() local 1590 rport = (struct lpfc_nvme_rport *)pnvme_rport->private; in lpfc_nvme_fcp_io_submit() [all …]
|