Lines Matching defs:ksz_dev_ops

304 struct ksz_dev_ops {  struct
305 int (*setup)(struct dsa_switch *ds);
306 void (*teardown)(struct dsa_switch *ds);
307 u32 (*get_port_addr)(int port, int offset);
308 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
309 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
310 void (*port_cleanup)(struct ksz_device *dev, int port);
311 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
312 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs);
313 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
314 int (*w_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 val);
315 void (*r_mib_cnt)(struct ksz_device *dev, int port, u16 addr,
317 void (*r_mib_pkt)(struct ksz_device *dev, int port, u16 addr,
319 void (*r_mib_stat64)(struct ksz_device *dev, int port);
320 int (*vlan_filtering)(struct ksz_device *dev, int port,
322 int (*vlan_add)(struct ksz_device *dev, int port,
325 int (*vlan_del)(struct ksz_device *dev, int port,
327 int (*mirror_add)(struct ksz_device *dev, int port,
330 void (*mirror_del)(struct ksz_device *dev, int port,
332 int (*fdb_add)(struct ksz_device *dev, int port,
334 int (*fdb_del)(struct ksz_device *dev, int port,
336 int (*fdb_dump)(struct ksz_device *dev, int port,
338 int (*mdb_add)(struct ksz_device *dev, int port,
341 int (*mdb_del)(struct ksz_device *dev, int port,
344 void (*get_caps)(struct ksz_device *dev, int port,
346 int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
347 void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze);
348 void (*port_init_cnt)(struct ksz_device *dev, int port);
349 void (*phylink_mac_config)(struct ksz_device *dev, int port,
352 void (*phylink_mac_link_up)(struct ksz_device *dev, int port,
357 void (*setup_rgmii_delay)(struct ksz_device *dev, int port);
358 int (*tc_cbs_set_cinc)(struct ksz_device *dev, int port, u32 val);
359 void (*config_cpu_port)(struct dsa_switch *ds);
360 int (*enable_stp_addr)(struct ksz_device *dev);
361 int (*reset)(struct ksz_device *dev);
362 int (*init)(struct ksz_device *dev);
363 void (*exit)(struct ksz_device *dev);