Lines Matching defs:qe
465 * so we just run through each qe and check to see who is signaling
655 /* Program the qe with the new filter value. */
837 struct sunqe *qe;
849 qe = netdev_priv(dev);
856 qe->channel = i;
857 spin_lock_init(&qe->lock);
863 qecp->qes[qe->channel] = qe;
864 qe->dev = dev;
865 qe->parent = qecp;
866 qe->op = op;
869 qe->qcregs = of_ioremap(&op->resource[0], 0,
871 if (!qe->qcregs) {
872 printk(KERN_ERR "qe: Cannot map channel registers.\n");
876 qe->mregs = of_ioremap(&op->resource[1], 0,
878 if (!qe->mregs) {
879 printk(KERN_ERR "qe: Cannot map MACE registers.\n");
883 qe->qe_block = dma_alloc_coherent(&op->dev, PAGE_SIZE,
884 &qe->qblock_dvma, GFP_ATOMIC);
885 qe->buffers = dma_alloc_coherent(&op->dev, sizeof(struct sunqe_buffers),
886 &qe->buffers_dvma, GFP_ATOMIC);
887 if (qe->qe_block == NULL || qe->qblock_dvma == 0 ||
888 qe->buffers == NULL || qe->buffers_dvma == 0)
892 qe_stop(qe);
906 platform_set_drvdata(op, qe);
908 printk(KERN_INFO "%s: qe channel[%d] %pM\n", dev->name, qe->channel,
913 if (qe->qcregs)
914 of_iounmap(&op->resource[0], qe->qcregs, CREG_REG_SIZE);
915 if (qe->mregs)
916 of_iounmap(&op->resource[1], qe->mregs, MREGS_REG_SIZE);
917 if (qe->qe_block)
919 qe->qe_block, qe->qblock_dvma);
920 if (qe->buffers)
923 qe->buffers,
924 qe->buffers_dvma);
955 .name = "qe",