Lines Matching refs:eh
124 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_set_ctrl() argument
126 unsigned char ctrl = eh->ctrl | mask; in etherh_set_ctrl()
127 eh->ctrl = ctrl; in etherh_set_ctrl()
128 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl()
131 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl() argument
133 unsigned char ctrl = eh->ctrl & ~mask; in etherh_clr_ctrl()
134 eh->ctrl = ctrl; in etherh_clr_ctrl()
135 writeb(ctrl, eh->ctrl_port); in etherh_clr_ctrl()
138 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument
140 return readb(eh->ctrl_port); in etherh_get_stat()
148 struct etherh_priv *eh = ec->irq_data; in etherh_irq_enable() local
150 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_irq_enable()
155 struct etherh_priv *eh = ec->irq_data; in etherh_irq_disable() local
157 etherh_clr_ctrl(eh, ETHERH_CP_IE); in etherh_irq_disable()
672 struct etherh_priv *eh; in etherh_probe() local
704 eh = etherh_priv(dev); in etherh_probe()
705 eh->supported = data->supported; in etherh_probe()
706 eh->ctrl = 0; in etherh_probe()
707 eh->id = ec->cid.product; in etherh_probe()
708 eh->memc = ecardm_iomap(ec, ECARD_RES_MEMC, 0, PAGE_SIZE); in etherh_probe()
709 if (!eh->memc) { in etherh_probe()
714 eh->ctrl_port = eh->memc; in etherh_probe()
716 eh->ioc_fast = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, PAGE_SIZE); in etherh_probe()
717 if (!eh->ioc_fast) { in etherh_probe()
721 eh->ctrl_port = eh->ioc_fast; in etherh_probe()
724 dev->base_addr = (unsigned long)eh->memc + data->ns8390_offset; in etherh_probe()
725 eh->dma_base = eh->memc + data->dataport_offset; in etherh_probe()
726 eh->ctrl_port += data->ctrlport_offset; in etherh_probe()
732 ecard_setirq(ec, ðerh_ops, eh); in etherh_probe()
737 etherh_set_ctrl(eh, ETHERH_CP_IE); in etherh_probe()