Lines Matching refs:qe
837 struct sunqe *qe; in qec_ether_init() local
849 qe = netdev_priv(dev); in qec_ether_init()
856 qe->channel = i; in qec_ether_init()
857 spin_lock_init(&qe->lock); in qec_ether_init()
863 qecp->qes[qe->channel] = qe; in qec_ether_init()
864 qe->dev = dev; in qec_ether_init()
865 qe->parent = qecp; in qec_ether_init()
866 qe->op = op; in qec_ether_init()
869 qe->qcregs = of_ioremap(&op->resource[0], 0, in qec_ether_init()
871 if (!qe->qcregs) { in qec_ether_init()
876 qe->mregs = of_ioremap(&op->resource[1], 0, in qec_ether_init()
878 if (!qe->mregs) { in qec_ether_init()
883 qe->qe_block = dma_alloc_coherent(&op->dev, PAGE_SIZE, in qec_ether_init()
884 &qe->qblock_dvma, GFP_ATOMIC); in qec_ether_init()
885 qe->buffers = dma_alloc_coherent(&op->dev, sizeof(struct sunqe_buffers), in qec_ether_init()
886 &qe->buffers_dvma, GFP_ATOMIC); in qec_ether_init()
887 if (qe->qe_block == NULL || qe->qblock_dvma == 0 || in qec_ether_init()
888 qe->buffers == NULL || qe->buffers_dvma == 0) in qec_ether_init()
892 qe_stop(qe); in qec_ether_init()
906 platform_set_drvdata(op, qe); in qec_ether_init()
908 printk(KERN_INFO "%s: qe channel[%d] %pM\n", dev->name, qe->channel, in qec_ether_init()
913 if (qe->qcregs) in qec_ether_init()
914 of_iounmap(&op->resource[0], qe->qcregs, CREG_REG_SIZE); in qec_ether_init()
915 if (qe->mregs) in qec_ether_init()
916 of_iounmap(&op->resource[1], qe->mregs, MREGS_REG_SIZE); in qec_ether_init()
917 if (qe->qe_block) in qec_ether_init()
919 qe->qe_block, qe->qblock_dvma); in qec_ether_init()
920 if (qe->buffers) in qec_ether_init()
923 qe->buffers, in qec_ether_init()
924 qe->buffers_dvma); in qec_ether_init()