Lines Matching full:qe
118 printk(KERN_ERR "QuadEther: Cannot reset QE channel!\n"); in qe_stop()
409 /* Per-QE receive interrupt service routine. Just like on the happy meal
431 int len = (flags & RXD_LENGTH) - 4; /* QE adds ether FCS size to len */ in qe_rx()
464 /* Interrupts for all QE's get filtered out via the QEC master controller,
465 * so we just run through each qe and check to see who is signaling
655 /* Program the qe with the new filter value. */ in qe_set_multicast()
734 /* Set the local memsize register, divided up to one piece per QE channel. */ in qec_init_once()
738 /* Divide up the local QEC memory amongst the 4 QE receiver and in qec_init_once()
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()
872 printk(KERN_ERR "qe: Cannot map channel registers.\n"); in qec_ether_init()
876 qe->mregs = of_ioremap(&op->resource[1], 0, in qec_ether_init()
877 MREGS_REG_SIZE, "QE MACE Registers"); in qec_ether_init()
878 if (!qe->mregs) { in qec_ether_init()
879 printk(KERN_ERR "qe: Cannot map MACE registers.\n"); 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()
891 /* Stop this QE. */ 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()
955 .name = "qe",