Lines Matching defs:ksz_dev_ops
305 struct ksz_dev_ops { struct
306 int (*setup)(struct dsa_switch *ds);
307 void (*teardown)(struct dsa_switch *ds);
308 u32 (*get_port_addr)(int port, int offset);
309 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
310 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
311 void (*port_cleanup)(struct ksz_device *dev, int port);
312 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
313 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs);
314 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
315 int (*w_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 val);
316 void (*r_mib_cnt)(struct ksz_device *dev, int port, u16 addr,
318 void (*r_mib_pkt)(struct ksz_device *dev, int port, u16 addr,
320 void (*r_mib_stat64)(struct ksz_device *dev, int port);
321 int (*vlan_filtering)(struct ksz_device *dev, int port,
323 int (*vlan_add)(struct ksz_device *dev, int port,
326 int (*vlan_del)(struct ksz_device *dev, int port,
328 int (*mirror_add)(struct ksz_device *dev, int port,
331 void (*mirror_del)(struct ksz_device *dev, int port,
333 int (*fdb_add)(struct ksz_device *dev, int port,
335 int (*fdb_del)(struct ksz_device *dev, int port,
337 int (*fdb_dump)(struct ksz_device *dev, int port,
339 int (*mdb_add)(struct ksz_device *dev, int port,
342 int (*mdb_del)(struct ksz_device *dev, int port,
345 void (*get_caps)(struct ksz_device *dev, int port,
347 int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
348 void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze);
349 void (*port_init_cnt)(struct ksz_device *dev, int port);
350 void (*phylink_mac_config)(struct ksz_device *dev, int port,
353 void (*phylink_mac_link_up)(struct ksz_device *dev, int port,
358 void (*setup_rgmii_delay)(struct ksz_device *dev, int port);
359 int (*tc_cbs_set_cinc)(struct ksz_device *dev, int port, u32 val);
360 void (*get_wol)(struct ksz_device *dev, int port,
362 int (*set_wol)(struct ksz_device *dev, int port,
364 void (*wol_pre_shutdown)(struct ksz_device *dev, bool *wol_enabled);
365 void (*config_cpu_port)(struct dsa_switch *ds);
366 int (*enable_stp_addr)(struct ksz_device *dev);
367 int (*reset)(struct ksz_device *dev);
368 int (*init)(struct ksz_device *dev);
369 void (*exit)(struct ksz_device *dev);