Lines Matching refs:etherh_priv
64 struct etherh_priv { struct
116 #define etherh_priv(dev) \ macro
117 ((struct etherh_priv *)(((char *)netdev_priv(dev)) + sizeof(struct ei_device)))
119 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_set_ctrl()
126 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl()
133 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat()
143 struct etherh_priv *eh = ec->irq_data; in etherh_irq_enable()
150 struct etherh_priv *eh = ec->irq_data; in etherh_irq_disable()
173 switch (etherh_priv(dev)->id) { in etherh_setif()
191 etherh_clr_ctrl(etherh_priv(dev), ETHERH_CP_IF); in etherh_setif()
195 etherh_set_ctrl(etherh_priv(dev), ETHERH_CP_IF); in etherh_setif()
214 switch (etherh_priv(dev)->id) { in etherh_getifstat()
234 stat = etherh_get_stat(etherh_priv(dev)) & ETHERH_CP_HEARTBEAT; in etherh_getifstat()
327 dma_base = etherh_priv(dev)->dma_base; in etherh_block_output()
386 dma_base = etherh_priv(dev)->dma_base; in etherh_block_input()
426 dma_base = etherh_priv(dev)->dma_base; in etherh_get_header()
568 etherh_priv(dev)->supported); in etherh_get_link_ksettings()
657 struct etherh_priv *eh; in etherh_probe()
665 dev = ____alloc_ei_netdev(sizeof(struct etherh_priv)); in etherh_probe()
688 eh = etherh_priv(dev); in etherh_probe()