Lines Matching full: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()
250 lp->card_name, dev->dev_addr[0], dev->base_addr, dev->irq); in com20020_found()
252 if (lp->backplane) in com20020_found()
255 if (lp->timeout != 3) in com20020_found()
257 lp->timeout); in com20020_found()
260 lp->setup >> 1, in com20020_found()
262 ((lp->setup2 & 0xF0) >> 4) + in com20020_found()
263 ((lp->setup & 0x0F) >> 1)]); in com20020_found()
284 struct arcnet_local *lp = netdev_priv(dev); in com20020_reset() local
288 arc_printk(D_DEBUG, dev, "%s: %d: %s: dev: %p, lp: %p, dev->name: %s\n", in com20020_reset()
289 __FILE__, __LINE__, __func__, dev, lp, dev->name); in com20020_reset()
294 lp->config |= (lp->timeout << 3) | (lp->backplane << 2); in com20020_reset()
296 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
301 arcnet_outb(lp->config | RESETcfg, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
303 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
357 struct arcnet_local *lp = netdev_priv(dev); in com20020_close() local
361 lp->config &= ~TXENcfg; in com20020_close()
362 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_close()
374 struct arcnet_local *lp = netdev_priv(dev); in com20020_set_mc_list() local
379 if (!(lp->setup & PROMISCset)) in com20020_set_mc_list()
381 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_set_mc_list()
382 lp->setup |= PROMISCset; in com20020_set_mc_list()
383 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list()
386 if ((lp->setup & PROMISCset)) in com20020_set_mc_list()
388 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_set_mc_list()
389 lp->setup &= ~PROMISCset; in com20020_set_mc_list()
390 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list()