Lines Matching defs:ksz_dev_ops
280 struct ksz_dev_ops { struct
281 int (*setup)(struct dsa_switch *ds);
282 void (*teardown)(struct dsa_switch *ds);
283 u32 (*get_port_addr)(int port, int offset);
284 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
285 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
286 void (*port_cleanup)(struct ksz_device *dev, int port);
287 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
288 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs);
289 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
290 int (*w_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 val);
291 void (*r_mib_cnt)(struct ksz_device *dev, int port, u16 addr,
293 void (*r_mib_pkt)(struct ksz_device *dev, int port, u16 addr,
295 void (*r_mib_stat64)(struct ksz_device *dev, int port);
296 int (*vlan_filtering)(struct ksz_device *dev, int port,
298 int (*vlan_add)(struct ksz_device *dev, int port,
301 int (*vlan_del)(struct ksz_device *dev, int port,
303 int (*mirror_add)(struct ksz_device *dev, int port,
306 void (*mirror_del)(struct ksz_device *dev, int port,
308 int (*fdb_add)(struct ksz_device *dev, int port,
310 int (*fdb_del)(struct ksz_device *dev, int port,
312 int (*fdb_dump)(struct ksz_device *dev, int port,
314 int (*mdb_add)(struct ksz_device *dev, int port,
317 int (*mdb_del)(struct ksz_device *dev, int port,
320 void (*get_caps)(struct ksz_device *dev, int port,
322 int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
323 int (*max_mtu)(struct ksz_device *dev, int port);
324 void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze);
325 void (*port_init_cnt)(struct ksz_device *dev, int port);
326 void (*phylink_mac_config)(struct ksz_device *dev, int port,
329 void (*phylink_mac_link_up)(struct ksz_device *dev, int port,
334 void (*setup_rgmii_delay)(struct ksz_device *dev, int port);
335 void (*config_cpu_port)(struct dsa_switch *ds);
336 int (*enable_stp_addr)(struct ksz_device *dev);
337 int (*reset)(struct ksz_device *dev);
338 int (*init)(struct ksz_device *dev);
339 void (*exit)(struct ksz_device *dev);