• Home
  • Raw
  • Download

Lines Matching refs:ksz_device

20 struct ksz_device;
81 struct ksz_device *dev;
101 struct ksz_device *ksz_dev;
106 struct ksz_device { struct
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);
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);
342 struct ksz_device *ksz_switch_alloc(struct device *base, void *priv);
343 int ksz_switch_register(struct ksz_device *dev);
344 void ksz_switch_remove(struct ksz_device *dev);
346 void ksz_init_mib_timer(struct ksz_device *dev);
347 void ksz_r_mib_stats64(struct ksz_device *dev, int port);
349 bool ksz_get_gbit(struct ksz_device *dev, int port);
350 phy_interface_t ksz_get_xmii(struct ksz_device *dev, int port, bool gbit);
355 static inline int ksz_read8(struct ksz_device *dev, u32 reg, u8 *val) in ksz_read8()
368 static inline int ksz_read16(struct ksz_device *dev, u32 reg, u16 *val) in ksz_read16()
381 static inline int ksz_read32(struct ksz_device *dev, u32 reg, u32 *val) in ksz_read32()
394 static inline int ksz_read64(struct ksz_device *dev, u32 reg, u64 *val) in ksz_read64()
409 static inline int ksz_write8(struct ksz_device *dev, u32 reg, u8 value) in ksz_write8()
421 static inline int ksz_write16(struct ksz_device *dev, u32 reg, u16 value) in ksz_write16()
433 static inline int ksz_write32(struct ksz_device *dev, u32 reg, u32 value) in ksz_write32()
445 static inline int ksz_write64(struct ksz_device *dev, u32 reg, u64 value) in ksz_write64()
457 static inline int ksz_pread8(struct ksz_device *dev, int port, int offset, in ksz_pread8()
463 static inline int ksz_pread16(struct ksz_device *dev, int port, int offset, in ksz_pread16()
469 static inline int ksz_pread32(struct ksz_device *dev, int port, int offset, in ksz_pread32()
475 static inline int ksz_pwrite8(struct ksz_device *dev, int port, int offset, in ksz_pwrite8()
481 static inline int ksz_pwrite16(struct ksz_device *dev, int port, int offset, in ksz_pwrite16()
488 static inline int ksz_pwrite32(struct ksz_device *dev, int port, int offset, in ksz_pwrite32()
495 static inline void ksz_prmw8(struct ksz_device *dev, int port, int offset, in ksz_prmw8()
515 static inline bool ksz_is_ksz87xx(struct ksz_device *dev) in ksz_is_ksz87xx()
522 static inline bool ksz_is_ksz88x3(struct ksz_device *dev) in ksz_is_ksz88x3()
527 static inline int is_lan937x(struct ksz_device *dev) in is_lan937x()