Lines Matching refs:eh
127 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask)
129 unsigned char ctrl = eh->ctrl | mask;
130 eh->ctrl = ctrl;
131 writeb(ctrl, eh->ctrl_port);
134 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask)
136 unsigned char ctrl = eh->ctrl & ~mask;
137 eh->ctrl = ctrl;
138 writeb(ctrl, eh->ctrl_port);
141 static inline unsigned int etherh_get_stat(struct etherh_priv *eh)
143 return readb(eh->ctrl_port);
151 struct etherh_priv *eh = ec->irq_data;
153 etherh_set_ctrl(eh, ETHERH_CP_IE);
158 struct etherh_priv *eh = ec->irq_data;
160 etherh_clr_ctrl(eh, ETHERH_CP_IE);
664 struct etherh_priv *eh;
696 eh = etherh_priv(dev);
697 eh->supported = data->supported;
698 eh->ctrl = 0;
699 eh->id = ec->cid.product;
700 eh->memc = ecardm_iomap(ec, ECARD_RES_MEMC, 0, PAGE_SIZE);
701 if (!eh->memc) {
706 eh->ctrl_port = eh->memc;
708 eh->ioc_fast = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, PAGE_SIZE);
709 if (!eh->ioc_fast) {
713 eh->ctrl_port = eh->ioc_fast;
716 dev->base_addr = (unsigned long)eh->memc + data->ns8390_offset;
717 eh->dma_base = eh->memc + data->dataport_offset;
718 eh->ctrl_port += data->ctrlport_offset;
724 ecard_setirq(ec, ðerh_ops, eh);
729 etherh_set_ctrl(eh, ETHERH_CP_IE);