Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/scsi/libfc/
H A Dfc_lport.c444 lport->tt.frame_send(lport, fp); in fc_lport_recv_echo_req()
501 lport->tt.frame_send(lport, fp); in fc_lport_recv_rnid_req()
587 lport->tt.fcp_cleanup(lport); in __fc_linkdown()
615 lport->tt.disc_stop_final(lport); in fc_fabric_logoff()
647 lport->tt.fcp_abort_io(lport); in fc_lport_destroy()
648 lport->tt.disc_stop_final(lport); in fc_lport_destroy()
854 lport->tt.frame_send(lport, fp); in fc_lport_recv_flogi_req()
1014 lport->tt.disc_stop(lport); in fc_lport_reset_locked()
1402 lport, 3 * lport->r_a_tov)) in fc_lport_enter_ns()
2059 info->lport = lport; in fc_lport_els_request()
[all …]
H A Dfc_encode.h234 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill()
284 fc_host_model(lport->host), in fc_ct_ms_fill()
796 if (lport->does_npiv) in fc_flogi_fill()
908 fc_adisc_fill(lport, fp); in fc_els_fill()
916 fc_flogi_fill(lport, fp); in fc_els_fill()
920 fc_fdisc_fill(lport, fp); in fc_els_fill()
924 fc_logo_fill(lport, fp); in fc_els_fill()
928 fc_rtv_fill(lport, fp); in fc_els_fill()
932 fc_rec_fill(lport, fp); in fc_els_fill()
936 fc_prli_fill(lport, fp); in fc_els_fill()
[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()
359 if (lport->tt.elsct_send(lport, 0, fp, in fc_disc_gpn_ft_req()
378 struct fc_lport *lport; in fc_disc_gpn_ft_parse() local
570 struct fc_lport *lport; in fc_disc_gpn_id_resp() local
577 disc = &lport->disc; in fc_disc_gpn_id_resp()
653 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req()
655 3 * lport->r_a_tov)) in fc_disc_gpn_id_req()
703 fc_disc_stop(lport); in fc_disc_stop_final()
[all …]
H A Dfc_rport.c352 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_work()
353 lport->tt.exch_mgr_reset(lport, port_id, 0); in fc_rport_work()
523 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_logoff()
946 lport->tt.frame_send(lport, fp); in fc_rport_recv_flogi_req()
1442 lport->tt.frame_send(lport, fp); in fc_rport_recv_rtv_req()
1618 lport->tt.frame_send(lport, fp); in fc_rport_recv_adisc_req()
1665 lport->tt.get_lesb(lport, lesb); in fc_rport_recv_rls_req()
1678 lport->tt.frame_send(lport, fp); in fc_rport_recv_rls_req()
1948 lport->tt.frame_send(lport, fp); in fc_rport_recv_plogi_req()
2063 lport->tt.frame_send(lport, fp); in fc_rport_recv_prli_req()
[all …]
H A Dfc_fcp.c139 fsp->lp = lport; in fc_fcp_pkt_alloc()
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()
344 lport = fsp->lp; in fc_fcp_ddp_done()
346 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); in fc_fcp_ddp_done()
1145 rc = lport->tt.fcp_cmd_send(lport, fsp, fc_fcp_recv); in fc_fcp_pkt_send()
1289 if (lport->tt.fcp_cmd_send(lport, fsp, fc_tm_done)) { in fc_lun_reset_send()
1462 lport = fsp->lp; in fc_fcp_rec()
1480 if (lport->tt.elsct_send(lport, rport->port_id, fp, ELS_REC, in fc_fcp_rec()
[all …]
H A Dfc_exch.c499 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked()
928 struct fc_lport *lport = mp->lport; in fc_exch_find() local
938 lport->host->host_no, lport->port_id, xid, cpu); in fc_exch_find()
1325 lport->tt.frame_send(lport, fp); in fc_seq_send_ack()
1399 lport->tt.frame_send(lport, fp); in fc_exch_send_ba_rjt()
1848 lport->tt.frame_send(lport, fp); in fc_seq_ls_acc()
1882 lport->tt.frame_send(lport, fp); in fc_seq_ls_rjt()
2082 lport->tt.frame_send(lport, fp); in fc_exch_els_rec()
2214 if (unlikely(lport->tt.frame_send(lport, fp))) in fc_exch_seq_send()
2488 mp->lport = lport; in fc_exch_mgr_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.c233 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
315 list_del(&lport->lport_list); in fc_fc4_del_lport()
[all …]
/openbmc/linux/drivers/scsi/fcoe/
H A Dfcoe.c623 lport->qfull = 0; in fcoe_lport_config()
717 lport->vlan = 0; in fcoe_netdev_config()
774 if (lport->vport) in fcoe_shost_config()
818 if (lport->vport) in fcoe_fdmi_info()
933 if (!lport->lro_enabled || !lport->lro_xid || in fcoe_em_config()
1023 if (lport->vport) in fcoe_if_destroy()
1048 if (lport->vport) in fcoe_if_destroy()
1144 if (!lport) { in fcoe_if_create()
1150 port->lport = lport; in fcoe_if_create()
1229 return lport; in fcoe_if_create()
[all …]
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c436 lport = ctlr->lp; in bnx2fc_rcv()
740 if (lport->vport) in bnx2fc_shost_config()
991 fc_disc_config(lport, lport); in bnx2fc_libfc_config()
1174 if (blport->lport == lport) { in bnx2fc_free_vport()
1508 if (!lport) { in bnx2fc_if_create()
1514 port->lport = lport; in bnx2fc_if_create()
1571 blport->lport = lport; in bnx2fc_if_create()
1575 return lport; in bnx2fc_if_create()
1689 lport = port->lport; in bnx2fc_port_destroy()
2194 if (!lport) in __bnx2fc_enable()
[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()
/openbmc/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c32 (lport)->host->host_no, \
33 (lport)->port_id, ##args )
52 tpg = ft_lport_find_tpg(lport); in ft_tport_get()
66 tport->lport = lport; in ft_tport_get()
82 struct fc_lport *lport; in ft_tport_delete() local
86 lport = tport->lport; in ft_tport_delete()
106 ft_tport_get(lport); in ft_lport_add()
120 tport = lport->prov[FC_TYPE_FCP]; in ft_lport_del()
132 struct fc_lport *lport = arg; in ft_lport_notify() local
136 ft_lport_add(lport, NULL); in ft_lport_notify()
[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()
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
340 lport = ep->lp; in ft_invl_hw_context()
341 if (lport && (ep->xid <= lport->lro_xid)) { in ft_invl_hw_context()
[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()
182 struct fc_lport *lport; in ft_write_pending() local
192 lport = ep->lp; 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()
282 fp = fc_frame_alloc(lport, len); in ft_send_resp_status()
298 fc_seq_send(lport, sp, fp); in ft_send_resp_status()
301 lport->tt.frame_send(lport, fp); in ft_send_resp_status()
[all …]
/openbmc/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()
48 struct qedf_ctx *qedf = lport_priv(lport); in fka_period_show()
113 struct qedf_ctx *qedf = lport_priv(lport); in qedf_sysfs_read_grcdump()
130 struct fc_lport *lport = NULL; in qedf_sysfs_write_grcdump() local
139 lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_write_grcdump()
[all …]
H A Dqedf_main.c338 lport = qedf->lport; in qedf_send_flogi()
353 lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, in qedf_send_flogi()
370 struct fc_lport *lport = qedf->lport; in qedf_link_recovery() local
452 struct fc_lport *lport = qedf->lport; in qedf_update_link_speed() local
540 if (lport->host && lport->host->shost_data) in qedf_update_link_speed()
1657 struct fc_lport *lport = qedf->lport; in qedf_setup_fdmi() local
1728 struct fc_lport *lport = qedf->lport; in qedf_lport_setup() local
2473 lport = qedf->lport; in qedf_recv_frame()
3322 qedf->lport = lport; in __qedf_probe()
3347 lport = qedf->lport; in __qedf_probe()
[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()
291 lport = qedf->lport; in qedf_send_rrq()
333 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local
401 lport = fcport->qedf->lport; in qedf_restart_rport()
504 struct fc_lport *lport = fcport->qedf->lport; in qedf_send_adisc() local
554 lport = qedf->lport; in qedf_srr_compl()
655 lport = qedf->lport; in qedf_send_srr()
855 lport = qedf->lport; in qedf_rec_compl()
[all …]
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dtcm_qla2xxx.c166 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() local
1007 tpg->lport = lport; in tcm_qla2xxx_make_tpg()
1034 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_drop_tpg() local
1098 tpg->lport = lport; in tcm_qla2xxx_npiv_make_tpg()
1131 if (!lport) { in tcm_qla2xxx_find_sess_by_s_id()
1236 if (!lport) { in tcm_qla2xxx_find_sess_by_loop_id()
1356 if (!lport) { in tcm_qla2xxx_free_session()
1371 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_session_cb() local
1412 if (!lport) { in tcm_qla2xxx_check_initiator_node_acl()
1595 if (!lport) { in tcm_qla2xxx_make_lport()
[all …]
/openbmc/linux/include/scsi/
H A Dlibfc.h804 lport->wwnn = wwnn; in fc_set_wwnn()
814 lport->wwpn = wwpn; in fc_set_wwpn()
825 if (state != lport->state) in fc_lport_state_enter()
826 lport->retry_count = 0; in fc_lport_state_enter()
827 lport->state = state; in fc_lport_state_enter()
837 if (!lport->stats) in fc_lport_init_stats()
848 free_percpu(lport->stats); in fc_lport_free_stats()
871 struct fc_lport *lport; in libfc_host_alloc() local
877 lport = shost_priv(shost); in libfc_host_alloc()
878 lport->host = shost; in libfc_host_alloc()
[all …]
/openbmc/linux/drivers/nvme/host/
H A Dfc.c475 lport->ops->localport_delete(&lport->localport); in nvme_fc_unregister_localport()
725 newrec->lport = lport; in nvme_fc_register_remoteport()
1459 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_xmt_ls_rsp_done() local
1482 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_xmt_ls_rsp() local
1731 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_rcv_ls_req() local
3001 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_rport_active_on_lport() local
3009 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_rport_inactive_on_lport() local
3014 lport->ops->localport_delete(&lport->localport); in nvme_fc_rport_inactive_on_lport()
3037 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_ctlr_inactive_on_rport() local
3496 ctrl->lport = lport; in nvme_fc_init_ctrl()
[all …]
/openbmc/linux/drivers/scsi/fnic/
H A Dfnic_fcs.c111 fnic->lport->host->host_no, in fnic_handle_link()
122 fnic->lport->host->host_no, in fnic_handle_link()
149 fnic->lport->host->host_no, in fnic_handle_link()
184 struct fc_lport *lp = fnic->lport; in fnic_handle_frame()
297 struct fc_lport *lport = fip->lp; in is_fnic_fip_flogi_reject() local
349 shost_printk(KERN_INFO, lport->host, in is_fnic_fip_flogi_reject()
353 shost_printk(KERN_INFO, lport->host, in is_fnic_fip_flogi_reject()
738 struct fnic *fnic = lport_priv(lport); in fnic_update_mac()
761 struct fnic *fnic = lport_priv(lport); in fnic_set_port_id()
784 fnic_update_mac(lport, mac); in fnic_set_port_id()
[all …]
/openbmc/linux/arch/um/drivers/
H A 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 …]
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_nvme.c95 vport = lport->vport; in lpfc_nvme_create_queue()
155 vport = lport->vport; in lpfc_nvme_delete_queue()
159 lport, qidx, handle); in lpfc_nvme_delete_queue()
170 lport); in lpfc_nvme_localport_delete()
279 if (!lport) in lpfc_nvme_handle_lsreq()
376 if (lport) { in lpfc_nvme_ls_req_cmp()
676 vport = lport->vport; in lpfc_nvme_ls_req()
985 if (lport) { in lpfc_nvme_io_cmd_cmpl()
2359 if (!lport) { in lpfc_nvme_update_localport()
2486 rport->lport = lport; in lpfc_nvme_register_port()
[all …]
/openbmc/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()
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 …]
/openbmc/linux/drivers/nvme/target/
H A Dfcloop.c1023 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local
1105 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port()
1106 if (!lport) in fcloop_create_local_port()
1133 lport_priv->lport = lport; in fcloop_create_local_port()
1203 if (!lport) in fcloop_delete_local_port()
1261 if (!lport) in fcloop_alloc_nport()
1263 newnport->lport = lport; in fcloop_alloc_nport()
1280 nport->lport = lport; in fcloop_alloc_nport()
1338 nport->tport->lport = nport->lport; in fcloop_create_remote_port()
1341 rport->lport = nport->lport; in fcloop_create_remote_port()
[all …]

123456