Lines Matching refs:phy_reg
506 int phy_reg;
518 phy_reg = get_phy_reg(lynx, 5);
519 if (phy_reg == -1) {
524 phy_reg |= 0x40;
530 set_phy_reg(lynx, 5, phy_reg); /* set ISBR */
537 phy_reg = get_phy_reg(lynx, 1);
538 if (phy_reg == -1) {
543 phy_reg |= 0x40;
549 set_phy_reg(lynx, 1, phy_reg); /* clear RHB, set IBR */
553 phy_reg = get_phy_reg(lynx, 1);
554 if (phy_reg == -1) {
559 if (phy_reg & 0x80) {
560 phy_reg &= ~0x80;
561 set_phy_reg(lynx, 1, phy_reg); /* clear RHB */
564 phy_reg = get_phy_reg(lynx, 5);
565 if (phy_reg == -1) {
570 phy_reg |= 0x40;
576 set_phy_reg(lynx, 5, phy_reg); /* set ISBR */
583 phy_reg = get_phy_reg(lynx, 1);
584 if (phy_reg == -1) {
589 phy_reg &= ~0x80;
590 phy_reg |= 0x40;
596 set_phy_reg(lynx, 1, phy_reg); /* clear RHB, set IBR */
600 phy_reg = get_phy_reg(lynx, 1);
601 if (phy_reg == -1) {
606 if (!(phy_reg & 0x80)) {
607 phy_reg |= 0x80;
608 set_phy_reg(lynx, 1, phy_reg); /* set RHB */
611 phy_reg = get_phy_reg(lynx, 5);
612 if (phy_reg == -1) {
617 phy_reg |= 0x40;
623 set_phy_reg(lynx, 5, phy_reg); /* set ISBR */
630 phy_reg = get_phy_reg(lynx, 1);
631 if (phy_reg == -1) {
636 phy_reg |= 0xc0;
642 set_phy_reg(lynx, 1, phy_reg); /* set IBR and RHB */