Lines Matching refs:ew32
186 #define ew32(reg, val) iowrite32(val, ioaddr + (reg)) macro
407 ew32(GENCTL, 0x4200); in epic_init_one()
411 ew32(TEST1, 0x0008); in epic_init_one()
414 ew32(MIICfg, 0x12); in epic_init_one()
416 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in epic_init_one()
417 ew32(GENCTL, 0x0200); in epic_init_one()
471 ew32(NVCTL, er32(NVCTL) & ~0x483c); in epic_init_one()
472 ew32(GENCTL, 0x0008); in epic_init_one()
541 ew32(INTMASK, 0x00000000); in epic_disable_int()
556 ew32(INTMASK, ep->irq_mask & ~EpicNapiEvent); in epic_napi_irq_off()
566 ew32(INTMASK, ep->irq_mask | EpicNapiEvent); in epic_napi_irq_on()
577 ew32(EECTL, EE_ENB & ~EE_CS); in read_eeprom()
578 ew32(EECTL, EE_ENB); in read_eeprom()
583 ew32(EECTL, EE_ENB | dataval); in read_eeprom()
585 ew32(EECTL, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
588 ew32(EECTL, EE_ENB); in read_eeprom()
591 ew32(EECTL, EE_ENB | EE_SHIFT_CLK); in read_eeprom()
594 ew32(EECTL, EE_ENB); in read_eeprom()
599 ew32(EECTL, EE_ENB & ~EE_CS); in read_eeprom()
612 ew32(MIICtrl, read_cmd); in mdio_read()
620 ew32(MIICtrl, read_cmd); in mdio_read()
636 ew32(MIICtrl, (phy_id << 9) | (loc << 4) | MII_WRITEOP); in mdio_write()
653 ew32(GENCTL, 0x4001); in epic_open()
664 ew32(GENCTL, 0x4000); in epic_open()
667 ew32(TEST1, 0x0008); in epic_open()
675 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_open()
678 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in epic_open()
682 ew32(GENCTL, 0x4432 | (RX_FIFO_THRESH << 8)); in epic_open()
684 ew32(GENCTL, 0x0432 | (RX_FIFO_THRESH << 8)); in epic_open()
686 ew32(GENCTL, 0x4412 | (RX_FIFO_THRESH << 8)); in epic_open()
688 ew32(GENCTL, 0x0412 | (RX_FIFO_THRESH << 8)); in epic_open()
694 ew32(LAN0 + i*4, le16_to_cpu(((__le16*)dev->dev_addr)[i])); in epic_open()
697 ew32(TxThresh, ep->tx_threshold); in epic_open()
722 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_open()
723 ew32(PRxCDAR, ep->rx_ring_dma); in epic_open()
724 ew32(PTxCDAR, ep->tx_ring_dma); in epic_open()
728 ew32(COMMAND, StartRx | RxQueued); in epic_open()
733 ew32(INTMASK, RxError | RxHeader | EpicNapiEvent | CntFull | in epic_open()
765 ew32(INTMASK, 0x00000000); in epic_pause()
787 ew32(GENCTL, 0x4001); in epic_restart()
795 ew32(TEST1, 0x0008); in epic_restart()
798 ew32(GENCTL, 0x0432 | (RX_FIFO_THRESH << 8)); in epic_restart()
800 ew32(GENCTL, 0x0412 | (RX_FIFO_THRESH << 8)); in epic_restart()
802 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_restart()
804 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in epic_restart()
807 ew32(LAN0 + i*4, le16_to_cpu(((__le16*)dev->dev_addr)[i])); in epic_restart()
810 ew32(TxThresh, ep->tx_threshold); in epic_restart()
811 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_restart()
812 ew32(PRxCDAR, ep->rx_ring_dma + in epic_restart()
814 ew32(PTxCDAR, ep->tx_ring_dma + in epic_restart()
819 ew32(COMMAND, StartRx | RxQueued); in epic_restart()
822 ew32(INTMASK, RxError | RxHeader | EpicNapiEvent | CntFull | in epic_restart()
847 ew32(TxCtrl, ep->mii.full_duplex ? 0x7F : 0x79); in check_media()
886 ew32(COMMAND, RestartTx); in epic_tx_timeout()
889 ew32(COMMAND, TxQueued); in epic_tx_timeout()
988 ew32(COMMAND, TxQueued); in epic_start_xmit()
1078 ew32(INTSTAT, status & EpicNormalEvent); in epic_interrupt()
1115 ew32(TxThresh, ep->tx_threshold += 128); in epic_interrupt()
1117 ew32(COMMAND, RestartTx); in epic_interrupt()
1126 ew32(INTSTAT, status & 0x7f18); in epic_interrupt()
1274 ew32(INTSTAT, EpicNapiEvent); in epic_poll()
1335 ew32(GENCTL, 0x0008); in epic_close()
1369 ew32(RxCtrl, 0x002c); in set_rx_mode()
1377 ew32(RxCtrl, 0x000c); in set_rx_mode()
1379 ew32(RxCtrl, 0x0004); in set_rx_mode()
1461 ew32(GENCTL, 0x0200); in ethtool_begin()
1462 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in ethtool_begin()
1474 ew32(GENCTL, 0x0008); in ethtool_complete()
1475 ew32(NVCTL, (er32(NVCTL) & ~0x483c) | 0x0000); in ethtool_complete()
1500 ew32(GENCTL, 0x0200); in netdev_ioctl()
1501 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in netdev_ioctl()
1511 ew32(GENCTL, 0x0008); in netdev_ioctl()
1512 ew32(NVCTL, (er32(NVCTL) & ~0x483c) | 0x0000); in netdev_ioctl()
1546 ew32(GENCTL, 0x0008); in epic_suspend()