Lines Matching refs:mac_control
503 u32 mac_control; in emac_update_phystatus() local
508 mac_control = emac_read(EMAC_MACCONTROL); in emac_update_phystatus()
509 cur_duplex = (mac_control & EMAC_MACCONTROL_FULLDUPLEXEN) ? in emac_update_phystatus()
520 mac_control |= (EMAC_MACCONTROL_FULLDUPLEXEN); in emac_update_phystatus()
522 mac_control &= ~(EMAC_MACCONTROL_FULLDUPLEXEN); in emac_update_phystatus()
526 mac_control = emac_read(EMAC_MACCONTROL); in emac_update_phystatus()
527 mac_control |= (EMAC_DM646X_MACCONTORL_GIG | in emac_update_phystatus()
531 mac_control &= ~(EMAC_DM646X_MACCONTORL_GIGFORCE | in emac_update_phystatus()
535 mac_control |= EMAC_MACCONTROL_RMIISPEED_MASK; in emac_update_phystatus()
537 mac_control &= ~EMAC_MACCONTROL_RMIISPEED_MASK; in emac_update_phystatus()
541 emac_write(EMAC_MACCONTROL, mac_control); in emac_update_phystatus()
1150 u32 val, mbp_enable, mac_control; in emac_hw_enable() local
1161 mac_control = in emac_hw_enable()
1166 emac_write(EMAC_MACCONTROL, mac_control); in emac_hw_enable()
1608 u32 mac_control; in emac_dev_getnetstats() local
1622 mac_control = emac_read(EMAC_MACCONTROL); in emac_dev_getnetstats()
1624 if (mac_control & EMAC_MACCONTROL_GMIIEN) in emac_dev_getnetstats()