qecp 143 drivers/net/ethernet/sun/sunqe.c struct sunqec *qecp = qep->parent; qecp 146 drivers/net/ethernet/sun/sunqe.c void __iomem *gregs = qecp->gregs; qecp 470 drivers/net/ethernet/sun/sunqe.c struct sunqec *qecp = dev_id; qecp 475 drivers/net/ethernet/sun/sunqe.c qec_status = sbus_readl(qecp->gregs + GLOB_STAT); qecp 478 drivers/net/ethernet/sun/sunqe.c struct sunqe *qep = qecp->qes[channel]; qecp 717 drivers/net/ethernet/sun/sunqe.c static void qec_init_once(struct sunqec *qecp, struct platform_device *op) qecp 719 drivers/net/ethernet/sun/sunqe.c u8 bsizes = qecp->qec_bursts; qecp 722 drivers/net/ethernet/sun/sunqe.c sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); qecp 724 drivers/net/ethernet/sun/sunqe.c sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); qecp 726 drivers/net/ethernet/sun/sunqe.c sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); qecp 732 drivers/net/ethernet/sun/sunqe.c sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE); qecp 736 drivers/net/ethernet/sun/sunqe.c qecp->gregs + GLOB_MSIZE); qecp 742 drivers/net/ethernet/sun/sunqe.c qecp->gregs + GLOB_TSIZE); qecp 744 drivers/net/ethernet/sun/sunqe.c qecp->gregs + GLOB_RSIZE); qecp 770 drivers/net/ethernet/sun/sunqe.c struct sunqec *qecp; qecp 772 drivers/net/ethernet/sun/sunqe.c qecp = platform_get_drvdata(op); qecp 773 drivers/net/ethernet/sun/sunqe.c if (!qecp) { qecp 774 drivers/net/ethernet/sun/sunqe.c qecp = kzalloc(sizeof(struct sunqec), GFP_KERNEL); qecp 775 drivers/net/ethernet/sun/sunqe.c if (qecp) { qecp 778 drivers/net/ethernet/sun/sunqe.c qecp->op = op; qecp 779 drivers/net/ethernet/sun/sunqe.c qecp->gregs = of_ioremap(&op->resource[0], 0, qecp 782 drivers/net/ethernet/sun/sunqe.c if (!qecp->gregs) qecp 786 drivers/net/ethernet/sun/sunqe.c ctrl = sbus_readl(qecp->gregs + GLOB_CTRL); qecp 793 drivers/net/ethernet/sun/sunqe.c if (qec_global_reset(qecp->gregs)) qecp 796 drivers/net/ethernet/sun/sunqe.c qecp->qec_bursts = qec_get_burst(op->dev.of_node); qecp 798 drivers/net/ethernet/sun/sunqe.c qec_init_once(qecp, op); qecp 801 drivers/net/ethernet/sun/sunqe.c IRQF_SHARED, "qec", (void *) qecp)) { qecp 806 drivers/net/ethernet/sun/sunqe.c platform_set_drvdata(op, qecp); qecp 808 drivers/net/ethernet/sun/sunqe.c qecp->next_module = root_qec_dev; qecp 809 drivers/net/ethernet/sun/sunqe.c root_qec_dev = qecp; qecp 813 drivers/net/ethernet/sun/sunqe.c return qecp; qecp 816 drivers/net/ethernet/sun/sunqe.c if (qecp->gregs) qecp 817 drivers/net/ethernet/sun/sunqe.c of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE); qecp 818 drivers/net/ethernet/sun/sunqe.c kfree(qecp); qecp 836 drivers/net/ethernet/sun/sunqe.c struct sunqec *qecp; qecp 859 drivers/net/ethernet/sun/sunqe.c qecp = get_qec(op); qecp 860 drivers/net/ethernet/sun/sunqe.c if (!qecp) qecp 863 drivers/net/ethernet/sun/sunqe.c qecp->qes[qe->channel] = qe; qecp 865 drivers/net/ethernet/sun/sunqe.c qe->parent = qecp;