Home
last modified time | relevance | path

Searched refs:switch_id (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dfifo_monitor_private.h34 const fifo_switch_t switch_id, in fifo_switch_set() argument
39 assert(switch_id < N_FIFO_SWITCH); in fifo_switch_set()
42 gp_device_reg_store(GP_DEVICE0_ID, FIFO_SWITCH_ADDR[switch_id], sel); in fifo_switch_set()
49 const fifo_switch_t switch_id) in fifo_switch_get() argument
53 assert(switch_id < N_FIFO_SWITCH); in fifo_switch_get()
56 return gp_device_reg_load(GP_DEVICE0_ID, FIFO_SWITCH_ADDR[switch_id]); in fifo_switch_get()
Dfifo_monitor.c510 const fifo_switch_t switch_id, in fifo_switch_get_state() argument
516 assert(switch_id < N_FIFO_SWITCH); in fifo_switch_get_state()
521 data = gp_device_reg_load(GP_DEVICE0_ID, FIFO_SWITCH_ADDR[switch_id]); in fifo_switch_get_state()
/Linux-v6.1/net/dsa/
Dtag_sja1105.c97 u64 switch_id; member
119 packing(buf + 7, &meta->switch_id, 7, 0, 1, UNPACK, 0); in sja1105_meta_unpack()
512 int *switch_id, int *vbid, u16 *vid) in sja1105_vlan_rcv() argument
523 return dsa_8021q_rcv(skb, source_port, switch_id, vbid); in sja1105_vlan_rcv()
532 int source_port = -1, switch_id = -1, vbid = -1; in sja1105_rcv() local
545 sja1105_vlan_rcv(skb, &source_port, &switch_id, &vbid, &vid); in sja1105_rcv()
552 switch_id = hdr->h_dest[4]; in sja1105_rcv()
559 switch_id = meta.switch_id; in sja1105_rcv()
566 else if (source_port == -1 || switch_id == -1) in sja1105_rcv()
569 skb->dev = dsa_master_find_slave(netdev, switch_id, source_port); in sja1105_rcv()
[all …]
Dtag_ocelot_8021q.c78 int src_port, switch_id; in ocelot_rcv() local
80 dsa_8021q_rcv(skb, &src_port, &switch_id, NULL); in ocelot_rcv()
82 skb->dev = dsa_master_find_slave(netdev, switch_id, src_port); in ocelot_rcv()
Dtag_8021q.c474 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id, in dsa_8021q_rcv() argument
491 *switch_id = dsa_8021q_rx_switch_id(vid); in dsa_8021q_rcv()
Ddsa2.c488 memcpy(attrs.switch_id.id, id, len); in dsa_port_devlink_setup()
489 attrs.switch_id.id_len = len; in dsa_port_devlink_setup()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c47 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
48 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
51 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
52 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
55 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
56 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
154 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_devlink_sf_port_register()
155 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_devlink_sf_port_register()
/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
Dfifo_monitor_public.h35 const fifo_switch_t switch_id,
47 const fifo_switch_t switch_id);
83 const fifo_switch_t switch_id,
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c31 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register()
32 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
/Linux-v6.1/include/linux/dsa/
D8021q.h44 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
/Linux-v6.1/drivers/net/netdevsim/
Ddev.c1384 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
1385 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1545 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe()
1546 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
Dnetdevsim.h274 struct netdev_phys_item_id switch_id; member
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c429 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register()
430 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
/Linux-v6.1/drivers/net/ethernet/intel/iavf/
Diavf_adminq_cmd.h333 __le16 switch_id; /* 12bit id combined with flags below */ member
449 __le16 switch_id; member
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c350 memcpy(attrs.switch_id.id, serial, serial_len); in nfp_devlink_port_register()
351 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/Linux-v6.1/drivers/net/dsa/qca/
Dqca8k-8xxx.c995 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup_of_pws_reg()
1103 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_parse_port_config()
1254 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_phylink_mac_config()
1472 if (priv->switch_id == QCA8K_ID_QCA8327 || in qca8k_pcs_config()
1473 priv->switch_id == QCA8K_ID_QCA8337) in qca8k_pcs_config()
1801 if (priv->switch_id == QCA8K_ID_QCA8337) { in qca8k_setup()
1840 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup()
Dqca8k.h392 u8 switch_id; member
/Linux-v6.1/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h147 unsigned char switch_id[MAX_PHYS_ITEM_ID_LEN]; member
Dam65-cpsw-nuss.c2484 attrs.switch_id.id_len = sizeof(resource_size_t); in am65_cpsw_nuss_register_devlink()
2485 memcpy(attrs.switch_id.id, common->switch_id, attrs.switch_id.id_len); in am65_cpsw_nuss_register_devlink()
2698 memcpy(common->switch_id, &id_temp, sizeof(res->start)); in am65_cpsw_nuss_probe()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dcore.h259 const unsigned char *switch_id,
264 const unsigned char *switch_id,
Dcore.c3073 const unsigned char *switch_id, in __mlxsw_core_port_init() argument
3089 memcpy(attrs.switch_id.id, switch_id, switch_id_len); in __mlxsw_core_port_init()
3090 attrs.switch_id.id_len = switch_id_len; in __mlxsw_core_port_init()
3122 const unsigned char *switch_id, in mlxsw_core_port_init() argument
3131 switch_id, switch_id_len); in mlxsw_core_port_init()
3150 const unsigned char *switch_id, in mlxsw_core_cpu_port_init() argument
3160 switch_id, switch_id_len); in mlxsw_core_cpu_port_init()
/Linux-v6.1/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c391 vsi->info.valid_sections, vsi->info.switch_id); in i40e_dbg_dump_vsi_seid()
1041 u16 switch_id; in i40e_dbg_command_write() local
1052 switch_id = in i40e_dbg_command_write()
1053 le16_to_cpu(vsi->info.switch_id) & in i40e_dbg_command_write()
1057 switch_id, in i40e_dbg_command_write()
Di40e_adminq_cmd.h755 __le16 switch_id; /* 12bit id combined with flags below */ member
886 __le16 switch_id; member
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_devlink.c1013 ice_devlink_set_switch_id(pf, &attrs.switch_id); in ice_devlink_create_pf_port()
1074 ice_devlink_set_switch_id(pf, &attrs.switch_id); in ice_devlink_create_vf_port()
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_devlink.c1297 memcpy(attrs.switch_id.id, bp->dsn, sizeof(bp->dsn)); in bnxt_dl_register()
1298 attrs.switch_id.id_len = sizeof(bp->dsn); in bnxt_dl_register()

12