Lines Matching refs:sw_bmcr

549 	hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR);  in try_next_permutation()
554 if (hp->sw_bmcr & BMCR_FULLDPLX) { in try_next_permutation()
555 hp->sw_bmcr &= ~(BMCR_FULLDPLX); in try_next_permutation()
556 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in try_next_permutation()
561 if (hp->sw_bmcr & BMCR_SPEED100) { in try_next_permutation()
562 hp->sw_bmcr &= ~(BMCR_SPEED100); in try_next_permutation()
563 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in try_next_permutation()
601 hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR); in display_forced_link_mode()
602 if (hp->sw_bmcr & BMCR_SPEED100) in display_forced_link_mode()
606 if (hp->sw_bmcr & BMCR_FULLDPLX) in display_forced_link_mode()
633 hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR); in set_happy_link_modes()
634 if (hp->sw_bmcr & BMCR_FULLDPLX) in set_happy_link_modes()
706 hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR); in happy_meal_timer()
709 hp->sw_bmcr = BMCR_SPEED100; in happy_meal_timer()
710 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in happy_meal_timer()
1043 hp->sw_bmcr = result; in happy_meal_tcvr_reset()
1061 hp->sw_bmcr &= ~(BMCR_ISOLATE); in happy_meal_tcvr_reset()
1062 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in happy_meal_tcvr_reset()
1307 hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR); in happy_meal_begin_auto_negotiation()
1354 hp->sw_bmcr |= BMCR_ANENABLE; in happy_meal_begin_auto_negotiation()
1355 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in happy_meal_begin_auto_negotiation()
1358 hp->sw_bmcr |= BMCR_ANRESTART; in happy_meal_begin_auto_negotiation()
1359 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in happy_meal_begin_auto_negotiation()
1365 hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR); in happy_meal_begin_auto_negotiation()
1366 if (!(hp->sw_bmcr & BMCR_ANRESTART)) in happy_meal_begin_auto_negotiation()
1372 "BMCR=0x%04x\n", hp->dev->name, hp->sw_bmcr); in happy_meal_begin_auto_negotiation()
1390 hp->sw_bmcr = BMCR_SPEED100; in happy_meal_begin_auto_negotiation()
1393 hp->sw_bmcr = BMCR_SPEED100; in happy_meal_begin_auto_negotiation()
1395 hp->sw_bmcr = 0; in happy_meal_begin_auto_negotiation()
1397 hp->sw_bmcr |= BMCR_FULLDPLX; in happy_meal_begin_auto_negotiation()
1399 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in happy_meal_begin_auto_negotiation()
1890 hp->sw_bmcr = happy_meal_tcvr_read(hp, tregs, MII_BMCR); in happy_meal_mif_interrupt()
1896 hp->sw_bmcr |= (BMCR_FULLDPLX | BMCR_SPEED100); in happy_meal_mif_interrupt()
1899 hp->sw_bmcr |= BMCR_SPEED100; in happy_meal_mif_interrupt()
1902 hp->sw_bmcr |= BMCR_FULLDPLX; in happy_meal_mif_interrupt()
1906 happy_meal_tcvr_write(hp, tregs, MII_BMCR, hp->sw_bmcr); in happy_meal_mif_interrupt()
2455 hp->sw_bmcr = happy_meal_tcvr_read(hp, hp->tcvregs, MII_BMCR); in hme_get_link_ksettings()
2459 if (hp->sw_bmcr & BMCR_ANENABLE) { in hme_get_link_ksettings()
2473 speed = (hp->sw_bmcr & BMCR_SPEED100) ? SPEED_100 : SPEED_10; in hme_get_link_ksettings()
2475 (hp->sw_bmcr & BMCR_FULLDPLX) ? in hme_get_link_ksettings()
2538 hp->sw_bmcr = happy_meal_tcvr_read(hp, hp->tcvregs, MII_BMCR); in hme_get_link()