Lines Matching defs:ksz_dev_ops
344 struct ksz_dev_ops { struct
345 int (*setup)(struct dsa_switch *ds);
346 void (*teardown)(struct dsa_switch *ds);
347 u32 (*get_port_addr)(int port, int offset);
348 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
349 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
350 void (*port_cleanup)(struct ksz_device *dev, int port);
351 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
352 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs);
370 int (*mdio_bus_preinit)(struct ksz_device *dev, bool side_mdio);
389 int (*create_phy_addr_map)(struct ksz_device *dev, bool side_mdio);
390 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
391 int (*w_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 val);
392 void (*r_mib_cnt)(struct ksz_device *dev, int port, u16 addr,
394 void (*r_mib_pkt)(struct ksz_device *dev, int port, u16 addr,
396 void (*r_mib_stat64)(struct ksz_device *dev, int port);
397 int (*vlan_filtering)(struct ksz_device *dev, int port,
399 int (*vlan_add)(struct ksz_device *dev, int port,
402 int (*vlan_del)(struct ksz_device *dev, int port,
404 int (*mirror_add)(struct ksz_device *dev, int port,
407 void (*mirror_del)(struct ksz_device *dev, int port,
409 int (*fdb_add)(struct ksz_device *dev, int port,
411 int (*fdb_del)(struct ksz_device *dev, int port,
413 int (*fdb_dump)(struct ksz_device *dev, int port,
415 int (*mdb_add)(struct ksz_device *dev, int port,
418 int (*mdb_del)(struct ksz_device *dev, int port,
421 void (*get_caps)(struct ksz_device *dev, int port,
423 int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
424 int (*pme_write8)(struct ksz_device *dev, u32 reg, u8 value);
425 int (*pme_pread8)(struct ksz_device *dev, int port, int offset,
427 int (*pme_pwrite8)(struct ksz_device *dev, int port, int offset,
429 void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze);
430 void (*port_init_cnt)(struct ksz_device *dev, int port);
431 void (*phylink_mac_link_up)(struct ksz_device *dev, int port,
436 void (*setup_rgmii_delay)(struct ksz_device *dev, int port);
437 int (*tc_cbs_set_cinc)(struct ksz_device *dev, int port, u32 val);
438 void (*config_cpu_port)(struct dsa_switch *ds);
439 int (*enable_stp_addr)(struct ksz_device *dev);
440 int (*reset)(struct ksz_device *dev);
441 int (*init)(struct ksz_device *dev);
442 void (*exit)(struct ksz_device *dev);