Lines Matching refs:eh
119 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_set_ctrl() argument
121 unsigned char ctrl = eh->ctrl | mask; in etherh_set_ctrl()
122 eh->ctrl = ctrl; in etherh_set_ctrl()
123 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl()
126 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl() argument
128 unsigned char ctrl = eh->ctrl & ~mask; in etherh_clr_ctrl()
129 eh->ctrl = ctrl; in etherh_clr_ctrl()
130 writeb(ctrl, eh->ctrl_port); in etherh_clr_ctrl()
133 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument
135 return readb(eh->ctrl_port); in etherh_get_stat()
143 struct etherh_priv *eh = ec->irq_data; in etherh_irq_enable() local
145 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_irq_enable()
150 struct etherh_priv *eh = ec->irq_data; in etherh_irq_disable() local
152 etherh_clr_ctrl(eh, ETHERH_CP_IE); in etherh_irq_disable()
657 struct etherh_priv *eh; in etherh_probe() local
688 eh = etherh_priv(dev); in etherh_probe()
689 eh->supported = data->supported; in etherh_probe()
690 eh->ctrl = 0; in etherh_probe()
691 eh->id = ec->cid.product; in etherh_probe()
692 eh->memc = ecardm_iomap(ec, ECARD_RES_MEMC, 0, PAGE_SIZE); in etherh_probe()
693 if (!eh->memc) { in etherh_probe()
698 eh->ctrl_port = eh->memc; in etherh_probe()
700 eh->ioc_fast = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, PAGE_SIZE); in etherh_probe()
701 if (!eh->ioc_fast) { in etherh_probe()
705 eh->ctrl_port = eh->ioc_fast; in etherh_probe()
708 dev->base_addr = (unsigned long)eh->memc + data->ns8390_offset; in etherh_probe()
709 eh->dma_base = eh->memc + data->dataport_offset; in etherh_probe()
710 eh->ctrl_port += data->ctrlport_offset; in etherh_probe()
716 ecard_setirq(ec, ðerh_ops, eh); in etherh_probe()
721 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_probe()