Lines Matching refs:b53_device

30 struct b53_device;
35 int (*read8)(struct b53_device *dev, u8 page, u8 reg, u8 *value);
36 int (*read16)(struct b53_device *dev, u8 page, u8 reg, u16 *value);
37 int (*read32)(struct b53_device *dev, u8 page, u8 reg, u32 *value);
38 int (*read48)(struct b53_device *dev, u8 page, u8 reg, u64 *value);
39 int (*read64)(struct b53_device *dev, u8 page, u8 reg, u64 *value);
40 int (*write8)(struct b53_device *dev, u8 page, u8 reg, u8 value);
41 int (*write16)(struct b53_device *dev, u8 page, u8 reg, u16 value);
42 int (*write32)(struct b53_device *dev, u8 page, u8 reg, u32 value);
43 int (*write48)(struct b53_device *dev, u8 page, u8 reg, u64 value);
44 int (*write64)(struct b53_device *dev, u8 page, u8 reg, u64 value);
45 int (*phy_read16)(struct b53_device *dev, int addr, int reg, u16 *value);
46 int (*phy_write16)(struct b53_device *dev, int addr, int reg, u16 value);
47 int (*irq_enable)(struct b53_device *dev, int port);
48 void (*irq_disable)(struct b53_device *dev, int port);
49 u8 (*serdes_map_lane)(struct b53_device *dev, int port);
50 int (*serdes_link_state)(struct b53_device *dev, int port,
52 void (*serdes_config)(struct b53_device *dev, int port,
55 void (*serdes_an_restart)(struct b53_device *dev, int port);
56 void (*serdes_link_set)(struct b53_device *dev, int port,
59 void (*serdes_phylink_validate)(struct b53_device *dev, int port,
103 struct b53_device { struct
154 static inline int is5325(struct b53_device *dev) in is5325() argument
159 static inline int is5365(struct b53_device *dev) in is5365()
168 static inline int is5397_98(struct b53_device *dev) in is5397_98()
174 static inline int is539x(struct b53_device *dev) in is539x()
181 static inline int is531x5(struct b53_device *dev) in is531x5()
188 static inline int is63xx(struct b53_device *dev) in is63xx()
193 static inline int is5301x(struct b53_device *dev) in is5301x()
202 static inline int is58xx(struct b53_device *dev) in is58xx()
213 static inline unsigned int b53_max_arl_entries(struct b53_device *dev) in b53_max_arl_entries()
218 struct b53_device *b53_switch_alloc(struct device *base,
222 int b53_switch_detect(struct b53_device *dev);
224 int b53_switch_register(struct b53_device *dev);
226 static inline void b53_switch_remove(struct b53_device *dev) in b53_switch_remove()
231 static inline void b53_switch_shutdown(struct b53_device *dev) in b53_switch_shutdown()
237 static inline int b53_##type_op_size(struct b53_device *dev, u8 page, \
300 static inline int b53_switch_get_reset_gpio(struct b53_device *dev) in b53_switch_get_reset_gpio()
313 static inline int b53_switch_get_reset_gpio(struct b53_device *dev) in b53_switch_get_reset_gpio()