Lines Matching refs:ANAR
715 u16 ANAR; in mii_check_media_mode() local
725 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode()
726 if (ANAR & ADVERTISE_100FULL) in mii_check_media_mode()
728 else if (ANAR & ADVERTISE_100HALF) in mii_check_media_mode()
730 else if (ANAR & ADVERTISE_10FULL) in mii_check_media_mode()
737 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in mii_check_media_mode()
738 if ((ANAR & (ADVERTISE_100FULL | ADVERTISE_100HALF | ADVERTISE_10FULL | ADVERTISE_10HALF)) in mii_check_media_mode()
840 u16 ANAR; in check_connection_type() local
859 velocity_mii_read(regs, MII_ADVERTISE, &ANAR); in check_connection_type()
860 if ((ANAR & (ADVERTISE_100FULL | ADVERTISE_100HALF | ADVERTISE_10FULL | ADVERTISE_10HALF)) in check_connection_type()
907 u16 ANAR; in velocity_set_media_mode() local
957 velocity_mii_read(vptr->mac_regs, MII_ADVERTISE, &ANAR); in velocity_set_media_mode()
958 ANAR &= (~(ADVERTISE_100FULL | ADVERTISE_100HALF | ADVERTISE_10FULL | ADVERTISE_10HALF)); in velocity_set_media_mode()
961 ANAR |= ADVERTISE_100FULL; in velocity_set_media_mode()
963 ANAR |= ADVERTISE_100HALF; in velocity_set_media_mode()
966 ANAR |= ADVERTISE_10FULL; in velocity_set_media_mode()
968 ANAR |= ADVERTISE_10HALF; in velocity_set_media_mode()
970 velocity_mii_write(vptr->mac_regs, MII_ADVERTISE, ANAR); in velocity_set_media_mode()