Lines Matching refs:eh

108 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned int mask)  in etherh_set_ctrl()  argument
110 eh->ctrl |= mask; in etherh_set_ctrl()
111 outb(eh->ctrl, eh->ctrl_port); in etherh_set_ctrl()
114 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned int mask) in etherh_clr_ctrl() argument
116 eh->ctrl &= ~mask; in etherh_clr_ctrl()
117 outb(eh->ctrl, eh->ctrl_port); in etherh_clr_ctrl()
120 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument
122 return inb(eh->ctrl_port); in etherh_get_stat()
130 struct etherh_priv *eh = ec->irq_data; in etherh_irq_enable() local
132 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_irq_enable()
137 struct etherh_priv *eh = ec->irq_data; in etherh_irq_disable() local
139 etherh_clr_ctrl(eh, ETHERH_CP_IE); in etherh_irq_disable()
154 struct etherh_priv *eh = (struct etherh_priv *)dev->rmem_start; in etherh_setif() local
160 switch (eh->id) { in etherh_setif()
178 etherh_clr_ctrl(eh, ETHERH_CP_IF); in etherh_setif()
182 etherh_set_ctrl(eh, ETHERH_CP_IF); in etherh_setif()
198 struct etherh_priv *eh = (struct etherh_priv *)dev->rmem_start; in etherh_getifstat() local
201 switch (eh->id) { in etherh_getifstat()
220 stat = etherh_get_stat(eh) & ETHERH_CP_HEARTBEAT; in etherh_getifstat()
566 struct etherh_priv *eh; in etherh_init_one() local
578 eh = kmalloc(sizeof(struct etherh_priv), GFP_KERNEL); in etherh_init_one()
579 if (!eh) in etherh_init_one()
590 dev->rmem_start = (unsigned long)eh; in etherh_init_one()
596 ec->irq_data = eh; in etherh_init_one()
597 eh->ctrl = 0; in etherh_init_one()
598 eh->id = ec->cid.product; in etherh_init_one()
605 eh->ctrl_port = dev->base_addr + ETHERM_CTRLPORT; in etherh_init_one()
612 eh->ctrl_port = ecard_address (ec, ECARD_IOC, ECARD_FAST) in etherh_init_one()
621 eh->ctrl_port = dev->base_addr + ETHERH600_CTRLPORT; in etherh_init_one()
644 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_init_one()
711 kfree(eh); in etherh_init_one()