Home
last modified time | relevance | path

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

12

/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A 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()
H A 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/net/dsa/
H A Dtag_sja1105.c99 u64 switch_id; member
121 packing(buf + 7, &meta->switch_id, 7, 0, 1, UNPACK, 0); in sja1105_meta_unpack()
478 int source_port = -1, switch_id = -1, vbid = -1, vid = -1; in sja1105_rcv() local
494 switch_id = hdr->h_dest[4]; in sja1105_rcv()
498 switch_id = meta.switch_id; in sja1105_rcv()
505 dsa_8021q_rcv(skb, &source_port, &switch_id, &vbid, &vid); in sja1105_rcv()
506 else if (source_port == -1 && switch_id == -1) in sja1105_rcv()
512 skb->dev = dsa_tag_8021q_find_user(netdev, source_port, switch_id, in sja1105_rcv()
529 int switch_id = SJA1110_RX_HEADER_SWITCH_ID(rx_header); in sja1110_rcv_meta() local
538 ds = dsa_switch_find(cpu_dp->dst->index, switch_id); in sja1110_rcv_meta()
[all …]
H A Dtag_vsc73xx_8021q.c38 int src_port = -1, switch_id = -1, vbid = -1, vid = -1; in vsc73xx_rcv() local
40 dsa_8021q_rcv(skb, &src_port, &switch_id, &vbid, &vid); in vsc73xx_rcv()
42 skb->dev = dsa_tag_8021q_find_user(netdev, src_port, switch_id, in vsc73xx_rcv()
H A Dtag_ocelot_8021q.c82 int src_port, switch_id; in ocelot_rcv() local
84 dsa_8021q_rcv(skb, &src_port, &switch_id, NULL, NULL); in ocelot_rcv()
86 skb->dev = dsa_conduit_find_user(netdev, switch_id, src_port); in ocelot_rcv()
H A Dtag_8021q.h16 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
20 int source_port, int switch_id,
H A Dtag_8021q.c503 int source_port, int switch_id, in dsa_tag_8021q_find_user() argument
507 if (source_port != -1 && switch_id != -1) in dsa_tag_8021q_find_user()
508 return dsa_conduit_find_user(conduit, switch_id, source_port); in dsa_tag_8021q_find_user()
532 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id, in dsa_8021q_rcv() argument
579 if (tmp_vbid == 0 && *switch_id == -1) in dsa_8021q_rcv()
580 *switch_id = tmp_switch_id; in dsa_8021q_rcv()
H A Ddevlink.c316 memcpy(attrs.switch_id.id, id, len); in dsa_port_devlink_setup()
317 attrs.switch_id.id_len = len; in dsa_port_devlink_setup()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c41 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()
115 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set()
116 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_sf_devlink_port_attrs_set()
/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
H A 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/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Ddevlink.c63 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register()
64 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
/linux/drivers/net/netdevsim/
H A Ddev.c1378 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
1379 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1537 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe()
1538 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
H A Dnetdevsim.h310 struct netdev_phys_item_id switch_id; member
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c424 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()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_adminq_cmd.h333 __le16 switch_id; /* 12bit id combined with flags below */ member
449 __le16 switch_id; member
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_devlink.c356 memcpy(attrs.switch_id.id, serial, serial_len); in nfp_devlink_port_register()
357 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/linux/drivers/net/dsa/qca/
H A Dqca8k-8xxx.c1118 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup_of_pws_reg()
1226 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_parse_port_config()
1384 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_phylink_mac_config()
1601 if (priv->switch_id == QCA8K_ID_QCA8327 || in qca8k_pcs_config()
1602 priv->switch_id == QCA8K_ID_QCA8337) in qca8k_pcs_config()
1973 if (priv->switch_id == QCA8K_ID_QCA8337) in qca8k_setup()
1978 if (priv->switch_id == QCA8K_ID_QCA8327) { in qca8k_setup()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.h178 unsigned char switch_id[MAX_PHYS_ITEM_ID_LEN]; member
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_devlink.c215 i40e_devlink_set_switch_id(pf, &attrs.switch_id); in i40e_devlink_create_port()
H A Di40e_debugfs.c374 vsi->info.valid_sections, vsi->info.switch_id); in i40e_dbg_dump_vsi_seid()
1025 u16 switch_id; in i40e_dbg_command_write() local
1036 switch_id = in i40e_dbg_command_write()
1037 le16_to_cpu(vsi->info.switch_id) & in i40e_dbg_command_write()
1041 switch_id, in i40e_dbg_command_write()
/linux/net/devlink/
H A Dport.c1343 if (attrs->switch_id.id_len) { in __devlink_port_attrs_set()
1345 if (WARN_ON(attrs->switch_id.id_len > MAX_PHYS_ITEM_ID_LEN)) in __devlink_port_attrs_set()
1346 attrs->switch_id.id_len = MAX_PHYS_ITEM_ID_LEN; in __devlink_port_attrs_set()
1617 memcpy(ppid, &devlink_port->attrs.switch_id, sizeof(*ppid)); in devlink_compat_switch_id_get()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore.h263 const unsigned char *switch_id,
268 const unsigned char *switch_id,
H A Dcore.c3064 const unsigned char *switch_id, in __mlxsw_core_port_init() argument
3080 memcpy(attrs.switch_id.id, switch_id, switch_id_len); in __mlxsw_core_port_init()
3081 attrs.switch_id.id_len = switch_id_len; in __mlxsw_core_port_init()
3114 const unsigned char *switch_id, in mlxsw_core_port_init() argument
3123 switch_id, switch_id_len); in mlxsw_core_port_init()
3142 const unsigned char *switch_id, in mlxsw_core_cpu_port_init() argument
3152 switch_id, switch_id_len); in mlxsw_core_cpu_port_init()
/linux/drivers/net/ethernet/intel/ice/devlink/
H A Ddevlink_port.c351 ice_devlink_set_switch_id(pf, &attrs.switch_id); in ice_devlink_create_pf_port()
464 ice_devlink_set_switch_id(pf, &attrs.switch_id); in ice_devlink_create_vf_port()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_prueth.h297 unsigned char switch_id[MAX_PHYS_ITEM_ID_LEN]; member

12