ugeth 206 drivers/net/ethernet/freescale/ucc_geth.c static struct sk_buff *get_new_skb(struct ucc_geth_private *ugeth, ugeth 211 drivers/net/ethernet/freescale/ucc_geth.c skb = netdev_alloc_skb(ugeth->ndev, ugeth 212 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info->uf_info.max_rx_buf_length + ugeth 226 drivers/net/ethernet/freescale/ucc_geth.c dma_map_single(ugeth->dev, ugeth 228 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info->uf_info.max_rx_buf_length + ugeth 238 drivers/net/ethernet/freescale/ucc_geth.c static int rx_bd_buffer_set(struct ucc_geth_private *ugeth, u8 rxQ) ugeth 245 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_rx_bd_ring[rxQ]; ugeth 250 drivers/net/ethernet/freescale/ucc_geth.c skb = get_new_skb(ugeth, bd); ugeth 256 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[rxQ][i] = skb; ugeth 266 drivers/net/ethernet/freescale/ucc_geth.c static int fill_init_enet_entries(struct ucc_geth_private *ugeth, ugeth 280 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 291 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 305 drivers/net/ethernet/freescale/ucc_geth.c static int return_init_enet_entries(struct ucc_geth_private *ugeth, ugeth 339 drivers/net/ethernet/freescale/ucc_geth.c static int dump_init_enet_entries(struct ucc_geth_private *ugeth, ugeth 391 drivers/net/ethernet/freescale/ucc_geth.c static int hw_clear_addr_in_paddr(struct ucc_geth_private *ugeth, u8 paddr_num) ugeth 401 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_82xx_address_filtering_pram __iomem *) ugeth->p_rx_glbl_pram-> ugeth 413 drivers/net/ethernet/freescale/ucc_geth.c static void hw_add_addr_in_hash(struct ucc_geth_private *ugeth, ugeth 420 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_82xx_address_filtering_pram __iomem *) ugeth->p_rx_glbl_pram-> ugeth 424 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); ugeth 437 drivers/net/ethernet/freescale/ucc_geth.c static void get_statistics(struct ucc_geth_private *ugeth, ugeth 449 drivers/net/ethernet/freescale/ucc_geth.c ug_regs = ugeth->ug_regs; ugeth 451 drivers/net/ethernet/freescale/ucc_geth.c p_tx_fw_statistics_pram = ugeth->p_tx_fw_statistics_pram; ugeth 452 drivers/net/ethernet/freescale/ucc_geth.c p_rx_fw_statistics_pram = ugeth->p_rx_fw_statistics_pram; ugeth 557 drivers/net/ethernet/freescale/ucc_geth.c static void dump_bds(struct ucc_geth_private *ugeth) ugeth 562 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesTx; i++) { ugeth 563 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_tx_bd_ring[i]) { ugeth 565 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->ug_info->bdRingLenTx[i] * ugeth 568 drivers/net/ethernet/freescale/ucc_geth.c mem_disp(ugeth->p_tx_bd_ring[i], length); ugeth 571 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesRx; i++) { ugeth 572 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_bd_ring[i]) { ugeth 574 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->ug_info->bdRingLenRx[i] * ugeth 577 drivers/net/ethernet/freescale/ucc_geth.c mem_disp(ugeth->p_rx_bd_ring[i], length); ugeth 582 drivers/net/ethernet/freescale/ucc_geth.c static void dump_regs(struct ucc_geth_private *ugeth) ugeth 586 drivers/net/ethernet/freescale/ucc_geth.c pr_info("UCC%d Geth registers:\n", ugeth->ug_info->uf_info.ucc_num + 1); ugeth 587 drivers/net/ethernet/freescale/ucc_geth.c pr_info("Base address: 0x%08x\n", (u32)ugeth->ug_regs); ugeth 590 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->maccfg1, ugeth 591 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->maccfg1)); ugeth 593 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->maccfg2, ugeth 594 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->maccfg2)); ugeth 596 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->ipgifg, ugeth 597 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->ipgifg)); ugeth 599 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->hafdup, ugeth 600 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->hafdup)); ugeth 602 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->ifctl, ugeth 603 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->ifctl)); ugeth 605 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->ifstat, ugeth 606 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->ifstat)); ugeth 608 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->macstnaddr1, ugeth 609 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->macstnaddr1)); ugeth 611 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->macstnaddr2, ugeth 612 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->macstnaddr2)); ugeth 614 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->uempr, ugeth 615 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->uempr)); ugeth 617 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->utbipar, ugeth 618 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->utbipar)); ugeth 620 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->uescr, ugeth 621 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->ug_regs->uescr)); ugeth 623 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->tx64, ugeth 624 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->tx64)); ugeth 626 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->tx127, ugeth 627 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->tx127)); ugeth 629 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->tx255, ugeth 630 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->tx255)); ugeth 632 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rx64, ugeth 633 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rx64)); ugeth 635 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rx127, ugeth 636 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rx127)); ugeth 638 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rx255, ugeth 639 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rx255)); ugeth 641 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->txok, ugeth 642 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->txok)); ugeth 644 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->txcf, ugeth 645 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->ug_regs->txcf)); ugeth 647 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->tmca, ugeth 648 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->tmca)); ugeth 650 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->tbca, ugeth 651 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->tbca)); ugeth 653 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rxfok, ugeth 654 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rxfok)); ugeth 656 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rxbok, ugeth 657 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rxbok)); ugeth 659 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rbyt, ugeth 660 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rbyt)); ugeth 662 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rmca, ugeth 663 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rmca)); ugeth 665 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->rbca, ugeth 666 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->rbca)); ugeth 668 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->scar, ugeth 669 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->scar)); ugeth 671 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->ug_regs->scam, ugeth 672 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->ug_regs->scam)); ugeth 674 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_thread_data_tx) { ugeth 676 drivers/net/ethernet/freescale/ucc_geth.c switch (ugeth->ug_info->numThreadsTx) { ugeth 699 drivers/net/ethernet/freescale/ucc_geth.c (u32)ugeth->p_thread_data_tx); ugeth 703 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_thread_data_tx[i]); ugeth 704 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) & ugeth->p_thread_data_tx[i], ugeth 708 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_thread_data_rx) { ugeth 710 drivers/net/ethernet/freescale/ucc_geth.c switch (ugeth->ug_info->numThreadsRx) { ugeth 733 drivers/net/ethernet/freescale/ucc_geth.c (u32)ugeth->p_thread_data_rx); ugeth 737 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_thread_data_rx[i]); ugeth 738 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) & ugeth->p_thread_data_rx[i], ugeth 742 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_exf_glbl_param) { ugeth 745 drivers/net/ethernet/freescale/ucc_geth.c (u32)ugeth->p_exf_glbl_param); ugeth 746 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) ugeth->p_exf_glbl_param, ugeth 747 drivers/net/ethernet/freescale/ucc_geth.c sizeof(*ugeth->p_exf_glbl_param)); ugeth 749 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_tx_glbl_pram) { ugeth 751 drivers/net/ethernet/freescale/ucc_geth.c pr_info("Base address: 0x%08x\n", (u32)ugeth->p_tx_glbl_pram); ugeth 753 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->temoder, ugeth 754 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_tx_glbl_pram->temoder)); ugeth 756 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->sqptr, ugeth 757 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->sqptr)); ugeth 759 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->schedulerbasepointer, ugeth 760 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->schedulerbasepointer)); ugeth 762 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->txrmonbaseptr, ugeth 763 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->txrmonbaseptr)); ugeth 765 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->tstate, ugeth 766 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->tstate)); ugeth 768 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[0], ugeth 769 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[0]); ugeth 771 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[1], ugeth 772 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[1]); ugeth 774 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[2], ugeth 775 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[2]); ugeth 777 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[3], ugeth 778 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[3]); ugeth 780 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[4], ugeth 781 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[4]); ugeth 783 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[5], ugeth 784 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[5]); ugeth 786 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[6], ugeth 787 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[6]); ugeth 789 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->iphoffset[7], ugeth 790 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram->iphoffset[7]); ugeth 792 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[0], ugeth 793 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[0])); ugeth 795 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[1], ugeth 796 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[1])); ugeth 798 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[2], ugeth 799 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[2])); ugeth 801 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[3], ugeth 802 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[3])); ugeth 804 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[4], ugeth 805 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[4])); ugeth 807 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[5], ugeth 808 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[5])); ugeth 810 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[6], ugeth 811 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[6])); ugeth 813 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->vtagtable[7], ugeth 814 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->vtagtable[7])); ugeth 816 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_tx_glbl_pram->tqptr, ugeth 817 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_tx_glbl_pram->tqptr)); ugeth 819 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_glbl_pram) { ugeth 821 drivers/net/ethernet/freescale/ucc_geth.c pr_info("Base address: 0x%08x\n", (u32)ugeth->p_rx_glbl_pram); ugeth 823 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->remoder, ugeth 824 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->remoder)); ugeth 826 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->rqptr, ugeth 827 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->rqptr)); ugeth 829 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->typeorlen, ugeth 830 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->typeorlen)); ugeth 832 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->rxgstpack, ugeth 833 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_glbl_pram->rxgstpack); ugeth 835 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->rxrmonbaseptr, ugeth 836 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->rxrmonbaseptr)); ugeth 838 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->intcoalescingptr, ugeth 839 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->intcoalescingptr)); ugeth 841 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->rstate, ugeth 842 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_glbl_pram->rstate); ugeth 844 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->mrblr, ugeth 845 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->mrblr)); ugeth 847 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->rbdqptr, ugeth 848 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->rbdqptr)); ugeth 850 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->mflr, ugeth 851 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->mflr)); ugeth 853 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->minflr, ugeth 854 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->minflr)); ugeth 856 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->maxd1, ugeth 857 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->maxd1)); ugeth 859 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->maxd2, ugeth 860 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->maxd2)); ugeth 862 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->ecamptr, ugeth 863 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->ecamptr)); ugeth 865 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l2qt, ugeth 866 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l2qt)); ugeth 868 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[0], ugeth 869 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[0])); ugeth 871 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[1], ugeth 872 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[1])); ugeth 874 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[2], ugeth 875 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[2])); ugeth 877 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[3], ugeth 878 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[3])); ugeth 880 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[4], ugeth 881 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[4])); ugeth 883 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[5], ugeth 884 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[5])); ugeth 886 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[6], ugeth 887 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[6])); ugeth 889 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->l3qt[7], ugeth 890 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->l3qt[7])); ugeth 892 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->vlantype, ugeth 893 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->vlantype)); ugeth 895 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->vlantci, ugeth 896 drivers/net/ethernet/freescale/ucc_geth.c in_be16(&ugeth->p_rx_glbl_pram->vlantci)); ugeth 900 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->addressfiltering[i], ugeth 901 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_glbl_pram->addressfiltering[i]); ugeth 903 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_glbl_pram->exfGlobalParam, ugeth 904 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_glbl_pram->exfGlobalParam)); ugeth 906 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_send_q_mem_reg) { ugeth 908 drivers/net/ethernet/freescale/ucc_geth.c pr_info("Base address: 0x%08x\n", (u32)ugeth->p_send_q_mem_reg); ugeth 909 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesTx; i++) { ugeth 912 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_send_q_mem_reg->sqqd[i]); ugeth 913 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) & ugeth->p_send_q_mem_reg->sqqd[i], ugeth 917 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_scheduler) { ugeth 919 drivers/net/ethernet/freescale/ucc_geth.c pr_info("Base address: 0x%08x\n", (u32)ugeth->p_scheduler); ugeth 920 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) ugeth->p_scheduler, ugeth 921 drivers/net/ethernet/freescale/ucc_geth.c sizeof(*ugeth->p_scheduler)); ugeth 923 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_tx_fw_statistics_pram) { ugeth 926 drivers/net/ethernet/freescale/ucc_geth.c (u32)ugeth->p_tx_fw_statistics_pram); ugeth 927 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) ugeth->p_tx_fw_statistics_pram, ugeth 928 drivers/net/ethernet/freescale/ucc_geth.c sizeof(*ugeth->p_tx_fw_statistics_pram)); ugeth 930 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_fw_statistics_pram) { ugeth 933 drivers/net/ethernet/freescale/ucc_geth.c (u32)ugeth->p_rx_fw_statistics_pram); ugeth 934 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) ugeth->p_rx_fw_statistics_pram, ugeth 935 drivers/net/ethernet/freescale/ucc_geth.c sizeof(*ugeth->p_rx_fw_statistics_pram)); ugeth 937 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_irq_coalescing_tbl) { ugeth 940 drivers/net/ethernet/freescale/ucc_geth.c (u32)ugeth->p_rx_irq_coalescing_tbl); ugeth 941 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesRx; i++) { ugeth 944 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_irq_coalescing_tbl-> ugeth 947 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_irq_coalescing_tbl-> ugeth 949 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_irq_coalescing_tbl-> ugeth 953 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_irq_coalescing_tbl-> ugeth 955 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_irq_coalescing_tbl-> ugeth 960 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_bd_qs_tbl) { ugeth 962 drivers/net/ethernet/freescale/ucc_geth.c pr_info("Base address: 0x%08x\n", (u32)ugeth->p_rx_bd_qs_tbl); ugeth 963 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesRx; i++) { ugeth 966 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_bd_qs_tbl[i]); ugeth 968 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_bd_qs_tbl[i].bdbaseptr, ugeth 969 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_bd_qs_tbl[i].bdbaseptr)); ugeth 971 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_bd_qs_tbl[i].bdptr, ugeth 972 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_bd_qs_tbl[i].bdptr)); ugeth 974 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_bd_qs_tbl[i].externalbdbaseptr, ugeth 975 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_bd_qs_tbl[i]. ugeth 978 drivers/net/ethernet/freescale/ucc_geth.c (u32)&ugeth->p_rx_bd_qs_tbl[i].externalbdptr, ugeth 979 drivers/net/ethernet/freescale/ucc_geth.c in_be32(&ugeth->p_rx_bd_qs_tbl[i].externalbdptr)); ugeth 983 drivers/net/ethernet/freescale/ucc_geth.c (&ugeth->p_rx_bd_qs_tbl[i]. ugeth 987 drivers/net/ethernet/freescale/ucc_geth.c (&ugeth->p_rx_bd_qs_tbl[i]. ugeth 992 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_init_enet_param_shadow) { ugeth 996 drivers/net/ethernet/freescale/ucc_geth.c (u32) ugeth->p_init_enet_param_shadow); ugeth 997 drivers/net/ethernet/freescale/ucc_geth.c mem_disp((u8 *) ugeth->p_init_enet_param_shadow, ugeth 998 drivers/net/ethernet/freescale/ucc_geth.c sizeof(*ugeth->p_init_enet_param_shadow)); ugeth 1001 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->rxExtendedFiltering) { ugeth 1004 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->largestexternallookupkeysize == ugeth 1008 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->largestexternallookupkeysize == ugeth 1014 drivers/net/ethernet/freescale/ucc_geth.c dump_init_enet_entries(ugeth, ugeth 1015 drivers/net/ethernet/freescale/ucc_geth.c &(ugeth->p_init_enet_param_shadow-> ugeth 1019 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info->riscTx, 0); ugeth 1020 drivers/net/ethernet/freescale/ucc_geth.c dump_init_enet_entries(ugeth, ugeth 1021 drivers/net/ethernet/freescale/ucc_geth.c &(ugeth->p_init_enet_param_shadow-> ugeth 1024 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info->riscRx, 1); ugeth 1311 drivers/net/ethernet/freescale/ucc_geth.c static int adjust_enet_interface(struct ucc_geth_private *ugeth) ugeth 1322 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 1323 drivers/net/ethernet/freescale/ucc_geth.c ug_regs = ugeth->ug_regs; ugeth 1324 drivers/net/ethernet/freescale/ucc_geth.c uf_regs = ugeth->uccf->uf_regs; ugeth 1329 drivers/net/ethernet/freescale/ucc_geth.c if ((ugeth->max_speed == SPEED_10) || ugeth 1330 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->max_speed == SPEED_100)) ugeth 1332 drivers/net/ethernet/freescale/ucc_geth.c else if (ugeth->max_speed == SPEED_1000) ugeth 1341 drivers/net/ethernet/freescale/ucc_geth.c if ((ugeth->phy_interface == PHY_INTERFACE_MODE_RMII) || ugeth 1342 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII) || ugeth 1343 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_ID) || ugeth 1344 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID) || ugeth 1345 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) || ugeth 1346 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) { ugeth 1347 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->phy_interface != PHY_INTERFACE_MODE_RMII) ugeth 1349 drivers/net/ethernet/freescale/ucc_geth.c switch (ugeth->max_speed) { ugeth 1354 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->phy_interface != PHY_INTERFACE_MODE_RTBI) ugeth 1358 drivers/net/ethernet/freescale/ucc_geth.c if ((ugeth->phy_interface == PHY_INTERFACE_MODE_TBI) || ugeth 1359 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) { ugeth 1362 drivers/net/ethernet/freescale/ucc_geth.c if ((ugeth->phy_interface == PHY_INTERFACE_MODE_SGMII)) ugeth 1370 drivers/net/ethernet/freescale/ucc_geth.c if ((ugeth->phy_interface == PHY_INTERFACE_MODE_TBI) || ugeth 1371 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) { ugeth 1372 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_info *ug_info = ugeth->ug_info; ugeth 1393 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 1401 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_graceful_stop_tx(struct ucc_geth_private *ugeth) ugeth 1408 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1416 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); ugeth 1431 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_graceful_stop_rx(struct ucc_geth_private *ugeth) ugeth 1438 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1441 drivers/net/ethernet/freescale/ucc_geth.c temp = in_8(&ugeth->p_rx_glbl_pram->rxgstpack); ugeth 1443 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_rx_glbl_pram->rxgstpack, temp); ugeth 1450 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info. ugeth 1455 drivers/net/ethernet/freescale/ucc_geth.c temp = in_8(&ugeth->p_rx_glbl_pram->rxgstpack); ugeth 1463 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_restart_tx(struct ucc_geth_private *ugeth) ugeth 1468 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1471 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); ugeth 1478 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_restart_rx(struct ucc_geth_private *ugeth) ugeth 1483 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1486 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); ugeth 1494 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_enable(struct ucc_geth_private *ugeth, enum comm_dir mode) ugeth 1499 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1502 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { ugeth 1503 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 1514 drivers/net/ethernet/freescale/ucc_geth.c ugeth_restart_tx(ugeth); ugeth 1516 drivers/net/ethernet/freescale/ucc_geth.c ugeth_restart_rx(ugeth); ugeth 1524 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_disable(struct ucc_geth_private *ugeth, enum comm_dir mode) ugeth 1528 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1531 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { ugeth 1532 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 1539 drivers/net/ethernet/freescale/ucc_geth.c ugeth_graceful_stop_tx(ugeth); ugeth 1543 drivers/net/ethernet/freescale/ucc_geth.c ugeth_graceful_stop_rx(ugeth); ugeth 1545 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_disable(ugeth->uccf, mode); /* OK to do even if not enabled */ ugeth 1550 drivers/net/ethernet/freescale/ucc_geth.c static void ugeth_quiesce(struct ucc_geth_private *ugeth) ugeth 1553 drivers/net/ethernet/freescale/ucc_geth.c netif_tx_stop_all_queues(ugeth->ndev); ugeth 1556 drivers/net/ethernet/freescale/ucc_geth.c disable_irq(ugeth->ug_info->uf_info.irq); ugeth 1559 drivers/net/ethernet/freescale/ucc_geth.c napi_disable(&ugeth->napi); ugeth 1562 drivers/net/ethernet/freescale/ucc_geth.c static void ugeth_activate(struct ucc_geth_private *ugeth) ugeth 1564 drivers/net/ethernet/freescale/ucc_geth.c napi_enable(&ugeth->napi); ugeth 1565 drivers/net/ethernet/freescale/ucc_geth.c enable_irq(ugeth->ug_info->uf_info.irq); ugeth 1568 drivers/net/ethernet/freescale/ucc_geth.c netif_tx_wake_all_queues(ugeth->ndev); ugeth 1569 drivers/net/ethernet/freescale/ucc_geth.c __netdev_watchdog_up(ugeth->ndev); ugeth 1581 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 1584 drivers/net/ethernet/freescale/ucc_geth.c struct phy_device *phydev = ugeth->phydev; ugeth 1587 drivers/net/ethernet/freescale/ucc_geth.c ug_regs = ugeth->ug_regs; ugeth 1588 drivers/net/ethernet/freescale/ucc_geth.c uf_regs = ugeth->uccf->uf_regs; ugeth 1595 drivers/net/ethernet/freescale/ucc_geth.c if (phydev->duplex != ugeth->oldduplex) { ugeth 1601 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldduplex = phydev->duplex; ugeth 1604 drivers/net/ethernet/freescale/ucc_geth.c if (phydev->speed != ugeth->oldspeed) { ugeth 1618 drivers/net/ethernet/freescale/ucc_geth.c if ((ugeth->phy_interface == PHY_INTERFACE_MODE_RMII) || ugeth 1619 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII) || ugeth 1620 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_ID) || ugeth 1621 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID) || ugeth 1622 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) || ugeth 1623 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) { ugeth 1631 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_link(ugeth)) ugeth 1637 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldspeed = phydev->speed; ugeth 1640 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->oldlink) { ugeth 1642 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldlink = 1; ugeth 1653 drivers/net/ethernet/freescale/ucc_geth.c ugeth_quiesce(ugeth); ugeth 1654 drivers/net/ethernet/freescale/ucc_geth.c ugeth_disable(ugeth, COMM_DIR_RX_AND_TX); ugeth 1659 drivers/net/ethernet/freescale/ucc_geth.c ugeth_enable(ugeth, COMM_DIR_RX_AND_TX); ugeth 1660 drivers/net/ethernet/freescale/ucc_geth.c ugeth_activate(ugeth); ugeth 1662 drivers/net/ethernet/freescale/ucc_geth.c } else if (ugeth->oldlink) { ugeth 1664 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldlink = 0; ugeth 1665 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldspeed = 0; ugeth 1666 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldduplex = -1; ugeth 1669 drivers/net/ethernet/freescale/ucc_geth.c if (new_state && netif_msg_link(ugeth)) ugeth 1683 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 1684 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_info *ug_info = ugeth->ug_info; ugeth 1750 drivers/net/ethernet/freescale/ucc_geth.c static void ugeth_dump_regs(struct ucc_geth_private *ugeth) ugeth 1753 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_dump_regs(ugeth->uccf); ugeth 1754 drivers/net/ethernet/freescale/ucc_geth.c dump_regs(ugeth); ugeth 1755 drivers/net/ethernet/freescale/ucc_geth.c dump_bds(ugeth); ugeth 1760 drivers/net/ethernet/freescale/ucc_geth.c ugeth, ugeth 1773 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 1777 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_glbl_pram->addressfiltering; ugeth 1782 drivers/net/ethernet/freescale/ucc_geth.c p_lh = &ugeth->group_hash_q; ugeth 1783 drivers/net/ethernet/freescale/ucc_geth.c p_counter = &(ugeth->numGroupAddrInHash); ugeth 1787 drivers/net/ethernet/freescale/ucc_geth.c p_lh = &ugeth->ind_hash_q; ugeth 1788 drivers/net/ethernet/freescale/ucc_geth.c p_counter = &(ugeth->numIndAddrInHash); ugeth 1798 drivers/net/ethernet/freescale/ucc_geth.c ugeth_disable(ugeth, comm_dir); ugeth 1816 drivers/net/ethernet/freescale/ucc_geth.c ugeth_enable(ugeth, comm_dir); ugeth 1821 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_82xx_filtering_clear_addr_in_paddr(struct ucc_geth_private *ugeth, ugeth 1824 drivers/net/ethernet/freescale/ucc_geth.c ugeth->indAddrRegUsed[paddr_num] = 0; /* mark this paddr as not used */ ugeth 1825 drivers/net/ethernet/freescale/ucc_geth.c return hw_clear_addr_in_paddr(ugeth, paddr_num);/* clear in hardware */ ugeth 1828 drivers/net/ethernet/freescale/ucc_geth.c static void ucc_geth_free_rx(struct ucc_geth_private *ugeth) ugeth 1836 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 1839 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesRx; i++) { ugeth 1840 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_bd_ring[i]) { ugeth 1842 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_rx_bd_ring[i]; ugeth 1843 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ugeth->ug_info->bdRingLenRx[i]; j++) { ugeth 1844 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_skbuff[i][j]) { ugeth 1845 drivers/net/ethernet/freescale/ucc_geth.c dma_unmap_single(ugeth->dev, ugeth 1847 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info-> ugeth 1852 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[i][j]); ugeth 1853 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[i][j] = NULL; ugeth 1858 drivers/net/ethernet/freescale/ucc_geth.c kfree(ugeth->rx_skbuff[i]); ugeth 1860 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->uf_info.bd_mem_part == ugeth 1862 drivers/net/ethernet/freescale/ucc_geth.c kfree((void *)ugeth->rx_bd_ring_offset[i]); ugeth 1863 drivers/net/ethernet/freescale/ucc_geth.c else if (ugeth->ug_info->uf_info.bd_mem_part == ugeth 1865 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->rx_bd_ring_offset[i]); ugeth 1866 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_ring[i] = NULL; ugeth 1872 drivers/net/ethernet/freescale/ucc_geth.c static void ucc_geth_free_tx(struct ucc_geth_private *ugeth) ugeth 1879 drivers/net/ethernet/freescale/ucc_geth.c netdev_reset_queue(ugeth->ndev); ugeth 1881 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 1884 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->numQueuesTx; i++) { ugeth 1885 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_tx_bd_ring[i]; ugeth 1888 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) { ugeth 1889 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->tx_skbuff[i][j]) { ugeth 1890 drivers/net/ethernet/freescale/ucc_geth.c dma_unmap_single(ugeth->dev, ugeth 1895 drivers/net/ethernet/freescale/ucc_geth.c dev_kfree_skb_any(ugeth->tx_skbuff[i][j]); ugeth 1896 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[i][j] = NULL; ugeth 1900 drivers/net/ethernet/freescale/ucc_geth.c kfree(ugeth->tx_skbuff[i]); ugeth 1902 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_tx_bd_ring[i]) { ugeth 1903 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->uf_info.bd_mem_part == ugeth 1905 drivers/net/ethernet/freescale/ucc_geth.c kfree((void *)ugeth->tx_bd_ring_offset[i]); ugeth 1906 drivers/net/ethernet/freescale/ucc_geth.c else if (ugeth->ug_info->uf_info.bd_mem_part == ugeth 1908 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->tx_bd_ring_offset[i]); ugeth 1909 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_bd_ring[i] = NULL; ugeth 1915 drivers/net/ethernet/freescale/ucc_geth.c static void ucc_geth_memclean(struct ucc_geth_private *ugeth) ugeth 1917 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth) ugeth 1920 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->uccf) { ugeth 1921 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_free(ugeth->uccf); ugeth 1922 drivers/net/ethernet/freescale/ucc_geth.c ugeth->uccf = NULL; ugeth 1925 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_thread_data_tx) { ugeth 1926 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->thread_dat_tx_offset); ugeth 1927 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_thread_data_tx = NULL; ugeth 1929 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_thread_data_rx) { ugeth 1930 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->thread_dat_rx_offset); ugeth 1931 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_thread_data_rx = NULL; ugeth 1933 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_exf_glbl_param) { ugeth 1934 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->exf_glbl_param_offset); ugeth 1935 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_exf_glbl_param = NULL; ugeth 1937 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_glbl_pram) { ugeth 1938 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->rx_glbl_pram_offset); ugeth 1939 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_glbl_pram = NULL; ugeth 1941 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_tx_glbl_pram) { ugeth 1942 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->tx_glbl_pram_offset); ugeth 1943 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram = NULL; ugeth 1945 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_send_q_mem_reg) { ugeth 1946 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->send_q_mem_reg_offset); ugeth 1947 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_send_q_mem_reg = NULL; ugeth 1949 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_scheduler) { ugeth 1950 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->scheduler_offset); ugeth 1951 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_scheduler = NULL; ugeth 1953 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_tx_fw_statistics_pram) { ugeth 1954 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->tx_fw_statistics_pram_offset); ugeth 1955 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_fw_statistics_pram = NULL; ugeth 1957 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_fw_statistics_pram) { ugeth 1958 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->rx_fw_statistics_pram_offset); ugeth 1959 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_fw_statistics_pram = NULL; ugeth 1961 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_irq_coalescing_tbl) { ugeth 1962 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->rx_irq_coalescing_tbl_offset); ugeth 1963 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_irq_coalescing_tbl = NULL; ugeth 1965 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_rx_bd_qs_tbl) { ugeth 1966 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_free(ugeth->rx_bd_qs_tbl_offset); ugeth 1967 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_qs_tbl = NULL; ugeth 1969 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_init_enet_param_shadow) { ugeth 1970 drivers/net/ethernet/freescale/ucc_geth.c return_init_enet_entries(ugeth, ugeth 1971 drivers/net/ethernet/freescale/ucc_geth.c &(ugeth->p_init_enet_param_shadow-> ugeth 1974 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info->riscRx, 1); ugeth 1975 drivers/net/ethernet/freescale/ucc_geth.c return_init_enet_entries(ugeth, ugeth 1976 drivers/net/ethernet/freescale/ucc_geth.c &(ugeth->p_init_enet_param_shadow-> ugeth 1979 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info->riscTx, 0); ugeth 1980 drivers/net/ethernet/freescale/ucc_geth.c kfree(ugeth->p_init_enet_param_shadow); ugeth 1981 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow = NULL; ugeth 1983 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_free_tx(ugeth); ugeth 1984 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_free_rx(ugeth); ugeth 1985 drivers/net/ethernet/freescale/ucc_geth.c while (!list_empty(&ugeth->group_hash_q)) ugeth 1987 drivers/net/ethernet/freescale/ucc_geth.c (dequeue(&ugeth->group_hash_q))); ugeth 1988 drivers/net/ethernet/freescale/ucc_geth.c while (!list_empty(&ugeth->ind_hash_q)) ugeth 1990 drivers/net/ethernet/freescale/ucc_geth.c (dequeue(&ugeth->ind_hash_q))); ugeth 1991 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_regs) { ugeth 1992 drivers/net/ethernet/freescale/ucc_geth.c iounmap(ugeth->ug_regs); ugeth 1993 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_regs = NULL; ugeth 1999 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth; ugeth 2004 drivers/net/ethernet/freescale/ucc_geth.c ugeth = netdev_priv(dev); ugeth 2006 drivers/net/ethernet/freescale/ucc_geth.c uf_regs = ugeth->uccf->uf_regs; ugeth 2014 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_82xx_address_filtering_pram __iomem *) ugeth-> ugeth 2033 drivers/net/ethernet/freescale/ucc_geth.c hw_add_addr_in_hash(ugeth, ha->addr); ugeth 2039 drivers/net/ethernet/freescale/ucc_geth.c static void ucc_geth_stop(struct ucc_geth_private *ugeth) ugeth 2041 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth __iomem *ug_regs = ugeth->ug_regs; ugeth 2042 drivers/net/ethernet/freescale/ucc_geth.c struct phy_device *phydev = ugeth->phydev; ugeth 2054 drivers/net/ethernet/freescale/ucc_geth.c ugeth_disable(ugeth, COMM_DIR_RX_AND_TX); ugeth 2057 drivers/net/ethernet/freescale/ucc_geth.c out_be32(ugeth->uccf->p_uccm, 0x00000000); ugeth 2060 drivers/net/ethernet/freescale/ucc_geth.c out_be32(ugeth->uccf->p_ucce, 0xffffffff); ugeth 2065 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_memclean(ugeth); ugeth 2068 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_struct_init(struct ucc_geth_private *ugeth) ugeth 2074 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 2079 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2089 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2098 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2107 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2114 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2121 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2129 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2138 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2145 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2153 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2166 drivers/net/ethernet/freescale/ucc_geth.c if (ucc_fast_init(uf_info, &ugeth->uccf)) { ugeth 2167 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2180 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_regs = ioremap(uf_info->regs, sizeof(*ugeth->ug_regs)); ugeth 2181 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->ug_regs) { ugeth 2182 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 2190 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_alloc_tx(struct ucc_geth_private *ugeth) ugeth 2198 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 2216 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_bd_ring_offset[j] = ugeth 2219 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->tx_bd_ring_offset[j] != 0) ugeth 2220 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_bd_ring[j] = ugeth 2221 drivers/net/ethernet/freescale/ucc_geth.c (u8 __iomem *)((ugeth->tx_bd_ring_offset[j] + ugeth 2224 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_bd_ring_offset[j] = ugeth 2227 drivers/net/ethernet/freescale/ucc_geth.c if (!IS_ERR_VALUE(ugeth->tx_bd_ring_offset[j])) ugeth 2228 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_bd_ring[j] = ugeth 2229 drivers/net/ethernet/freescale/ucc_geth.c (u8 __iomem *) qe_muram_addr(ugeth-> ugeth 2232 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->p_tx_bd_ring[j]) { ugeth 2233 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2238 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)(ugeth->p_tx_bd_ring[j] + ugeth 2246 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[j] = ugeth 2247 drivers/net/ethernet/freescale/ucc_geth.c kmalloc_array(ugeth->ug_info->bdRingLenTx[j], ugeth 2250 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->tx_skbuff[j] == NULL) { ugeth 2251 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2256 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->bdRingLenTx[j]; i++) ugeth 2257 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[j][i] = NULL; ugeth 2259 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_curtx[j] = ugeth->skb_dirtytx[j] = 0; ugeth 2260 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->confBd[j] = ugeth->txBd[j] = ugeth->p_tx_bd_ring[j]; ugeth 2276 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_alloc_rx(struct ucc_geth_private *ugeth) ugeth 2284 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 2294 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_bd_ring_offset[j] = ugeth 2296 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_bd_ring_offset[j] != 0) ugeth 2297 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_ring[j] = ugeth 2298 drivers/net/ethernet/freescale/ucc_geth.c (u8 __iomem *)((ugeth->rx_bd_ring_offset[j] + ugeth 2301 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_bd_ring_offset[j] = ugeth 2304 drivers/net/ethernet/freescale/ucc_geth.c if (!IS_ERR_VALUE(ugeth->rx_bd_ring_offset[j])) ugeth 2305 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_ring[j] = ugeth 2306 drivers/net/ethernet/freescale/ucc_geth.c (u8 __iomem *) qe_muram_addr(ugeth-> ugeth 2309 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->p_rx_bd_ring[j]) { ugeth 2310 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2319 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[j] = ugeth 2320 drivers/net/ethernet/freescale/ucc_geth.c kmalloc_array(ugeth->ug_info->bdRingLenRx[j], ugeth 2323 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_skbuff[j] == NULL) { ugeth 2324 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2329 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->bdRingLenRx[j]; i++) ugeth 2330 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[j][i] = NULL; ugeth 2332 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_currx[j] = 0; ugeth 2333 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->rxBd[j] = ugeth->p_rx_bd_ring[j]; ugeth 2349 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_startup(struct ucc_geth_private *ugeth) ugeth 2369 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 2370 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 2373 drivers/net/ethernet/freescale/ucc_geth.c ug_regs = ugeth->ug_regs; ugeth 2392 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2414 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2420 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_non_dynamic_extended_features = ug_info->ipCheckSumCheck || ugeth 2425 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_extended_features = ugeth->rx_non_dynamic_extended_features || ugeth 2462 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2478 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2498 drivers/net/ethernet/freescale/ucc_geth.c ret_val = ucc_geth_alloc_tx(ugeth); ugeth 2502 drivers/net/ethernet/freescale/ucc_geth.c ret_val = ucc_geth_alloc_rx(ugeth); ugeth 2511 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_glbl_pram_offset = ugeth 2514 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->tx_glbl_pram_offset)) { ugeth 2515 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2519 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_glbl_pram = ugeth 2520 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_tx_global_pram __iomem *) qe_muram_addr(ugeth-> ugeth 2523 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)ugeth->p_tx_glbl_pram, 0, sizeof(struct ucc_geth_tx_global_pram)); ugeth 2529 drivers/net/ethernet/freescale/ucc_geth.c ugeth->thread_dat_tx_offset = ugeth 2534 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->thread_dat_tx_offset)) { ugeth 2535 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2540 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_thread_data_tx = ugeth 2541 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_thread_data_tx __iomem *) qe_muram_addr(ugeth-> ugeth 2543 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_tx_glbl_pram->tqptr, ugeth->thread_dat_tx_offset); ugeth 2547 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_tx_glbl_pram->vtagtable[i], ugeth 2552 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_tx_glbl_pram->iphoffset[i], ugeth 2557 drivers/net/ethernet/freescale/ucc_geth.c ugeth->send_q_mem_reg_offset = ugeth 2561 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->send_q_mem_reg_offset)) { ugeth 2562 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2567 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_send_q_mem_reg = ugeth 2568 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_send_queue_mem_region __iomem *) qe_muram_addr(ugeth-> ugeth 2570 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_tx_glbl_pram->sqptr, ugeth->send_q_mem_reg_offset); ugeth 2576 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_bd_ring[i] + (ug_info->bdRingLenTx[i] - ugeth 2578 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->uf_info.bd_mem_part == MEM_PART_SYSTEM) { ugeth 2579 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_send_q_mem_reg->sqqd[i].bd_ring_base, ugeth 2580 drivers/net/ethernet/freescale/ucc_geth.c (u32) virt_to_phys(ugeth->p_tx_bd_ring[i])); ugeth 2581 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_send_q_mem_reg->sqqd[i]. ugeth 2584 drivers/net/ethernet/freescale/ucc_geth.c } else if (ugeth->ug_info->uf_info.bd_mem_part == ugeth 2586 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_send_q_mem_reg->sqqd[i].bd_ring_base, ugeth 2587 drivers/net/ethernet/freescale/ucc_geth.c (u32)qe_muram_dma(ugeth->p_tx_bd_ring[i])); ugeth 2588 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_send_q_mem_reg->sqqd[i]. ugeth 2598 drivers/net/ethernet/freescale/ucc_geth.c ugeth->scheduler_offset = ugeth 2601 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->scheduler_offset)) { ugeth 2602 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2607 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_scheduler = ugeth 2608 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_scheduler __iomem *) qe_muram_addr(ugeth-> ugeth 2610 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_tx_glbl_pram->schedulerbasepointer, ugeth 2611 drivers/net/ethernet/freescale/ucc_geth.c ugeth->scheduler_offset); ugeth 2613 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)ugeth->p_scheduler, 0, sizeof(struct ucc_geth_scheduler)); ugeth 2616 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_scheduler->mblinterval, ugeth 2618 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_scheduler->nortsrbytetime, ugeth 2620 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_scheduler->fracsiz, ug_info->fracsiz); ugeth 2621 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_scheduler->strictpriorityq, ugeth 2623 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_scheduler->txasap, ug_info->txasap); ugeth 2624 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_scheduler->extrabw, ug_info->extrabw); ugeth 2626 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_scheduler->weightfactor[i], ugeth 2630 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[0] = &(ugeth->p_scheduler->cpucount0); ugeth 2631 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[1] = &(ugeth->p_scheduler->cpucount1); ugeth 2632 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[2] = &(ugeth->p_scheduler->cpucount2); ugeth 2633 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[3] = &(ugeth->p_scheduler->cpucount3); ugeth 2634 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[4] = &(ugeth->p_scheduler->cpucount4); ugeth 2635 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[5] = &(ugeth->p_scheduler->cpucount5); ugeth 2636 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[6] = &(ugeth->p_scheduler->cpucount6); ugeth 2637 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_cpucount[7] = &(ugeth->p_scheduler->cpucount7); ugeth 2644 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_fw_statistics_pram_offset = ugeth 2648 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->tx_fw_statistics_pram_offset)) { ugeth 2649 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2653 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_fw_statistics_pram = ugeth 2655 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_addr(ugeth->tx_fw_statistics_pram_offset); ugeth 2657 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)ugeth->p_tx_fw_statistics_pram, ugeth 2669 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_tx_glbl_pram->temoder, temoder); ugeth 2671 drivers/net/ethernet/freescale/ucc_geth.c test = in_be16(&ugeth->p_tx_glbl_pram->temoder); ugeth 2678 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_tx_glbl_pram->tstate, ((u32) function_code) << 24); ugeth 2682 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_glbl_pram_offset = ugeth 2685 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->rx_glbl_pram_offset)) { ugeth 2686 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2690 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_glbl_pram = ugeth 2691 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_rx_global_pram __iomem *) qe_muram_addr(ugeth-> ugeth 2694 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)ugeth->p_rx_glbl_pram, 0, sizeof(struct ucc_geth_rx_global_pram)); ugeth 2700 drivers/net/ethernet/freescale/ucc_geth.c ugeth->thread_dat_rx_offset = ugeth 2704 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->thread_dat_rx_offset)) { ugeth 2705 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2710 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_thread_data_rx = ugeth 2711 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_thread_data_rx __iomem *) qe_muram_addr(ugeth-> ugeth 2713 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->rqptr, ugeth->thread_dat_rx_offset); ugeth 2716 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_rx_glbl_pram->typeorlen, ug_info->typeorlen); ugeth 2721 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_fw_statistics_pram_offset = ugeth 2725 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->rx_fw_statistics_pram_offset)) { ugeth 2726 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2730 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_fw_statistics_pram = ugeth 2732 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_addr(ugeth->rx_fw_statistics_pram_offset); ugeth 2734 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)ugeth->p_rx_fw_statistics_pram, 0, ugeth 2741 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_irq_coalescing_tbl_offset = ugeth 2745 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->rx_irq_coalescing_tbl_offset)) { ugeth 2746 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2751 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_irq_coalescing_tbl = ugeth 2753 drivers/net/ethernet/freescale/ucc_geth.c qe_muram_addr(ugeth->rx_irq_coalescing_tbl_offset); ugeth 2754 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->intcoalescingptr, ugeth 2755 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_irq_coalescing_tbl_offset); ugeth 2759 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_irq_coalescing_tbl->coalescingentry[i]. ugeth 2762 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_irq_coalescing_tbl->coalescingentry[i]. ugeth 2769 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_rx_glbl_pram->mrblr); ugeth 2771 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_rx_glbl_pram->mflr, ug_info->maxFrameLength); ugeth 2774 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_rx_glbl_pram->minflr, ugeth 2775 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_rx_glbl_pram->mrblr); ugeth 2777 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_rx_glbl_pram->maxd1, ug_info->maxD1Length); ugeth 2779 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_rx_glbl_pram->maxd2, ug_info->maxD2Length); ugeth 2785 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->l2qt, l2qt); ugeth 2792 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->l3qt[j/8], l3qt); ugeth 2796 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_rx_glbl_pram->vlantype, ug_info->vlantype); ugeth 2799 drivers/net/ethernet/freescale/ucc_geth.c out_be16(&ugeth->p_rx_glbl_pram->vlantci, ug_info->vlantci); ugeth 2802 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->ecamptr, ug_info->ecamptr); ugeth 2806 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_bd_qs_tbl_offset = ugeth 2811 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->rx_bd_qs_tbl_offset)) { ugeth 2812 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2817 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_qs_tbl = ugeth 2818 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_rx_bd_queues_entry __iomem *) qe_muram_addr(ugeth-> ugeth 2820 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->rbdqptr, ugeth->rx_bd_qs_tbl_offset); ugeth 2822 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)ugeth->p_rx_bd_qs_tbl, ugeth 2830 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->ug_info->uf_info.bd_mem_part == MEM_PART_SYSTEM) { ugeth 2831 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_bd_qs_tbl[i].externalbdbaseptr, ugeth 2832 drivers/net/ethernet/freescale/ucc_geth.c (u32) virt_to_phys(ugeth->p_rx_bd_ring[i])); ugeth 2833 drivers/net/ethernet/freescale/ucc_geth.c } else if (ugeth->ug_info->uf_info.bd_mem_part == ugeth 2835 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_bd_qs_tbl[i].externalbdbaseptr, ugeth 2836 drivers/net/ethernet/freescale/ucc_geth.c (u32)qe_muram_dma(ugeth->p_rx_bd_ring[i])); ugeth 2844 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_extended_features) ugeth 2863 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->remoder, remoder); ugeth 2873 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_tx_glbl_pram->txrmonbaseptr, ugeth 2874 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_fw_statistics_pram_offset, ugeth 2875 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_rx_glbl_pram->rxrmonbaseptr, ugeth 2876 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_fw_statistics_pram_offset, ugeth 2877 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_tx_glbl_pram->temoder, ugeth 2878 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->p_rx_glbl_pram->remoder); ugeth 2881 drivers/net/ethernet/freescale/ucc_geth.c out_8(&ugeth->p_rx_glbl_pram->rstate, function_code); ugeth 2886 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2893 drivers/net/ethernet/freescale/ucc_geth.c ugeth->exf_glbl_param_offset = ugeth 2896 drivers/net/ethernet/freescale/ucc_geth.c if (IS_ERR_VALUE(ugeth->exf_glbl_param_offset)) { ugeth 2897 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2902 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_exf_glbl_param = ugeth 2903 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_exf_global_pram __iomem *) qe_muram_addr(ugeth-> ugeth 2905 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->exfGlobalParam, ugeth 2906 drivers/net/ethernet/freescale/ucc_geth.c ugeth->exf_glbl_param_offset); ugeth 2907 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_exf_glbl_param->l2pcdptr, ugeth 2915 drivers/net/ethernet/freescale/ucc_geth.c ugeth_82xx_filtering_clear_addr_in_paddr(ugeth, (u8) j); ugeth 2918 drivers/net/ethernet/freescale/ucc_geth.c (struct ucc_geth_82xx_address_filtering_pram __iomem *) ugeth-> ugeth 2921 drivers/net/ethernet/freescale/ucc_geth.c ugeth_82xx_filtering_clear_all_addr_in_hash(ugeth, ugeth 2923 drivers/net/ethernet/freescale/ucc_geth.c ugeth_82xx_filtering_clear_all_addr_in_hash(ugeth, ugeth 2940 drivers/net/ethernet/freescale/ucc_geth.c if (!(ugeth->p_init_enet_param_shadow = ugeth 2942 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2947 drivers/net/ethernet/freescale/ucc_geth.c memset((char *)ugeth->p_init_enet_param_shadow, ugeth 2952 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit1 = ugeth 2954 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit2 = ugeth 2956 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit3 = ugeth 2958 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit4 = ugeth 2960 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit5 = ugeth 2962 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->rgftgfrxglobal |= ugeth 2964 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->rgftgfrxglobal |= ugeth 2967 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->rgftgfrxglobal |= ugeth 2968 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_glbl_pram_offset | ug_info->riscRx; ugeth 2975 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 2979 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->largestexternallookupkeysize = ugeth 2994 drivers/net/ethernet/freescale/ucc_geth.c if ((ret_val = fill_init_enet_entries(ugeth, &(ugeth-> ugeth 3000 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 3005 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->txglobal = ugeth 3006 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_glbl_pram_offset | ug_info->riscTx; ugeth 3008 drivers/net/ethernet/freescale/ucc_geth.c fill_init_enet_entries(ugeth, ugeth 3009 drivers/net/ethernet/freescale/ucc_geth.c &(ugeth->p_init_enet_param_shadow-> ugeth 3014 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 3021 drivers/net/ethernet/freescale/ucc_geth.c if ((ret_val = rx_bd_buffer_set(ugeth, (u8) i)) != 0) { ugeth 3022 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 3031 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_ifup(ugeth)) ugeth 3040 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit1); ugeth 3042 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit2); ugeth 3044 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit3); ugeth 3046 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit4); ugeth 3048 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->resinit5); ugeth 3050 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->largestexternallookupkeysize); ugeth 3052 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->rgftgfrxglobal); ugeth 3055 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->rxthread[i]); ugeth 3057 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->txglobal); ugeth 3060 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_init_enet_param_shadow->txthread[i]); ugeth 3064 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); ugeth 3079 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3091 drivers/net/ethernet/freescale/ucc_geth.c spin_lock_irqsave(&ugeth->lock, flags); ugeth 3096 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->txBd[txQ]; ugeth 3099 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[txQ][ugeth->skb_curtx[txQ]] = skb; ugeth 3102 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_curtx[txQ] = ugeth 3103 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->skb_curtx[txQ] + ugeth 3104 drivers/net/ethernet/freescale/ucc_geth.c 1) & TX_RING_MOD_MASK(ugeth->ug_info->bdRingLenTx[txQ]); ugeth 3108 drivers/net/ethernet/freescale/ucc_geth.c dma_map_single(ugeth->dev, skb->data, ugeth 3122 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_tx_bd_ring[txQ]; ugeth 3126 drivers/net/ethernet/freescale/ucc_geth.c if (bd == ugeth->confBd[txQ]) { ugeth 3131 drivers/net/ethernet/freescale/ucc_geth.c ugeth->txBd[txQ] = bd; ugeth 3135 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->p_scheduler) { ugeth 3136 drivers/net/ethernet/freescale/ucc_geth.c ugeth->cpucount[txQ]++; ugeth 3141 drivers/net/ethernet/freescale/ucc_geth.c out_be16(ugeth->p_cpucount[txQ], ugeth->cpucount[txQ]); ugeth 3145 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 3148 drivers/net/ethernet/freescale/ucc_geth.c spin_unlock_irqrestore(&ugeth->lock, flags); ugeth 3153 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit) ugeth 3164 drivers/net/ethernet/freescale/ucc_geth.c dev = ugeth->ndev; ugeth 3167 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->rxBd[rxQ]; ugeth 3175 drivers/net/ethernet/freescale/ucc_geth.c skb = ugeth->rx_skbuff[rxQ][ugeth->skb_currx[rxQ]]; ugeth 3182 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_rx_err(ugeth)) ugeth 3187 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[rxQ][ugeth->skb_currx[rxQ]] = NULL; ugeth 3197 drivers/net/ethernet/freescale/ucc_geth.c skb->protocol = eth_type_trans(skb, ugeth->ndev); ugeth 3204 drivers/net/ethernet/freescale/ucc_geth.c skb = get_new_skb(ugeth, bd); ugeth 3206 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_rx_err(ugeth)) ugeth 3212 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[rxQ][ugeth->skb_currx[rxQ]] = skb; ugeth 3215 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_currx[rxQ] = ugeth 3216 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->skb_currx[rxQ] + ugeth 3217 drivers/net/ethernet/freescale/ucc_geth.c 1) & RX_RING_MOD_MASK(ugeth->ug_info->bdRingLenRx[rxQ]); ugeth 3220 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_rx_bd_ring[rxQ]; ugeth 3227 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rxBd[rxQ] = bd; ugeth 3234 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3240 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->confBd[txQ]; ugeth 3251 drivers/net/ethernet/freescale/ucc_geth.c skb = ugeth->tx_skbuff[txQ][ugeth->skb_dirtytx[txQ]]; ugeth 3260 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[txQ][ugeth->skb_dirtytx[txQ]] = NULL; ugeth 3261 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_dirtytx[txQ] = ugeth 3262 drivers/net/ethernet/freescale/ucc_geth.c (ugeth->skb_dirtytx[txQ] + ugeth 3263 drivers/net/ethernet/freescale/ucc_geth.c 1) & TX_RING_MOD_MASK(ugeth->ug_info->bdRingLenTx[txQ]); ugeth 3273 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->p_tx_bd_ring[txQ]; ugeth 3276 drivers/net/ethernet/freescale/ucc_geth.c ugeth->confBd[txQ] = bd; ugeth 3283 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = container_of(napi, struct ucc_geth_private, napi); ugeth 3287 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 3290 drivers/net/ethernet/freescale/ucc_geth.c spin_lock(&ugeth->lock); ugeth 3292 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_tx(ugeth->ndev, i); ugeth 3293 drivers/net/ethernet/freescale/ucc_geth.c spin_unlock(&ugeth->lock); ugeth 3297 drivers/net/ethernet/freescale/ucc_geth.c howmany += ucc_geth_rx(ugeth, i, budget - howmany); ugeth 3301 drivers/net/ethernet/freescale/ucc_geth.c setbits32(ugeth->uccf->p_uccm, UCCE_RX_EVENTS | UCCE_TX_EVENTS); ugeth 3310 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3318 drivers/net/ethernet/freescale/ucc_geth.c uccf = ugeth->uccf; ugeth 3319 drivers/net/ethernet/freescale/ucc_geth.c ug_info = ugeth->ug_info; ugeth 3329 drivers/net/ethernet/freescale/ucc_geth.c if (napi_schedule_prep(&ugeth->napi)) { ugeth 3332 drivers/net/ethernet/freescale/ucc_geth.c __napi_schedule(&ugeth->napi); ugeth 3355 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3356 drivers/net/ethernet/freescale/ucc_geth.c int irq = ugeth->ug_info->uf_info.irq; ugeth 3366 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3381 drivers/net/ethernet/freescale/ucc_geth.c spin_lock_irq(&ugeth->lock); ugeth 3388 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->ug_regs->macstnaddr1, ugeth 3389 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->ug_regs->macstnaddr2); ugeth 3390 drivers/net/ethernet/freescale/ucc_geth.c spin_unlock_irq(&ugeth->lock); ugeth 3395 drivers/net/ethernet/freescale/ucc_geth.c static int ucc_geth_init_mac(struct ucc_geth_private *ugeth) ugeth 3397 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *dev = ugeth->ndev; ugeth 3400 drivers/net/ethernet/freescale/ucc_geth.c err = ucc_struct_init(ugeth); ugeth 3402 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot configure internal struct, aborting\n"); ugeth 3406 drivers/net/ethernet/freescale/ucc_geth.c err = ucc_geth_startup(ugeth); ugeth 3408 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot configure net device, aborting\n"); ugeth 3412 drivers/net/ethernet/freescale/ucc_geth.c err = adjust_enet_interface(ugeth); ugeth 3414 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot configure net device, aborting\n"); ugeth 3426 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->ug_regs->macstnaddr1, ugeth 3427 drivers/net/ethernet/freescale/ucc_geth.c &ugeth->ug_regs->macstnaddr2); ugeth 3429 drivers/net/ethernet/freescale/ucc_geth.c err = ugeth_enable(ugeth, COMM_DIR_RX_AND_TX); ugeth 3431 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot enable net device, aborting\n"); ugeth 3437 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_stop(ugeth); ugeth 3445 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3452 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, ugeth 3459 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot initialize PHY, aborting\n"); ugeth 3463 drivers/net/ethernet/freescale/ucc_geth.c err = ucc_geth_init_mac(ugeth); ugeth 3465 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot initialize MAC, aborting\n"); ugeth 3469 drivers/net/ethernet/freescale/ucc_geth.c err = request_irq(ugeth->ug_info->uf_info.irq, ucc_geth_irq_handler, ugeth 3472 drivers/net/ethernet/freescale/ucc_geth.c netif_err(ugeth, ifup, dev, "Cannot get IRQ for net device, aborting\n"); ugeth 3476 drivers/net/ethernet/freescale/ucc_geth.c phy_start(ugeth->phydev); ugeth 3477 drivers/net/ethernet/freescale/ucc_geth.c napi_enable(&ugeth->napi); ugeth 3482 drivers/net/ethernet/freescale/ucc_geth.c qe_alive_during_sleep() || ugeth->phydev->irq); ugeth 3483 drivers/net/ethernet/freescale/ucc_geth.c device_set_wakeup_enable(&dev->dev, ugeth->wol_en); ugeth 3488 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_stop(ugeth); ugeth 3495 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3499 drivers/net/ethernet/freescale/ucc_geth.c napi_disable(&ugeth->napi); ugeth 3501 drivers/net/ethernet/freescale/ucc_geth.c cancel_work_sync(&ugeth->timeout_work); ugeth 3502 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_stop(ugeth); ugeth 3503 drivers/net/ethernet/freescale/ucc_geth.c phy_disconnect(ugeth->phydev); ugeth 3504 drivers/net/ethernet/freescale/ucc_geth.c ugeth->phydev = NULL; ugeth 3506 drivers/net/ethernet/freescale/ucc_geth.c free_irq(ugeth->ug_info->uf_info.irq, ugeth->ndev); ugeth 3517 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth; ugeth 3520 drivers/net/ethernet/freescale/ucc_geth.c ugeth = container_of(work, struct ucc_geth_private, timeout_work); ugeth 3521 drivers/net/ethernet/freescale/ucc_geth.c dev = ugeth->ndev; ugeth 3527 drivers/net/ethernet/freescale/ucc_geth.c ugeth_dump_regs(ugeth); ugeth 3535 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_stop(ugeth); ugeth 3536 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_init_mac(ugeth); ugeth 3538 drivers/net/ethernet/freescale/ucc_geth.c phy_start(ugeth->phydev); ugeth 3551 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3553 drivers/net/ethernet/freescale/ucc_geth.c schedule_work(&ugeth->timeout_work); ugeth 3562 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(ndev); ugeth 3568 drivers/net/ethernet/freescale/ucc_geth.c napi_disable(&ugeth->napi); ugeth 3574 drivers/net/ethernet/freescale/ucc_geth.c ugeth_disable(ugeth, COMM_DIR_RX_AND_TX); ugeth 3576 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->wol_en & WAKE_MAGIC) { ugeth 3577 drivers/net/ethernet/freescale/ucc_geth.c setbits32(ugeth->uccf->p_uccm, UCC_GETH_UCCE_MPD); ugeth 3578 drivers/net/ethernet/freescale/ucc_geth.c setbits32(&ugeth->ug_regs->maccfg2, MACCFG2_MPE); ugeth 3579 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_enable(ugeth->uccf, COMM_DIR_RX_AND_TX); ugeth 3580 drivers/net/ethernet/freescale/ucc_geth.c } else if (!(ugeth->wol_en & WAKE_PHY)) { ugeth 3581 drivers/net/ethernet/freescale/ucc_geth.c phy_stop(ugeth->phydev); ugeth 3590 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(ndev); ugeth 3597 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->wol_en & WAKE_MAGIC) { ugeth 3598 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_disable(ugeth->uccf, COMM_DIR_RX_AND_TX); ugeth 3599 drivers/net/ethernet/freescale/ucc_geth.c clrbits32(&ugeth->ug_regs->maccfg2, MACCFG2_MPE); ugeth 3600 drivers/net/ethernet/freescale/ucc_geth.c clrbits32(ugeth->uccf->p_uccm, UCC_GETH_UCCE_MPD); ugeth 3602 drivers/net/ethernet/freescale/ucc_geth.c ugeth_enable(ugeth, COMM_DIR_RX_AND_TX); ugeth 3608 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_memclean(ugeth); ugeth 3610 drivers/net/ethernet/freescale/ucc_geth.c err = ucc_geth_init_mac(ugeth); ugeth 3617 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldlink = 0; ugeth 3618 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldspeed = 0; ugeth 3619 drivers/net/ethernet/freescale/ucc_geth.c ugeth->oldduplex = -1; ugeth 3621 drivers/net/ethernet/freescale/ucc_geth.c phy_stop(ugeth->phydev); ugeth 3622 drivers/net/ethernet/freescale/ucc_geth.c phy_start(ugeth->phydev); ugeth 3624 drivers/net/ethernet/freescale/ucc_geth.c napi_enable(&ugeth->napi); ugeth 3663 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3668 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->phydev) ugeth 3671 drivers/net/ethernet/freescale/ucc_geth.c return phy_mii_ioctl(ugeth->phydev, rq, cmd); ugeth 3694 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = NULL; ugeth 3865 drivers/net/ethernet/freescale/ucc_geth.c dev = alloc_etherdev(sizeof(*ugeth)); ugeth 3872 drivers/net/ethernet/freescale/ucc_geth.c ugeth = netdev_priv(dev); ugeth 3873 drivers/net/ethernet/freescale/ucc_geth.c spin_lock_init(&ugeth->lock); ugeth 3876 drivers/net/ethernet/freescale/ucc_geth.c INIT_LIST_HEAD(&ugeth->group_hash_q); ugeth 3877 drivers/net/ethernet/freescale/ucc_geth.c INIT_LIST_HEAD(&ugeth->ind_hash_q); ugeth 3890 drivers/net/ethernet/freescale/ucc_geth.c INIT_WORK(&ugeth->timeout_work, ucc_geth_timeout_work); ugeth 3891 drivers/net/ethernet/freescale/ucc_geth.c netif_napi_add(dev, &ugeth->napi, ucc_geth_poll, 64); ugeth 3894 drivers/net/ethernet/freescale/ucc_geth.c ugeth->msg_enable = netif_msg_init(debug.msg_enable, UGETH_MSG_DEFAULT); ugeth 3895 drivers/net/ethernet/freescale/ucc_geth.c ugeth->phy_interface = phy_interface; ugeth 3896 drivers/net/ethernet/freescale/ucc_geth.c ugeth->max_speed = max_speed; ugeth 3903 drivers/net/ethernet/freescale/ucc_geth.c if (netif_msg_probe(ugeth)) ugeth 3913 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ug_info = ug_info; ugeth 3914 drivers/net/ethernet/freescale/ucc_geth.c ugeth->dev = device; ugeth 3915 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ndev = dev; ugeth 3916 drivers/net/ethernet/freescale/ucc_geth.c ugeth->node = np; ugeth 3934 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(dev); ugeth 3939 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_memclean(ugeth); ugeth 3942 drivers/net/ethernet/freescale/ucc_geth.c of_node_put(ugeth->ug_info->tbi_node); ugeth 3943 drivers/net/ethernet/freescale/ucc_geth.c of_node_put(ugeth->ug_info->phy_node); ugeth 106 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 107 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct phy_device *phydev = ugeth->phydev; ugeth 121 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 122 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct phy_device *phydev = ugeth->phydev; ugeth 134 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 136 drivers/net/ethernet/freescale/ucc_geth_ethtool.c pause->autoneg = ugeth->phydev->autoneg; ugeth 138 drivers/net/ethernet/freescale/ucc_geth_ethtool.c if (ugeth->ug_info->receiveFlowControl) ugeth 140 drivers/net/ethernet/freescale/ucc_geth_ethtool.c if (ugeth->ug_info->transmitFlowControl) ugeth 148 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 151 drivers/net/ethernet/freescale/ucc_geth_ethtool.c ugeth->ug_info->receiveFlowControl = pause->rx_pause; ugeth 152 drivers/net/ethernet/freescale/ucc_geth_ethtool.c ugeth->ug_info->transmitFlowControl = pause->tx_pause; ugeth 154 drivers/net/ethernet/freescale/ucc_geth_ethtool.c if (ugeth->phydev->autoneg) { ugeth 160 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_info *ug_info = ugeth->ug_info; ugeth 167 drivers/net/ethernet/freescale/ucc_geth_ethtool.c &ugeth->uccf->uf_regs->upsmr, ugeth 168 drivers/net/ethernet/freescale/ucc_geth_ethtool.c &ugeth->ug_regs->uempr, ugeth 169 drivers/net/ethernet/freescale/ucc_geth_ethtool.c &ugeth->ug_regs->maccfg1); ugeth 178 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 179 drivers/net/ethernet/freescale/ucc_geth_ethtool.c return ugeth->msg_enable; ugeth 185 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 186 drivers/net/ethernet/freescale/ucc_geth_ethtool.c ugeth->msg_enable = data; ugeth 200 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 201 drivers/net/ethernet/freescale/ucc_geth_ethtool.c u32 __iomem *ug_regs = (u32 __iomem *)ugeth->ug_regs; ugeth 212 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 213 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_info *ug_info = ugeth->ug_info; ugeth 231 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 232 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_info *ug_info = ugeth->ug_info; ugeth 262 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 263 drivers/net/ethernet/freescale/ucc_geth_ethtool.c u32 stats_mode = ugeth->ug_info->statisticsMode; ugeth 284 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 285 drivers/net/ethernet/freescale/ucc_geth_ethtool.c u32 stats_mode = ugeth->ug_info->statisticsMode; ugeth 305 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 306 drivers/net/ethernet/freescale/ucc_geth_ethtool.c u32 stats_mode = ugeth->ug_info->statisticsMode; ugeth 311 drivers/net/ethernet/freescale/ucc_geth_ethtool.c if (ugeth->ug_regs) ugeth 312 drivers/net/ethernet/freescale/ucc_geth_ethtool.c base = (u32 __iomem *)&ugeth->ug_regs->tx64; ugeth 320 drivers/net/ethernet/freescale/ucc_geth_ethtool.c base = (u32 __iomem *)ugeth->p_tx_fw_statistics_pram; ugeth 325 drivers/net/ethernet/freescale/ucc_geth_ethtool.c base = (u32 __iomem *)ugeth->p_rx_fw_statistics_pram; ugeth 346 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 347 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct phy_device *phydev = ugeth->phydev; ugeth 354 drivers/net/ethernet/freescale/ucc_geth_ethtool.c wol->wolopts = ugeth->wol_en; ugeth 359 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct ucc_geth_private *ugeth = netdev_priv(netdev); ugeth 360 drivers/net/ethernet/freescale/ucc_geth_ethtool.c struct phy_device *phydev = ugeth->phydev; ugeth 369 drivers/net/ethernet/freescale/ucc_geth_ethtool.c ugeth->wol_en = wol->wolopts; ugeth 370 drivers/net/ethernet/freescale/ucc_geth_ethtool.c device_set_wakeup_enable(&netdev->dev, ugeth->wol_en);