Home
last modified time | relevance | path

Searched refs:port_id (Results 1 – 25 of 267) sorted by relevance

1234567891011

/Linux-v4.19/drivers/target/tcm_fc/
Dtfc_sess.c45 (lport)->port_id, ##args )
160 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument
162 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash()
170 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument
184 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get()
186 if (sess->port_id == port_id) { in ft_sess_get()
190 port_id, sess); in ft_sess_get()
197 port_id, reason); in ft_sess_get()
206 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; in ft_sess_alloc_cb()
208 TFC_SESS_DBG(tport->lport, "port_id %x sess %p\n", sess->port_id, sess); in ft_sess_alloc_cb()
[all …]
/Linux-v4.19/drivers/spi/
Dspi-pxa2xx-pci.c29 int port_id; member
108 c->port_id = 3; in mrfld_spi_setup()
114 c->port_id = 5; in mrfld_spi_setup()
120 c->port_id = 6; in mrfld_spi_setup()
142 .port_id = -1,
148 .port_id = 0,
155 .port_id = 0,
162 .port_id = 1,
169 .port_id = 2,
181 .port_id = -1,
[all …]
/Linux-v4.19/drivers/fpga/
Ddfl-fme-pr.c33 dfl_fme_region_find_by_port_id(struct dfl_fme *fme, int port_id) in dfl_fme_region_find_by_port_id() argument
38 if (fme_region->port_id == port_id) in dfl_fme_region_find_by_port_id()
49 static struct fpga_region *dfl_fme_region_find(struct dfl_fme *fme, int port_id) in dfl_fme_region_find() argument
54 fme_region = dfl_fme_region_find_by_port_id(fme, port_id); in dfl_fme_region_find()
97 if (port_pr.port_id >= FIELD_GET(FME_CAP_NUM_PORTS, v)) { in fme_pr()
135 region = dfl_fme_region_find(fme, port_pr.port_id); in fme_pr()
145 info->region_id = port_pr.port_id; in fme_pr()
234 dfl_fme_create_bridge(struct dfl_feature_platform_data *pdata, int port_id) in dfl_fme_create_bridge() argument
246 br_pdata.port_id = port_id; in dfl_fme_create_bridge()
307 struct platform_device *br, int port_id) in dfl_fme_create_region() argument
[all …]
Ddfl-fme-pr.h33 int port_id; member
68 int port_id; member
/Linux-v4.19/drivers/scsi/libfc/
Dfc_npiv.c61 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) in fc_vport_id_lookup() argument
66 if (n_port->port_id == port_id) in fc_vport_id_lookup()
69 if (port_id == FC_FID_FLOGI) in fc_vport_id_lookup()
74 if (vn_port->port_id == port_id) { in fc_vport_id_lookup()
Dfc_libfc.h50 (lport)->port_id, ##args))
58 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument
62 (port_id), ##args))
65 FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args)
76 (pkt)->rport->port_id, \
81 (pkt)->rport->port_id, ##args); \
Dfc_rport.c117 u32 port_id) in fc_rport_lookup() argument
123 if (tmp_rdata->ids.port_id == port_id && in fc_rport_lookup()
140 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument
146 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create()
156 rdata->ids.port_id = port_id; in fc_rport_create()
170 if (port_id != FC_FID_DIR_SERV) { in fc_rport_create()
268 u32 port_id; in fc_rport_work() local
343 port_id = rdata->ids.port_id; in fc_rport_work()
360 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_work()
361 lport->tt.exch_mgr_reset(lport, port_id, 0); in fc_rport_work()
[all …]
Dfc_disc.c140 dp->port_id = ntoh24(pp->rscn_fid); in fc_disc_recv_rscn_req()
443 ids.port_id = ntoh24(np->fp_fid); in fc_disc_gpn_ft_parse()
446 if (ids.port_id != lport->port_id && in fc_disc_gpn_ft_parse()
448 rdata = fc_rport_create(lport, ids.port_id); in fc_disc_gpn_ft_parse()
455 "(%6.6x)\n", ids.port_id); in fc_disc_gpn_ft_parse()
614 rdata->ids.port_id, port_name); in fc_disc_gpn_id_resp()
618 new_rdata = fc_rport_create(lport, rdata->ids.port_id); in fc_disc_gpn_id_resp()
662 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req()
681 rdata = fc_rport_create(lport, dp->port_id); in fc_disc_single()
Dfc_lport.c185 rdata->ids.port_id); in fc_lport_rport_callback()
201 "%d state", rdata->ids.port_id, in fc_lport_rport_callback()
209 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback()
211 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback()
571 lport->host->host_no, lport->port_id); in fc_linkup()
601 lport->host->host_no, lport->port_id); in fc_linkdown()
706 lport->host->host_no, lport->port_id); in fc_lport_disc_callback()
743 static void fc_lport_set_port_id(struct fc_lport *lport, u32 port_id, in fc_lport_set_port_id() argument
748 if (port_id) in fc_lport_set_port_id()
750 lport->host->host_no, port_id); in fc_lport_set_port_id()
[all …]
/Linux-v4.19/drivers/net/ethernet/sfc/
Def10_sriov.h66 unsigned int port_id, u8 *mac);
68 unsigned int port_id, u8 *mac);
69 int efx_ef10_vadaptor_alloc(struct efx_nic *efx, unsigned int port_id);
70 int efx_ef10_vadaptor_query(struct efx_nic *efx, unsigned int port_id,
73 int efx_ef10_vadaptor_free(struct efx_nic *efx, unsigned int port_id);
/Linux-v4.19/sound/soc/qcom/qdsp6/
Dq6adm.c281 int port_id, int copp_idx) in q6adm_device_close() argument
289 close.hdr.src_port = port_id; in q6adm_device_close()
291 close.hdr.token = port_id << 16 | copp_idx; in q6adm_device_close()
298 int port_id, int topology, in q6adm_find_matching_copp() argument
310 if ((port_id == c->afe_port) && (topology == c->topology) && in q6adm_find_matching_copp()
323 int port_id, int path, int topology, in q6adm_device_open() argument
327 int afe_port = q6afe_get_port_id(port_id); in q6adm_device_open()
345 pkt->hdr.token = port_id << 16 | copp->copp_idx; in q6adm_device_open()
384 struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, in q6adm_open() argument
393 if (port_id < 0) { in q6adm_open()
[all …]
Dq6afe.c322 u16 port_id; member
327 u16 port_id; member
347 u16 port_id; member
489 int port_id; member
796 return port_maps[index].port_id; in q6afe_get_port_id()
843 u16 port_id = port->id; in q6afe_port_set_param() local
878 port_id, ret); in q6afe_port_set_param()
891 u16 port_id = port->id; in q6afe_port_set_param_v2() local
915 param->port_id = port_id; in q6afe_port_set_param_v2()
927 port_id, ret); in q6afe_port_set_param_v2()
[all …]
/Linux-v4.19/include/uapi/scsi/
Dscsi_bsg_fc.h87 uint8_t port_id[3]; member
108 uint8_t port_id[3]; member
132 uint8_t port_id[3]; member
195 uint8_t port_id[3]; member
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c57 __func__, pi->port_id); in cxgb4_dcb_state_init()
435 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
437 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
448 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
450 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
502 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
516 INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
527 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
539 INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
558 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgbwgcfg()
[all …]
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c211 u8 port_id, u8 tc, u8 max_phys_tcs_per_port) in qed_get_ext_voq() argument
214 return NUM_OF_PHYS_TCS * MAX_NUM_PORTS_BB + port_id; in qed_get_ext_voq()
216 return port_id * max_phys_tcs_per_port + tc; in qed_get_ext_voq()
320 u8 tc, ext_voq, port_id, num_tcs_in_port; in qed_cmdq_lines_rt_init() local
327 for (port_id = 0; port_id < max_ports_per_engine; port_id++) { in qed_cmdq_lines_rt_init()
330 if (!port_params[port_id].active) in qed_cmdq_lines_rt_init()
337 phys_lines = port_params[port_id].num_pbf_cmd_lines; in qed_cmdq_lines_rt_init()
343 if (((port_params[port_id].active_phys_tcs >> in qed_cmdq_lines_rt_init()
351 port_id, in qed_cmdq_lines_rt_init()
353 if (((port_params[port_id].active_phys_tcs >> in qed_cmdq_lines_rt_init()
[all …]
/Linux-v4.19/sound/soc/sh/
Dsiu_dai.c154 if (!info->port_id) in siu_dai_spbAselect()
179 if (!info->port_id) in siu_dai_spbBselect()
200 switch (info->port_id) { in siu_dai_open()
230 switch (info->port_id) { in siu_dai_pcmdatapack()
502 info->port_id, port_info); in siu_dai_startup()
522 info->port_id, port_info); in siu_dai_shutdown()
551 __func__, info->port_id, port_info->play_cap, rt->channels); in siu_dai_prepare()
597 __func__, fmt, info->port_id); in siu_dai_set_fmt()
599 if (info->port_id < 0) in siu_dai_set_fmt()
605 ifctl = siu_flags[info->port_id].playback.i2s | in siu_dai_set_fmt()
[all …]
/Linux-v4.19/drivers/pci/controller/dwc/
Dpcie-hisi.c140 u32 port_id; member
201 0x100 * hisi_pcie->port_id, &val); in hisi_pcie_link_up_hip05()
235 u32 port_id; in hisi_add_pcie_port() local
237 if (of_property_read_u32(dev->of_node, "port-id", &port_id)) { in hisi_add_pcie_port()
241 if (port_id > 3) { in hisi_add_pcie_port()
242 dev_err(dev, "Invalid port-id: %d\n", port_id); in hisi_add_pcie_port()
245 hisi_pcie->port_id = port_id; in hisi_add_pcie_port()
/Linux-v4.19/net/bridge/
Dbr_private_stp.h38 port_id port_id; member
49 (p->designated_port == p->port_id); in br_is_designated_port()
/Linux-v4.19/drivers/scsi/qedf/
Dqedf_attr.c35 u32 port_id; in qedf_fcoe_mac_show() local
39 port_id = fc_host_port_id(lport->host); in qedf_fcoe_mac_show()
40 lport_src_id[2] = (port_id & 0x000000FF); in qedf_fcoe_mac_show()
41 lport_src_id[1] = (port_id & 0x0000FF00) >> 8; in qedf_fcoe_mac_show()
42 lport_src_id[0] = (port_id & 0x00FF0000) >> 16; in qedf_fcoe_mac_show()
/Linux-v4.19/include/linux/
Dnvme-fc-driver.h54 u32 port_id; member
227 u32 port_id; member
271 u32 port_id; member
482 u32 port_id; member
704 u32 port_id; member
/Linux-v4.19/drivers/scsi/fcoe/
Dfcoe_ctlr.c554 if (!fcf || (ports && !lp->port_id)) in fcoe_ctlr_send_keep_alive()
585 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive()
670 hton24(mac->fd_mac + 3, fip->port_id); in fcoe_ctlr_encaps()
1368 if (!lport->port_id) { in fcoe_ctlr_recv_clr_vlink()
2065 hton24(frame->eth.h_source + 3, fip->port_id); in fcoe_ctlr_vn_send()
2087 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send()
2088 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send()
2140 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback()
2154 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback()
2228 u32 port_id; in fcoe_ctlr_vn_restart() local
[all …]
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c66 nfp_flower_repr_get_type_and_port(struct nfp_app *app, u32 port_id, u8 *port) in nfp_flower_repr_get_type_and_port() argument
68 switch (FIELD_GET(NFP_FLOWER_CMSG_PORT_TYPE, port_id)) { in nfp_flower_repr_get_type_and_port()
71 port_id); in nfp_flower_repr_get_type_and_port()
75 *port = FIELD_GET(NFP_FLOWER_CMSG_PORT_VNIC, port_id); in nfp_flower_repr_get_type_and_port()
76 if (FIELD_GET(NFP_FLOWER_CMSG_PORT_VNIC_TYPE, port_id) == in nfp_flower_repr_get_type_and_port()
87 nfp_flower_repr_get(struct nfp_app *app, u32 port_id) in nfp_flower_repr_get() argument
93 repr_type = nfp_flower_repr_get_type_and_port(app, port_id, &port); in nfp_flower_repr_get()
251 u32 port_id; in nfp_flower_spawn_vnic_reprs() local
289 port_id = nfp_flower_cmsg_pcie_port(nfp_pcie, vnic_type, in nfp_flower_spawn_vnic_reprs()
292 port_id, port, priv->nn->dp.netdev); in nfp_flower_spawn_vnic_reprs()
[all …]
/Linux-v4.19/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c186 u32 port_id; in bnx2fc_send_session_ofld_req() local
243 port_id = fc_host_port_id(lport->host); in bnx2fc_send_session_ofld_req()
244 if (port_id == 0) { in bnx2fc_send_session_ofld_req()
254 tgt->sid = port_id; in bnx2fc_send_session_ofld_req()
255 ofld_req3.s_id[0] = (port_id & 0x000000FF); in bnx2fc_send_session_ofld_req()
256 ofld_req3.s_id[1] = (port_id & 0x0000FF00) >> 8; in bnx2fc_send_session_ofld_req()
257 ofld_req3.s_id[2] = (port_id & 0x00FF0000) >> 16; in bnx2fc_send_session_ofld_req()
259 port_id = rport->port_id; in bnx2fc_send_session_ofld_req()
260 ofld_req3.d_id[0] = (port_id & 0x000000FF); in bnx2fc_send_session_ofld_req()
261 ofld_req3.d_id[1] = (port_id & 0x0000FF00) >> 8; in bnx2fc_send_session_ofld_req()
[all …]
Dbnx2fc_tgt.c95 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session()
272 tgt->rdata->ids.port_id, tgt->num_active_ios.counter); in bnx2fc_flush_active_ios()
449 u32 port_id; in bnx2fc_rport_event_handler() local
452 event, rdata->ids.port_id); in bnx2fc_rport_event_handler()
461 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler()
469 rdata->ids.port_id); in bnx2fc_rport_event_handler()
528 port_id = rdata->ids.port_id; in bnx2fc_rport_event_handler()
529 if (port_id == FC_FID_DIR_SERV) in bnx2fc_rport_event_handler()
534 port_id); in bnx2fc_rport_event_handler()
579 u32 port_id) in bnx2fc_tgt_lookup() argument
[all …]
/Linux-v4.19/drivers/net/ethernet/freescale/fman/
Dfman.c578 static irqreturn_t fman_bus_error(struct fman *fman, u8 __maybe_unused port_id, in fman_bus_error() argument
584 __func__, fman->state->fm_id, port_id); in fman_bus_error()
615 u8 port_id) in set_port_order_restoration() argument
619 tmp = port_id << FPM_PORT_FM_CTL_PORTID_SHIFT; in set_port_order_restoration()
624 if (port_id % 2) in set_port_order_restoration()
632 static void set_port_liodn(struct fman *fman, u8 port_id, in set_port_liodn() argument
638 tmp = ioread32be(&fman->dma_regs->fmdmplr[port_id / 2]); in set_port_liodn()
639 if (port_id % 2) { in set_port_liodn()
646 iowrite32be(tmp, &fman->dma_regs->fmdmplr[port_id / 2]); in set_port_liodn()
647 iowrite32be(liodn_ofst, &fman->bmi_regs->fmbm_spliodn[port_id - 1]); in set_port_liodn()
[all …]

1234567891011