Lines Matching +full:0 +full:x7eff
16 0, 50, 80, 110, 140, 140, E1000_CABLE_LENGTH_UNDEFINED
23 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 8, 11, 13, 16, 18, 21, 0, 0, 0, 3,
41 * is blocked. If a reset is not blocked return 0, otherwise
50 return (manc & E1000_MANC_BLK_PHY_RST_ON_IDE) ? E1000_BLK_PHY_RESET : 0; in e1000e_check_reset_block_generic()
63 s32 ret_val = 0; in e1000e_get_phy_id()
65 u16 retry_count = 0; in e1000e_get_phy_id()
68 return 0; in e1000e_get_phy_id()
84 if (phy->id != 0 && phy->id != PHY_REVISION_MASK) in e1000e_get_phy_id()
85 return 0; in e1000e_get_phy_id()
90 return 0; in e1000e_get_phy_id()
103 ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000e_phy_reset_dsp()
107 return e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0); in e1000e_phy_reset_dsp()
131 u32 i, mdic = 0, retry_counter, retry_max; in e1000e_read_phy_reg_mdic()
140 retry_max = phy->retry_enabled ? phy->retry_count : 0; in e1000e_read_phy_reg_mdic()
146 for (retry_counter = 0; retry_counter <= retry_max; retry_counter++) { in e1000e_read_phy_reg_mdic()
159 for (i = 0; i < (E1000_GEN_POLL_TIMEOUT * 3); i++) { in e1000e_read_phy_reg_mdic()
188 return 0; in e1000e_read_phy_reg_mdic()
210 u32 i, mdic = 0, retry_counter, retry_max; in e1000e_write_phy_reg_mdic()
219 retry_max = phy->retry_enabled ? phy->retry_count : 0; in e1000e_write_phy_reg_mdic()
225 for (retry_counter = 0; retry_counter <= retry_max; retry_counter++) { in e1000e_write_phy_reg_mdic()
239 for (i = 0; i < (E1000_GEN_POLL_TIMEOUT * 3); i++) { in e1000e_write_phy_reg_mdic()
267 return 0; in e1000e_write_phy_reg_mdic()
340 e_dbg("Setting page 0x%x\n", page); in e1000_set_page_igp()
361 s32 ret_val = 0; in __e1000e_read_phy_reg_igp()
365 return 0; in __e1000e_read_phy_reg_igp()
428 s32 ret_val = 0; in __e1000e_write_phy_reg_igp()
432 return 0; in __e1000e_write_phy_reg_igp()
497 s32 ret_val = 0; in __e1000_read_kmrn_reg()
500 return 0; in __e1000_read_kmrn_reg()
520 return 0; in __e1000_read_kmrn_reg()
570 s32 ret_val = 0; in __e1000_write_kmrn_reg()
573 return 0; in __e1000_write_kmrn_reg()
589 return 0; in __e1000_write_kmrn_reg()
690 * 0 - Auto (default) in e1000_copper_link_setup_82577()
700 case 0: in e1000_copper_link_setup_82577()
735 * MDI/MDI-X = 0 (default) in e1000e_copper_link_setup_m88()
736 * 0 - Auto for all speeds in e1000e_copper_link_setup_m88()
753 case 0: in e1000e_copper_link_setup_m88()
760 * disable_polarity_correction = 0 (default) in e1000e_copper_link_setup_m88()
762 * 0 - Disabled in e1000e_copper_link_setup_m88()
822 /* Set PHY page 0, register 29 to 0x0003 */ in e1000e_copper_link_setup_m88()
823 ret_val = e1e_wphy(hw, 29, 0x0003); in e1000e_copper_link_setup_m88()
827 /* Set PHY page 0, register 30 to 0x0000 */ in e1000e_copper_link_setup_m88()
828 ret_val = e1e_wphy(hw, 30, 0x0000); in e1000e_copper_link_setup_m88()
855 return 0; in e1000e_copper_link_setup_m88()
904 case 0: in e1000e_copper_link_setup_igp()
963 u16 mii_1000t_ctrl_reg = 0; in e1000_phy_setup_autoneg()
1039 * 0: Flow control is completely disabled in e1000_phy_setup_autoneg()
1348 0x001d); in e1000e_phy_force_speed_duplex_m88()
1365 return 0; in e1000e_phy_force_speed_duplex_m88()
1452 return 0; in e1000_phy_force_speed_duplex_ife()
1519 * Success returns 0, Failure returns 1
1595 * Success returns 0, Failure returns 1
1621 return 0; in e1000e_check_downshift()
1636 * Success returns 0, Failure returns -E1000_ERR_PHY (-2)
1660 * Success returns 0, Failure returns -E1000_ERR_PHY (-2)
1684 * there is no polarity for 100Mbps (always 0). in e1000_check_polarity_igp()
1741 s32 ret_val = 0; in e1000_wait_autoneg()
1745 for (i = PHY_AUTO_NEG_LIMIT; i > 0; i--) { in e1000_wait_autoneg()
1775 s32 ret_val = 0; in e1000e_phy_has_link_generic()
1779 for (i = 0; i < iterations; i++) { in e1000e_phy_has_link_generic()
1820 * 0 < 50 meters
1846 return 0; in e1000e_get_cable_length_m88()
1864 u16 phy_data, i, agc_value = 0; in e1000e_get_cable_length_igp_2()
1865 u16 cur_agc_index, max_agc_index = 0; in e1000e_get_cable_length_igp_2()
1875 for (i = 0; i < IGP02E1000_PHY_CHANNEL_NUM; i++) { in e1000e_get_cable_length_igp_2()
1890 (cur_agc_index == 0)) in e1000e_get_cable_length_igp_2()
1909 phy->min_cable_length = (((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in e1000e_get_cable_length_igp_2()
1910 (agc_value - IGP02E1000_AGC_RANGE) : 0); in e1000e_get_cable_length_igp_2()
1915 return 0; in e1000e_get_cable_length_igp_2()
1940 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); in e1000e_get_phy_info_m88()
2006 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); in e1000e_get_phy_info_igp()
2064 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); in e1000_get_phy_info_ife()
2100 return 0; in e1000_get_phy_info_ife()
2147 return 0; in e1000e_phy_hw_reset_generic()
2181 return 0; in e1000e_get_cfg_done_generic()
2196 e1e_wphy(hw, 0x2F5B, 0x9018); in e1000e_phy_init_script_igp3()
2198 e1e_wphy(hw, 0x2F52, 0x0000); in e1000e_phy_init_script_igp3()
2200 e1e_wphy(hw, 0x2FB1, 0x8B24); in e1000e_phy_init_script_igp3()
2202 e1e_wphy(hw, 0x2FB2, 0xF8F0); in e1000e_phy_init_script_igp3()
2204 e1e_wphy(hw, 0x2010, 0x10B0); in e1000e_phy_init_script_igp3()
2206 e1e_wphy(hw, 0x2011, 0x0000); in e1000e_phy_init_script_igp3()
2208 e1e_wphy(hw, 0x20DD, 0x249A); in e1000e_phy_init_script_igp3()
2210 e1e_wphy(hw, 0x20DE, 0x00D3); in e1000e_phy_init_script_igp3()
2212 e1e_wphy(hw, 0x28B4, 0x04CE); in e1000e_phy_init_script_igp3()
2214 e1e_wphy(hw, 0x2F70, 0x29E4); in e1000e_phy_init_script_igp3()
2216 e1e_wphy(hw, 0x0000, 0x0140); in e1000e_phy_init_script_igp3()
2218 e1e_wphy(hw, 0x1F30, 0x1606); in e1000e_phy_init_script_igp3()
2220 e1e_wphy(hw, 0x1F31, 0xB814); in e1000e_phy_init_script_igp3()
2222 e1e_wphy(hw, 0x1F35, 0x002A); in e1000e_phy_init_script_igp3()
2224 e1e_wphy(hw, 0x1F3E, 0x0067); in e1000e_phy_init_script_igp3()
2226 e1e_wphy(hw, 0x1F54, 0x0065); in e1000e_phy_init_script_igp3()
2228 e1e_wphy(hw, 0x1F55, 0x002A); in e1000e_phy_init_script_igp3()
2230 e1e_wphy(hw, 0x1F56, 0x002A); in e1000e_phy_init_script_igp3()
2232 e1e_wphy(hw, 0x1F72, 0x3FB0); in e1000e_phy_init_script_igp3()
2234 e1e_wphy(hw, 0x1F76, 0xC0FF); in e1000e_phy_init_script_igp3()
2236 e1e_wphy(hw, 0x1F77, 0x1DEC); in e1000e_phy_init_script_igp3()
2238 e1e_wphy(hw, 0x1F78, 0xF9EF); in e1000e_phy_init_script_igp3()
2240 e1e_wphy(hw, 0x1F79, 0x0210); in e1000e_phy_init_script_igp3()
2242 e1e_wphy(hw, 0x1895, 0x0003); in e1000e_phy_init_script_igp3()
2244 e1e_wphy(hw, 0x1796, 0x0008); in e1000e_phy_init_script_igp3()
2246 e1e_wphy(hw, 0x1798, 0xD008); in e1000e_phy_init_script_igp3()
2250 e1e_wphy(hw, 0x1898, 0xD918); in e1000e_phy_init_script_igp3()
2252 e1e_wphy(hw, 0x187A, 0x0800); in e1000e_phy_init_script_igp3()
2256 e1e_wphy(hw, 0x0019, 0x008D); in e1000e_phy_init_script_igp3()
2258 e1e_wphy(hw, 0x001B, 0x2080); in e1000e_phy_init_script_igp3()
2260 e1e_wphy(hw, 0x0014, 0x0045); in e1000e_phy_init_script_igp3()
2262 e1e_wphy(hw, 0x0000, 0x1340); in e1000e_phy_init_script_igp3()
2264 return 0; in e1000e_phy_init_script_igp3()
2331 u32 phy_addr = 0; in e1000e_determine_phy_address()
2337 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { in e1000e_determine_phy_address()
2339 i = 0; in e1000e_determine_phy_address()
2349 return 0; in e1000e_determine_phy_address()
2370 if ((page >= 768) || (page == 0 && reg == 25) || (reg == 31)) in e1000_get_phy_addr_for_bm_page()
2414 page_shift = 0; in e1000e_write_phy_reg_bm()
2472 page_shift = 0; in e1000e_read_phy_reg_bm()
2673 * 3) Write the address using the address opcode (0x11)
2674 * 4) Read or write the data using the data opcode (0x12)
2690 u16 phy_reg = 0; in e1000_access_phy_wakeup_reg_bm()
2707 e_dbg("Accessing PHY page %d reg 0x%x\n", page, reg); in e1000_access_phy_wakeup_reg_bm()
2709 /* Write the Wakeup register page offset value using opcode 0x11 */ in e1000_access_phy_wakeup_reg_bm()
2717 /* Read the Wakeup register page value using opcode 0x12 */ in e1000_access_phy_wakeup_reg_bm()
2721 /* Write the Wakeup register page value using opcode 0x12 */ in e1000_access_phy_wakeup_reg_bm()
2747 u16 mii_reg = 0; in e1000_power_up_phy_copper()
2770 u16 mii_reg = 0; in e1000_power_down_phy_copper()
2817 if (page > 0 && page < HV_INTC_FC_PAGE_START) { in __e1000_read_phy_reg_hv()
2825 page = 0; in __e1000_read_phy_reg_hv()
2839 e_dbg("reading PHY page %d (or 0x%x shifted) reg 0x%x\n", page, in __e1000_read_phy_reg_hv()
2925 if (page > 0 && page < HV_INTC_FC_PAGE_START) { in __e1000_write_phy_reg_hv()
2933 page = 0; in __e1000_write_phy_reg_hv()
2942 u16 data2 = 0x7EFF; in __e1000_write_phy_reg_hv()
2945 BIT(6) | 0x3, in __e1000_write_phy_reg_hv()
2963 e_dbg("writing PHY page %d (or 0x%x shifted) reg 0x%x\n", page, in __e1000_write_phy_reg_hv()
3059 /* masking with 0x3F to remove the page from offset */ in e1000_access_phy_debug_regs_hv()
3060 ret_val = e1000e_write_phy_reg_mdic(hw, addr_reg, (u16)offset & 0x3F); in e1000_access_phy_debug_regs_hv()
3091 s32 ret_val = 0; in e1000_link_stall_workaround_hv()
3095 return 0; in e1000_link_stall_workaround_hv()
3104 return 0; in e1000_link_stall_workaround_hv()
3116 return 0; in e1000_link_stall_workaround_hv()
3134 * Success returns 0, Failure returns -E1000_ERR_PHY (-2)
3214 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); in e1000_get_phy_info_82577()
3256 return 0; in e1000_get_phy_info_82577()
3283 return 0; in e1000_get_cable_length_82577()