Lines Matching refs:dsa_switch

121 	struct dsa_switch	*ds[DSA_MAX_SWITCHES];
124 struct dsa_switch { struct
169 static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) in dsa_is_cpu_port() argument
174 static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p) in dsa_is_port_initialized()
179 static inline u8 dsa_upstream_port(struct dsa_switch *ds) in dsa_upstream_port()
205 int (*setup)(struct dsa_switch *ds);
206 int (*set_addr)(struct dsa_switch *ds, u8 *addr);
207 u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
212 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
213 int (*phy_write)(struct dsa_switch *ds, int port,
219 void (*poll_link)(struct dsa_switch *ds);
224 void (*adjust_link)(struct dsa_switch *ds, int port,
226 void (*fixed_link_update)(struct dsa_switch *ds, int port,
232 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data);
233 void (*get_ethtool_stats)(struct dsa_switch *ds,
235 int (*get_sset_count)(struct dsa_switch *ds);
240 void (*get_wol)(struct dsa_switch *ds, int port,
242 int (*set_wol)(struct dsa_switch *ds, int port,
248 int (*suspend)(struct dsa_switch *ds);
249 int (*resume)(struct dsa_switch *ds);
254 int (*port_enable)(struct dsa_switch *ds, int port,
256 void (*port_disable)(struct dsa_switch *ds, int port,
262 int (*set_eee)(struct dsa_switch *ds, int port,
265 int (*get_eee)(struct dsa_switch *ds, int port,
270 int (*get_temp)(struct dsa_switch *ds, int *temp);
271 int (*get_temp_limit)(struct dsa_switch *ds, int *temp);
272 int (*set_temp_limit)(struct dsa_switch *ds, int temp);
273 int (*get_temp_alarm)(struct dsa_switch *ds, bool *alarm);
277 int (*get_eeprom_len)(struct dsa_switch *ds);
278 int (*get_eeprom)(struct dsa_switch *ds,
280 int (*set_eeprom)(struct dsa_switch *ds,
286 int (*get_regs_len)(struct dsa_switch *ds, int port);
287 void (*get_regs)(struct dsa_switch *ds, int port,
293 int (*port_join_bridge)(struct dsa_switch *ds, int port,
295 int (*port_leave_bridge)(struct dsa_switch *ds, int port,
297 int (*port_stp_update)(struct dsa_switch *ds, int port,
299 int (*fdb_add)(struct dsa_switch *ds, int port,
301 int (*fdb_del)(struct dsa_switch *ds, int port,
303 int (*fdb_getnext)(struct dsa_switch *ds, int port,
311 static inline void *ds_to_priv(struct dsa_switch *ds) in ds_to_priv()