Lines Matching refs:ew32

186 #define ew32(reg, val)	iowrite32(val, ioaddr + (reg))  macro
406 ew32(GENCTL, 0x4200); in epic_init_one()
410 ew32(TEST1, 0x0008); in epic_init_one()
413 ew32(MIICfg, 0x12); in epic_init_one()
415 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in epic_init_one()
416 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()
543 ew32(INTMASK, 0x00000000); in epic_disable_int()
558 ew32(INTMASK, ep->irq_mask & ~EpicNapiEvent); in epic_napi_irq_off()
568 ew32(INTMASK, ep->irq_mask | EpicNapiEvent); in epic_napi_irq_on()
579 ew32(EECTL, EE_ENB & ~EE_CS); in read_eeprom()
580 ew32(EECTL, EE_ENB); in read_eeprom()
585 ew32(EECTL, EE_ENB | dataval); in read_eeprom()
587 ew32(EECTL, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
590 ew32(EECTL, EE_ENB); in read_eeprom()
593 ew32(EECTL, EE_ENB | EE_SHIFT_CLK); in read_eeprom()
596 ew32(EECTL, EE_ENB); in read_eeprom()
601 ew32(EECTL, EE_ENB & ~EE_CS); in read_eeprom()
614 ew32(MIICtrl, read_cmd); in mdio_read()
622 ew32(MIICtrl, read_cmd); in mdio_read()
638 ew32(MIICtrl, (phy_id << 9) | (loc << 4) | MII_WRITEOP); in mdio_write()
655 ew32(GENCTL, 0x4001); in epic_open()
666 ew32(GENCTL, 0x4000); in epic_open()
669 ew32(TEST1, 0x0008); in epic_open()
677 ew32(MIICfg, dev->if_port == 1 ? 0x13 : 0x12); in epic_open()
680 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in epic_open()
684 ew32(GENCTL, 0x4432 | (RX_FIFO_THRESH << 8)); in epic_open()
686 ew32(GENCTL, 0x0432 | (RX_FIFO_THRESH << 8)); in epic_open()
688 ew32(GENCTL, 0x4412 | (RX_FIFO_THRESH << 8)); in epic_open()
690 ew32(GENCTL, 0x0412 | (RX_FIFO_THRESH << 8)); in epic_open()
696 ew32(LAN0 + i*4, le16_to_cpu(((__le16*)dev->dev_addr)[i])); in epic_open()
699 ew32(TxThresh, ep->tx_threshold); in epic_open()
724 ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); in epic_open()
725 ew32(PRxCDAR, ep->rx_ring_dma); in epic_open()
726 ew32(PTxCDAR, ep->tx_ring_dma); in epic_open()
730 ew32(COMMAND, StartRx | RxQueued); in epic_open()
735 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()
991 ew32(COMMAND, TxQueued); in epic_start_xmit()
1082 ew32(INTSTAT, status & EpicNormalEvent); in epic_interrupt()
1118 ew32(TxThresh, ep->tx_threshold += 128); in epic_interrupt()
1120 ew32(COMMAND, RestartTx); in epic_interrupt()
1129 ew32(INTSTAT, status & 0x7f18); in epic_interrupt()
1272 ew32(INTSTAT, EpicNapiEvent); in epic_poll()
1327 ew32(GENCTL, 0x0008); in epic_close()
1361 ew32(RxCtrl, 0x002c); in set_rx_mode()
1369 ew32(RxCtrl, 0x000c); in set_rx_mode()
1371 ew32(RxCtrl, 0x0004); in set_rx_mode()
1456 ew32(GENCTL, 0x0200); in ethtool_begin()
1457 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in ethtool_begin()
1469 ew32(GENCTL, 0x0008); in ethtool_complete()
1470 ew32(NVCTL, (er32(NVCTL) & ~0x483c) | 0x0000); in ethtool_complete()
1495 ew32(GENCTL, 0x0200); in netdev_ioctl()
1496 ew32(NVCTL, (er32(NVCTL) & ~0x003c) | 0x4800); in netdev_ioctl()
1506 ew32(GENCTL, 0x0008); in netdev_ioctl()
1507 ew32(NVCTL, (er32(NVCTL) & ~0x483c) | 0x0000); in netdev_ioctl()
1540 ew32(GENCTL, 0x0008); in epic_suspend()