Home
last modified time | relevance | path

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

1234

/openbmc/linux/include/net/
H A Ddsa.h91 struct dsa_switch;
98 int (*connect)(struct dsa_switch *ds);
99 void (*disconnect)(struct dsa_switch *ds);
256 struct dsa_switch *ds;
371 struct dsa_switch { struct
692 const struct dsa_switch *ds = dp->ds; in dsa_port_is_vlan_filtering()
842 int (*setup)(struct dsa_switch *ds);
843 void (*teardown)(struct dsa_switch *ds);
962 int (*suspend)(struct dsa_switch *ds);
963 int (*resume)(struct dsa_switch *ds);
[all …]
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.h93 int sja1105_ptp_clock_register(struct dsa_switch *ds);
95 void sja1105_ptp_clock_unregister(struct dsa_switch *ds);
103 int sja1105_get_ts_info(struct dsa_switch *ds, int port,
106 void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot,
109 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
112 void sja1105_port_txtstamp(struct dsa_switch *ds, int port,
119 int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
122 int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
125 int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta);
149 static inline int sja1105_ptp_clock_register(struct dsa_switch *ds) in sja1105_ptp_clock_register()
[all …]
H 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 …]
H A Dsja1105.h142 int (*reset_cmd)(struct dsa_switch *ds);
145 int (*fdb_add_cmd)(struct dsa_switch *ds, int port,
147 int (*fdb_del_cmd)(struct dsa_switch *ds, int port,
261 struct dsa_switch *ds;
310 int sja1105_mdiobus_register(struct dsa_switch *ds);
320 int sja1105_devlink_setup(struct dsa_switch *ds);
321 void sja1105_devlink_teardown(struct dsa_switch *ds);
322 int sja1105_devlink_info_get(struct dsa_switch *ds,
405 int sja1105et_fdb_add(struct dsa_switch *ds, int port,
421 void sja1105_flower_setup(struct dsa_switch *ds);
[all …]
H 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()
109 static void sja1105_teardown_devlink_regions(struct dsa_switch *ds) in sja1105_teardown_devlink_regions()
120 int sja1105_devlink_info_get(struct dsa_switch *ds, in sja1105_devlink_info_get()
131 int sja1105_devlink_setup(struct dsa_switch *ds) in sja1105_devlink_setup()
136 void sja1105_devlink_teardown(struct dsa_switch *ds) in sja1105_devlink_teardown()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.h36 int ksz_ptp_clock_register(struct dsa_switch *ds);
38 void ksz_ptp_clock_unregister(struct dsa_switch *ds);
40 int ksz_get_ts_info(struct dsa_switch *ds, int port,
42 int ksz_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr);
43 int ksz_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr);
48 int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p);
49 void ksz_ptp_irq_free(struct dsa_switch *ds, u8 p);
58 static inline int ksz_ptp_clock_register(struct dsa_switch *ds) in ksz_ptp_clock_register()
63 static inline void ksz_ptp_clock_unregister(struct dsa_switch *ds) { } in ksz_ptp_clock_unregister()
65 static inline int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p) in ksz_ptp_irq_setup()
[all …]
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H 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,
H 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()
/openbmc/linux/drivers/net/dsa/b53/
H A Db53_priv.h108 struct dsa_switch *ds;
336 int b53_configure_vlan(struct dsa_switch *ds);
350 int b53_br_flags(struct dsa_switch *ds, int port,
369 int b53_vlan_add(struct dsa_switch *ds, int port,
372 int b53_vlan_del(struct dsa_switch *ds, int port,
374 int b53_fdb_add(struct dsa_switch *ds, int port,
377 int b53_fdb_del(struct dsa_switch *ds, int port,
380 int b53_fdb_dump(struct dsa_switch *ds, int port,
382 int b53_mdb_add(struct dsa_switch *ds, int port,
385 int b53_mdb_del(struct dsa_switch *ds, int port,
[all …]
/openbmc/linux/net/dsa/
H A Ddevlink.c15 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_info_get()
27 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_get()
41 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_set()
54 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); in dsa_devlink_sb_port_pool_get()
118 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_occ_snapshot()
129 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_occ_max_clear()
187 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_get()
199 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_set()
262 dsa_devlink_region_create(struct dsa_switch *ds, in dsa_devlink_region_create()
297 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_setup()
[all …]
H A Ddevlink.h7 struct dsa_switch;
11 void dsa_switch_devlink_register(struct dsa_switch *ds);
12 void dsa_switch_devlink_unregister(struct dsa_switch *ds);
13 int dsa_switch_devlink_alloc(struct dsa_switch *ds);
14 void dsa_switch_devlink_free(struct dsa_switch *ds);
H A Dswitch.c35 static int dsa_switch_ageing_time(struct dsa_switch *ds, in dsa_switch_ageing_time()
61 static int dsa_switch_mtu(struct dsa_switch *ds, in dsa_switch_mtu()
162 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_add()
214 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_del()
261 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_add()
311 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_del()
490 static int dsa_switch_fdb_add(struct dsa_switch *ds, in dsa_switch_fdb_add()
502 static int dsa_switch_fdb_del(struct dsa_switch *ds, in dsa_switch_fdb_del()
692 struct dsa_switch *ds = dp->ds; in dsa_port_do_vlan_add()
748 struct dsa_switch *ds = dp->ds; in dsa_port_do_vlan_del()
[all …]
H A Dtag_8021q.c74 struct dsa_switch *ds;
146 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_add()
182 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_del()
217 int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds, in dsa_switch_tag_8021q_vlan_add()
249 int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds, in dsa_switch_tag_8021q_vlan_del()
288 int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port, in dsa_tag_8021q_bridge_join()
311 void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port, in dsa_tag_8021q_bridge_leave()
386 static int dsa_tag_8021q_setup(struct dsa_switch *ds) in dsa_tag_8021q_setup()
405 static void dsa_tag_8021q_teardown(struct dsa_switch *ds) in dsa_tag_8021q_teardown()
415 int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto) in dsa_tag_8021q_register()
[all …]
H A Dport.c57 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age()
70 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_fast_age()
107 struct dsa_switch *ds = dp->ds; in dsa_port_can_configure_learning()
119 struct dsa_switch *ds = dp->ds; in dsa_port_supports_hwtstamp()
137 struct dsa_switch *ds = dp->ds; in dsa_port_set_state()
171 struct dsa_switch *ds = dp->ds; in dsa_port_set_state_now()
185 struct dsa_switch *ds = dp->ds; in dsa_port_set_mst_state()
219 struct dsa_switch *ds = dp->ds; in dsa_port_enable_rt()
251 struct dsa_switch *ds = dp->ds; in dsa_port_disable_rt()
276 struct dsa_switch *ds = dp->ds; in dsa_port_reset_vlan_filtering()
[all …]
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.c45 static int felix_cpu_port_for_master(struct dsa_switch *ds, in felix_cpu_port_for_master()
408 static int felix_tag_npi_setup(struct dsa_switch *ds) in felix_tag_npi_setup()
492 static int felix_tag_8021q_setup(struct dsa_switch *ds) in felix_tag_8021q_setup()
603 felix_migrate_host_flood(struct dsa_switch *ds, in felix_migrate_host_flood()
621 static int felix_migrate_mdbs(struct dsa_switch *ds, in felix_migrate_mdbs()
643 felix_tag_proto_setup_shared(struct dsa_switch *ds, in felix_tag_proto_setup_shared()
754 static int felix_set_ageing_time(struct dsa_switch *ds, in felix_set_ageing_time()
1500 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit()
1546 static int felix_setup(struct dsa_switch *ds) in felix_setup()
1616 static void felix_teardown(struct dsa_switch *ds) in felix_teardown()
[all …]
H A Dfelix.h58 int (*port_setup_tc)(struct dsa_switch *ds, int port,
77 int (*setup)(struct dsa_switch *ds);
78 void (*teardown)(struct dsa_switch *ds);
79 unsigned long (*get_host_fwd_mask)(struct dsa_switch *ds);
80 int (*change_master)(struct dsa_switch *ds, int port,
89 struct dsa_switch *ds;
/openbmc/linux/drivers/net/dsa/qca/
H A Dqca8k.h457 struct dsa_switch *ds;
539 int qca8k_port_enable(struct dsa_switch *ds, int port,
541 void qca8k_port_disable(struct dsa_switch *ds, int port);
545 int qca8k_port_max_mtu(struct dsa_switch *ds, int port);
554 int qca8k_port_fdb_add(struct dsa_switch *ds, int port,
557 int qca8k_port_fdb_del(struct dsa_switch *ds, int port,
560 int qca8k_port_fdb_dump(struct dsa_switch *ds, int port,
564 int qca8k_port_mdb_add(struct dsa_switch *ds, int port,
567 int qca8k_port_mdb_del(struct dsa_switch *ds, int port,
581 int qca8k_port_vlan_add(struct dsa_switch *ds, int port,
[all …]
H A Dqca8k-common.c537 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, in qca8k_set_mac_eee()
561 int qca8k_get_mac_eee(struct dsa_switch *ds, int port, in qca8k_get_mac_eee()
737 int qca8k_port_enable(struct dsa_switch *ds, int port, in qca8k_port_enable()
751 void qca8k_port_disable(struct dsa_switch *ds, int port) in qca8k_port_disable()
797 int qca8k_port_max_mtu(struct dsa_switch *ds, int port) in qca8k_port_max_mtu()
813 int qca8k_port_fdb_add(struct dsa_switch *ds, int port, in qca8k_port_fdb_add()
823 int qca8k_port_fdb_del(struct dsa_switch *ds, int port, in qca8k_port_fdb_del()
836 int qca8k_port_fdb_dump(struct dsa_switch *ds, int port, in qca8k_port_fdb_dump()
859 int qca8k_port_mdb_add(struct dsa_switch *ds, int port, in qca8k_port_mdb_add()
874 int qca8k_port_mdb_del(struct dsa_switch *ds, int port, in qca8k_port_mdb_del()
[all …]
/openbmc/linux/drivers/net/dsa/
H 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()
204 static int dsa_loop_port_vlan_add(struct dsa_switch *ds, int port, in dsa_loop_port_vlan_add()
237 static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port, in dsa_loop_port_vlan_del()
275 static int dsa_loop_port_max_mtu(struct dsa_switch *ds, int port) in dsa_loop_port_max_mtu()
304 struct dsa_switch *ds; in dsa_loop_drv_probe()
344 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in dsa_loop_drv_remove()
[all …]
H A Dbcm_sf2.h121 static inline struct bcm_sf2_priv *bcm_sf2_to_priv(struct dsa_switch *ds) in bcm_sf2_to_priv()
224 int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port,
226 int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port,
229 void bcm_sf2_cfp_exit(struct dsa_switch *ds);
230 int bcm_sf2_cfp_resume(struct dsa_switch *ds);
231 void bcm_sf2_cfp_get_strings(struct dsa_switch *ds, int port,
233 void bcm_sf2_cfp_get_ethtool_stats(struct dsa_switch *ds, int port,
235 int bcm_sf2_cfp_get_sset_count(struct dsa_switch *ds, int port, int sset);
H A Drzn1_a5psw.c187 static void a5psw_port_disable(struct dsa_switch *ds, int port) in a5psw_port_disable()
195 static int a5psw_port_enable(struct dsa_switch *ds, int port, in a5psw_port_enable()
216 static int a5psw_port_max_mtu(struct dsa_switch *ds, int port) in a5psw_port_max_mtu()
242 a5psw_phylink_mac_select_pcs(struct dsa_switch *ds, int port, in a5psw_phylink_mac_select_pcs()
395 a5psw_port_bridge_flags(struct dsa_switch *ds, int port, in a5psw_port_bridge_flags()
496 static int a5psw_port_fdb_add(struct dsa_switch *ds, int port, in a5psw_port_fdb_add()
547 static int a5psw_port_fdb_del(struct dsa_switch *ds, int port, in a5psw_port_fdb_del()
606 static int a5psw_port_fdb_dump(struct dsa_switch *ds, int port, in a5psw_port_fdb_dump()
728 static int a5psw_port_vlan_add(struct dsa_switch *ds, int port, in a5psw_port_vlan_add()
914 static int a5psw_setup(struct dsa_switch *ds) in a5psw_setup()
[all …]
/openbmc/linux/drivers/net/dsa/hirschmann/
H 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,
/openbmc/linux/include/linux/dsa/
H A D8021q.h11 int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto);
13 void dsa_tag_8021q_unregister(struct dsa_switch *ds);
15 int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port,
18 void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port,
/openbmc/linux/drivers/net/dsa/realtek/
H A Drealtek.h65 struct dsa_switch *ds;
76 int (*setup_interface)(struct dsa_switch *ds);
137 int rtl8366_vlan_add(struct dsa_switch *ds, int port,
140 int rtl8366_vlan_del(struct dsa_switch *ds, int port,
142 void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset,
144 int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset);
145 void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
/openbmc/linux/drivers/net/dsa/xrs700x/
H A Dxrs700x.c86 static void xrs700x_get_strings(struct dsa_switch *ds, int port, in xrs700x_get_strings()
174 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, in xrs700x_get_stats64()
235 static int xrs700x_reset(struct dsa_switch *ds) in xrs700x_reset()
385 static int xrs700x_port_setup(struct dsa_switch *ds, int port) in xrs700x_port_setup()
419 static int xrs700x_setup(struct dsa_switch *ds) in xrs700x_setup()
439 static void xrs700x_teardown(struct dsa_switch *ds) in xrs700x_teardown()
469 static void xrs700x_mac_link_up(struct dsa_switch *ds, int port, in xrs700x_mac_link_up()
537 static int xrs700x_bridge_join(struct dsa_switch *ds, int port, in xrs700x_bridge_join()
550 static int xrs700x_hsr_join(struct dsa_switch *ds, int port, in xrs700x_hsr_join()
642 static int xrs700x_hsr_leave(struct dsa_switch *ds, int port, in xrs700x_hsr_leave()
[all …]

1234