Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/scsi/libfc/
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 …]
Dfc_encode.h48 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument
55 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill()
56 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill()
57 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill()
91 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument
116 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
117 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill()
123 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill()
125 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill()
127 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill()
[all …]
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 …]
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 …]
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 …]
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 …]
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()
/linux-6.12.1/drivers/scsi/fcoe/
Dfcoe.c552 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send()
554 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send()
591 static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) in fcoe_update_src_mac() argument
593 struct fcoe_port *port = lport_priv(lport); in fcoe_update_src_mac()
607 static u8 *fcoe_get_src_mac(struct fc_lport *lport) in fcoe_get_src_mac() argument
609 struct fcoe_port *port = lport_priv(lport); in fcoe_get_src_mac()
620 static int fcoe_lport_config(struct fc_lport *lport) in fcoe_lport_config() argument
622 lport->link_up = 0; in fcoe_lport_config()
623 lport->qfull = 0; in fcoe_lport_config()
624 lport->max_retry_count = 3; in fcoe_lport_config()
[all …]
/linux-6.12.1/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c76 static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev);
77 static int bnx2fc_lport_config(struct fc_lport *lport);
78 static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba);
96 static void bnx2fc_port_shutdown(struct fc_lport *lport);
133 static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport) in bnx2fc_netdev() argument
136 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev()
179 static void bnx2fc_abort_io(struct fc_lport *lport) in bnx2fc_abort_io() argument
189 static void bnx2fc_cleanup(struct fc_lport *lport) in bnx2fc_cleanup() argument
191 struct fcoe_port *port = lport_priv(lport); in bnx2fc_cleanup()
264 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-6.12.1/drivers/target/tcm_fc/
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 …]
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 …]
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-6.12.1/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c166 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() local
168 return lport->lport_naa_name; in tcm_qla2xxx_get_fabric_wwn()
788 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local
796 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map()
804 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map()
819 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map()
912 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_enable_tpg() local
914 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_enable_tpg()
986 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local
1007 tpg->lport = lport; in tcm_qla2xxx_make_tpg()
[all …]
/linux-6.12.1/drivers/scsi/qedf/
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 …]
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 …]
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-6.12.1/include/scsi/
Dlibfc.h800 static inline int fc_lport_test_ready(struct fc_lport *lport) in fc_lport_test_ready() argument
802 return lport->state == LPORT_ST_READY; in fc_lport_test_ready()
810 static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn) in fc_set_wwnn() argument
812 lport->wwnn = wwnn; in fc_set_wwnn()
820 static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwpn) in fc_set_wwpn() argument
822 lport->wwpn = wwpn; in fc_set_wwpn()
830 static inline void fc_lport_state_enter(struct fc_lport *lport, in fc_lport_state_enter() argument
833 if (state != lport->state) in fc_lport_state_enter()
834 lport->retry_count = 0; in fc_lport_state_enter()
835 lport->state = state; in fc_lport_state_enter()
[all …]
/linux-6.12.1/drivers/nvme/host/
Dfc.c140 struct nvme_fc_lport *lport; member
157 struct nvme_fc_lport *lport; member
243 struct nvme_fc_lport *lport = in nvme_fc_free_lport() local
247 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport()
248 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport()
252 list_del(&lport->port_list); in nvme_fc_free_lport()
255 ida_free(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport()
256 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport()
258 put_device(lport->dev); in nvme_fc_free_lport()
260 kfree(lport); in nvme_fc_free_lport()
[all …]
/linux-6.12.1/drivers/scsi/fnic/
Dfnic_fcs.c66 FNIC_FCS_DBG(KERN_INFO, fnic->lport->host, fnic->fnic_num, in fnic_handle_link()
72 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT; in fnic_handle_link()
73 fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT; in fnic_handle_link()
76 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_20GBIT; in fnic_handle_link()
77 fnic->lport->link_supported_speeds = FC_PORTSPEED_20GBIT; in fnic_handle_link()
80 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT; in fnic_handle_link()
81 fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT; in fnic_handle_link()
85 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_40GBIT; in fnic_handle_link()
86 fnic->lport->link_supported_speeds = FC_PORTSPEED_40GBIT; in fnic_handle_link()
89 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_100GBIT; in fnic_handle_link()
[all …]
Dfnic_res.c33 shost_printk(KERN_ERR, fnic->lport->host, \ in fnic_get_vnic_config()
142 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
148 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
151 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
154 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
157 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
160 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
163 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
166 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
169 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
[all …]
/linux-6.12.1/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-6.12.1/drivers/scsi/lpfc/
Dlpfc_nvme.c86 struct lpfc_nvme_lport *lport; in lpfc_nvme_create_queue() local
94 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_create_queue()
95 vport = lport->vport; in lpfc_nvme_create_queue()
148 struct lpfc_nvme_lport *lport; in lpfc_nvme_delete_queue() local
154 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_delete_queue()
155 vport = lport->vport; in lpfc_nvme_delete_queue()
159 lport, qidx, handle); in lpfc_nvme_delete_queue()
166 struct lpfc_nvme_lport *lport = localport->private; in lpfc_nvme_localport_delete() local
168 lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME, in lpfc_nvme_localport_delete()
170 lport); in lpfc_nvme_localport_delete()
[all …]
/linux-6.12.1/net/netfilter/
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()
89 return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport, in tproxy_tg4_v0()
98 return tproxy_tg4(xt_net(par), skb, tgi->laddr.ip, tgi->lport, in tproxy_tg4_v1()
112 __be16 lport; in tproxy_tg6_v1() local
134 lport = tgi->lport ? tgi->lport : hp->dest; in tproxy_tg6_v1()
143 tgi->lport, in tproxy_tg6_v1()
[all …]
/linux-6.12.1/drivers/nvme/target/
Dfcloop.c214 struct fcloop_lport *lport; member
221 struct fcloop_lport *lport; member
231 struct fcloop_lport *lport; member
240 struct fcloop_lport *lport; member
500 *wwnn = rport->lport->localport->node_name; in fcloop_t2h_host_traddr()
501 *wwpn = rport->lport->localport->port_name; in fcloop_t2h_host_traddr()
1028 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local
1031 complete(&lport->unreg_done); in fcloop_localport_delete()
1106 struct fcloop_lport *lport; in fcloop_create_local_port() local
1111 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port()
[all …]

12345