Lines Matching refs:dsa_switch
20 struct dsa_switch {
81 struct dsa_switch *ds[DSA_MAX_SWITCHES];
84 static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p)
89 static inline u8 dsa_upstream_port(struct dsa_switch *ds)
116 struct dsa_switch *parent;
136 int (*setup)(struct dsa_switch *ds);
137 int (*set_addr)(struct dsa_switch *ds, u8 *addr);
142 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
143 int (*phy_write)(struct dsa_switch *ds, int port,
149 void (*poll_link)(struct dsa_switch *ds);
154 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data);
155 void (*get_ethtool_stats)(struct dsa_switch *ds,
157 int (*get_sset_count)(struct dsa_switch *ds);
166 void dsa_slave_mii_bus_init(struct dsa_switch *ds);
167 struct net_device *dsa_slave_create(struct dsa_switch *ds,