Lines Matching refs:eh

127 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask)  in etherh_set_ctrl()  argument
129 unsigned char ctrl = eh->ctrl | mask; in etherh_set_ctrl()
130 eh->ctrl = ctrl; in etherh_set_ctrl()
131 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl()
134 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl() argument
136 unsigned char ctrl = eh->ctrl & ~mask; in etherh_clr_ctrl()
137 eh->ctrl = ctrl; in etherh_clr_ctrl()
138 writeb(ctrl, eh->ctrl_port); in etherh_clr_ctrl()
141 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument
143 return readb(eh->ctrl_port); in etherh_get_stat()
151 struct etherh_priv *eh = ec->irq_data; in etherh_irq_enable() local
153 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_irq_enable()
158 struct etherh_priv *eh = ec->irq_data; in etherh_irq_disable() local
160 etherh_clr_ctrl(eh, ETHERH_CP_IE); in etherh_irq_disable()
665 struct etherh_priv *eh; in etherh_probe() local
697 eh = etherh_priv(dev); in etherh_probe()
698 eh->supported = data->supported; in etherh_probe()
699 eh->ctrl = 0; in etherh_probe()
700 eh->id = ec->cid.product; in etherh_probe()
701 eh->memc = ecardm_iomap(ec, ECARD_RES_MEMC, 0, PAGE_SIZE); in etherh_probe()
702 if (!eh->memc) { in etherh_probe()
707 eh->ctrl_port = eh->memc; in etherh_probe()
709 eh->ioc_fast = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, PAGE_SIZE); in etherh_probe()
710 if (!eh->ioc_fast) { in etherh_probe()
714 eh->ctrl_port = eh->ioc_fast; in etherh_probe()
717 dev->base_addr = (unsigned long)eh->memc + data->ns8390_offset; in etherh_probe()
718 eh->dma_base = eh->memc + data->dataport_offset; in etherh_probe()
719 eh->ctrl_port += data->ctrlport_offset; in etherh_probe()
725 ecard_setirq(ec, &etherh_ops, eh); in etherh_probe()
730 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_probe()