Lines Matching refs:miir
700 ulong miir; in m80x_send_cmd_to_phy() local
705 miir = (ulong) ioread32(miiport); in m80x_send_cmd_to_phy()
706 miir &= 0xfffffff0; in m80x_send_cmd_to_phy()
708 miir |= MASK_MIIR_MII_WRITE + MASK_MIIR_MII_MDO; in m80x_send_cmd_to_phy()
713 miir &= ~MASK_MIIR_MII_MDC; in m80x_send_cmd_to_phy()
714 iowrite32(miir, miiport); in m80x_send_cmd_to_phy()
717 miir |= MASK_MIIR_MII_MDC; in m80x_send_cmd_to_phy()
718 iowrite32(miir, miiport); in m80x_send_cmd_to_phy()
728 miir &= ~(MASK_MIIR_MII_MDC + MASK_MIIR_MII_MDO); in m80x_send_cmd_to_phy()
730 miir |= MASK_MIIR_MII_MDO; in m80x_send_cmd_to_phy()
732 iowrite32(miir, miiport); in m80x_send_cmd_to_phy()
734 miir |= MASK_MIIR_MII_MDC; in m80x_send_cmd_to_phy()
735 iowrite32(miir, miiport); in m80x_send_cmd_to_phy()
741 miir &= ~MASK_MIIR_MII_WRITE; in m80x_send_cmd_to_phy()
743 return miir; in m80x_send_cmd_to_phy()
751 ulong miir; in mdio_read() local
754 miir = m80x_send_cmd_to_phy(miiport, OP_READ, phyad, regad); in mdio_read()
761 miir &= ~MASK_MIIR_MII_MDC; in mdio_read()
762 iowrite32(miir, miiport); in mdio_read()
765 miir = ioread32(miiport); in mdio_read()
766 if (miir & MASK_MIIR_MII_MDI) in mdio_read()
770 miir |= MASK_MIIR_MII_MDC; in mdio_read()
771 iowrite32(miir, miiport); in mdio_read()
779 miir &= ~MASK_MIIR_MII_MDC; in mdio_read()
780 iowrite32(miir, miiport); in mdio_read()
790 ulong miir; in mdio_write() local
793 miir = m80x_send_cmd_to_phy(miiport, OP_WRITE, phyad, regad); in mdio_write()
799 miir &= ~(MASK_MIIR_MII_MDC + MASK_MIIR_MII_MDO); in mdio_write()
801 miir |= MASK_MIIR_MII_MDO; in mdio_write()
802 iowrite32(miir, miiport); in mdio_write()
805 miir |= MASK_MIIR_MII_MDC; in mdio_write()
806 iowrite32(miir, miiport); in mdio_write()
813 miir &= ~MASK_MIIR_MII_MDC; in mdio_write()
814 iowrite32(miir, miiport); in mdio_write()