Lines Matching refs:etherh_priv
72 struct etherh_priv {
124 #define etherh_priv(dev) \
125 ((struct etherh_priv *)(((char *)netdev_priv(dev)) + sizeof(struct ei_device)))
127 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask)
134 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask)
141 static inline unsigned int etherh_get_stat(struct etherh_priv *eh)
151 struct etherh_priv *eh = ec->irq_data;
158 struct etherh_priv *eh = ec->irq_data;
181 switch (etherh_priv(dev)->id) {
199 etherh_clr_ctrl(etherh_priv(dev), ETHERH_CP_IF);
203 etherh_set_ctrl(etherh_priv(dev), ETHERH_CP_IF);
222 switch (etherh_priv(dev)->id) {
242 stat = etherh_get_stat(etherh_priv(dev)) & ETHERH_CP_HEARTBEAT;
335 dma_base = etherh_priv(dev)->dma_base;
395 dma_base = etherh_priv(dev)->dma_base;
435 dma_base = etherh_priv(dev)->dma_base;
593 cmd->supported = etherh_priv(dev)->supported;
664 struct etherh_priv *eh;
673 dev = ____alloc_ei_netdev(sizeof(struct etherh_priv));
696 eh = etherh_priv(dev);