Lines Matching defs:qe
467 * so we just run through each qe and check to see who is signaling
662 /* Program the qe with the new filter value. */
844 struct sunqe *qe;
856 qe = netdev_priv(dev);
863 qe->channel = i;
864 spin_lock_init(&qe->lock);
870 qecp->qes[qe->channel] = qe;
871 qe->dev = dev;
872 qe->parent = qecp;
873 qe->op = op;
876 qe->qcregs = of_ioremap(&op->resource[0], 0,
878 if (!qe->qcregs) {
879 printk(KERN_ERR "qe: Cannot map channel registers.\n");
883 qe->mregs = of_ioremap(&op->resource[1], 0,
885 if (!qe->mregs) {
886 printk(KERN_ERR "qe: Cannot map MACE registers.\n");
890 qe->qe_block = dma_alloc_coherent(&op->dev, PAGE_SIZE,
891 &qe->qblock_dvma, GFP_ATOMIC);
892 qe->buffers = dma_alloc_coherent(&op->dev, sizeof(struct sunqe_buffers),
893 &qe->buffers_dvma, GFP_ATOMIC);
894 if (qe->qe_block == NULL || qe->qblock_dvma == 0 ||
895 qe->buffers == NULL || qe->buffers_dvma == 0)
899 qe_stop(qe);
913 dev_set_drvdata(&op->dev, qe);
915 printk(KERN_INFO "%s: qe channel[%d] ", dev->name, qe->channel);
926 if (qe->qcregs)
927 of_iounmap(&op->resource[0], qe->qcregs, CREG_REG_SIZE);
928 if (qe->mregs)
929 of_iounmap(&op->resource[1], qe->mregs, MREGS_REG_SIZE);
930 if (qe->qe_block)
932 qe->qe_block, qe->qblock_dvma);
933 if (qe->buffers)
936 qe->buffers,
937 qe->buffers_dvma);
972 .name = "qe",