Lines Matching refs:etherh_priv
64 struct etherh_priv {
116 #define etherh_priv(dev) \
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)
126 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask)
133 static inline unsigned int etherh_get_stat(struct etherh_priv *eh)
143 struct etherh_priv *eh = ec->irq_data;
150 struct etherh_priv *eh = ec->irq_data;
173 switch (etherh_priv(dev)->id) {
191 etherh_clr_ctrl(etherh_priv(dev), ETHERH_CP_IF);
195 etherh_set_ctrl(etherh_priv(dev), ETHERH_CP_IF);
214 switch (etherh_priv(dev)->id) {
234 stat = etherh_get_stat(etherh_priv(dev)) & ETHERH_CP_HEARTBEAT;
327 dma_base = etherh_priv(dev)->dma_base;
386 dma_base = etherh_priv(dev)->dma_base;
426 dma_base = etherh_priv(dev)->dma_base;
568 etherh_priv(dev)->supported);
657 struct etherh_priv *eh;
664 dev = ____alloc_ei_netdev(sizeof(struct etherh_priv));
687 eh = etherh_priv(dev);