Home
last modified time | relevance | path

Searched refs:dsa_switch (Results 1 – 25 of 67) sorted by relevance

123

/linux/include/net/
A Ddsa.h84 struct dsa_switch;
248 struct dsa_switch *ds;
315 struct dsa_switch { struct
580 const struct dsa_switch *ds = dp->ds; in dsa_port_is_vlan_filtering()
619 int (*setup)(struct dsa_switch *ds);
620 void (*teardown)(struct dsa_switch *ds);
708 int (*suspend)(struct dsa_switch *ds);
709 int (*resume)(struct dsa_switch *ds);
728 int (*get_eeprom)(struct dsa_switch *ds,
730 int (*set_eeprom)(struct dsa_switch *ds,
[all …]
/linux/drivers/net/dsa/sja1105/
A Dsja1105_ptp.h74 int sja1105_ptp_clock_register(struct dsa_switch *ds);
76 void sja1105_ptp_clock_unregister(struct dsa_switch *ds);
84 int sja1105_get_ts_info(struct dsa_switch *ds, int port,
87 void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot,
90 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
93 void sja1105_port_txtstamp(struct dsa_switch *ds, int port,
100 int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
103 int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
106 int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta);
127 static inline int sja1105_ptp_clock_register(struct dsa_switch *ds) in sja1105_ptp_clock_register()
[all …]
A Dsja1105_tas.h53 int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
56 void sja1105_tas_setup(struct dsa_switch *ds);
58 void sja1105_tas_teardown(struct dsa_switch *ds);
60 void sja1105_tas_clockstep(struct dsa_switch *ds);
62 void sja1105_tas_adjfreq(struct dsa_switch *ds);
76 static inline int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, in sja1105_setup_tc_taprio()
82 static inline void sja1105_tas_setup(struct dsa_switch *ds) { } in sja1105_tas_setup()
84 static inline void sja1105_tas_teardown(struct dsa_switch *ds) { } in sja1105_tas_teardown()
86 static inline void sja1105_tas_clockstep(struct dsa_switch *ds) { } in sja1105_tas_clockstep()
88 static inline void sja1105_tas_adjfreq(struct dsa_switch *ds) { } in sja1105_tas_adjfreq()
[all …]
A Dsja1105.h140 int (*reset_cmd)(struct dsa_switch *ds);
143 int (*fdb_add_cmd)(struct dsa_switch *ds, int port,
145 int (*fdb_del_cmd)(struct dsa_switch *ds, int port,
255 struct dsa_switch *ds;
302 int sja1105_mdiobus_register(struct dsa_switch *ds);
310 int sja1105_devlink_setup(struct dsa_switch *ds);
311 void sja1105_devlink_teardown(struct dsa_switch *ds);
312 int sja1105_devlink_info_get(struct dsa_switch *ds,
395 int sja1105et_fdb_add(struct dsa_switch *ds, int port,
411 void sja1105_flower_setup(struct dsa_switch *ds);
[all …]
A Dsja1105_devlink.c41 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in sja1105_region_static_config_snapshot()
77 static int sja1105_setup_devlink_regions(struct dsa_switch *ds) in sja1105_setup_devlink_regions()
107 static void sja1105_teardown_devlink_regions(struct dsa_switch *ds) in sja1105_teardown_devlink_regions()
118 int sja1105_devlink_info_get(struct dsa_switch *ds, in sja1105_devlink_info_get()
135 int sja1105_devlink_setup(struct dsa_switch *ds) in sja1105_devlink_setup()
140 void sja1105_devlink_teardown(struct dsa_switch *ds) in sja1105_devlink_teardown()
A Dsja1105_main.c200 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings()
251 struct dsa_switch *ds = priv->ds; in sja1105_init_mii_settings()
416 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_lookup_params()
474 struct dsa_switch *ds = priv->ds; in sja1105_init_static_vlan()
512 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_forwarding()
646 struct dsa_switch *ds = priv->ds; in sja1110_init_pcp_remapping()
795 struct dsa_switch *ds = priv->ds; in sja1105_init_topology()
1011 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_policing()
1946 struct dsa_switch *ds = priv->ds; in sja1105_manage_flood_domains()
2202 struct dsa_switch *ds = priv->ds; in sja1105_static_config_reload()
[all …]
/linux/drivers/net/dsa/b53/
A Db53_priv.h104 struct dsa_switch *ds;
321 int b53_configure_vlan(struct dsa_switch *ds);
334 int b53_br_flags(struct dsa_switch *ds, int port,
359 int b53_vlan_add(struct dsa_switch *ds, int port,
362 int b53_vlan_del(struct dsa_switch *ds, int port,
364 int b53_fdb_add(struct dsa_switch *ds, int port,
366 int b53_fdb_del(struct dsa_switch *ds, int port,
368 int b53_fdb_dump(struct dsa_switch *ds, int port,
370 int b53_mdb_add(struct dsa_switch *ds, int port,
372 int b53_mdb_del(struct dsa_switch *ds, int port,
[all …]
A Db53_common.c738 int b53_configure_vlan(struct dsa_switch *ds) in b53_configure_vlan()
1099 static int b53_setup(struct dsa_switch *ds) in b53_setup()
1137 static void b53_teardown(struct dsa_switch *ds) in b53_teardown()
1473 int b53_vlan_add(struct dsa_switch *ds, int port, in b53_vlan_add()
1513 int b53_vlan_del(struct dsa_switch *ds, int port, in b53_vlan_del()
1706 int b53_fdb_add(struct dsa_switch *ds, int port, in b53_fdb_add()
1726 int b53_fdb_del(struct dsa_switch *ds, int port, in b53_fdb_del()
1784 int b53_fdb_dump(struct dsa_switch *ds, int port, in b53_fdb_dump()
1827 int b53_mdb_add(struct dsa_switch *ds, int port, in b53_mdb_add()
1847 int b53_mdb_del(struct dsa_switch *ds, int port, in b53_mdb_del()
[all …]
/linux/drivers/net/dsa/mv88e6xxx/
A Ddevlink.h8 int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds);
9 void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds);
10 int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds);
11 int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id,
13 int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id,
15 int mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds);
16 void mv88e6xxx_teardown_devlink_regions_global(struct dsa_switch *ds);
17 int mv88e6xxx_setup_devlink_regions_port(struct dsa_switch *ds, int port);
18 void mv88e6xxx_teardown_devlink_regions_port(struct dsa_switch *ds, int port);
20 int mv88e6xxx_devlink_info_get(struct dsa_switch *ds,
A Dhwtstamp.h113 int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port,
115 int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port,
118 bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port,
120 void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port,
123 int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port,
135 static inline int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, in mv88e6xxx_port_hwtstamp_set()
141 static inline int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, in mv88e6xxx_port_hwtstamp_get()
147 static inline bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, in mv88e6xxx_port_rxtstamp()
154 static inline void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, in mv88e6xxx_port_txtstamp()
159 static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, in mv88e6xxx_get_ts_info()
A Ddevlink.c31 int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id, in mv88e6xxx_devlink_param_get()
53 int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id, in mv88e6xxx_devlink_param_set()
81 int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_params()
87 void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds) in mv88e6xxx_teardown_devlink_params()
176 int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_resources()
270 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_global_snapshot()
376 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_atu_snapshot()
450 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_vtu_snapshot()
511 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in mv88e6xxx_region_pvt_snapshot()
549 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); in mv88e6xxx_region_port_snapshot()
[all …]
/linux/drivers/net/dsa/ocelot/
A Dfelix.c34 struct dsa_switch *ds = felix->ds; in felix_tag_8021q_rxvlan_add()
80 struct dsa_switch *ds = felix->ds; in felix_tag_8021q_txvlan_add()
273 struct dsa_switch *ds = felix->ds; in felix_setup_mmio_filtering()
625 static int felix_set_ageing_time(struct dsa_switch *ds, in felix_set_ageing_time()
643 static int felix_fdb_add(struct dsa_switch *ds, int port, in felix_fdb_add()
651 static int felix_fdb_del(struct dsa_switch *ds, int port, in felix_fdb_del()
1118 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit()
1185 static int felix_setup(struct dsa_switch *ds) in felix_setup()
1276 static void felix_teardown(struct dsa_switch *ds) in felix_teardown()
1565 static int felix_sb_occ_snapshot(struct dsa_switch *ds, in felix_sb_occ_snapshot()
[all …]
/linux/net/dsa/
A Dswitch.c29 static int dsa_switch_ageing_time(struct dsa_switch *ds, in dsa_switch_ageing_time()
67 static int dsa_switch_mtu(struct dsa_switch *ds, in dsa_switch_mtu()
186 struct dsa_switch *targeted_ds; in dsa_port_host_address_match()
215 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_add()
258 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_del()
296 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_add()
339 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_del()
416 static int dsa_switch_fdb_add(struct dsa_switch *ds, in dsa_switch_fdb_add()
675 dsa_switch_mrp_add_ring_role(struct dsa_switch *ds, in dsa_switch_mrp_add_ring_role()
689 dsa_switch_mrp_del_ring_role(struct dsa_switch *ds, in dsa_switch_mrp_del_ring_role()
[all …]
A Dtag_8021q.c145 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_add()
181 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_del()
213 struct dsa_switch *ds = dp->ds; in dsa_port_tag_8021q_vlan_match()
224 int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds, in dsa_switch_tag_8021q_vlan_add()
260 int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds, in dsa_switch_tag_8021q_vlan_del()
343 int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, in dsa_tag_8021q_bridge_join()
346 struct dsa_switch *targeted_ds; in dsa_tag_8021q_bridge_join()
379 int dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, in dsa_tag_8021q_bridge_leave()
382 struct dsa_switch *targeted_ds; in dsa_tag_8021q_bridge_leave()
500 static int dsa_tag_8021q_setup(struct dsa_switch *ds) in dsa_tag_8021q_setup()
[all …]
A Ddsa2.c288 struct dsa_switch *ds = dp->ds; in dsa_link_touch()
313 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table()
429 struct dsa_switch *ds = dp->ds; in dsa_port_setup()
544 struct dsa_switch *ds = dp->ds; in dsa_port_teardown()
605 struct dsa_switch *ds = dp->ds; in dsa_port_reinit_as_unused()
630 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_info_get()
642 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_get()
656 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_set()
733 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_occ_snapshot()
1217 struct dsa_switch *mds, *ds = dp->ds; in dsa_get_tag_protocol()
[all …]
A Ddsa.c204 struct dsa_switch *ds = p->dp->ds; in dsa_skb_defer_rx_timestamp()
288 int dsa_switch_suspend(struct dsa_switch *ds) in dsa_switch_suspend()
310 int dsa_switch_resume(struct dsa_switch *ds) in dsa_switch_resume()
356 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_get()
368 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_set()
377 int dsa_devlink_params_register(struct dsa_switch *ds, in dsa_devlink_params_register()
385 void dsa_devlink_params_unregister(struct dsa_switch *ds, in dsa_devlink_params_unregister()
393 int dsa_devlink_resource_register(struct dsa_switch *ds, in dsa_devlink_resource_register()
407 void dsa_devlink_resources_unregister(struct dsa_switch *ds) in dsa_devlink_resources_unregister()
431 dsa_devlink_region_create(struct dsa_switch *ds, in dsa_devlink_region_create()
[all …]
/linux/drivers/net/dsa/
A Ddsa_loop.c50 static int dsa_loop_setup_devlink_resources(struct dsa_switch *ds) in dsa_loop_setup_devlink_resources()
87 static int dsa_loop_setup(struct dsa_switch *ds) in dsa_loop_setup()
101 static void dsa_loop_teardown(struct dsa_switch *ds) in dsa_loop_teardown()
114 static void dsa_loop_get_strings(struct dsa_switch *ds, int port, in dsa_loop_get_strings()
153 static int dsa_loop_phy_write(struct dsa_switch *ds, int port, in dsa_loop_phy_write()
202 static int dsa_loop_port_vlan_add(struct dsa_switch *ds, int port, in dsa_loop_port_vlan_add()
235 static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port, in dsa_loop_port_vlan_del()
273 static int dsa_loop_port_max_mtu(struct dsa_switch *ds, int port) in dsa_loop_port_max_mtu()
302 struct dsa_switch *ds; in dsa_loop_drv_probe()
342 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in dsa_loop_drv_remove()
[all …]
A Dbcm_sf2.h121 static inline struct bcm_sf2_priv *bcm_sf2_to_priv(struct dsa_switch *ds) in bcm_sf2_to_priv()
214 int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port,
216 int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port,
219 void bcm_sf2_cfp_exit(struct dsa_switch *ds);
220 int bcm_sf2_cfp_resume(struct dsa_switch *ds);
221 void bcm_sf2_cfp_get_strings(struct dsa_switch *ds, int port,
223 void bcm_sf2_cfp_get_ethtool_stats(struct dsa_switch *ds, int port,
225 int bcm_sf2_cfp_get_sset_count(struct dsa_switch *ds, int port, int sset);
A Drealtek-smi-core.h58 struct dsa_switch *ds;
132 int rtl8366_vlan_add(struct dsa_switch *ds, int port,
135 int rtl8366_vlan_del(struct dsa_switch *ds, int port,
137 void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset,
139 int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset);
140 void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
/linux/include/linux/dsa/
A D8021q.h11 struct dsa_switch;
24 struct dsa_switch *ds;
30 int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto);
32 void dsa_tag_8021q_unregister(struct dsa_switch *ds);
39 int dsa_tag_8021q_bridge_tx_fwd_offload(struct dsa_switch *ds, int port,
43 void dsa_tag_8021q_bridge_tx_fwd_unoffload(struct dsa_switch *ds, int port,
/linux/drivers/net/dsa/microchip/
A Dksz_common.h45 struct dsa_switch *ds;
151 int ksz_phy_read16(struct dsa_switch *ds, int addr, int reg);
152 int ksz_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val);
153 void ksz_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode,
155 int ksz_sset_count(struct dsa_switch *ds, int port, int sset);
156 void ksz_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *buf);
157 int ksz_port_bridge_join(struct dsa_switch *ds, int port,
159 void ksz_port_bridge_leave(struct dsa_switch *ds, int port,
161 void ksz_port_fast_age(struct dsa_switch *ds, int port);
164 int ksz_port_mdb_add(struct dsa_switch *ds, int port,
[all …]
A Dksz_common.c26 struct dsa_switch *ds = dev->ds; in ksz_update_port_member()
130 int ksz_phy_read16(struct dsa_switch *ds, int addr, int reg) in ksz_phy_read16()
141 int ksz_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val) in ksz_phy_write16()
151 void ksz_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, in ksz_mac_link_down()
165 int ksz_sset_count(struct dsa_switch *ds, int port, int sset) in ksz_sset_count()
194 int ksz_port_bridge_join(struct dsa_switch *ds, int port, in ksz_port_bridge_join()
205 void ksz_port_bridge_leave(struct dsa_switch *ds, int port, in ksz_port_bridge_leave()
214 void ksz_port_fast_age(struct dsa_switch *ds, int port) in ksz_port_fast_age()
253 int ksz_port_mdb_add(struct dsa_switch *ds, int port, in ksz_port_mdb_add()
298 int ksz_port_mdb_del(struct dsa_switch *ds, int port, in ksz_port_mdb_del()
[all …]
/linux/drivers/net/dsa/hirschmann/
A Dhellcreek_hwtstamp.h40 int hellcreek_port_hwtstamp_set(struct dsa_switch *ds, int port,
42 int hellcreek_port_hwtstamp_get(struct dsa_switch *ds, int port,
45 bool hellcreek_port_rxtstamp(struct dsa_switch *ds, int port,
47 void hellcreek_port_txtstamp(struct dsa_switch *ds, int port,
50 int hellcreek_get_ts_info(struct dsa_switch *ds, int port,
A Dhellcreek.c238 static int hellcreek_port_enable(struct dsa_switch *ds, int port, in hellcreek_port_enable()
450 static int hellcreek_vlan_add(struct dsa_switch *ds, int port, in hellcreek_vlan_add()
472 static int hellcreek_vlan_del(struct dsa_switch *ds, int port, in hellcreek_vlan_del()
825 static int hellcreek_fdb_add(struct dsa_switch *ds, int port, in hellcreek_fdb_add()
870 static int hellcreek_fdb_del(struct dsa_switch *ds, int port, in hellcreek_fdb_del()
910 static int hellcreek_fdb_dump(struct dsa_switch *ds, int port, in hellcreek_fdb_dump()
1087 static int hellcreek_devlink_info_get(struct dsa_switch *ds, in hellcreek_devlink_info_get()
1187 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in hellcreek_devlink_region_vlan_snapshot()
1214 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in hellcreek_devlink_region_fdb_snapshot()
1304 static int hellcreek_setup(struct dsa_switch *ds) in hellcreek_setup()
[all …]
/linux/drivers/net/dsa/xrs700x/
A Dxrs700x.c85 static void xrs700x_get_strings(struct dsa_switch *ds, int port, in xrs700x_get_strings()
172 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, in xrs700x_get_stats64()
233 static int xrs700x_reset(struct dsa_switch *ds) in xrs700x_reset()
383 static int xrs700x_port_setup(struct dsa_switch *ds, int port) in xrs700x_port_setup()
417 static int xrs700x_setup(struct dsa_switch *ds) in xrs700x_setup()
437 static void xrs700x_teardown(struct dsa_switch *ds) in xrs700x_teardown()
474 static void xrs700x_mac_link_up(struct dsa_switch *ds, int port, in xrs700x_mac_link_up()
542 static int xrs700x_bridge_join(struct dsa_switch *ds, int port, in xrs700x_bridge_join()
554 static int xrs700x_hsr_join(struct dsa_switch *ds, int port, in xrs700x_hsr_join()
646 static int xrs700x_hsr_leave(struct dsa_switch *ds, int port, in xrs700x_hsr_leave()
[all …]

Completed in 86 milliseconds

123