Home
last modified time | relevance | path

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

1234

/Linux-v6.1/include/net/
Ddsa.h90 struct dsa_switch;
97 int (*connect)(struct dsa_switch *ds);
98 void (*disconnect)(struct dsa_switch *ds);
269 struct dsa_switch *ds;
381 struct dsa_switch { struct
501 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() argument
539 static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p) in dsa_is_unused_port()
544 static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) in dsa_is_cpu_port()
549 static inline bool dsa_is_dsa_port(struct dsa_switch *ds, int p) in dsa_is_dsa_port()
554 static inline bool dsa_is_user_port(struct dsa_switch *ds, int p) in dsa_is_user_port()
[all …]
/Linux-v6.1/drivers/net/dsa/sja1105/
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,
115 int sja1105_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr);
117 int sja1105_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr);
119 int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
122 int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
[all …]
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 …]
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,
149 bool (*rxtstamp)(struct dsa_switch *ds, int port, struct sk_buff *skb);
150 void (*txtstamp)(struct dsa_switch *ds, int port, struct sk_buff *skb);
256 struct dsa_switch *ds;
299 int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled,
304 int sja1105_mdiobus_register(struct dsa_switch *ds);
305 void sja1105_mdiobus_unregister(struct dsa_switch *ds);
312 int sja1105_devlink_setup(struct dsa_switch *ds);
[all …]
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()
137 int sja1105_devlink_setup(struct dsa_switch *ds) in sja1105_devlink_setup()
142 void sja1105_devlink_teardown(struct dsa_switch *ds) in sja1105_devlink_teardown()
/Linux-v6.1/drivers/net/dsa/b53/
Db53_priv.h106 struct dsa_switch *ds;
324 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
325 int b53_configure_vlan(struct dsa_switch *ds);
326 void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
328 void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
329 int b53_get_sset_count(struct dsa_switch *ds, int port, int sset);
330 void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data);
331 int b53_br_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge,
333 void b53_br_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge);
334 void b53_br_set_stp_state(struct dsa_switch *ds, int port, u8 state);
[all …]
/Linux-v6.1/drivers/net/dsa/mv88e6xxx/
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,
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()
/Linux-v6.1/drivers/net/dsa/ocelot/
Dfelix.c45 static int felix_cpu_port_for_master(struct dsa_switch *ds, in felix_cpu_port_for_master()
67 static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_rx()
107 static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_del_rx()
129 static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_tx()
196 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del_tx()
227 static int felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, in felix_tag_8021q_vlan_add()
259 static int felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del()
286 static int felix_trap_get_cpu_port(struct dsa_switch *ds, in felix_trap_get_cpu_port()
305 static int felix_update_trapping_destinations(struct dsa_switch *ds, in felix_update_trapping_destinations()
408 static int felix_tag_npi_setup(struct dsa_switch *ds) in felix_tag_npi_setup()
[all …]
Dfelix.h58 int (*port_setup_tc)(struct dsa_switch *ds, int port,
73 int (*setup)(struct dsa_switch *ds);
74 void (*teardown)(struct dsa_switch *ds);
75 unsigned long (*get_host_fwd_mask)(struct dsa_switch *ds);
76 int (*change_master)(struct dsa_switch *ds, int port,
85 struct dsa_switch *ds;
/Linux-v6.1/drivers/net/dsa/qca/
Dqca8k.h330 int (*autocast_mib)(struct dsa_switch *ds, int port, u64 *data);
404 struct dsa_switch *ds;
446 void qca8k_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data);
447 void qca8k_get_ethtool_stats(struct dsa_switch *ds, int port,
449 int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset);
452 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *eee);
453 int qca8k_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e);
456 void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state);
457 int qca8k_port_bridge_join(struct dsa_switch *ds, int port,
461 void qca8k_port_bridge_leave(struct dsa_switch *ds, int port,
[all …]
Dqca8k-common.c511 void qca8k_get_strings(struct dsa_switch *ds, int port, u32 stringset, in qca8k_get_strings()
525 void qca8k_get_ethtool_stats(struct dsa_switch *ds, int port, in qca8k_get_ethtool_stats()
558 int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset) in qca8k_get_sset_count()
568 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, in qca8k_set_mac_eee()
592 int qca8k_get_mac_eee(struct dsa_switch *ds, int port, in qca8k_get_mac_eee()
599 void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) in qca8k_port_stp_state_set()
627 int qca8k_port_bridge_join(struct dsa_switch *ds, int port, in qca8k_port_bridge_join()
663 void qca8k_port_bridge_leave(struct dsa_switch *ds, int port, in qca8k_port_bridge_leave()
691 void qca8k_port_fast_age(struct dsa_switch *ds, int port) in qca8k_port_fast_age()
700 int qca8k_set_ageing_time(struct dsa_switch *ds, unsigned int msecs) in qca8k_set_ageing_time()
[all …]
/Linux-v6.1/drivers/net/dsa/
Ddsa_loop.c50 static int dsa_loop_setup_devlink_resources(struct dsa_switch *ds) in dsa_loop_setup_devlink_resources()
78 static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds, in dsa_loop_get_protocol()
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()
106 static int dsa_loop_get_sset_count(struct dsa_switch *ds, int port, int sset) in dsa_loop_get_sset_count()
114 static void dsa_loop_get_strings(struct dsa_switch *ds, int port, in dsa_loop_get_strings()
128 static void dsa_loop_get_ethtool_stats(struct dsa_switch *ds, int port, in dsa_loop_get_ethtool_stats()
138 static int dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum) in dsa_loop_phy_read()
153 static int dsa_loop_phy_write(struct dsa_switch *ds, int port, in dsa_loop_phy_write()
169 static int dsa_loop_port_bridge_join(struct dsa_switch *ds, int port, in dsa_loop_port_bridge_join()
[all …]
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);
Drzn1_a5psw.c95 static enum dsa_tag_protocol a5psw_get_tag_protocol(struct dsa_switch *ds, in a5psw_get_tag_protocol()
171 static void a5psw_port_disable(struct dsa_switch *ds, int port) in a5psw_port_disable()
179 static int a5psw_port_enable(struct dsa_switch *ds, int port, in a5psw_port_enable()
190 static int a5psw_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu) in a5psw_port_change_mtu()
200 static int a5psw_port_max_mtu(struct dsa_switch *ds, int port) in a5psw_port_max_mtu()
205 static void a5psw_phylink_get_caps(struct dsa_switch *ds, int port, in a5psw_phylink_get_caps()
226 a5psw_phylink_mac_select_pcs(struct dsa_switch *ds, int port, in a5psw_phylink_mac_select_pcs()
238 static void a5psw_phylink_mac_link_down(struct dsa_switch *ds, int port, in a5psw_phylink_mac_link_down()
250 static void a5psw_phylink_mac_link_up(struct dsa_switch *ds, int port, in a5psw_phylink_mac_link_up()
274 static int a5psw_set_ageing_time(struct dsa_switch *ds, unsigned int msecs) in a5psw_set_ageing_time()
[all …]
/Linux-v6.1/net/dsa/
Dswitch.c17 static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds, in dsa_switch_fastest_ageing_time()
29 static int dsa_switch_ageing_time(struct dsa_switch *ds, in dsa_switch_ageing_time()
55 static int dsa_switch_mtu(struct dsa_switch *ds, in dsa_switch_mtu()
76 static int dsa_switch_bridge_join(struct dsa_switch *ds, in dsa_switch_bridge_join()
107 static int dsa_switch_bridge_leave(struct dsa_switch *ds, in dsa_switch_bridge_leave()
156 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_add()
201 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_del()
239 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_add()
283 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_del()
318 static int dsa_switch_do_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag *lag, in dsa_switch_do_lag_fdb_add()
[all …]
Ddsa.c195 struct dsa_switch *ds = p->dp->ds; in dsa_skb_defer_rx_timestamp()
279 int dsa_switch_suspend(struct dsa_switch *ds) in dsa_switch_suspend()
301 int dsa_switch_resume(struct dsa_switch *ds) in dsa_switch_resume()
348 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_get()
360 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_set()
369 int dsa_devlink_params_register(struct dsa_switch *ds, in dsa_devlink_params_register()
377 void dsa_devlink_params_unregister(struct dsa_switch *ds, in dsa_devlink_params_unregister()
385 int dsa_devlink_resource_register(struct dsa_switch *ds, in dsa_devlink_resource_register()
399 void dsa_devlink_resources_unregister(struct dsa_switch *ds) in dsa_devlink_resources_unregister()
405 void dsa_devlink_resource_occ_get_register(struct dsa_switch *ds, in dsa_devlink_resource_occ_get_register()
[all …]
Ddsa2.c202 struct dsa_switch *dsa_switch_find(int tree_index, int sw_index) in dsa_switch_find()
313 struct dsa_switch *ds = dp->ds; in dsa_link_touch()
338 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table()
470 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_setup()
520 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_teardown()
534 struct dsa_switch *ds = dp->ds; in dsa_port_setup()
654 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_info_get()
666 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_get()
680 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_set()
693 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); in dsa_devlink_sb_port_pool_get()
[all …]
Dport.c53 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age()
66 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_fast_age()
103 struct dsa_switch *ds = dp->ds; in dsa_port_can_configure_learning()
115 struct dsa_switch *ds = dp->ds; in dsa_port_supports_hwtstamp()
131 struct dsa_switch *ds = dp->ds; in dsa_port_set_state()
165 struct dsa_switch *ds = dp->ds; in dsa_port_set_state_now()
179 struct dsa_switch *ds = dp->ds; in dsa_port_set_mst_state()
213 struct dsa_switch *ds = dp->ds; in dsa_port_enable_rt()
245 struct dsa_switch *ds = dp->ds; in dsa_port_disable_rt()
270 struct dsa_switch *ds = dp->ds; in dsa_port_reset_vlan_filtering()
[all …]
Dtag_8021q.c129 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_add()
165 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_del()
200 int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds, in dsa_switch_tag_8021q_vlan_add()
232 int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds, in dsa_switch_tag_8021q_vlan_del()
271 int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port, in dsa_tag_8021q_bridge_join()
294 void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port, in dsa_tag_8021q_bridge_leave()
319 static int dsa_tag_8021q_port_setup(struct dsa_switch *ds, int port) in dsa_tag_8021q_port_setup()
349 static void dsa_tag_8021q_port_teardown(struct dsa_switch *ds, int port) in dsa_tag_8021q_port_teardown()
369 static int dsa_tag_8021q_setup(struct dsa_switch *ds) in dsa_tag_8021q_setup()
388 static void dsa_tag_8021q_teardown(struct dsa_switch *ds) in dsa_tag_8021q_teardown()
[all …]
/Linux-v6.1/include/linux/dsa/
D8021q.h12 struct dsa_switch;
25 struct dsa_switch *ds;
31 int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto);
33 void dsa_tag_8021q_unregister(struct dsa_switch *ds);
35 int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port,
38 void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port,
Dsja1105.h53 void (*meta_tstamp_handler)(struct dsa_switch *ds, int port, u8 ts_id,
56 bool (*rxtstamp_get_state)(struct dsa_switch *ds);
57 void (*rxtstamp_set_state)(struct dsa_switch *ds, bool on);
71 sja1105_tagger_data(struct dsa_switch *ds) in sja1105_tagger_data()
/Linux-v6.1/drivers/net/dsa/hirschmann/
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,
/Linux-v6.1/drivers/net/dsa/realtek/
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);
/Linux-v6.1/drivers/net/dsa/xrs700x/
Dxrs700x.c86 static void xrs700x_get_strings(struct dsa_switch *ds, int port, in xrs700x_get_strings()
100 static int xrs700x_get_sset_count(struct dsa_switch *ds, int port, int sset) in xrs700x_get_sset_count()
161 static void xrs700x_get_ethtool_stats(struct dsa_switch *ds, int port, in xrs700x_get_ethtool_stats()
174 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, in xrs700x_get_stats64()
228 static enum dsa_tag_protocol xrs700x_get_tag_protocol(struct dsa_switch *ds, in xrs700x_get_tag_protocol()
235 static int xrs700x_reset(struct dsa_switch *ds) in xrs700x_reset()
257 static void xrs700x_port_stp_state_set(struct dsa_switch *ds, int port, in xrs700x_port_stp_state_set()
299 static int xrs700x_port_add_bpdu_ipf(struct dsa_switch *ds, int port) in xrs700x_port_add_bpdu_ipf()
342 static int xrs700x_port_add_hsrsup_ipf(struct dsa_switch *ds, int port, in xrs700x_port_add_hsrsup_ipf()
385 static int xrs700x_port_setup(struct dsa_switch *ds, int port) in xrs700x_port_setup()
[all …]

1234