Lines Matching defs:dsa_switch_ops
287 struct dsa_switch_ops { struct
291 const char *(*probe)(struct device *dsa_dev,
295 enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *ds);
297 int (*setup)(struct dsa_switch *ds);
298 int (*set_addr)(struct dsa_switch *ds, u8 *addr);
299 u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
304 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
305 int (*phy_write)(struct dsa_switch *ds, int port,
311 void (*adjust_link)(struct dsa_switch *ds, int port,
313 void (*fixed_link_update)(struct dsa_switch *ds, int port,
319 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data);
320 void (*get_ethtool_stats)(struct dsa_switch *ds,
322 int (*get_sset_count)(struct dsa_switch *ds);
327 void (*get_wol)(struct dsa_switch *ds, int port,
329 int (*set_wol)(struct dsa_switch *ds, int port,
335 int (*suspend)(struct dsa_switch *ds);
336 int (*resume)(struct dsa_switch *ds);
341 int (*port_enable)(struct dsa_switch *ds, int port,
343 void (*port_disable)(struct dsa_switch *ds, int port,
349 int (*set_mac_eee)(struct dsa_switch *ds, int port,
351 int (*get_mac_eee)(struct dsa_switch *ds, int port,
355 int (*get_eeprom_len)(struct dsa_switch *ds);
356 int (*get_eeprom)(struct dsa_switch *ds,
358 int (*set_eeprom)(struct dsa_switch *ds,
364 int (*get_regs_len)(struct dsa_switch *ds, int port);
365 void (*get_regs)(struct dsa_switch *ds, int port,
371 int (*set_ageing_time)(struct dsa_switch *ds, unsigned int msecs);
372 int (*port_bridge_join)(struct dsa_switch *ds, int port,
374 void (*port_bridge_leave)(struct dsa_switch *ds, int port,
376 void (*port_stp_state_set)(struct dsa_switch *ds, int port,
378 void (*port_fast_age)(struct dsa_switch *ds, int port);
383 int (*port_vlan_filtering)(struct dsa_switch *ds, int port,
385 int (*port_vlan_prepare)(struct dsa_switch *ds, int port,
388 void (*port_vlan_add)(struct dsa_switch *ds, int port,
391 int (*port_vlan_del)(struct dsa_switch *ds, int port,
396 int (*port_fdb_add)(struct dsa_switch *ds, int port,
398 int (*port_fdb_del)(struct dsa_switch *ds, int port,
400 int (*port_fdb_dump)(struct dsa_switch *ds, int port,
406 int (*port_mdb_prepare)(struct dsa_switch *ds, int port,
409 void (*port_mdb_add)(struct dsa_switch *ds, int port,
412 int (*port_mdb_del)(struct dsa_switch *ds, int port,
417 int (*get_rxnfc)(struct dsa_switch *ds, int port,
442 const struct dsa_switch_ops *ops; argument