Lines Matching refs:gm_phy_write

149 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val)  in gm_phy_write()  function
345 gm_phy_write(hw, port, PHY_MARV_EXT_CTRL, ectrl); in sky2_phy_init()
361 gm_phy_write(hw, port, PHY_MARV_FE_SPEC_2, spec); in sky2_phy_init()
385 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
392 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2); in sky2_phy_init()
396 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
400 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 1); in sky2_phy_init()
405 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
408 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_phy_init()
484 gm_phy_write(hw, port, PHY_MARV_1000T_CTRL, ct1000); in sky2_phy_init()
486 gm_phy_write(hw, port, PHY_MARV_AUNE_ADV, adv); in sky2_phy_init()
487 gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl); in sky2_phy_init()
504 gm_phy_write(hw, port, PHY_MARV_FE_LED_PAR, ctrl); in sky2_phy_init()
514 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_init()
521 gm_phy_write(hw, port, PHY_MARV_FE_LED_PAR, ctrl); in sky2_phy_init()
528 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3); in sky2_phy_init()
531 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_phy_init()
538 gm_phy_write(hw, port, PHY_MARV_PHY_STAT, in sky2_phy_init()
547 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_phy_init()
556 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3); in sky2_phy_init()
559 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_phy_init()
566 gm_phy_write(hw, port, PHY_MARV_INT_MASK, in sky2_phy_init()
569 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_phy_init()
582 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 255); in sky2_phy_init()
585 gm_phy_write(hw, port, 0x18, 0xaa99); in sky2_phy_init()
586 gm_phy_write(hw, port, 0x17, 0x2011); in sky2_phy_init()
590 gm_phy_write(hw, port, 0x18, 0xa204); in sky2_phy_init()
591 gm_phy_write(hw, port, 0x17, 0x2002); in sky2_phy_init()
595 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_init()
599 gm_phy_write(hw, port, PHY_MARV_PAGE_ADDR, 17); in sky2_phy_init()
600 gm_phy_write(hw, port, PHY_MARV_PAGE_DATA, 0x3f60); in sky2_phy_init()
603 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00ff); in sky2_phy_init()
606 gm_phy_write(hw, port, 24, 0x2800); in sky2_phy_init()
607 gm_phy_write(hw, port, 23, 0x2001); in sky2_phy_init()
610 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_init()
614 gm_phy_write(hw, port, PHY_MARV_LED_CTRL, ledctrl); in sky2_phy_init()
623 gm_phy_write(hw, port, PHY_MARV_LED_OVER, ledover); in sky2_phy_init()
653 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00fb); in sky2_phy_init()
655 gm_phy_write(hw, port, 1, 0x4099); in sky2_phy_init()
656 gm_phy_write(hw, port, 3, 0x1120); in sky2_phy_init()
657 gm_phy_write(hw, port, 11, 0x113c); in sky2_phy_init()
658 gm_phy_write(hw, port, 14, 0x8100); in sky2_phy_init()
659 gm_phy_write(hw, port, 15, 0x112a); in sky2_phy_init()
660 gm_phy_write(hw, port, 17, 0x1008); in sky2_phy_init()
662 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00fc); in sky2_phy_init()
663 gm_phy_write(hw, port, 1, 0x20b0); in sky2_phy_init()
665 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0x00ff); in sky2_phy_init()
669 gm_phy_write(hw, port, 17, eee_afe[i].val); in sky2_phy_init()
670 gm_phy_write(hw, port, 16, eee_afe[i].reg | 1u<<13); in sky2_phy_init()
674 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_init()
679 gm_phy_write(hw, port, PHY_MARV_EXT_CTRL, in sky2_phy_init()
686 gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_IS_AN_COMPL); in sky2_phy_init()
688 gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_DEF_MSK); in sky2_phy_init()
710 gm_phy_write(hw, port, PHY_MARV_CTRL, PHY_CT_ANE); in sky2_phy_power_up()
728 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2); in sky2_phy_power_down()
733 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_power_down()
736 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_power_down()
748 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2); in sky2_phy_power_down()
753 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); in sky2_phy_power_down()
756 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0); in sky2_phy_power_down()
760 gm_phy_write(hw, port, PHY_MARV_CTRL, PHY_CT_PDOWN); in sky2_phy_power_down()
1392 err = gm_phy_write(hw, sky2->port, data->reg_num & 0x1f, in sky2_ioctl()
2186 gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_DEF_MSK); in sky2_link_up()
2209 gm_phy_write(hw, port, PHY_MARV_INT_MASK, 0); in sky2_link_down()
3943 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3); in sky2_led()
3947 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3954 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3961 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3968 gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, in sky2_led()
3975 gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); in sky2_led()
3977 gm_phy_write(hw, port, PHY_MARV_LED_OVER, in sky2_led()