Lines Matching refs:ksz_device
27 struct ksz_device;
101 struct ksz_device *dev;
133 struct ksz_device *ksz_dev;
149 struct ksz_device { struct
324 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member);
325 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port);
326 void (*port_cleanup)(struct ksz_device *dev, int port);
327 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
328 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs);
329 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);
330 int (*w_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 val);
331 void (*r_mib_cnt)(struct ksz_device *dev, int port, u16 addr,
333 void (*r_mib_pkt)(struct ksz_device *dev, int port, u16 addr,
335 void (*r_mib_stat64)(struct ksz_device *dev, int port);
336 int (*vlan_filtering)(struct ksz_device *dev, int port,
338 int (*vlan_add)(struct ksz_device *dev, int port,
341 int (*vlan_del)(struct ksz_device *dev, int port,
343 int (*mirror_add)(struct ksz_device *dev, int port,
346 void (*mirror_del)(struct ksz_device *dev, int port,
348 int (*fdb_add)(struct ksz_device *dev, int port,
350 int (*fdb_del)(struct ksz_device *dev, int port,
352 int (*fdb_dump)(struct ksz_device *dev, int port,
354 int (*mdb_add)(struct ksz_device *dev, int port,
357 int (*mdb_del)(struct ksz_device *dev, int port,
360 void (*get_caps)(struct ksz_device *dev, int port,
362 int (*change_mtu)(struct ksz_device *dev, int port, int mtu);
363 int (*pme_write8)(struct ksz_device *dev, u32 reg, u8 value);
364 int (*pme_pread8)(struct ksz_device *dev, int port, int offset,
366 int (*pme_pwrite8)(struct ksz_device *dev, int port, int offset,
368 void (*freeze_mib)(struct ksz_device *dev, int port, bool freeze);
369 void (*port_init_cnt)(struct ksz_device *dev, int port);
370 void (*phylink_mac_link_up)(struct ksz_device *dev, int port,
375 void (*setup_rgmii_delay)(struct ksz_device *dev, int port);
376 int (*tc_cbs_set_cinc)(struct ksz_device *dev, int port, u32 val);
378 int (*enable_stp_addr)(struct ksz_device *dev);
379 int (*reset)(struct ksz_device *dev);
380 int (*init)(struct ksz_device *dev);
381 void (*exit)(struct ksz_device *dev);
384 struct ksz_device *ksz_switch_alloc(struct device *base, void *priv);
385 int ksz_switch_register(struct ksz_device *dev);
386 void ksz_switch_remove(struct ksz_device *dev);
388 void ksz_init_mib_timer(struct ksz_device *dev);
390 void ksz_r_mib_stats64(struct ksz_device *dev, int port);
391 void ksz88xx_r_mib_stats64(struct ksz_device *dev, int port);
393 bool ksz_get_gbit(struct ksz_device *dev, int port);
394 phy_interface_t ksz_get_xmii(struct ksz_device *dev, int port, bool gbit);
399 void ksz_switch_shutdown(struct ksz_device *dev);
400 int ksz_handle_wake_reason(struct ksz_device *dev, int port);
403 static inline struct regmap *ksz_regmap_8(struct ksz_device *dev) in ksz_regmap_8()
408 static inline struct regmap *ksz_regmap_16(struct ksz_device *dev) in ksz_regmap_16()
413 static inline struct regmap *ksz_regmap_32(struct ksz_device *dev) in ksz_regmap_32()
418 static inline int ksz_read8(struct ksz_device *dev, u32 reg, u8 *val) in ksz_read8()
431 static inline int ksz_read16(struct ksz_device *dev, u32 reg, u16 *val) in ksz_read16()
444 static inline int ksz_read32(struct ksz_device *dev, u32 reg, u32 *val) in ksz_read32()
457 static inline int ksz_read64(struct ksz_device *dev, u32 reg, u64 *val) in ksz_read64()
472 static inline int ksz_write8(struct ksz_device *dev, u32 reg, u8 value) in ksz_write8()
484 static inline int ksz_write16(struct ksz_device *dev, u32 reg, u16 value) in ksz_write16()
496 static inline int ksz_write32(struct ksz_device *dev, u32 reg, u32 value) in ksz_write32()
508 static inline int ksz_rmw16(struct ksz_device *dev, u32 reg, u16 mask, in ksz_rmw16()
521 static inline int ksz_rmw32(struct ksz_device *dev, u32 reg, u32 mask, in ksz_rmw32()
534 static inline int ksz_write64(struct ksz_device *dev, u32 reg, u64 value) in ksz_write64()
546 static inline int ksz_rmw8(struct ksz_device *dev, int offset, u8 mask, u8 val) in ksz_rmw8()
558 static inline int ksz_pread8(struct ksz_device *dev, int port, int offset, in ksz_pread8()
564 static inline int ksz_pread16(struct ksz_device *dev, int port, int offset, in ksz_pread16()
570 static inline int ksz_pread32(struct ksz_device *dev, int port, int offset, in ksz_pread32()
576 static inline int ksz_pwrite8(struct ksz_device *dev, int port, int offset, in ksz_pwrite8()
582 static inline int ksz_pwrite16(struct ksz_device *dev, int port, int offset, in ksz_pwrite16()
589 static inline int ksz_pwrite32(struct ksz_device *dev, int port, int offset, in ksz_pwrite32()
596 static inline int ksz_prmw8(struct ksz_device *dev, int port, int offset, in ksz_prmw8()
603 static inline int ksz_prmw32(struct ksz_device *dev, int port, int offset, in ksz_prmw32()
622 static inline bool ksz_is_ksz87xx(struct ksz_device *dev) in ksz_is_ksz87xx()
629 static inline bool ksz_is_ksz88x3(struct ksz_device *dev) in ksz_is_ksz88x3()
634 static inline bool ksz_is_8895_family(struct ksz_device *dev) in ksz_is_8895_family()
640 static inline bool is_ksz8(struct ksz_device *dev) in is_ksz8()
646 static inline bool is_ksz88xx(struct ksz_device *dev) in is_ksz88xx()
651 static inline bool is_ksz9477(struct ksz_device *dev) in is_ksz9477()
656 static inline int is_lan937x(struct ksz_device *dev) in is_lan937x()
665 static inline bool is_lan937x_tx_phy(struct ksz_device *dev, int port) in is_lan937x_tx_phy()