Lines Matching refs:lp
95 struct arcnet_local *lp = netdev_priv(dev); in com20020_check() local
102 lp->setup = lp->clockm ? 0 : (lp->clockp << 1); in com20020_check()
103 lp->setup2 = (lp->clockm << 4) | 8; in com20020_check()
107 lp->setup = lp->setup | P1MODE; in com20020_check()
109 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_check()
110 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_check()
112 if (lp->clockm != 0) { in com20020_check()
113 com20020_set_subaddress(lp, ioaddr, SUB_SETUP2); in com20020_check()
114 arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG); in com20020_check()
121 lp->config = (lp->timeout << 3) | (lp->backplane << 2) | SUB_NODE; in com20020_check()
123 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_check()
157 struct arcnet_local *lp = netdev_priv(dev); in com20020_set_hwaddr() local
161 com20020_set_subaddress(lp, ioaddr, SUB_NODE); in com20020_set_hwaddr()
170 struct arcnet_local *lp = netdev_priv(dev); in com20020_netdev_open() local
172 lp->config |= TXENcfg; in com20020_netdev_open()
173 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_netdev_open()
181 struct arcnet_local *lp = netdev_priv(dev); in com20020_netdev_close() local
186 lp->config &= ~TXENcfg; in com20020_netdev_close()
187 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_netdev_close()
205 struct arcnet_local *lp; in com20020_found() local
210 lp = netdev_priv(dev); in com20020_found()
212 lp->hw.owner = THIS_MODULE; in com20020_found()
213 lp->hw.command = com20020_command; in com20020_found()
214 lp->hw.status = com20020_status; in com20020_found()
215 lp->hw.intmask = com20020_setmask; in com20020_found()
216 lp->hw.reset = com20020_reset; in com20020_found()
217 lp->hw.copy_to_card = com20020_copy_to_card; in com20020_found()
218 lp->hw.copy_from_card = com20020_copy_from_card; in com20020_found()
219 lp->hw.close = com20020_close; in com20020_found()
225 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_found()
226 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_found()
228 if (lp->card_flags & ARC_CAN_10MBIT) { in com20020_found()
229 com20020_set_subaddress(lp, ioaddr, SUB_SETUP2); in com20020_found()
230 arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG); in com20020_found()
237 lp->config = (lp->timeout << 3) | (lp->backplane << 2) | SUB_NODE; in com20020_found()
239 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_found()
252 lp->card_name, dev->dev_addr[0], dev->base_addr, dev->irq); in com20020_found()
254 if (lp->backplane) in com20020_found()
257 if (lp->timeout != 3) in com20020_found()
259 lp->timeout); in com20020_found()
262 lp->setup >> 1, in com20020_found()
264 ((lp->setup2 & 0xF0) >> 4) + in com20020_found()
265 ((lp->setup & 0x0F) >> 1)]); in com20020_found()
286 struct arcnet_local *lp = netdev_priv(dev); in com20020_reset() local
291 __FILE__, __LINE__, __func__, dev, lp, dev->name); in com20020_reset()
296 lp->config |= (lp->timeout << 3) | (lp->backplane << 2); in com20020_reset()
298 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
303 arcnet_outb(lp->config | RESETcfg, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
305 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
359 struct arcnet_local *lp = netdev_priv(dev); in com20020_close() local
363 lp->config &= ~TXENcfg; in com20020_close()
364 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_close()
376 struct arcnet_local *lp = netdev_priv(dev); in com20020_set_mc_list() local
381 if (!(lp->setup & PROMISCset)) in com20020_set_mc_list()
383 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_set_mc_list()
384 lp->setup |= PROMISCset; in com20020_set_mc_list()
385 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list()
388 if ((lp->setup & PROMISCset)) in com20020_set_mc_list()
390 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_set_mc_list()
391 lp->setup &= ~PROMISCset; in com20020_set_mc_list()
392 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list()