Home
last modified time | relevance | path

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

123

/linux-3.4.99/drivers/scsi/bfa/
Dbfa_fcs_rport.c37 static void bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport);
38 static void bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport);
39 static void bfa_fcs_rport_online_action(struct bfa_fcs_rport_s *rport);
40 static void bfa_fcs_rport_offline_action(struct bfa_fcs_rport_s *rport);
41 static void bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport,
71 static void bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport,
73 static void bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport,
76 static void bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport,
78 static void bfa_fcs_rport_send_prlo_acc(struct bfa_fcs_rport_s *rport);
80 static void bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport,
[all …]
Dbfa_fcs_fcpim.c98 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline()
109 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_offline()
130 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send()
146 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_send()
164 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli()
169 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) { in bfa_fcs_itnim_sm_prli()
191 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli()
214 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_retry()
227 bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP); in bfa_fcs_itnim_sm_prli_retry()
235 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_retry()
[all …]
Dbfa_fcs.h334 struct bfa_fcs_rport_s *rport);
336 struct bfa_fcs_rport_s *rport);
402 struct bfa_fcs_rport_s *rport; /* parent rport */ member
447 bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) in bfa_fcs_rport_get_halrport() argument
449 return rport->bfa_rport; in bfa_fcs_rport_get_halrport()
455 void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport,
463 void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport,
465 void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);
474 void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
476 void bfa_fcs_rport_prlo(struct bfa_fcs_rport_s *rport, __be16 ox_id);
[all …]
Dbfa_fcs_lport.c149 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_online() local
172 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
173 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
188 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online()
189 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online()
207 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_offline() local
228 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
229 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
241 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline()
242 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline()
[all …]
Dbfa_svc.h566 void bfa_rport_online(struct bfa_rport_s *rport,
568 void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed);
569 void bfa_cb_rport_online(void *rport);
570 void bfa_cb_rport_offline(void *rport);
571 void bfa_cb_rport_qos_scn_flowid(void *rport,
574 void bfa_cb_rport_qos_scn_prio(void *rport,
612 void bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
/linux-3.4.99/drivers/scsi/
Dscsi_transport_fc.c354 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local
361 if (rport) { in fc_target_setup()
362 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup()
363 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup()
364 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 …]
Dscsi_transport_srp.c106 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_id() local
107 return sprintf(buf, SRP_PID_FMT "\n", SRP_PID(rport)); in show_srp_rport_id()
124 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_roles() local
129 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles()
140 struct srp_rport *rport = dev_to_rport(dev); in srp_rport_release() local
143 kfree(rport); in srp_rport_release()
198 struct srp_rport *rport; in srp_rport_add() local
202 rport = kzalloc(sizeof(*rport), GFP_KERNEL); in srp_rport_add()
203 if (!rport) in srp_rport_add()
206 device_initialize(&rport->dev); in srp_rport_add()
[all …]
/linux-3.4.99/sound/oss/
Dvwsnd.c1518 vwsnd_port_t rport; member
1642 vwsnd_port_t *rport, in pcm_setup() argument
1645 vwsnd_port_t *aport = rport ? rport : wport; in pcm_setup()
1649 DBGEV("(devc=0x%p, rport=0x%p, wport=0x%p)\n", devc, rport, wport); in pcm_setup()
1695 if (rport) { in pcm_setup()
1697 rport->hwbuf_max = aport->hwbuf_size - DMACHUNK_SIZE; in pcm_setup()
1698 hwfrags = rport->hwbuf_max >> aport->hw_fragshift; in pcm_setup()
1702 rport->swbuf_size = swfrags * aport->hw_fragsize; in pcm_setup()
1705 rport->hwbuf_max, rport->swbuf_size); in pcm_setup()
1740 if (rport && wport) { in pcm_setup()
[all …]
/linux-3.4.99/drivers/s390/scsi/
Dzfcp_scsi.c86 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand() local
93 scsi_result = fc_remote_port_chkready(rport); in zfcp_scsi_queuecommand()
133 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc() local
141 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_slave_alloc()
382 port->rport = NULL; in zfcp_scsi_adapter_unregister()
537 static void zfcp_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in zfcp_set_rport_dev_loss_tmo() argument
539 rport->dev_loss_tmo = timeout; in zfcp_set_rport_dev_loss_tmo()
552 static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport) in zfcp_scsi_terminate_rport_io() argument
555 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_terminate_rport_io()
559 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, 1); in zfcp_unit_scsi_scan()
/linux-3.4.99/arch/um/drivers/
Dumcast_kern.c22 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()
/linux-3.4.99/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 …]
/linux-3.4.99/drivers/scsi/libfc/
Dfc_fcp.c909 fsp->rport->port_id, in fc_fcp_resp()
1102 struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; in get_fsp_rec_tov()
1120 struct fc_rport *rport; in fc_fcp_cmd_send() local
1136 rport = fsp->rport; in fc_fcp_cmd_send()
1137 fsp->max_payload = rport->maxframe_size; in fc_fcp_cmd_send()
1138 rpriv = rport->dd_data; in fc_fcp_cmd_send()
1140 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send()
1364 struct fc_rport *rport = fsp->rport; in fc_fcp_timeout() local
1365 struct fc_rport_libfc_priv *rpriv = rport->dd_data; in fc_fcp_timeout()
1394 struct fc_rport *rport; in fc_fcp_rec() local
[all …]
Dfc_rport.c187 void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) in fc_set_rport_loss_tmo() argument
190 rport->dev_loss_tmo = timeout; in fc_set_rport_loss_tmo()
192 rport->dev_loss_tmo = 1; in fc_set_rport_loss_tmo()
250 struct fc_rport *rport; in fc_rport_work() local
257 rport = rdata->rport; in fc_rport_work()
269 if (!rport) in fc_rport_work()
270 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work()
271 if (!rport) { in fc_rport_work()
278 if (rdata->rport) in fc_rport_work()
280 rdata->rport = rport; in fc_rport_work()
[all …]
Dfc_libfc.h76 (pkt)->rport->port_id, \
81 (pkt)->rport->port_id, ##args); \
/linux-3.4.99/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c67 struct fc_rport *rport = rdata->rport; in bnx2fc_offload_session() local
78 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session()
319 struct fc_rport *rport = rdata->rport; in bnx2fc_init_tgt() local
325 tgt->rport = rport; in bnx2fc_init_tgt()
407 struct fc_rport *rport = rdata->rport; in bnx2fc_rport_event_handler() local
416 if (!rport) { in bnx2fc_rport_event_handler()
421 rp = rport->dd_data; in bnx2fc_rport_event_handler()
422 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler()
496 if (!rport) { in bnx2fc_rport_event_handler()
501 rp = rport->dd_data; in bnx2fc_rport_event_handler()
Dbnx2fc_debug.h47 !tgt->port->lport->host || !tgt->rport) \
55 (tgt)->rport->port_id, ##arg)); \
/linux-3.4.99/drivers/scsi/fnic/
Dfnic_scsi.c266 struct fc_rport *rport = starget_to_rport(scsi_target(sc->device)); in fnic_queue_wq_copy_desc() local
267 struct fc_rport_libfc_priv *rp = rport->dd_data; in fnic_queue_wq_copy_desc()
340 rport->maxframe_size, rp->r_a_tov, in fnic_queue_wq_copy_desc()
355 struct fc_rport *rport; in fnic_queuecommand_lck() local
364 rport = starget_to_rport(scsi_target(sc->device)); in fnic_queuecommand_lck()
365 ret = fc_remote_port_chkready(rport); in fnic_queuecommand_lck()
429 io_req->port_id = rport->port_id; in fnic_queuecommand_lck()
1141 void fnic_terminate_rport_io(struct fc_rport *rport) in fnic_terminate_rport_io() argument
1149 struct fc_rport_libfc_priv *rdata = rport->dd_data; in fnic_terminate_rport_io()
1158 rport->port_name, rport->node_name, in fnic_terminate_rport_io()
[all …]
/linux-3.4.99/net/bridge/
Dbr_forward.c226 struct net_bridge_port *port, *lport, *rport; in br_multicast_flood() local
229 rport = rp ? hlist_entry(rp, struct net_bridge_port, rlist) : in br_multicast_flood()
232 port = (unsigned long)lport > (unsigned long)rport ? in br_multicast_flood()
233 lport : rport; in br_multicast_flood()
241 if ((unsigned long)rport >= (unsigned long)port) in br_multicast_flood()
/linux-3.4.99/include/scsi/
Dscsi_transport_fc.h621 struct fc_rport *rport; member
754 fc_remote_port_chkready(struct fc_rport *rport) in fc_remote_port_chkready() argument
758 switch (rport->port_state) { in fc_remote_port_chkready()
760 if (rport->roles & FC_PORT_ROLE_FCP_TARGET) in fc_remote_port_chkready()
762 else if (rport->flags & FC_RPORT_DEVLOSS_PENDING) in fc_remote_port_chkready()
768 if (rport->flags & FC_RPORT_FAST_FAIL_TIMEDOUT) in fc_remote_port_chkready()
826 void fc_remote_port_delete(struct fc_rport *rport);
827 void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles);
/linux-3.4.99/drivers/scsi/ibmvscsi/
Dibmvfc.c1035 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument
1038 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo()
1040 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo()
1504 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local
1508 if (rport == tgt->rport) { in ibmvfc_relogin()
1613 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand_lck() local
1619 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand_lck()
1639 vfc_cmd->tgt_scsi_id = rport->port_id; in ibmvfc_queuecommand_lck()
1828 struct fc_rport *rport = job->rport; in ibmvfc_bsg_request() local
1839 if (rport) in ibmvfc_bsg_request()
[all …]
/linux-3.4.99/net/ipv6/
Dinet6_connection_sock.c87 static u32 inet6_synq_hash(const struct in6_addr *raddr, const __be16 rport, in inet6_synq_hash() argument
98 (__force u32)rport, in inet6_synq_hash()
106 const __be16 rport, in inet6_csk_search_req() argument
115 for (prev = &lopt->syn_table[inet6_synq_hash(raddr, rport, in inet6_csk_search_req()
122 if (inet_rsk(req)->rmt_port == rport && in inet6_csk_search_req()
/linux-3.4.99/drivers/net/ethernet/sfc/
Dfilter.h128 __be32 rhost, __be16 rport);
131 __be32 *rhost, __be16 *rport);
/linux-3.4.99/net/netfilter/
Dxt_socket.c52 __be16 *rport, in extract_icmp4_fields() argument
99 *rport = ports[1]; in extract_icmp4_fields()
210 __be16 *rport, in extract_icmp6_fields() argument
253 *rport = ports[1]; in extract_icmp6_fields()
/linux-3.4.99/drivers/scsi/lpfc/
Dlpfc_hbadisc.c70 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument
76 rdata = rport->dd_data; in lpfc_terminate_rport_io()
80 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io()
83 rport->port_id); in lpfc_terminate_rport_io()
104 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument
114 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk()
132 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
134 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
138 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
179 struct fc_rport *rport; in lpfc_dev_loss_tmo_handler() local
[all …]

123