Lines Matching refs:macb_device

102 struct macb_device {  struct
141 #define to_macb(_nd) container_of(_nd, struct macb_device, netdev) argument
144 static int macb_is_gem(struct macb_device *macb) in macb_is_gem()
157 static int gem_is_gigabit_capable(struct macb_device *macb) in gem_is_gigabit_capable()
166 static void macb_mdio_write(struct macb_device *macb, u8 reg, u16 value) in macb_mdio_write()
193 static u16 macb_mdio_read(struct macb_device *macb, u8 reg) in macb_mdio_read()
235 struct macb_device *macb = dev_get_priv(dev); in macb_miiphy_read()
238 struct macb_device *macb = to_macb(dev); in macb_miiphy_read()
255 struct macb_device *macb = dev_get_priv(dev); in macb_miiphy_write()
258 struct macb_device *macb = to_macb(dev); in macb_miiphy_write()
273 static inline void macb_invalidate_ring_desc(struct macb_device *macb, bool rx) in macb_invalidate_ring_desc()
285 static inline void macb_flush_ring_desc(struct macb_device *macb, bool rx) in macb_flush_ring_desc()
295 static inline void macb_flush_rx_buffer(struct macb_device *macb) in macb_flush_rx_buffer()
301 static inline void macb_invalidate_rx_buffer(struct macb_device *macb) in macb_invalidate_rx_buffer()
309 static int _macb_send(struct macb_device *macb, const char *name, void *packet, in _macb_send()
363 static void reclaim_rx_buffers(struct macb_device *macb, in reclaim_rx_buffers()
388 static int _macb_recv(struct macb_device *macb, uchar **packetp) in _macb_recv()
443 static void macb_phy_reset(struct macb_device *macb, const char *name) in macb_phy_reset()
468 static int macb_phy_find(struct macb_device *macb, const char *name) in macb_phy_find()
504 static int macb_phy_init(struct macb_device *macb, const char *name) in macb_phy_init()
508 struct macb_device *macb = dev_get_priv(dev); in macb_phy_init()
626 static int gmac_init_multi_queues(struct macb_device *macb) in gmac_init_multi_queues()
653 static int _macb_init(struct macb_device *macb, const char *name) in _macb_init()
657 struct macb_device *macb = dev_get_priv(dev); in _macb_init()
771 static void _macb_halt(struct macb_device *macb) in _macb_halt()
788 static int _macb_write_hwaddr(struct macb_device *macb, unsigned char *enetaddr) in _macb_write_hwaddr()
802 static u32 macb_mdc_clk_div(int id, struct macb_device *macb) in macb_mdc_clk_div()
823 static u32 gem_mdc_clk_div(int id, struct macb_device *macb) in gem_mdc_clk_div()
854 static u32 macb_dbw(struct macb_device *macb) in macb_dbw()
867 static void _macb_eth_initialize(struct macb_device *macb) in _macb_eth_initialize()
899 struct macb_device *macb = to_macb(netdev); in macb_send()
906 struct macb_device *macb = to_macb(netdev); in macb_recv()
925 struct macb_device *macb = to_macb(netdev); in macb_init()
932 struct macb_device *macb = to_macb(netdev); in macb_halt()
939 struct macb_device *macb = to_macb(netdev); in macb_write_hwaddr()
946 struct macb_device *macb; in macb_eth_initialize()
949 macb = malloc(sizeof(struct macb_device)); in macb_eth_initialize()
954 memset(macb, 0, sizeof(struct macb_device)); in macb_eth_initialize()
1003 struct macb_device *macb = dev_get_priv(dev); in macb_send()
1010 struct macb_device *macb = dev_get_priv(dev); in macb_recv()
1020 struct macb_device *macb = dev_get_priv(dev); in macb_free_pkt()
1029 struct macb_device *macb = dev_get_priv(dev); in macb_stop()
1037 struct macb_device *macb = dev_get_priv(dev); in macb_write_hwaddr()
1054 struct macb_device *macb = dev_get_priv(dev); in macb_enable_clk()
1085 struct macb_device *macb = dev_get_priv(dev); in macb_eth_probe()
1127 struct macb_device *macb = dev_get_priv(dev); in macb_eth_remove()
1178 .priv_auto_alloc_size = sizeof(struct macb_device),