Lines Matching +full:0 +full:x16080

36 #define LTQ_ETOP_MDIO		0x11804
37 #define MDIO_REQUEST 0x80000000
38 #define MDIO_READ 0x40000000
39 #define MDIO_ADDR_MASK 0x1f
40 #define MDIO_ADDR_OFFSET 0x15
41 #define MDIO_REG_MASK 0x1f
42 #define MDIO_REG_OFFSET 0x10
43 #define MDIO_VAL_MASK 0xffff
45 #define PPE32_CGEN 0x800
46 #define LQ_PPE32_ENET_MAC_CFG 0x1840
48 #define LTQ_ETOP_ENETS0 0x11850
49 #define LTQ_ETOP_MAC_DA0 0x1186C
50 #define LTQ_ETOP_MAC_DA1 0x11870
51 #define LTQ_ETOP_CFG 0x16020
52 #define LTQ_ETOP_IGPLEN 0x16080
54 #define MAX_DMA_CHAN 0x8
55 #define MAX_DMA_CRC_LEN 0x4
56 #define MAX_DMA_DATA_LEN 0x600
59 #define ETOP_MII_MASK 0xf
60 #define ETOP_MII_NORMAL 0xd
61 #define ETOP_MII_REVERSE 0xe
62 #define ETOP_PLEN_UNDER 0x40
63 #define ETOP_CGEN 0x800
121 return 0; in ltq_etop_alloc_skb()
153 int work_done = 0; in ltq_etop_poll_rx()
185 memset(&ch->dma.desc_base[ch->tx_free], 0, in ltq_etop_poll_tx()
220 for (dma->desc = 0; dma->desc < LTQ_DESC_NUM; dma->desc++) in ltq_etop_free_channel()
232 for (i = 0; i < MAX_DMA_CHAN; i++) in ltq_etop_hw_exit()
268 for (i = 0; i < MAX_DMA_CHAN; i++) { in ltq_etop_hw_init()
278 err = request_irq(irq, ltq_etop_dma_irq, 0, "etop_tx", priv); in ltq_etop_hw_init()
287 for (ch->dma.desc = 0; ch->dma.desc < LTQ_DESC_NUM; in ltq_etop_hw_init()
291 ch->dma.desc = 0; in ltq_etop_hw_init()
292 err = request_irq(irq, ltq_etop_dma_irq, 0, "etop_rx", priv); in ltq_etop_hw_init()
302 return 0; in ltq_etop_hw_init()
331 return 0; in ltq_etop_mdio_wr()
381 return 0; in ltq_etop_mdio_probe()
412 return 0; in ltq_etop_mdio_init()
438 for (i = 0; i < MAX_DMA_CHAN; i++) { in ltq_etop_open()
449 return 0; in ltq_etop_open()
460 for (i = 0; i < MAX_DMA_CHAN; i++) { in ltq_etop_stop()
468 return 0; in ltq_etop_stop()
528 return 0; in ltq_etop_change_mtu()
559 ltq_etop_w32_mask(ETOP_FTCU, 0, LTQ_ETOP_ENETS0); in ltq_etop_set_multicast_list()
561 ltq_etop_w32_mask(0, ETOP_FTCU, LTQ_ETOP_ENETS0); in ltq_etop_set_multicast_list()
598 return 0; in ltq_etop_init()
648 ltq_etop_membase = devm_platform_ioremap_resource(pdev, 0); in ltq_etop_probe()
671 if (err < 0) { in ltq_etop_probe()
677 if (err < 0) { in ltq_etop_probe()
682 for (i = 0; i < MAX_DMA_CHAN; i++) { in ltq_etop_probe()
697 return 0; in ltq_etop_probe()