Lines Matching refs:chan

403 	struct peak_pci_chan *chan = priv->priv;  in peak_pciec_write_reg()  local
404 struct peak_pciec_card *card = chan->pciec_card; in peak_pciec_write_reg()
439 struct peak_pci_chan *chan = priv->priv; in peak_pciec_probe() local
444 if (chan->prev_dev) { in peak_pciec_probe()
445 struct sja1000_priv *prev_priv = netdev_priv(chan->prev_dev); in peak_pciec_probe()
459 card->cfg_base = chan->cfg_base; in peak_pciec_probe()
492 chan->pciec_card = card; in peak_pciec_probe()
544 struct peak_pci_chan *chan = priv->priv; in peak_pci_post_irq() local
548 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
549 if (icr & chan->icr_mask) in peak_pci_post_irq()
550 writew(chan->icr_mask, chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
556 struct peak_pci_chan *chan; in peak_pci_probe() local
624 chan = priv->priv; in peak_pci_probe()
626 chan->cfg_base = cfg_base; in peak_pci_probe()
644 chan->icr_mask = peak_pci_icr_masks[i]; in peak_pci_probe()
645 icr |= chan->icr_mask; in peak_pci_probe()
651 chan->prev_dev = pci_get_drvdata(pdev); in peak_pci_probe()
678 dev->name, priv->reg_base, chan->cfg_base, dev->irq); in peak_pci_probe()
687 pci_set_drvdata(pdev, chan->prev_dev); in peak_pci_probe()
694 chan = NULL; in peak_pci_probe()
697 chan = priv->priv; in peak_pci_probe()
698 prev_dev = chan->prev_dev; in peak_pci_probe()
705 if (chan && chan->pciec_card) in peak_pci_probe()
706 peak_pciec_remove(chan->pciec_card); in peak_pci_probe()
726 struct peak_pci_chan *chan = priv->priv; in peak_pci_remove() local
727 void __iomem *cfg_base = chan->cfg_base; in peak_pci_remove()
735 struct net_device *prev_dev = chan->prev_dev; in peak_pci_remove()
744 if (chan->pciec_card) in peak_pci_remove()
745 peak_pciec_remove(chan->pciec_card); in peak_pci_remove()
749 chan = priv->priv; in peak_pci_remove()