Lines Matching defs:dsa_switch_ops
331 struct dsa_switch_ops { struct
336 const char *(*probe)(struct device *dsa_dev,
341 enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *ds,
344 int (*setup)(struct dsa_switch *ds);
345 u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
350 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
351 int (*phy_write)(struct dsa_switch *ds, int port,
357 void (*adjust_link)(struct dsa_switch *ds, int port,
359 void (*fixed_link_update)(struct dsa_switch *ds, int port,
365 void (*phylink_validate)(struct dsa_switch *ds, int port,
368 int (*phylink_mac_link_state)(struct dsa_switch *ds, int port,
370 void (*phylink_mac_config)(struct dsa_switch *ds, int port,
373 void (*phylink_mac_an_restart)(struct dsa_switch *ds, int port);
374 void (*phylink_mac_link_down)(struct dsa_switch *ds, int port,
377 void (*phylink_mac_link_up)(struct dsa_switch *ds, int port,
381 void (*phylink_fixed_state)(struct dsa_switch *ds, int port,
386 void (*get_strings)(struct dsa_switch *ds, int port,
388 void (*get_ethtool_stats)(struct dsa_switch *ds,
390 int (*get_sset_count)(struct dsa_switch *ds, int port, int sset);
391 void (*get_ethtool_phy_stats)(struct dsa_switch *ds,
397 void (*get_wol)(struct dsa_switch *ds, int port,
399 int (*set_wol)(struct dsa_switch *ds, int port,
405 int (*get_ts_info)(struct dsa_switch *ds, int port,
411 int (*suspend)(struct dsa_switch *ds);
412 int (*resume)(struct dsa_switch *ds);
417 int (*port_enable)(struct dsa_switch *ds, int port,
419 void (*port_disable)(struct dsa_switch *ds, int port,
425 int (*set_mac_eee)(struct dsa_switch *ds, int port,
427 int (*get_mac_eee)(struct dsa_switch *ds, int port,
431 int (*get_eeprom_len)(struct dsa_switch *ds);
432 int (*get_eeprom)(struct dsa_switch *ds,
434 int (*set_eeprom)(struct dsa_switch *ds,
440 int (*get_regs_len)(struct dsa_switch *ds, int port);
441 void (*get_regs)(struct dsa_switch *ds, int port,
447 int (*set_ageing_time)(struct dsa_switch *ds, unsigned int msecs);
448 int (*port_bridge_join)(struct dsa_switch *ds, int port,
450 void (*port_bridge_leave)(struct dsa_switch *ds, int port,
452 void (*port_stp_state_set)(struct dsa_switch *ds, int port,
454 void (*port_fast_age)(struct dsa_switch *ds, int port);
459 int (*port_vlan_filtering)(struct dsa_switch *ds, int port,
461 int (*port_vlan_prepare)(struct dsa_switch *ds, int port,
463 void (*port_vlan_add)(struct dsa_switch *ds, int port,
465 int (*port_vlan_del)(struct dsa_switch *ds, int port,
470 int (*port_fdb_add)(struct dsa_switch *ds, int port,
472 int (*port_fdb_del)(struct dsa_switch *ds, int port,
474 int (*port_fdb_dump)(struct dsa_switch *ds, int port,
480 int (*port_mdb_prepare)(struct dsa_switch *ds, int port,
482 void (*port_mdb_add)(struct dsa_switch *ds, int port,
484 int (*port_mdb_del)(struct dsa_switch *ds, int port,
489 int (*get_rxnfc)(struct dsa_switch *ds, int port,
491 int (*set_rxnfc)(struct dsa_switch *ds, int port,
497 int (*port_mirror_add)(struct dsa_switch *ds, int port,
500 void (*port_mirror_del)(struct dsa_switch *ds, int port,
526 const struct dsa_switch_ops *ops; argument