Home
last modified time | relevance | path

Searched refs:lport (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/scsi/libfc/
H A Dfc_lport.c110 static void fc_lport_enter_fdmi(struct fc_lport *lport);
144 struct fc_lport *lport; member
156 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument
171 static void fc_lport_rport_callback(struct fc_lport *lport, in fc_lport_rport_callback() argument
175 FC_LPORT_DBG(lport, "Received a %d event for port (%6.6x)\n", event, in fc_lport_rport_callback()
178 mutex_lock(&lport->lp_mutex); in fc_lport_rport_callback()
181 if (lport->state == LPORT_ST_DNS) { in fc_lport_rport_callback()
182 lport->dns_rdata = rdata; in fc_lport_rport_callback()
183 fc_lport_enter_ns(lport, LPORT_ST_RNN_ID); in fc_lport_rport_callback()
184 } else if (lport->state == LPORT_ST_FDMI) { in fc_lport_rport_callback()
[all …]
H A Dfc_rport.c104 struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport, in fc_rport_lookup() argument
110 list_for_each_entry_rcu(tmp_rdata, &lport->disc.rports, peers) in fc_rport_lookup()
128 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument
133 lockdep_assert_held(&lport->disc.disc_mutex); in fc_rport_create()
135 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create()
141 if (lport->rport_priv_size > 0) in fc_rport_create()
142 rport_priv_size = lport->rport_priv_size; in fc_rport_create()
154 rdata->local_port = lport; in fc_rport_create()
158 rdata->e_d_tov = lport->e_d_tov; in fc_rport_create()
159 rdata->r_a_tov = lport->r_a_tov; in fc_rport_create()
[all …]
H A Dfc_disc.c72 struct fc_lport *lport; in fc_disc_recv_rscn_req() local
84 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req()
124 dp->lp = lport; in fc_disc_recv_rscn_req()
148 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req()
157 redisc, lport->state, disc->pending); in fc_disc_recv_rscn_req()
178 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp) in fc_disc_recv_req() argument
181 struct fc_disc *disc = &lport->disc; in fc_disc_recv_req()
232 struct fc_lport *lport) in fc_disc_start() argument
234 struct fc_disc *disc = &lport->disc; in fc_disc_start()
254 struct fc_lport *lport = fc_disc_lport(disc); in fc_disc_done() local
[all …]
H A Dfc_fcp.c131 static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp) in fc_fcp_pkt_alloc() argument
133 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc()
139 fsp->lp = lport; in fc_fcp_pkt_alloc()
146 this_cpu_inc(lport->stats->FcpPktAllocFails); in fc_fcp_pkt_alloc()
318 struct fc_lport *lport; in fc_fcp_ddp_setup() local
320 lport = fsp->lp; in fc_fcp_ddp_setup()
322 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup()
323 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup()
336 struct fc_lport *lport; in fc_fcp_ddp_done() local
344 lport = fsp->lp; in fc_fcp_ddp_done()
[all …]
H A Dfc_exch.c86 struct fc_lport *lport; member
463 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument
499 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked()
525 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp) in fc_seq_send() argument
531 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send()
812 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument
878 ep->lp = lport; in fc_exch_em_alloc()
905 static struct fc_exch *fc_exch_alloc(struct fc_lport *lport, in fc_exch_alloc() argument
911 list_for_each_entry(ema, &lport->ema_list, ema_list) { in fc_exch_alloc()
913 ep = fc_exch_em_alloc(lport, ema->mp); in fc_exch_alloc()
[all …]
H A Dfc_elsct.c31 struct fc_seq *fc_elsct_send(struct fc_lport *lport, u32 did, in fc_elsct_send() argument
44 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type); in fc_elsct_send()
47 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did); in fc_elsct_send()
55 fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type, in fc_elsct_send()
58 return fc_exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send()
66 int fc_elsct_init(struct fc_lport *lport) in fc_elsct_init() argument
68 if (!lport->tt.elsct_send) in fc_elsct_init()
69 lport->tt.elsct_send = fc_elsct_send; in fc_elsct_init()
H A Dfc_libfc.c229 void fc_fc4_conf_lport_params(struct fc_lport *lport, enum fc_fh_type type) in fc_fc4_conf_lport_params() argument
233 BUG_ON(!lport); in fc_fc4_conf_lport_params()
237 lport->service_params |= FCP_SPPF_TARG_FCN; in fc_fc4_conf_lport_params()
243 struct fc_lport *lport; in fc_lport_iterate() local
246 list_for_each_entry(lport, &fc_local_ports, lport_list) in fc_lport_iterate()
247 notify(lport, arg); in fc_lport_iterate()
299 void fc_fc4_add_lport(struct fc_lport *lport) in fc_fc4_add_lport() argument
302 list_add_tail(&lport->lport_list, &fc_local_ports); in fc_fc4_add_lport()
304 FC_LPORT_EV_ADD, lport); in fc_fc4_add_lport()
312 void fc_fc4_del_lport(struct fc_lport *lport) in fc_fc4_del_lport() argument
[all …]
H A Dfc_libfc.h34 #define FC_LPORT_DBG(lport, fmt, args...) \ argument
37 (lport)->host->host_no, \
38 (lport)->port_id, ##args))
46 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument
49 (lport)->host->host_no, \
79 #define FC_SCSI_DBG(lport, fmt, args...) \ argument
82 (lport)->host->host_no, ##args))
/linux/drivers/scsi/fcoe/
H A Dfcoe.c553 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send()
555 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send()
586 * @lport: The local port to update the source MAC on
592 static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) in fcoe_update_src_mac()
594 struct fcoe_port *port = lport_priv(lport); in fcoe_update_src_mac()
605 * fcoe_get_src_mac() - return the Ethernet source address for an lport
606 * @lport: libfc lport
608 static u8 *fcoe_get_src_mac(struct fc_lport *lport) in fcoe_get_src_mac()
610 struct fcoe_port *port = lport_priv(lport); in fcoe_get_src_mac()
591 fcoe_update_src_mac(struct fc_lport * lport,u8 * addr) fcoe_update_src_mac() argument
607 fcoe_get_src_mac(struct fc_lport * lport) fcoe_get_src_mac() argument
620 fcoe_lport_config(struct fc_lport * lport) fcoe_lport_config() argument
651 fcoe_netdev_features_change(struct fc_lport * lport,struct net_device * netdev) fcoe_netdev_features_change() argument
700 fcoe_netdev_config(struct fc_lport * lport,struct net_device * netdev) fcoe_netdev_config() argument
764 fcoe_shost_config(struct fc_lport * lport,struct device * dev) fcoe_shost_config() argument
806 fcoe_fdmi_info(struct fc_lport * lport,struct net_device * netdev) fcoe_fdmi_info() argument
920 fcoe_em_config(struct fc_lport * lport) fcoe_em_config() argument
1001 fcoe_if_destroy(struct fc_lport * lport) fcoe_if_destroy() argument
1061 fcoe_ddp_setup(struct fc_lport * lport,u16 xid,struct scatterlist * sgl,unsigned int sgc) fcoe_ddp_setup() argument
1083 fcoe_ddp_target(struct fc_lport * lport,u16 xid,struct scatterlist * sgl,unsigned int sgc) fcoe_ddp_target() argument
1103 fcoe_ddp_done(struct fc_lport * lport,u16 xid) fcoe_ddp_done() argument
1127 struct fc_lport *lport, *n_port; fcoe_if_create() local
1317 struct fc_lport *lport; fcoe_rcv() local
1450 fcoe_xmit(struct fc_lport * lport,struct fc_frame * fp) fcoe_xmit() argument
1582 fcoe_filter_frames(struct fc_lport * lport,struct fc_frame * fp) fcoe_filter_frames() argument
1630 struct fc_lport *lport; fcoe_recv_frame() local
1817 struct fc_lport *lport = NULL; fcoe_device_notification() local
1982 struct fc_lport *lport = ctlr->lp; fcoe_ctlr_enabled() local
2034 struct fc_lport *lport; fcoe_destroy() local
2170 struct fc_lport *lport; _fcoe_create() local
2283 fcoe_link_ok(struct fc_lport * lport) fcoe_link_ok() argument
2302 fcoe_percpu_clean(struct fc_lport * lport) fcoe_percpu_clean() argument
2322 struct fc_lport *lport = shost_priv(shost); fcoe_reset() local
2385 fcoe_hostlist_add(const struct fc_lport * lport) fcoe_hostlist_add() argument
2407 fcoe_hostlist_del(const struct fc_lport * lport) fcoe_hostlist_del() argument
2543 struct fc_lport *lport = exch->lp; fcoe_flogi_resp() local
2570 struct fc_lport *lport = arg; fcoe_logo_resp() local
2587 fcoe_elsct_send(struct fc_lport * lport,u32 did,struct fc_frame * fp,unsigned int op,void (* resp)(struct fc_seq *,struct fc_frame *,void *),void * arg,u32 timeout) fcoe_elsct_send() argument
2694 fcoe_vport_remove(struct fc_lport * lport) fcoe_vport_remove() argument
2728 struct fc_lport *lport = vport->dd_data; fcoe_vport_disable() local
2752 struct fc_lport *lport = vport->dd_data; fcoe_set_vport_symbolic_name() local
2795 fcoe_set_port_id(struct fc_lport * lport,u32 port_id,struct fc_frame * fp) fcoe_set_port_id() argument
[all...]
H A Dfcoe_ctlr.c530 struct fc_lport *lport, in fcoe_ctlr_send_keep_alive() argument
576 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive()
577 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive()
578 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive()
604 static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_encaps() argument
625 if (lport->point_to_multipoint) { in fcoe_ctlr_encaps()
660 memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_encaps()
697 int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_els_send() argument
774 fip->update_mac(lport, mac); in fcoe_ctlr_els_send()
790 if (fcoe_ctlr_encaps(fip, lport, op, skb, ntoh24(fh->fh_d_id))) in fcoe_ctlr_els_send()
[all …]
H A Dfcoe_transport.c112 * @lport: The local port to update speeds for
119 int fcoe_link_speed_update(struct fc_lport *lport) in fcoe_link_speed_update()
121 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_link_speed_update()
125 lport->link_supported_speeds &= ~(FC_PORTSPEED_1GBIT | in fcoe_link_speed_update()
134 lport->link_supported_speeds |= FC_PORTSPEED_1GBIT; in fcoe_link_speed_update()
141 lport->link_supported_speeds |= FC_PORTSPEED_10GBIT; in fcoe_link_speed_update()
146 lport->link_supported_speeds |= FC_PORTSPEED_20GBIT; in fcoe_link_speed_update()
153 lport->link_supported_speeds |= FC_PORTSPEED_40GBIT; in fcoe_link_speed_update()
155 lport->link_speed = eth2fc_speed(ecmd.base.speed); in fcoe_link_speed_update()
163 * __fcoe_get_lesb() - Get the Link Error Status Block (LESB) for a given lport
117 fcoe_link_speed_update(struct fc_lport * lport) fcoe_link_speed_update() argument
169 __fcoe_get_lesb(struct fc_lport * lport,struct fc_els_lesb * fc_lesb,struct net_device * netdev) __fcoe_get_lesb() argument
203 fcoe_get_lesb(struct fc_lport * lport,struct fc_els_lesb * fc_lesb) fcoe_get_lesb() argument
368 fcoe_clean_pending_queue(struct fc_lport * lport) fcoe_clean_pending_queue() argument
397 fcoe_check_wait_queue(struct fc_lport * lport,struct sk_buff * skb) fcoe_check_wait_queue() argument
[all...]
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c77 static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev);
78 static int bnx2fc_lport_config(struct fc_lport *lport);
79 static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba);
97 static void bnx2fc_port_shutdown(struct fc_lport *lport);
109 "\t\t0x04 - lport events, link, mtu, etc.\n"
134 static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport) in bnx2fc_netdev()
137 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev()
180 static void bnx2fc_abort_io(struct fc_lport *lport) in bnx2fc_abort_io()
190 static void bnx2fc_cleanup(struct fc_lport *lport) in bnx2fc_cleanup()
192 struct fcoe_port *port = lport_priv(lport); in bnx2fc_cleanup()
133 bnx2fc_netdev(const struct fc_lport * lport) bnx2fc_netdev() argument
179 bnx2fc_abort_io(struct fc_lport * lport) bnx2fc_abort_io() argument
189 bnx2fc_cleanup(struct fc_lport * lport) bnx2fc_cleanup() argument
264 bnx2fc_xmit(struct fc_lport * lport,struct fc_frame * fp) bnx2fc_xmit() argument
427 struct fc_lport *lport; bnx2fc_rcv() local
507 struct fc_lport *lport; bnx2fc_recv_frame() local
679 struct fc_lport *lport = shost_priv(shost); bnx2fc_get_host_stats() local
728 bnx2fc_shost_config(struct fc_lport * lport,struct device * dev) bnx2fc_shost_config() argument
761 bnx2fc_link_ok(struct fc_lport * lport) bnx2fc_link_ok() argument
793 bnx2fc_net_config(struct fc_lport * lport,struct net_device * netdev) bnx2fc_net_config() argument
863 struct fc_lport *lport; bnx2fc_indicate_netevent() local
982 bnx2fc_libfc_config(struct fc_lport * lport) bnx2fc_libfc_config() argument
995 bnx2fc_em_config(struct fc_lport * lport,struct bnx2fc_hba * hba) bnx2fc_em_config() argument
1013 bnx2fc_lport_config(struct fc_lport * lport) bnx2fc_lport_config() argument
1071 bnx2fc_update_src_mac(struct fc_lport * lport,u8 * addr) bnx2fc_update_src_mac() argument
1083 bnx2fc_get_src_mac(struct fc_lport * lport) bnx2fc_get_src_mac() argument
1168 bnx2fc_free_vport(struct bnx2fc_hba * hba,struct fc_lport * lport) bnx2fc_free_vport() argument
1214 struct fc_lport *lport = vport->dd_data; bnx2fc_vport_disable() local
1486 struct fc_lport *lport, *n_port; bnx2fc_if_create() local
1596 struct fc_lport *lport = ctlr->lp; bnx2fc_interface_cleanup() local
1611 bnx2fc_if_destroy(struct fc_lport * lport) bnx2fc_if_destroy() argument
1637 struct fc_lport *lport = ctlr->lp; __bnx2fc_destroy() local
1686 struct fc_lport *lport; bnx2fc_port_destroy() local
1826 struct fc_lport *lport; bnx2fc_ulp_start() local
1849 bnx2fc_port_shutdown(struct fc_lport * lport) bnx2fc_port_shutdown() argument
1859 struct fc_lport *lport; bnx2fc_stop() local
1986 struct fc_lport *lport; bnx2fc_start_disc() local
2114 bnx2fc_npiv_create_vports(struct fc_lport * lport,struct cnic_fc_npiv_tbl * npiv_tbl) bnx2fc_npiv_create_vports() argument
2171 struct fc_lport *lport; __bnx2fc_enable() local
2296 struct fc_lport *lport; _bnx2fc_create() local
2564 struct fc_lport *lport = shost_priv(shost); bnx2fc_fcoe_reset() local
2901 struct fc_lport *lport = shost_priv(shost); bnx2fc_tm_timeout_show() local
2914 struct fc_lport *lport = shost_priv(shost); bnx2fc_tm_timeout_store() local
[all...]
H A Dbnx2fc_debug.c30 if (io_req && io_req->port && io_req->port->lport && in BNX2FC_IO_DBG()
31 io_req->port->lport->host) in BNX2FC_IO_DBG()
32 shost_printk(KERN_INFO, io_req->port->lport->host, in BNX2FC_IO_DBG()
54 if (tgt && tgt->port && tgt->port->lport && tgt->port->lport->host && in BNX2FC_TGT_DBG()
56 shost_printk(KERN_INFO, tgt->port->lport->host, in BNX2FC_TGT_DBG()
65 void BNX2FC_HBA_DBG(const struct fc_lport *lport, const char *fmt, ...) in BNX2FC_HBA_DBG() argument
78 if (lport && lport->host) in BNX2FC_HBA_DBG()
79 shost_printk(KERN_INFO, lport->host, PFX "%pV", &vaf); in BNX2FC_HBA_DBG()
H A Dbnx2fc_els.c65 struct fc_lport *lport = NULL; in bnx2fc_send_rrq() local
75 lport = tgt->rdata->local_port; in bnx2fc_send_rrq()
77 r_a_tov = lport->r_a_tov; in bnx2fc_send_rrq()
187 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_adisc() local
188 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_adisc()
215 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_logo() local
216 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_logo()
243 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rls() local
244 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_rls()
586 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rec() local
[all …]
/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c30 #define TFC_SESS_DBG(lport, fmt, args...) \ argument
32 (lport)->host->host_no, \
33 (lport)->port_id, ##args )
41 static struct ft_tport *ft_tport_get(struct fc_lport *lport) in ft_tport_get() argument
47 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get()
52 tpg = ft_lport_find_tpg(lport); in ft_tport_get()
66 tport->lport = lport; in ft_tport_get()
72 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport); in ft_tport_get()
82 struct fc_lport *lport; in ft_tport_delete() local
86 lport = tport->lport; in ft_tport_delete()
[all …]
H A Dtfc_io.c46 struct fc_lport *lport; in ft_queue_data_in() local
71 lport = ep->lp; in ft_queue_data_in()
110 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in()
113 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in()
163 error = fc_seq_send(lport, seq, fp); in ft_queue_data_in()
169 remaining, lport->lso_max); in ft_queue_data_in()
200 struct fc_lport *lport; in ft_recv_write_data() local
221 lport = ep->lp; in ft_recv_write_data()
223 BUG_ON(!lport); in ft_recv_write_data()
331 struct fc_lport *lport = NULL; in ft_invl_hw_context() local
[all …]
H A Dtfc_cmd.c105 struct fc_lport *lport; in ft_queue_status() local
114 lport = ep->lp; in ft_queue_status()
116 fp = fc_frame_alloc(lport, len); in ft_queue_status()
152 rc = fc_seq_send(lport, cmd->seq, fp); in ft_queue_status()
182 struct fc_lport *lport; in ft_write_pending() local
192 lport = ep->lp; in ft_write_pending()
193 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending()
213 if ((ep->xid <= lport->lro_xid) && in ft_write_pending()
216 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending()
222 fc_seq_send(lport, cmd->seq, fp); in ft_write_pending()
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_attr.c10 return qedf->lport->vport != NULL; in qedf_is_vport()
16 struct fc_lport *lport; in qedf_get_base_qedf() local
22 lport = qedf->lport; in qedf_get_base_qedf()
23 base_lport = shost_priv(vport_to_shost(lport->vport)); in qedf_get_base_qedf()
30 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in fcoe_mac_show() local
35 port_id = fc_host_port_id(lport->host); in fcoe_mac_show()
47 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in fka_period_show() local
48 struct qedf_ctx *qedf = lport_priv(lport); in fka_period_show()
101 qedf_uevent_emit(base_qedf->lport->host, QEDF_UEVENT_CODE_GRCDUMP, in qedf_capture_grc_dump()
111 struct fc_lport *lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_read_grcdump() local
[all …]
H A Dqedf_main.c271 struct fc_lport *lport = exch->lp; in qedf_flogi_resp() local
272 struct qedf_ctx *qedf = lport_priv(lport); in qedf_flogi_resp()
303 fc_lport_flogi_resp(seq, fp, lport); in qedf_flogi_resp()
306 static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did, in qedf_elsct_send() argument
313 struct qedf_ctx *qedf = lport_priv(lport); in qedf_elsct_send()
333 return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp, in qedf_elsct_send()
337 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout); in qedf_elsct_send()
342 struct fc_lport *lport; in qedf_send_flogi() local
345 lport = qedf->lport; in qedf_send_flogi()
347 if (!lport->tt.elsct_send) { in qedf_send_flogi()
[all …]
H A Dqedf_els.c15 struct fc_lport *lport; in qedf_initiate_els() local
34 lport = qedf->lport; in qedf_initiate_els()
44 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in qedf_initiate_els()
242 struct fc_lport *lport; in qedf_send_rrq() local
291 lport = qedf->lport; in qedf_send_rrq()
293 r_a_tov = lport->r_a_tov; in qedf_send_rrq()
333 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local
348 hton24(fh->fh_d_id, lport->port_id); in qedf_process_l2_frame_compl()
355 fr_dev(fp) = lport; in qedf_process_l2_frame_compl()
361 fc_exch_recv(lport, fp); in qedf_process_l2_frame_compl()
[all …]
/linux/drivers/nvme/host/
H A Dfc.c133 struct list_head endp_list; /* for lport->endp_list */
139 struct nvme_fc_lport *lport; member
156 struct nvme_fc_lport *lport; member
242 struct nvme_fc_lport *lport = in nvme_fc_free_lport() local
246 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport()
247 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport()
251 list_del(&lport->port_list); in nvme_fc_free_lport()
254 ida_free(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport()
255 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport()
257 put_device(lport in nvme_fc_free_lport()
263 nvme_fc_lport_put(struct nvme_fc_lport * lport) nvme_fc_lport_put() argument
269 nvme_fc_lport_get(struct nvme_fc_lport * lport) nvme_fc_lport_get() argument
280 struct nvme_fc_lport *lport; nvme_fc_attach_to_unreg_lport() local
457 struct nvme_fc_lport *lport = localport_to_lport(portptr); nvme_fc_unregister_localport() local
493 nvme_fc_signal_discovery_scan(struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_signal_discovery_scan() argument
517 struct nvme_fc_lport *lport = nvme_fc_free_rport() local
583 nvme_fc_attach_to_suspended_rport(struct nvme_fc_lport * lport,struct nvme_fc_port_info * pinfo) nvme_fc_attach_to_suspended_rport() argument
670 struct nvme_fc_lport *lport = localport_to_lport(localport); nvme_fc_register_remoteport() local
1418 struct nvme_fc_lport *lport = rport->lport; nvme_fc_xmt_ls_rsp_free() local
1449 struct nvme_fc_lport *lport = rport->lport; nvme_fc_xmt_ls_rsp() local
1667 nvme_fc_rcv_ls_req_err_msg(struct nvme_fc_lport * lport,struct fcnvme_ls_rqst_w0 * w0) nvme_fc_rcv_ls_req_err_msg() argument
1700 struct nvme_fc_lport *lport = rport->lport; nvme_fc_rcv_ls_req() local
2968 struct nvme_fc_lport *lport = rport->lport; nvme_fc_rport_active_on_lport() local
2976 struct nvme_fc_lport *lport = rport->lport; nvme_fc_rport_inactive_on_lport() local
3004 struct nvme_fc_lport *lport = rport->lport; nvme_fc_ctlr_inactive_on_rport() local
3429 nvme_fc_alloc_ctrl(struct device * dev,struct nvmf_ctrl_options * opts,struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_alloc_ctrl() argument
3536 nvme_fc_init_ctrl(struct device * dev,struct nvmf_ctrl_options * opts,struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_init_ctrl() argument
3679 struct nvme_fc_lport *lport; nvme_fc_create_ctrl() local
3745 struct nvme_fc_lport *lport; nvme_fc_nvme_discovery_store() local
3949 struct nvme_fc_lport *lport; nvme_fc_exit_module() local
[all...]
/linux/drivers/nvme/target/
H A Dfcloop.c214 struct fcloop_lport *lport; member
224 struct fcloop_lport *lport; member
235 struct fcloop_lport *lport; member
245 struct fcloop_lport *lport; member
543 *wwnn = rport->lport->localport->node_name; in fcloop_t2h_host_traddr()
544 *wwpn = rport->lport->localport->port_name; in fcloop_t2h_host_traddr()
1052 fcloop_lport_put(struct fcloop_lport *lport) in fcloop_lport_put() argument
1056 if (!refcount_dec_and_test(&lport->ref)) in fcloop_lport_put()
1060 list_del(&lport->lport_list); in fcloop_lport_put()
1063 kfree(lport); in fcloop_lport_put()
[all …]
/linux/net/netfilter/
H A Dxt_TPROXY.c36 tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport, in tproxy_tg4() argument
57 if (!lport) in tproxy_tg4()
58 lport = hp->dest; in tproxy_tg4()
63 sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk); in tproxy_tg4()
69 hp->source, lport, in tproxy_tg4()
92 return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport, in tproxy_tg4_v0()
104 return tproxy_tg4(xt_net(par), skb, tgi->laddr.ip, tgi->lport, in tproxy_tg4_v1()
119 __be16 lport; in tproxy_tg6_v1() local
141 lport = tgi->lport ? tgi->lport : hp->dest; in tproxy_tg6_v1()
150 tgi->lport, in tproxy_tg6_v1()
[all …]
/linux/drivers/infiniband/hw/irdma/
H A Dtrace_cm.h25 __field(u16, lport)
29 __entry->lport = cm_info->loc_port;
37 __entry->lport, __entry->ipv4)
47 __field(u16, lport)
52 __entry->lport = listener->loc_port;
61 __entry->lport, __entry->ipv4)
69 __field(u16, lport)
77 __entry->lport = listener->loc_port;
88 __entry->lport, __entry->ipv4)
150 __field(u16, lport)
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtcp_hdr_options.c185 int lport; in check_error_linum() local
187 lport = sk_fds->passive_lport; in check_error_linum()
188 if (!bpf_map_lookup_elem(lport_linum_map_fd, &lport, &linum_err)) { in check_error_linum()
191 lport, linum_err.linum, linum_err.err); in check_error_linum()
195 lport = sk_fds->active_lport; in check_error_linum()
196 if (!bpf_map_lookup_elem(lport_linum_map_fd, &lport, &linum_err)) { in check_error_linum()
199 lport, linum_err.linum, linum_err.err); in check_error_linum()
260 int lport, err; in reset_test() local
288 err = bpf_map_get_next_key(lport_linum_map_fd, NULL, &lport); in reset_test()
290 bpf_map_delete_elem(lport_linum_map_fd, &lport); in reset_test()
[all …]

1234