Lines Matching refs:iowrite16
205 iowrite16(MDIO_READ | reg | (phy_addr << 8), ioaddr + MMDIO); in r6040_phy_read()
227 iowrite16(val, ioaddr + MMWD); in r6040_phy_write()
229 iowrite16(MDIO_WRITE | reg | (phy_addr << 8), ioaddr + MMDIO); in r6040_phy_write()
363 iowrite16(MAC_RST, ioaddr + MCR1); in r6040_reset_mac()
371 iowrite16(MAC_SM_RST, ioaddr + MAC_SM); in r6040_reset_mac()
372 iowrite16(0, ioaddr + MAC_SM); in r6040_reset_mac()
377 iowrite16(md_csc, ioaddr + MD_CSC); in r6040_reset_mac()
386 iowrite16(MSK_INT, ioaddr + MIER); in r6040_init_mac_regs()
392 iowrite16(MBCR_DEFAULT, ioaddr + MBCR); in r6040_init_mac_regs()
395 iowrite16(MAX_BUF_SIZE, ioaddr + MR_BSR); in r6040_init_mac_regs()
398 iowrite16(lp->tx_ring_dma, ioaddr + MTD_SA0); in r6040_init_mac_regs()
399 iowrite16(lp->tx_ring_dma >> 16, ioaddr + MTD_SA1); in r6040_init_mac_regs()
402 iowrite16(lp->rx_ring_dma, ioaddr + MRD_SA0); in r6040_init_mac_regs()
403 iowrite16(lp->rx_ring_dma >> 16, ioaddr + MRD_SA1); in r6040_init_mac_regs()
406 iowrite16(0, ioaddr + MT_ICR); in r6040_init_mac_regs()
407 iowrite16(0, ioaddr + MR_ICR); in r6040_init_mac_regs()
410 iowrite16(INT_MASK, ioaddr + MIER); in r6040_init_mac_regs()
413 iowrite16(lp->mcr0 | MCR0_RCVEN, ioaddr); in r6040_init_mac_regs()
418 iowrite16(TM2TX, ioaddr + MTPR); in r6040_init_mac_regs()
459 iowrite16(MSK_INT, ioaddr + MIER); /* Mask Off Interrupt */ in r6040_down()
466 iowrite16(adrp[0], ioaddr + MID_0L); in r6040_down()
467 iowrite16(adrp[1], ioaddr + MID_0M); in r6040_down()
468 iowrite16(adrp[2], ioaddr + MID_0H); in r6040_down()
640 iowrite16(ioread16(ioaddr + MIER) | RX_INTS | TX_INTS, in r6040_poll()
657 iowrite16(MSK_INT, ioaddr + MIER); in r6040_interrupt()
663 iowrite16(misr, ioaddr + MIER); in r6040_interrupt()
685 iowrite16(misr, ioaddr + MIER); in r6040_interrupt()
741 iowrite16(adrp[0], ioaddr + MID_0L); in r6040_mac_address()
742 iowrite16(adrp[1], ioaddr + MID_0M); in r6040_mac_address()
743 iowrite16(adrp[2], ioaddr + MID_0H); in r6040_mac_address()
833 iowrite16(TM2TX, ioaddr + MTPR); in r6040_start_xmit()
859 iowrite16(adrp[0], ioaddr + MID_0L); in r6040_multicast_list()
860 iowrite16(adrp[1], ioaddr + MID_0M); in r6040_multicast_list()
861 iowrite16(adrp[2], ioaddr + MID_0H); in r6040_multicast_list()
876 iowrite16(0, ioaddr + MID_1L + 8 * i); in r6040_multicast_list()
877 iowrite16(0, ioaddr + MID_1M + 8 * i); in r6040_multicast_list()
878 iowrite16(0, ioaddr + MID_1H + 8 * i); in r6040_multicast_list()
890 iowrite16(adrp[0], ioaddr + MID_1L + 8 * i); in r6040_multicast_list()
891 iowrite16(adrp[1], ioaddr + MID_1M + 8 * i); in r6040_multicast_list()
892 iowrite16(adrp[2], ioaddr + MID_1H + 8 * i); in r6040_multicast_list()
896 iowrite16(0, ioaddr + MID_1L + 8 * i); in r6040_multicast_list()
897 iowrite16(0, ioaddr + MID_1M + 8 * i); in r6040_multicast_list()
898 iowrite16(0, ioaddr + MID_1H + 8 * i); in r6040_multicast_list()
909 iowrite16(0, ioaddr + MID_1L + 8 * i); in r6040_multicast_list()
910 iowrite16(0, ioaddr + MID_1M + 8 * i); in r6040_multicast_list()
911 iowrite16(0, ioaddr + MID_1H + 8 * i); in r6040_multicast_list()
924 iowrite16(lp->mcr0, ioaddr + MCR0); in r6040_multicast_list()
928 iowrite16(hash_table[0], ioaddr + MAR0); in r6040_multicast_list()
929 iowrite16(hash_table[1], ioaddr + MAR1); in r6040_multicast_list()
930 iowrite16(hash_table[2], ioaddr + MAR2); in r6040_multicast_list()
931 iowrite16(hash_table[3], ioaddr + MAR3); in r6040_multicast_list()
988 iowrite16(lp->mcr0, ioaddr); in r6040_adjust_link()
1092 iowrite16(SCEN | PHY_MAX_ADDR << PHYAD_SHIFT | in r6040_init_one()