Home
last modified time | relevance | path

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

123

/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,
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 …]
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_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()
H A Dsja1105_ptp.c61 int sja1105_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr) in sja1105_hwtstamp_set()
94 int sja1105_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr) in sja1105_hwtstamp_get()
113 int sja1105_get_ts_info(struct dsa_switch *ds, int port, in sja1105_get_ts_info()
168 int sja1105_ptp_commit(struct dsa_switch *ds, struct sja1105_ptp_cmd *cmd, in sja1105_ptp_commit()
202 static u64 sja1105_tstamp_reconstruct(struct dsa_switch *ds, u64 now, in sja1105_tstamp_reconstruct()
247 static int sja1105_ptpegr_ts_poll(struct dsa_switch *ds, int port, u64 *ts) in sja1105_ptpegr_ts_poll()
340 struct dsa_switch *ds = priv->ds; in sja1105_rxtstamp_work()
375 bool sja1105_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) in sja1105_rxtstamp()
391 bool sja1110_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) in sja1110_rxtstamp()
405 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port, in sja1105_port_rxtstamp()
[all …]
H A Dsja1105_main.c87 static int sja1105_drop_untagged(struct dsa_switch *ds, int port, bool drop) in sja1105_drop_untagged()
118 static int sja1105_commit_pvid(struct dsa_switch *ds, int port) in sja1105_commit_pvid()
201 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings()
252 struct dsa_switch *ds = priv->ds; in sja1105_init_mii_settings()
415 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_lookup_params()
473 struct dsa_switch *ds = priv->ds; in sja1105_init_static_vlan()
511 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_forwarding()
645 struct dsa_switch *ds = priv->ds; in sja1110_init_pcp_remapping()
794 struct dsa_switch *ds = priv->ds; in sja1105_init_topology()
1010 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_policing()
[all …]
H A Dsja1105_tas.c21 struct dsa_switch *ds = priv->ds; in sja1105_tas_set_runtime_params()
167 struct dsa_switch *ds = priv->ds; in sja1105_init_scheduling()
472 struct dsa_switch *ds = priv->ds; in sja1105_gating_check_conflicts()
509 int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, in sja1105_setup_tc_taprio()
587 struct dsa_switch *ds = priv->ds; in sja1105_tas_check_running()
634 struct dsa_switch *ds = priv->ds; in sja1105_tas_start()
661 struct dsa_switch *ds = priv->ds; in sja1105_tas_stop()
730 struct dsa_switch *ds = priv->ds; in sja1105_tas_state_machine()
845 void sja1105_tas_clockstep(struct dsa_switch *ds) in sja1105_tas_clockstep()
857 void sja1105_tas_adjfreq(struct dsa_switch *ds) in sja1105_tas_adjfreq()
[all …]
/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);
44 void ksz_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb);
46 bool ksz_port_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb,
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()
[all …]
H A Dksz_dcb.h11 int ksz_port_get_default_prio(struct dsa_switch *ds, int port);
12 int ksz_port_set_default_prio(struct dsa_switch *ds, int port, u8 prio);
13 int ksz_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp);
14 int ksz_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio);
15 int ksz_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio);
16 int ksz_port_set_apptrust(struct dsa_switch *ds, int port,
19 int ksz_port_get_apptrust(struct dsa_switch *ds, int port, u8 *sel, int *nsel);
H A Dksz9477.h14 int ksz9477_setup(struct dsa_switch *ds);
54 void ksz9477_config_cpu_port(struct dsa_switch *ds);
61 void ksz9477_hsr_join(struct dsa_switch *ds, int port, struct net_device *hsr);
62 void ksz9477_hsr_leave(struct dsa_switch *ds, int port, struct net_device *hsr);
66 int ksz9477_cls_flower_add(struct dsa_switch *ds, int port,
68 int ksz9477_cls_flower_del(struct dsa_switch *ds, int port,
H A Dksz_common.c1992 static void ksz_phylink_get_caps(struct dsa_switch *ds, int port, in ksz_phylink_get_caps()
2126 static void ksz_get_stats64(struct dsa_switch *ds, int port, in ksz_get_stats64()
2139 static void ksz_get_pause_stats(struct dsa_switch *ds, int port, in ksz_get_pause_stats()
2152 static void ksz_get_strings(struct dsa_switch *ds, int port, in ksz_get_strings()
2191 struct dsa_switch *ds = dev->ds; in ksz_update_port_member()
2341 struct dsa_switch *ds = dev->ds; in ksz_phy_addr_to_port()
2365 struct dsa_switch *ds = dev->ds; in ksz_irq_phy_setup()
2405 struct dsa_switch *ds = dev->ds; in ksz_irq_phy_free()
2499 struct dsa_switch *ds = dev->ds; in ksz_mdio_register()
2753 static int ksz_setup(struct dsa_switch *ds) in ksz_setup()
[all …]
/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()
/linux/net/dsa/
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.c23 static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds, in dsa_switch_fastest_ageing_time()
35 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()
82 static int dsa_switch_bridge_join(struct dsa_switch *ds, in dsa_switch_bridge_join()
113 static int dsa_switch_bridge_leave(struct dsa_switch *ds, in dsa_switch_bridge_leave()
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()
354 static int dsa_switch_do_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag *lag, in dsa_switch_do_lag_fdb_add()
[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()
314 void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port, in dsa_tag_8021q_bridge_leave()
339 static int dsa_tag_8021q_port_setup(struct dsa_switch *ds, int port) in dsa_tag_8021q_port_setup()
369 static void dsa_tag_8021q_port_teardown(struct dsa_switch *ds, int port) in dsa_tag_8021q_port_teardown()
389 static int dsa_tag_8021q_setup(struct dsa_switch *ds) in dsa_tag_8021q_setup()
[all …]
H A Dconduit.c23 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs_len()
53 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs()
89 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_stats()
108 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_phy_stats()
132 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_sset_count()
155 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_strings()
206 struct dsa_switch *ds = cpu_dp->ds; in __dsa_conduit_hwtstamp_validate()
226 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_ethtool_setup()
362 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_setup()
/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,
H A Dhellcreek_hwtstamp.c18 int hellcreek_get_ts_info(struct dsa_switch *ds, int port, in hellcreek_get_ts_info()
112 int hellcreek_port_hwtstamp_set(struct dsa_switch *ds, int port, in hellcreek_port_hwtstamp_set()
136 int hellcreek_port_hwtstamp_get(struct dsa_switch *ds, int port, in hellcreek_port_hwtstamp_get()
345 struct dsa_switch *ds = hellcreek->ds; in hellcreek_hwtstamp_work()
365 void hellcreek_port_txtstamp(struct dsa_switch *ds, int port, in hellcreek_port_txtstamp()
408 bool hellcreek_port_rxtstamp(struct dsa_switch *ds, int port, in hellcreek_port_rxtstamp()
450 struct dsa_switch *ds = hellcreek->ds; in hellcreek_hwtstamp_setup()
/linux/drivers/net/dsa/ocelot/
H A Dfelix.h57 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_conduit)(struct dsa_switch *ds, int port,
87 struct dsa_switch *ds;
/linux/include/linux/dsa/
H A D8021q.h16 int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto);
18 void dsa_tag_8021q_unregister(struct dsa_switch *ds);
20 int dsa_tag_8021q_bridge_join(struct dsa_switch *ds, int port,
24 void dsa_tag_8021q_bridge_leave(struct dsa_switch *ds, int port,
H A Dtag_qca.h8 struct dsa_switch;
81 void (*rw_reg_ack_handler)(struct dsa_switch *ds,
83 void (*mib_autocast_handler)(struct dsa_switch *ds,
/linux/drivers/net/dsa/realtek/
H A Drealtek.h67 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/drivers/net/dsa/
H A Dmv88e6060.c45 static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds, in mv88e6060_get_tag_protocol()
187 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup()
225 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read()
238 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) in mv88e6060_phy_write()
250 static void mv88e6060_phylink_get_caps(struct dsa_switch *ds, int port, in mv88e6060_phylink_get_caps()
306 struct dsa_switch *ds; in mv88e6060_probe()
339 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_remove()
349 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_shutdown()
H A Dmt7530.c393 mt753x_preferred_default_local_cpu_port(struct dsa_switch *ds) in mt753x_preferred_default_local_cpu_port()
405 mt7530_setup_port6(struct dsa_switch *ds, phy_interface_t interface) in mt7530_setup_port6()
546 mt7530_mib_reset(struct dsa_switch *ds) in mt7530_mib_reset()
780 mt7530_get_strings(struct dsa_switch *ds, int port, u32 stringset, in mt7530_get_strings()
793 mt7530_get_ethtool_stats(struct dsa_switch *ds, int port, in mt7530_get_ethtool_stats()
814 mt7530_get_sset_count(struct dsa_switch *ds, int port, int sset) in mt7530_get_sset_count()
823 mt7530_set_ageing_time(struct dsa_switch *ds, unsigned int msecs) in mt7530_set_ageing_time()
874 static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) in mt7530_setup_port5()
1140 mt753x_cpu_port_enable(struct dsa_switch *ds, int port) in mt753x_cpu_port_enable()
1172 mt7530_port_enable(struct dsa_switch *ds, int port, in mt7530_port_enable()
[all …]
H A Dlan9303-core.c937 static enum dsa_tag_protocol lan9303_get_tag_protocol(struct dsa_switch *ds, in lan9303_get_tag_protocol()
944 static int lan9303_setup(struct dsa_switch *ds) in lan9303_setup()
1036 static void lan9303_get_strings(struct dsa_switch *ds, int port, in lan9303_get_strings()
1049 static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port, in lan9303_get_ethtool_stats()
1071 static int lan9303_get_sset_count(struct dsa_switch *ds, int port, int sset) in lan9303_get_sset_count()
1079 static int lan9303_phy_read(struct dsa_switch *ds, int port, int regnum) in lan9303_phy_read()
1092 static int lan9303_phy_write(struct dsa_switch *ds, int port, int regnum, in lan9303_phy_write()
1106 static int lan9303_port_enable(struct dsa_switch *ds, int port, in lan9303_port_enable()
1120 static void lan9303_port_disable(struct dsa_switch *ds, int port) in lan9303_port_disable()
1134 static int lan9303_port_bridge_join(struct dsa_switch *ds, int port, in lan9303_port_bridge_join()
[all …]

123