Lines Matching refs:b
213 struct slvl_board *b; in slvl_init() local
224 b = kzalloc(sizeof(struct slvl_board), GFP_KERNEL); in slvl_init()
225 if (!b) in slvl_init()
228 b->dev[0].chan = &b->board.chanA; in slvl_init()
229 b->dev[0].channel = 0; in slvl_init()
231 b->dev[1].chan = &b->board.chanB; in slvl_init()
232 b->dev[1].channel = 1; in slvl_init()
234 dev = &b->board; in slvl_init()
242 b->iobase = iobase; in slvl_init()
263 outb(3 | (1 << 7), b->iobase + 4); in slvl_init()
276 dev->chanA.private = &b->dev[0]; in slvl_init()
277 dev->chanB.private = &b->dev[1]; in slvl_init()
314 if (slvl_setup(&b->dev[0], iobase, irq)) in slvl_init()
316 if (slvl_setup(&b->dev[1], iobase, irq)) in slvl_init()
321 return b; in slvl_init()
324 unregister_hdlc_device(b->dev[0].chan->netdevice); in slvl_init()
325 free_netdev(b->dev[0].chan->netdevice); in slvl_init()
333 kfree(b); in slvl_init()
339 static void __exit slvl_shutdown(struct slvl_board *b) in slvl_shutdown() argument
343 z8530_shutdown(&b->board); in slvl_shutdown()
346 struct net_device *d = b->dev[u].chan->netdevice; in slvl_shutdown()
351 free_irq(b->board.irq, &b->board); in slvl_shutdown()
352 free_dma(b->board.chanA.rxdma); in slvl_shutdown()
353 free_dma(b->board.chanA.txdma); in slvl_shutdown()
355 outb(0, b->iobase); in slvl_shutdown()
356 release_region(b->iobase, 8); in slvl_shutdown()
357 kfree(b); in slvl_shutdown()