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_dsa_port(struct dsa_switch *ds, int p) in dsa_is_dsa_port()
179 static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p) in dsa_is_port_initialized()
184 static inline u8 dsa_upstream_port(struct dsa_switch *ds) in dsa_upstream_port()
215 int (*setup)(struct dsa_switch *ds);
216 int (*set_addr)(struct dsa_switch *ds, u8 *addr);
217 u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
222 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
223 int (*phy_write)(struct dsa_switch *ds, int port,
229 void (*poll_link)(struct dsa_switch *ds);
234 void (*adjust_link)(struct dsa_switch *ds, int port,
236 void (*fixed_link_update)(struct dsa_switch *ds, int port,
242 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data);
243 void (*get_ethtool_stats)(struct dsa_switch *ds,
245 int (*get_sset_count)(struct dsa_switch *ds);
250 void (*get_wol)(struct dsa_switch *ds, int port,
252 int (*set_wol)(struct dsa_switch *ds, int port,
258 int (*suspend)(struct dsa_switch *ds);
259 int (*resume)(struct dsa_switch *ds);
264 int (*port_enable)(struct dsa_switch *ds, int port,
266 void (*port_disable)(struct dsa_switch *ds, int port,
272 int (*set_eee)(struct dsa_switch *ds, int port,
275 int (*get_eee)(struct dsa_switch *ds, int port,
280 int (*get_temp)(struct dsa_switch *ds, int *temp);
281 int (*get_temp_limit)(struct dsa_switch *ds, int *temp);
282 int (*set_temp_limit)(struct dsa_switch *ds, int temp);
283 int (*get_temp_alarm)(struct dsa_switch *ds, bool *alarm);
287 int (*get_eeprom_len)(struct dsa_switch *ds);
288 int (*get_eeprom)(struct dsa_switch *ds,
290 int (*set_eeprom)(struct dsa_switch *ds,
296 int (*get_regs_len)(struct dsa_switch *ds, int port);
297 void (*get_regs)(struct dsa_switch *ds, int port,
303 int (*port_join_bridge)(struct dsa_switch *ds, int port,
305 int (*port_leave_bridge)(struct dsa_switch *ds, int port,
307 int (*port_stp_update)(struct dsa_switch *ds, int port,
313 int (*port_vlan_prepare)(struct dsa_switch *ds, int port,
316 int (*port_vlan_add)(struct dsa_switch *ds, int port,
319 int (*port_vlan_del)(struct dsa_switch *ds, int port,
321 int (*port_pvid_get)(struct dsa_switch *ds, int port, u16 *pvid);
322 int (*vlan_getnext)(struct dsa_switch *ds, u16 *vid,
328 int (*port_fdb_prepare)(struct dsa_switch *ds, int port,
331 int (*port_fdb_add)(struct dsa_switch *ds, int port,
334 int (*port_fdb_del)(struct dsa_switch *ds, int port,
336 int (*port_fdb_dump)(struct dsa_switch *ds, int port,
345 static inline void *ds_to_priv(struct dsa_switch *ds) in ds_to_priv()