Lines Matching refs:chan
404 struct peak_pci_chan *chan = priv->priv; in peak_pciec_write_reg() local
405 struct peak_pciec_card *card = chan->pciec_card; in peak_pciec_write_reg()
440 struct peak_pci_chan *chan = priv->priv; in peak_pciec_probe() local
445 if (chan->prev_dev) { in peak_pciec_probe()
446 struct sja1000_priv *prev_priv = netdev_priv(chan->prev_dev); in peak_pciec_probe()
460 card->cfg_base = chan->cfg_base; in peak_pciec_probe()
493 chan->pciec_card = card; in peak_pciec_probe()
545 struct peak_pci_chan *chan = priv->priv; in peak_pci_post_irq() local
549 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
550 if (icr & chan->icr_mask) in peak_pci_post_irq()
551 writew(chan->icr_mask, chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
557 struct peak_pci_chan *chan; in peak_pci_probe() local
625 chan = priv->priv; in peak_pci_probe()
627 chan->cfg_base = cfg_base; in peak_pci_probe()
645 chan->icr_mask = peak_pci_icr_masks[i]; in peak_pci_probe()
646 icr |= chan->icr_mask; in peak_pci_probe()
652 chan->prev_dev = pci_get_drvdata(pdev); in peak_pci_probe()
679 dev->name, priv->reg_base, chan->cfg_base, dev->irq); in peak_pci_probe()
688 pci_set_drvdata(pdev, chan->prev_dev); in peak_pci_probe()
695 chan = NULL; in peak_pci_probe()
698 chan = priv->priv; in peak_pci_probe()
699 prev_dev = chan->prev_dev; in peak_pci_probe()
706 if (chan && chan->pciec_card) in peak_pci_probe()
707 peak_pciec_remove(chan->pciec_card); in peak_pci_probe()
727 struct peak_pci_chan *chan = priv->priv; in peak_pci_remove() local
728 void __iomem *cfg_base = chan->cfg_base; in peak_pci_remove()
736 struct net_device *prev_dev = chan->prev_dev; in peak_pci_remove()
745 if (chan->pciec_card) in peak_pci_remove()
746 peak_pciec_remove(chan->pciec_card); in peak_pci_remove()
750 chan = priv->priv; in peak_pci_remove()