Home
last modified time | relevance | path

Searched refs:lport (Results 1 – 25 of 88) 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_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_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_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/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/scsi/bnx2fc/
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/nvme/host/
H A Dfc.c139 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->dev); in nvme_fc_free_lport()
259 kfree(lport); in nvme_fc_free_lport()
[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/drivers/scsi/fcoe/
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 …]
/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 …]
/linux/tools/testing/selftests/net/mptcp/
H A Ddiag.sh151 lport=$1
154 __chk_listen "dport $lport" 0 "listen match for dport $lport"
157 __chk_listen "sport $lport" 1 "listen match for sport $lport"
159 __chk_listen "src inet:0.0.0.0:$lport" 1 "listen match for saddr and sport"
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dl2t.c155 req->params = htons(L2T_W_PORT_V(e->lport) | L2T_W_NOREPLY_V(!sync)); in write_l2e()
311 (e->vlan == vlan) && (e->lport == port)) in find_or_alloc_l2e()
419 u8 lport; in cxgb4_l2t_get() local
428 lport = netdev2pinfo(physdev)->tx_chan + 4; in cxgb4_l2t_get()
430 lport = netdev2pinfo(physdev)->lport; in cxgb4_l2t_get()
442 e->vlan == vlan && e->lport == lport) { in cxgb4_l2t_get()
459 e->lport = lport; in cxgb4_l2t_get()
488 ntuple |= (u64)l2t->lport << tp->port_shift; in cxgb4_select_ntuple()
591 e->lport = port; in t4_l2t_alloc_switching()
709 e->vlan & VLAN_VID_MASK, vlan_prio(e), e->lport, in l2t_seq_show()
/linux/include/uapi/linux/netfilter/
H A Dxt_TPROXY.h15 __be16 lport; member
22 __be16 lport; member

1234