Home
last modified time | relevance | path

Searched full:port_id (Results 1 – 25 of 271) sorted by relevance

1234567891011

/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c33 (lport)->port_id, ##args )
148 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument
150 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash()
158 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument
172 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get()
174 if (sess->port_id == port_id) { in ft_sess_get()
177 TFC_SESS_DBG(lport, "port_id %x found %p\n", in ft_sess_get()
178 port_id, sess); in ft_sess_get()
184 TFC_SESS_DBG(lport, "port_id %x not found, %s\n", in ft_sess_get()
185 port_id, reason); in ft_sess_get()
[all …]
/linux/drivers/misc/
H A Dti_fpc202.c78 static void fpc202_fill_alias_table(struct i2c_client *client, u16 *aliases, int port_id) in fpc202_fill_alias_table() argument
89 first_alias = 0x10 + 4 * port_id + 8 * ((u16)client->addr - 2); in fpc202_fill_alias_table()
205 static int fpc202_write_dev_addr(struct fpc202_priv *priv, u32 port_id, int dev_num, u16 addr) in fpc202_write_dev_addr() argument
212 reg_mod = FPC202_REG_MOD_DEV(port_id, dev_num); in fpc202_write_dev_addr()
213 reg_aux = FPC202_REG_AUX_DEV(port_id, dev_num); in fpc202_write_dev_addr()
227 priv->addr_caches[port_id][dev_num] = val; in fpc202_write_dev_addr()
275 static int fpc202_probe_port(struct fpc202_priv *priv, struct device_node *i2c_handle, int port_id) in fpc202_probe_port() argument
282 desc.chan_id = port_id; in fpc202_probe_port()
287 fpc202_fill_alias_table(priv->client, aliases, port_id); in fpc202_probe_port()
294 set_bit(port_id, priv->probed_ports); in fpc202_probe_port()
[all …]
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-switchdev.c49 ret = cpsw_ale_control_set(cpsw->ale, port->port_id, in am65_cpsw_port_stp_state_set()
69 unreg_mcast_add, port->port_id); in am65_cpsw_port_attr_br_flags_set()
71 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(port->port_id), in am65_cpsw_port_attr_br_flags_set()
94 netdev_dbg(ndev, "attr: id %u port: %u\n", attr->id, port->port_id); in am65_cpsw_port_attr_set()
123 if (port->port_id) in am65_cpsw_get_pvid()
143 if (port->port_id) in am65_cpsw_set_pvid()
166 port_mask = BIT(port->port_id); in am65_cpsw_port_vlan_add()
208 port_mask = BIT(port->port_id); in am65_cpsw_port_vlan_del()
268 port_mask = BIT(port->port_id); in am65_cpsw_port_mdb_add()
290 del_mask = BIT(port->port_id); in am65_cpsw_port_mdb_del()
[all …]
H A Dam65-cpsw-nuss.c318 port_mask = BIT(port->port_id) | ALE_PORT_HOST; in am65_cpsw_nuss_ndo_slave_add_vid()
348 BIT(port->port_id) | ALE_PORT_HOST); in am65_cpsw_nuss_ndo_slave_kill_vid()
366 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc()
371 cpsw_ale_control_set(common->ale, port->port_id, in am65_cpsw_slave_set_promisc()
392 ndev->flags & IFF_ALLMULTI, port->port_id); in am65_cpsw_nuss_ndo_slave_set_rx_mode()
899 val |= BIT(port->port_id); in am65_cpsw_nuss_common_open()
1127 cppi5_desc_set_tags_ids(&host_desc->hdr, 0, port->port_id); in am65_cpsw_xdp_tx_frame()
1272 u32 buf_dma_len, pkt_len, port_id = 0, csum_info; in am65_cpsw_nuss_rx_packets() local
1314 cppi5_desc_get_tags_ids(&desc_rx->hdr, &port_id, NULL); in am65_cpsw_nuss_rx_packets()
1315 dev_dbg(dev, "%s rx port_id:%d\n", __func__, port_id); in am65_cpsw_nuss_rx_packets()
[all …]
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_switchdev.c65 emac_state, emac->port_id); in prueth_switchdev_attr_br_flags_set()
88 netdev_dbg(ndev, "attr: id %u port: %u\n", attr->id, emac->port_id); in prueth_switchdev_attr_set()
131 int port_id = emac->port_id; in prueth_switchdev_event_work() local
141 fdb->offloaded, port_id); in prueth_switchdev_event_work()
149 BIT(port_id), true); in prueth_switchdev_event_work()
158 fdb->offloaded, port_id); in prueth_switchdev_event_work()
165 BIT(port_id), false); in prueth_switchdev_event_work()
241 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_add()
254 icssg_set_pvid(emac->prueth, vid, emac->port_id); in prueth_switchdev_vlan_add()
269 port_mask = BIT(emac->port_id); in prueth_switchdev_vlan_del()
[all …]
/linux/drivers/tty/serial/
H A Dserial_base_bus.c69 unsigned int port_id) in serial_base_device_init() argument
88 ctrl_id, port_id); in serial_base_device_init()
160 /* Device driver specified port_id vs automatic assignment? */ in serial_base_port_add()
161 if (port->port_id) { in serial_base_port_add()
162 min = port->port_id; in serial_base_port_add()
163 max = port->port_id; in serial_base_port_add()
172 port->port_id = err; in serial_base_port_add()
177 port->ctrl_id, port->port_id); in serial_base_port_add()
191 ida_free(&ctrl_dev->port_ida, port->port_id); in serial_base_port_add()
208 ida_free(&ctrl_dev->port_ida, port_dev->port->port_id); in serial_base_port_device_remove()
[all …]
/linux/sound/soc/qcom/qdsp6/
H A Dq6adm.c280 int port_id, int copp_idx) in q6adm_device_close() argument
288 close.hdr.src_port = port_id; in q6adm_device_close()
290 close.hdr.token = port_id << 16 | copp_idx; in q6adm_device_close()
297 int port_id, int topology, in q6adm_find_matching_copp() argument
309 if ((port_id == c->afe_port) && (topology == c->topology) && in q6adm_find_matching_copp()
322 int port_id, int path, int topology, in q6adm_device_open() argument
326 int afe_port = q6afe_get_port_id(port_id); in q6adm_device_open()
344 pkt->hdr.token = port_id << 16 | copp->copp_idx; in q6adm_device_open()
371 * @port_id: port id
383 struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, in q6adm_open() argument
[all …]
H A Dq6afe.c386 u16 port_id; member
391 u16 port_id; member
411 u16 port_id; member
659 int port_id; member
1018 * Return: Will be an negative on error or valid port_id on success
1025 return port_maps[index].port_id; in q6afe_get_port_id()
1133 u16 port_id = port->id; in q6afe_port_set_param_v2() local
1157 param->port_id = port_id; in q6afe_port_set_param_v2()
1169 port_id, ret); in q6afe_port_set_param_v2()
1285 int port_id = port->id; in q6afe_port_stop() local
[all …]
/linux/drivers/spi/
H A Dspi-pxa2xx-pci.c72 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_clk_register()
106 ssp->port_id = 0; in lpss_spi_setup()
112 ssp->port_id = 0; in lpss_spi_setup()
118 ssp->port_id = 1; in lpss_spi_setup()
124 ssp->port_id = 2; in lpss_spi_setup()
131 ssp->port_id = 0; in lpss_spi_setup()
138 ssp->port_id = 1; in lpss_spi_setup()
182 ssp->port_id = dev->devfn; in ce4100_spi_setup()
203 ssp->port_id = 3; in mrfld_spi_setup()
209 ssp->port_id = 5; in mrfld_spi_setup()
[all …]
/linux/drivers/scsi/libfc/
H A Dfc_npiv.c45 * @port_id: Fabric ID to find a match for
49 struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id) in fc_vport_id_lookup() argument
54 if (n_port->port_id == port_id) in fc_vport_id_lookup()
57 if (port_id == FC_FID_FLOGI) in fc_vport_id_lookup()
62 if (vn_port->port_id == port_id) { in fc_vport_id_lookup()
H A Dfc_libfc.h38 (lport)->port_id, ##args))
46 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument
50 (port_id), ##args))
53 FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args)
64 (pkt)->rport->port_id, \
69 (pkt)->rport->port_id, ##args); \
H A Dfc_lport.c176 rdata->ids.port_id); in fc_lport_rport_callback()
192 "%d state", rdata->ids.port_id, in fc_lport_rport_callback()
200 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback()
202 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback()
246 lport->port_id); in fc_lport_ptp_setup()
568 lport->host->host_no, lport->port_id); in fc_linkup()
598 lport->host->host_no, lport->port_id); in fc_linkdown()
703 lport->host->host_no, lport->port_id); in fc_lport_disc_callback()
737 * @port_id: The new port ID.
740 static void fc_lport_set_port_id(struct fc_lport *lport, u32 port_id, in fc_lport_set_port_id() argument
[all …]
H A Dfc_rport.c97 * fc_rport_lookup() - Lookup a remote port by port_id
99 * @port_id: The remote port ID to look up
105 u32 port_id) in fc_rport_lookup() argument
111 if (tmp_rdata->ids.port_id == port_id && in fc_rport_lookup()
124 * @port_id: The identifiers for the new remote port
128 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument
135 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create()
149 rdata->ids.port_id = port_id; in fc_rport_create()
163 if (port_id != FC_FID_DIR_SERV) { in fc_rport_create()
260 u32 port_id; in fc_rport_work() local
[all …]
/linux/drivers/fpga/
H A Ddfl-fme-pr.h28 * @port_id: indicate which port this region connected to.
33 int port_id; member
41 * @region_id: region id (same as port_id).
64 * @port_id: port id.
68 int port_id; member
/linux/drivers/net/ethernet/sfc/
H A Def10_sriov.h61 unsigned int port_id, const u8 *mac);
63 unsigned int port_id, const u8 *mac);
64 int efx_ef10_vadaptor_alloc(struct efx_nic *efx, unsigned int port_id);
65 int efx_ef10_vadaptor_query(struct efx_nic *efx, unsigned int port_id,
68 int efx_ef10_vadaptor_free(struct efx_nic *efx, unsigned int port_id);
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_dcb.c45 __func__, pi->port_id); in cxgb4_dcb_state_init()
450 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
452 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
463 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
465 INIT_PORT_DCB_READ_PEER_CMD(pcmd, pi->port_id); in cxgb4_getpgtccfg()
517 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
531 INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
542 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
554 INIT_PORT_DCB_WRITE_CMD(pcmd, pi->port_id); in cxgb4_setpgtccfg_tx()
573 INIT_PORT_DCB_READ_LOCAL_CMD(pcmd, pi->port_id); in cxgb4_getpgbwgcfg()
[all …]
H A Dcxgb4_tc_matchall.c187 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_alloc_tc()
230 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_free_tc()
250 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_mirror_alloc()
274 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_mirror_free()
289 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_del_filter()
322 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_add_filter()
355 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_alloc_filter()
386 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_matchall_free_filter()
413 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_tc_matchall_replace()
452 tc_port_matchall = &adap->tc_matchall->port_matchall[pi->port_id]; in cxgb4_tc_matchall_destroy()
[all …]
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_tgt.c95 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session()
270 tgt->rdata->ids.port_id, tgt->num_active_ios.counter); in bnx2fc_flush_active_ios()
447 u32 port_id; in bnx2fc_rport_event_handler() local
449 BNX2FC_HBA_DBG(lport, "rport_event_hdlr: event = %d, port_id = 0x%x\n", in bnx2fc_rport_event_handler()
450 event, rdata->ids.port_id); in bnx2fc_rport_event_handler()
459 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler()
467 rdata->ids.port_id); in bnx2fc_rport_event_handler()
526 port_id = rdata->ids.port_id; in bnx2fc_rport_event_handler()
527 if (port_id == FC_FID_DIR_SERV) in bnx2fc_rport_event_handler()
532 port_id); in bnx2fc_rport_event_handler()
[all …]
H A 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()
245 BNX2FC_HBA_DBG(lport, "ofld_req: port_id = 0, link down?\n"); in bnx2fc_send_session_ofld_req()
252 * when the lport is reset, the port_id also is reset to 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()
[all …]
/linux/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c546 if (!fcf || (ports && !lp->port_id)) in fcoe_ctlr_send_keep_alive()
577 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive()
663 hton24(mac->fd_mac + 3, fip->port_id); in fcoe_ctlr_encaps()
1356 if (!lport->port_id) { in fcoe_ctlr_recv_clr_vlink()
1476 * 'port_id' is already validated, check MAC address and in fcoe_ctlr_recv_clr_vlink()
2051 hton24(frame->eth.h_source + 3, fip->port_id); in fcoe_ctlr_vn_send()
2073 hton24(frame->vn.fd_mac + 3, fip->port_id); in fcoe_ctlr_vn_send()
2074 hton24(frame->vn.fd_fc_id, fip->port_id); in fcoe_ctlr_vn_send()
2126 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback()
2139 "rport FLOGI limited port_id %6.6x\n", in fcoe_ctlr_vn_rport_callback()
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_attr.c31 u32 port_id; in fcoe_mac_show() local
35 port_id = fc_host_port_id(lport->host); in fcoe_mac_show()
36 lport_src_id[2] = (port_id & 0x000000FF); in fcoe_mac_show()
37 lport_src_id[1] = (port_id & 0x0000FF00) >> 8; in fcoe_mac_show()
38 lport_src_id[0] = (port_id & 0x00FF0000) >> 16; in fcoe_mac_show()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmain.c104 nfp_flower_get_netdev_from_internal_port_id(struct nfp_app *app, int port_id) in nfp_flower_get_netdev_from_internal_port_id() argument
110 netdev = idr_find(&priv->internal_ports.port_ids, port_id); in nfp_flower_get_netdev_from_internal_port_id()
220 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
222 switch (FIELD_GET(NFP_FLOWER_CMSG_PORT_TYPE, port_id)) { in nfp_flower_repr_get_type_and_port()
225 port_id); in nfp_flower_repr_get_type_and_port()
229 *port = FIELD_GET(NFP_FLOWER_CMSG_PORT_VNIC, port_id); in nfp_flower_repr_get_type_and_port()
230 if (FIELD_GET(NFP_FLOWER_CMSG_PORT_VNIC_TYPE, port_id) == in nfp_flower_repr_get_type_and_port()
241 nfp_flower_dev_get(struct nfp_app *app, u32 port_id, bool *redir_egress) in nfp_flower_dev_get() argument
248 if (FIELD_GET(NFP_FLOWER_CMSG_PORT_TYPE, port_id) == in nfp_flower_dev_get()
252 port = FIELD_GET(NFP_FLOWER_CMSG_PORT_PHYS_PORT_NUM, port_id); in nfp_flower_dev_get()
[all …]
/linux/net/bridge/
H A Dbr_private_stp.h34 port_id port_id; member
45 (p->designated_port == p->port_id); in br_is_designated_port()
/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_sgmac.c93 ICM_ECM_DROP_COUNT_REG0_ADDR + pdata->port_id * OFFSET_4; in xgene_sgmac_get_drop_cnt()
100 ECM_CONFIG0_REG_0_ADDR + pdata->port_id * OFFSET_4; in xgene_sgmac_get_drop_cnt()
234 icm0_addr = ICM_CONFIG0_REG_0_ADDR + p->port_id * OFFSET_8; in xgene_sgmac_set_speed()
235 icm2_addr = ICM_CONFIG2_REG_0_ADDR + p->port_id * OFFSET_4; in xgene_sgmac_set_speed()
348 offset = p->port_id * OFFSET_4; in xgene_sgmac_init()
393 if (!(p->port_id % 2)) { in xgene_sgmac_init()
474 if (!p->port_id) { in xgene_enet_reset()
487 u32 offset = p->port_id * MAC_OFFSET; in xgene_enet_cle_bypass()
570 ecm_cfg_addr = (!(p->port_id % 2)) ? CSR_ECM_CFG_0_ADDR : in xgene_sgmac_enable_tx_pause()
/linux/drivers/scsi/qla2xxx/
H A Dqla_edif_bsg.h183 port_id_t port_id; member
221 port_id_t port_id; member
227 port_id_t port_id; member
260 port_id_t port_id; member

1234567891011