Home
last modified time | relevance | path

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

12345

/Linux-v4.19/drivers/scsi/libfc/
Dfc_lport.c119 static void fc_lport_enter_fdmi(struct fc_lport *lport);
153 struct fc_lport *lport; member
165 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument
180 static void fc_lport_rport_callback(struct fc_lport *lport, in fc_lport_rport_callback() argument
184 FC_LPORT_DBG(lport, "Received a %d event for port (%6.6x)\n", event, in fc_lport_rport_callback()
187 mutex_lock(&lport->lp_mutex); in fc_lport_rport_callback()
190 if (lport->state == LPORT_ST_DNS) { in fc_lport_rport_callback()
191 lport->dns_rdata = rdata; in fc_lport_rport_callback()
192 fc_lport_enter_ns(lport, LPORT_ST_RNN_ID); in fc_lport_rport_callback()
193 } else if (lport->state == LPORT_ST_FDMI) { in fc_lport_rport_callback()
[all …]
Dfc_disc.c84 struct fc_lport *lport; in fc_disc_recv_rscn_req() local
97 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req()
139 dp->lp = lport; in fc_disc_recv_rscn_req()
163 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req()
172 redisc, lport->state, disc->pending); in fc_disc_recv_rscn_req()
193 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp) in fc_disc_recv_req() argument
196 struct fc_disc *disc = &lport->disc; in fc_disc_recv_req()
247 struct fc_lport *lport) in fc_disc_start() argument
249 struct fc_disc *disc = &lport->disc; in fc_disc_start()
269 struct fc_lport *lport = fc_disc_lport(disc); in fc_disc_done() local
[all …]
Dfc_rport.c116 struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport, in fc_rport_lookup() argument
122 list_for_each_entry_rcu(tmp_rdata, &lport->disc.rports, peers) in fc_rport_lookup()
140 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument
144 lockdep_assert_held(&lport->disc.disc_mutex); in fc_rport_create()
146 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create()
150 rdata = kzalloc(sizeof(*rdata) + lport->rport_priv_size, GFP_KERNEL); in fc_rport_create()
161 rdata->local_port = lport; in fc_rport_create()
165 rdata->e_d_tov = lport->e_d_tov; in fc_rport_create()
166 rdata->r_a_tov = lport->r_a_tov; in fc_rport_create()
171 rdata->lld_event_callback = lport->tt.rport_event_callback; in fc_rport_create()
[all …]
Dfc_fcp.c147 static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp) in fc_fcp_pkt_alloc() argument
149 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc()
155 fsp->lp = lport; in fc_fcp_pkt_alloc()
162 per_cpu_ptr(lport->stats, get_cpu())->FcpPktAllocFails++; in fc_fcp_pkt_alloc()
330 struct fc_lport *lport; in fc_fcp_ddp_setup() local
332 lport = fsp->lp; in fc_fcp_ddp_setup()
334 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup()
335 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup()
348 struct fc_lport *lport; in fc_fcp_ddp_done() local
356 lport = fsp->lp; in fc_fcp_ddp_done()
[all …]
Dfc_exch.c97 struct fc_lport *lport; member
474 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument
510 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked()
536 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp) in fc_seq_send() argument
542 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send()
820 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument
887 ep->lp = lport; in fc_exch_em_alloc()
914 static struct fc_exch *fc_exch_alloc(struct fc_lport *lport, in fc_exch_alloc() argument
920 list_for_each_entry(ema, &lport->ema_list, ema_list) { in fc_exch_alloc()
922 ep = fc_exch_em_alloc(lport, ema->mp); in fc_exch_alloc()
[all …]
Dfc_elsct.c43 struct fc_seq *fc_elsct_send(struct fc_lport *lport, u32 did, in fc_elsct_send() argument
56 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type); in fc_elsct_send()
59 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did); in fc_elsct_send()
67 fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type, in fc_elsct_send()
70 return fc_exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send()
78 int fc_elsct_init(struct fc_lport *lport) in fc_elsct_init() argument
80 if (!lport->tt.elsct_send) in fc_elsct_init()
81 lport->tt.elsct_send = fc_elsct_send; in fc_elsct_init()
Dfc_libfc.c241 void fc_fc4_conf_lport_params(struct fc_lport *lport, enum fc_fh_type type) in fc_fc4_conf_lport_params() argument
245 BUG_ON(!lport); in fc_fc4_conf_lport_params()
249 lport->service_params |= FCP_SPPF_TARG_FCN; in fc_fc4_conf_lport_params()
255 struct fc_lport *lport; in fc_lport_iterate() local
258 list_for_each_entry(lport, &fc_local_ports, lport_list) in fc_lport_iterate()
259 notify(lport, arg); in fc_lport_iterate()
311 void fc_fc4_add_lport(struct fc_lport *lport) in fc_fc4_add_lport() argument
314 list_add_tail(&lport->lport_list, &fc_local_ports); in fc_fc4_add_lport()
316 FC_LPORT_EV_ADD, lport); in fc_fc4_add_lport()
324 void fc_fc4_del_lport(struct fc_lport *lport) in fc_fc4_del_lport() argument
[all …]
/Linux-v4.19/drivers/scsi/fcoe/
Dfcoe.c566 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send()
568 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send()
605 static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) in fcoe_update_src_mac() argument
607 struct fcoe_port *port = lport_priv(lport); in fcoe_update_src_mac()
621 static u8 *fcoe_get_src_mac(struct fc_lport *lport) in fcoe_get_src_mac() argument
623 struct fcoe_port *port = lport_priv(lport); in fcoe_get_src_mac()
634 static int fcoe_lport_config(struct fc_lport *lport) in fcoe_lport_config() argument
636 lport->link_up = 0; in fcoe_lport_config()
637 lport->qfull = 0; in fcoe_lport_config()
638 lport->max_retry_count = 3; in fcoe_lport_config()
[all …]
/Linux-v4.19/include/scsi/
Dfc_encode.h88 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument
95 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill()
96 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill()
97 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill()
131 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument
156 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
157 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill()
163 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
165 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill()
167 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill()
[all …]
Dlibfc.h795 static inline int fc_lport_test_ready(struct fc_lport *lport) in fc_lport_test_ready() argument
797 return lport->state == LPORT_ST_READY; in fc_lport_test_ready()
805 static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn) in fc_set_wwnn() argument
807 lport->wwnn = wwnn; in fc_set_wwnn()
815 static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwpn) in fc_set_wwpn() argument
817 lport->wwpn = wwpn; in fc_set_wwpn()
825 static inline void fc_lport_state_enter(struct fc_lport *lport, in fc_lport_state_enter() argument
828 if (state != lport->state) in fc_lport_state_enter()
829 lport->retry_count = 0; in fc_lport_state_enter()
830 lport->state = state; in fc_lport_state_enter()
[all …]
/Linux-v4.19/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c74 static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev);
75 static int bnx2fc_lport_config(struct fc_lport *lport);
76 static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba);
94 static void bnx2fc_port_shutdown(struct fc_lport *lport);
131 static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport) in bnx2fc_netdev() argument
134 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev()
181 static void bnx2fc_abort_io(struct fc_lport *lport) in bnx2fc_abort_io() argument
191 static void bnx2fc_cleanup(struct fc_lport *lport) in bnx2fc_cleanup() argument
193 struct fcoe_port *port = lport_priv(lport); in bnx2fc_cleanup()
266 static int bnx2fc_xmit(struct fc_lport *lport, struct fc_frame *fp) in bnx2fc_xmit() argument
[all …]
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()
/Linux-v4.19/drivers/target/tcm_fc/
Dtfc_sess.c42 #define TFC_SESS_DBG(lport, fmt, args...) \ argument
44 (lport)->host->host_no, \
45 (lport)->port_id, ##args )
53 static struct ft_tport *ft_tport_get(struct fc_lport *lport) in ft_tport_get() argument
59 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get()
64 tpg = ft_lport_find_tpg(lport); in ft_tport_get()
78 tport->lport = lport; in ft_tport_get()
84 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport); in ft_tport_get()
94 struct fc_lport *lport; in ft_tport_delete() local
98 lport = tport->lport; in ft_tport_delete()
[all …]
Dtfc_io.c59 struct fc_lport *lport; in ft_queue_data_in() local
84 lport = ep->lp; in ft_queue_data_in()
123 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in()
126 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in()
177 error = fc_seq_send(lport, seq, fp); in ft_queue_data_in()
183 remaining, lport->lso_max); in ft_queue_data_in()
214 struct fc_lport *lport; in ft_recv_write_data() local
235 lport = ep->lp; in ft_recv_write_data()
238 BUG_ON(!lport); in ft_recv_write_data()
346 struct fc_lport *lport = NULL; in ft_invl_hw_context() local
[all …]
Dtfc_cmd.c118 struct fc_lport *lport; in ft_queue_status() local
127 lport = ep->lp; in ft_queue_status()
129 fp = fc_frame_alloc(lport, len); in ft_queue_status()
165 rc = fc_seq_send(lport, cmd->seq, fp); in ft_queue_status()
202 struct fc_lport *lport; in ft_write_pending() local
212 lport = ep->lp; in ft_write_pending()
213 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending()
233 if ((ep->xid <= lport->lro_xid) && in ft_write_pending()
236 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending()
242 fc_seq_send(lport, cmd->seq, fp); in ft_write_pending()
[all …]
/Linux-v4.19/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c190 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() local
192 return lport->lport_naa_name; in tcm_qla2xxx_get_fabric_wwn()
800 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local
808 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map()
816 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map()
831 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map()
937 struct scsi_qla_host *base_vha = base_tpg->lport->qla_vha; in tcm_qla2xxx_depend_tpg()
951 struct scsi_qla_host *base_vha = base_tpg->lport->qla_vha; in tcm_qla2xxx_undepend_tpg()
1055 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local
1076 tpg->lport = lport; in tcm_qla2xxx_make_tpg()
[all …]
/Linux-v4.19/drivers/scsi/qedf/
Dqedf_attr.c13 return qedf->lport->vport != NULL; in qedf_is_vport()
19 struct fc_lport *lport; in qedf_get_base_qedf() local
25 lport = qedf->lport; in qedf_get_base_qedf()
26 base_lport = shost_priv(vport_to_shost(lport->vport)); in qedf_get_base_qedf()
34 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in qedf_fcoe_mac_show() local
39 port_id = fc_host_port_id(lport->host); in qedf_fcoe_mac_show()
52 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in qedf_fka_period_show() local
53 struct qedf_ctx *qedf = lport_priv(lport); in qedf_fka_period_show()
97 qedf_uevent_emit(base_qedf->lport->host, QEDF_UEVENT_CODE_GRCDUMP, in qedf_capture_grc_dump()
107 struct fc_lport *lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_read_grcdump() local
[all …]
Dqedf_main.c242 struct fc_lport *lport = exch->lp; in qedf_flogi_resp() local
243 struct qedf_ctx *qedf = lport_priv(lport); in qedf_flogi_resp()
273 fc_lport_flogi_resp(seq, fp, lport); in qedf_flogi_resp()
276 static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did, in qedf_elsct_send() argument
283 struct qedf_ctx *qedf = lport_priv(lport); in qedf_elsct_send()
291 return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp, in qedf_elsct_send()
295 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout); in qedf_elsct_send()
300 struct fc_lport *lport; in qedf_send_flogi() local
303 lport = qedf->lport; in qedf_send_flogi()
305 if (!lport->tt.elsct_send) in qedf_send_flogi()
[all …]
Dqedf_els.c18 struct fc_lport *lport; in qedf_initiate_els() local
39 lport = qedf->lport; in qedf_initiate_els()
49 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in qedf_initiate_els()
230 struct fc_lport *lport; in qedf_send_rrq() local
256 lport = qedf->lport; in qedf_send_rrq()
258 r_a_tov = lport->r_a_tov; in qedf_send_rrq()
298 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local
313 hton24(fh->fh_d_id, lport->port_id); in qedf_process_l2_frame_compl()
320 fr_dev(fp) = lport; in qedf_process_l2_frame_compl()
326 fc_exch_recv(lport, fp); in qedf_process_l2_frame_compl()
[all …]
/Linux-v4.19/drivers/scsi/fnic/
Dfnic_fcs.c70 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT; in fnic_handle_link()
71 fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT; in fnic_handle_link()
74 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT; in fnic_handle_link()
75 fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT; in fnic_handle_link()
79 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_40GBIT; in fnic_handle_link()
80 fnic->lport->link_supported_speeds = FC_PORTSPEED_40GBIT; in fnic_handle_link()
83 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_100GBIT; in fnic_handle_link()
84 fnic->lport->link_supported_speeds = FC_PORTSPEED_100GBIT; in fnic_handle_link()
87 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_UNKNOWN; in fnic_handle_link()
88 fnic->lport->link_supported_speeds = FC_PORTSPEED_UNKNOWN; in fnic_handle_link()
[all …]
/Linux-v4.19/drivers/nvme/host/
Dfc.c126 struct nvme_fc_lport *lport; member
141 struct nvme_fc_lport *lport; member
225 struct nvme_fc_lport *lport = in nvme_fc_free_lport() local
229 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport()
230 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport()
234 list_del(&lport->port_list); in nvme_fc_free_lport()
237 ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport()
238 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport()
240 put_device(lport->dev); in nvme_fc_free_lport()
242 kfree(lport); in nvme_fc_free_lport()
[all …]
/Linux-v4.19/arch/um/drivers/
Dumcast_kern.c21 int lport; member
36 dpri->lport = init->lport; in umcast_init()
44 "%u\n", dpri->addr, dpri->rport, dpri->lport); in umcast_init()
47 "TTL:%u\n", dpri->addr, dpri->lport, dpri->ttl); in umcast_init()
78 .lport = 1102, in mcast_setup()
90 init->lport = simple_strtoul(port_str, &last, 10); in mcast_setup()
108 init->rport = init->lport; in mcast_setup()
111 init->lport, init->ttl); in mcast_setup()
124 .lport = 1102, in ucast_setup()
136 init->lport = simple_strtoul(lport_str, &last, 10); in ucast_setup()
[all …]
/Linux-v4.19/net/netfilter/
Dxt_TPROXY.c40 tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport, in tproxy_tg4() argument
61 if (!lport) in tproxy_tg4()
62 lport = hp->dest; in tproxy_tg4()
67 sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk); in tproxy_tg4()
73 hp->source, lport, in tproxy_tg4()
84 &laddr, ntohs(lport), skb->mark); in tproxy_tg4()
101 return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport, in tproxy_tg4_v0()
110 return tproxy_tg4(xt_net(par), skb, tgi->laddr.ip, tgi->lport, in tproxy_tg4_v1()
124 __be16 lport; in tproxy_tg6_v1() local
150 lport = tgi->lport ? tgi->lport : hp->dest; in tproxy_tg6_v1()
[all …]
/Linux-v4.19/drivers/nvme/target/
Dfcloop.c208 struct fcloop_lport *lport; member
215 struct fcloop_lport *lport; member
222 struct fcloop_lport *lport; member
228 struct fcloop_lport *lport; member
800 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local
803 complete(&lport->unreg_done); in fcloop_localport_delete()
869 struct fcloop_lport *lport; in fcloop_create_local_port() local
874 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port()
875 if (!lport) in fcloop_create_local_port()
902 lport_priv->lport = lport; in fcloop_create_local_port()
[all …]
/Linux-v4.19/drivers/scsi/lpfc/
Dlpfc_nvme.c218 struct lpfc_nvme_lport *lport; in lpfc_nvme_create_queue() local
226 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_create_queue()
227 vport = lport->vport; in lpfc_nvme_create_queue()
275 struct lpfc_nvme_lport *lport; in lpfc_nvme_delete_queue() local
281 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_delete_queue()
282 vport = lport->vport; in lpfc_nvme_delete_queue()
286 lport, qidx, handle); in lpfc_nvme_delete_queue()
293 struct lpfc_nvme_lport *lport = localport->private; in lpfc_nvme_localport_delete() local
295 lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME, in lpfc_nvme_localport_delete()
297 lport); in lpfc_nvme_localport_delete()
[all …]

12345