/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | fifo_monitor_private.h | 34 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()
|
H A D | fifo_monitor.c | 510 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()
|
/openbmc/linux/net/dsa/ |
H A D | tag_sja1105.c | 99 u64 switch_id; member 480 int *switch_id, int *vbid, u16 *vid) in sja1105_vlan_rcv() argument 517 switch_id = hdr->h_dest[4]; in sja1105_rcv() 521 switch_id = meta.switch_id; in sja1105_rcv() 543 if (vbid == 0 && switch_id == -1) in sja1105_rcv() 544 switch_id = tmp_switch_id; in sja1105_rcv() 552 if (source_port != -1 && switch_id != -1) in sja1105_rcv() 585 master->name, switch_id); in sja1110_rcv_meta() 614 int *switch_id, in sja1110_rcv_inband_control_extension() argument 686 &switch_id, in sja1110_rcv() [all …]
|
H A D | tag_ocelot_8021q.c | 82 int src_port, switch_id; in ocelot_rcv() local 84 dsa_8021q_rcv(skb, &src_port, &switch_id, NULL); in ocelot_rcv() 86 skb->dev = dsa_master_find_slave(netdev, switch_id, src_port); in ocelot_rcv()
|
H A D | tag_8021q.h | 16 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
|
H A D | tag_8021q.c | 500 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id, in dsa_8021q_rcv() argument 517 *switch_id = dsa_8021q_rx_switch_id(vid); in dsa_8021q_rcv()
|
H A D | devlink.c | 315 memcpy(attrs.switch_id.id, id, len); in dsa_port_devlink_setup() 316 attrs.switch_id.id_len = len; in dsa_port_devlink_setup()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | devlink_port.c | 41 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 42 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 45 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 46 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 50 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 51 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 113 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set() 114 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_sf_devlink_port_attrs_set()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
H A D | fifo_monitor_public.h | 35 const fifo_switch_t switch_id, 47 const fifo_switch_t switch_id); 83 const fifo_switch_t switch_id,
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | devlink.c | 55 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register() 56 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | dev.c | 1381 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add() 1382 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add() 1540 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe() 1541 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
|
H A D | netdevsim.h | 297 struct netdev_phys_item_id switch_id; member
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker.c | 55 uint64_t switch_id; /* switch id */ member 112 rocker->id = r->switch_id; in qmp_query_rocker() 1112 ret = (uint32_t)r->switch_id; in rocker_io_readl() 1115 ret = (uint32_t)(r->switch_id >> 32); in rocker_io_readl() 1165 ret = r->switch_id; in rocker_io_readq() 1342 if (!r->switch_id) { in pci_rocker_realize() 1343 memcpy(&r->switch_id, &r->fp_start_macaddr, in pci_rocker_realize() 1473 switch_id, 0),
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_devlink.c | 424 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register() 425 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adminq_cmd.h | 333 __le16 switch_id; /* 12bit id combined with flags below */ member 449 __le16 switch_id; member
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_devlink.c | 351 memcpy(attrs.switch_id.id, serial, serial_len); in nfp_devlink_port_register() 352 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.h | 155 unsigned char switch_id[MAX_PHYS_ITEM_ID_LEN]; member
|
H A D | am65-cpsw-nuss.c | 2667 attrs.switch_id.id_len = sizeof(resource_size_t); in am65_cpsw_nuss_register_devlink() 2668 memcpy(attrs.switch_id.id, common->switch_id, attrs.switch_id.id_len); in am65_cpsw_nuss_register_devlink() 2907 memcpy(common->switch_id, &id_temp, sizeof(res->start)); in am65_cpsw_nuss_probe()
|
/openbmc/linux/drivers/net/dsa/qca/ |
H A D | qca8k-8xxx.c | 1117 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup_of_pws_reg() 1225 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_parse_port_config() 1376 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_phylink_mac_config() 1589 if (priv->switch_id == QCA8K_ID_QCA8327 || in qca8k_pcs_config() 1590 priv->switch_id == QCA8K_ID_QCA8337) in qca8k_pcs_config() 1961 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_setup() 1966 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup()
|
H A D | qca8k.h | 445 u8 switch_id; member
|
/openbmc/linux/net/devlink/ |
H A D | port.c | 1282 if (attrs->switch_id.id_len) { in __devlink_port_attrs_set() 1284 if (WARN_ON(attrs->switch_id.id_len > MAX_PHYS_ITEM_ID_LEN)) in __devlink_port_attrs_set() 1285 attrs->switch_id.id_len = MAX_PHYS_ITEM_ID_LEN; in __devlink_port_attrs_set() 1512 memcpy(ppid, &devlink_port->attrs.switch_id, sizeof(*ppid)); in devlink_compat_switch_id_get()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core.h | 259 const unsigned char *switch_id, 264 const unsigned char *switch_id,
|
H A D | core.c | 3127 const unsigned char *switch_id, in __mlxsw_core_port_init() argument 3143 memcpy(attrs.switch_id.id, switch_id, switch_id_len); in __mlxsw_core_port_init() 3144 attrs.switch_id.id_len = switch_id_len; in __mlxsw_core_port_init() 3177 const unsigned char *switch_id, in mlxsw_core_port_init() argument 3186 switch_id, switch_id_len); in mlxsw_core_port_init() 3205 const unsigned char *switch_id, in mlxsw_core_cpu_port_init() argument 3215 switch_id, switch_id_len); in mlxsw_core_cpu_port_init()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_debugfs.c | 393 vsi->info.valid_sections, vsi->info.switch_id); in i40e_dbg_dump_vsi_seid() 1043 u16 switch_id; in i40e_dbg_command_write() local 1054 switch_id = in i40e_dbg_command_write() 1055 le16_to_cpu(vsi->info.switch_id) & in i40e_dbg_command_write() 1059 switch_id, in i40e_dbg_command_write()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_devlink.c | 1286 memcpy(attrs.switch_id.id, bp->dsn, sizeof(bp->dsn)); in bnxt_dl_register() 1287 attrs.switch_id.id_len = sizeof(bp->dsn); in bnxt_dl_register()
|