Lines Matching +full:0 +full:x7eff
46 0, 50, 80, 110, 140, 140, E1000_CABLE_LENGTH_UNDEFINED };
49 sizeof(e1000_m88_cable_length_table[0]))
52 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 8, 11, 13, 16, 18, 21, 0, 0, 0, 3,
62 sizeof(e1000_igp_2_cable_length_table[0]))
104 * e1000_null_set_page - No-op function, return 0
116 * e1000_null_read_reg - No-op function, return 0
139 * e1000_null_lplu_state - No-op function, return 0
151 * e1000_null_write_reg - No-op function, return 0
164 * e1000_read_i2c_byte_null - No-op function, return 0
181 * e1000_write_i2c_byte_null - No-op function, return 0
229 u16 retry_count = 0; in e1000_get_phy_id()
250 if (phy->id != 0 && phy->id != PHY_REVISION_MASK) in e1000_get_phy_id()
274 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000_phy_reset_dsp_generic()
278 return hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in e1000_phy_reset_dsp_generic()
293 u32 i, mdic = 0; in e1000_read_phy_reg_mdic()
316 for (i = 0; i < (E1000_GEN_POLL_TIMEOUT * 3); i++) { in e1000_read_phy_reg_mdic()
358 u32 i, mdic = 0; in e1000_write_phy_reg_mdic()
382 for (i = 0; i < (E1000_GEN_POLL_TIMEOUT * 3); i++) { in e1000_write_phy_reg_mdic()
424 u32 i, i2ccmd = 0; in e1000_read_phy_reg_i2c()
439 for (i = 0; i < E1000_I2CCMD_PHY_TIMEOUT; i++) { in e1000_read_phy_reg_i2c()
455 *data = ((i2ccmd >> 8) & 0x00FF) | ((i2ccmd << 8) & 0xFF00); in e1000_read_phy_reg_i2c()
471 u32 i, i2ccmd = 0; in e1000_write_phy_reg_i2c()
477 if ((hw->phy.addr == 0) || (hw->phy.addr > 7)) { in e1000_write_phy_reg_i2c()
484 phy_data_swapped = ((data >> 8) & 0x00FF) | ((data << 8) & 0xFF00); in e1000_write_phy_reg_i2c()
498 for (i = 0; i < E1000_I2CCMD_PHY_TIMEOUT; i++) { in e1000_write_phy_reg_i2c()
531 u32 i = 0; in e1000_read_sfp_data_byte()
532 u32 i2ccmd = 0; in e1000_read_sfp_data_byte()
533 u32 data_local = 0; in e1000_read_sfp_data_byte()
552 for (i = 0; i < E1000_I2CCMD_PHY_TIMEOUT; i++) { in e1000_read_sfp_data_byte()
566 *data = (u8) data_local & 0xFF; in e1000_read_sfp_data_byte()
586 u32 i = 0; in e1000_write_sfp_data_byte()
587 u32 i2ccmd = 0; in e1000_write_sfp_data_byte()
588 u32 data_local = 0; in e1000_write_sfp_data_byte()
609 for (i = 0; i < E1000_I2CCMD_PHY_TIMEOUT; i++) { in e1000_write_sfp_data_byte()
622 data_local = i2ccmd & 0xFF00; in e1000_write_sfp_data_byte()
718 DEBUGOUT1("Setting page 0x%x\n", page); in e1000_set_page_igp()
1089 * 0 - Auto (default) in e1000_copper_link_setup_82577()
1099 case 0: in e1000_copper_link_setup_82577()
1138 * MDI/MDI-X = 0 (default) in e1000_copper_link_setup_m88()
1139 * 0 - Auto for all speeds in e1000_copper_link_setup_m88()
1156 case 0: in e1000_copper_link_setup_m88()
1164 * disable_polarity_correction = 0 (default) in e1000_copper_link_setup_m88()
1166 * 0 - Disabled in e1000_copper_link_setup_m88()
1229 /* Set PHY page 0, register 29 to 0x0003 */ in e1000_copper_link_setup_m88()
1230 ret_val = phy->ops.write_reg(hw, 29, 0x0003); in e1000_copper_link_setup_m88()
1234 /* Set PHY page 0, register 30 to 0x0000 */ in e1000_copper_link_setup_m88()
1235 ret_val = phy->ops.write_reg(hw, 30, 0x0000); in e1000_copper_link_setup_m88()
1287 * MDI/MDI-X = 0 (default) in e1000_copper_link_setup_m88_gen2()
1288 * 0 - Auto for all speeds in e1000_copper_link_setup_m88_gen2()
1309 case 0: in e1000_copper_link_setup_m88_gen2()
1317 * disable_polarity_correction = 0 (default) in e1000_copper_link_setup_m88_gen2()
1319 * 0 - Disabled in e1000_copper_link_setup_m88_gen2()
1424 case 0: in e1000_copper_link_setup_igp()
1486 u16 mii_1000t_ctrl_reg = 0; in e1000_phy_setup_autoneg()
1566 * 0: Flow control is completely disabled in e1000_phy_setup_autoneg()
1895 0x001d); in e1000_phy_force_speed_duplex_m88()
2079 * Success returns 0, Failure returns 1
2168 * Success returns 0, Failure returns 1
2213 * Success returns 0, Failure returns -E1000_ERR_PHY (-2)
2239 * Success returns 0, Failure returns -E1000_ERR_PHY (-2)
2265 * there is no polarity for 100Mbps (always 0). in e1000_check_polarity_igp()
2333 for (i = PHY_AUTO_NEG_LIMIT; i > 0; i--) { in e1000_wait_autoneg()
2371 for (i = 0; i < iterations; i++) { in e1000_phy_has_link_generic()
2412 * 0 < 50 meters
2456 ret_val = phy->ops.read_reg(hw, (0x7 << GS40G_PAGE_SHIFT) + in e1000_get_cable_length_m88_gen2()
2463 ret_val = phy->ops.read_reg(hw, (0x7 << GS40G_PAGE_SHIFT) + in e1000_get_cable_length_m88_gen2()
2485 ret_val = phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0x07); in e1000_get_cable_length_m88_gen2()
2521 ret_val = phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0x05); in e1000_get_cable_length_m88_gen2()
2571 u16 phy_data, i, agc_value = 0; in e1000_get_cable_length_igp_2()
2572 u16 cur_agc_index, max_agc_index = 0; in e1000_get_cable_length_igp_2()
2584 for (i = 0; i < IGP02E1000_PHY_CHANNEL_NUM; i++) { in e1000_get_cable_length_igp_2()
2599 (cur_agc_index == 0)) in e1000_get_cable_length_igp_2()
2618 phy->min_cable_length = (((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in e1000_get_cable_length_igp_2()
2619 (agc_value - IGP02E1000_AGC_RANGE) : 0); in e1000_get_cable_length_igp_2()
2651 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link); in e1000_get_phy_info_m88()
2721 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link); in e1000_get_phy_info_igp()
2783 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link); in e1000_get_phy_info_ife()
2924 hw->phy.ops.write_reg(hw, 0x2F5B, 0x9018); in e1000_phy_init_script_igp3()
2926 hw->phy.ops.write_reg(hw, 0x2F52, 0x0000); in e1000_phy_init_script_igp3()
2928 hw->phy.ops.write_reg(hw, 0x2FB1, 0x8B24); in e1000_phy_init_script_igp3()
2930 hw->phy.ops.write_reg(hw, 0x2FB2, 0xF8F0); in e1000_phy_init_script_igp3()
2932 hw->phy.ops.write_reg(hw, 0x2010, 0x10B0); in e1000_phy_init_script_igp3()
2934 hw->phy.ops.write_reg(hw, 0x2011, 0x0000); in e1000_phy_init_script_igp3()
2936 hw->phy.ops.write_reg(hw, 0x20DD, 0x249A); in e1000_phy_init_script_igp3()
2938 hw->phy.ops.write_reg(hw, 0x20DE, 0x00D3); in e1000_phy_init_script_igp3()
2940 hw->phy.ops.write_reg(hw, 0x28B4, 0x04CE); in e1000_phy_init_script_igp3()
2942 hw->phy.ops.write_reg(hw, 0x2F70, 0x29E4); in e1000_phy_init_script_igp3()
2944 hw->phy.ops.write_reg(hw, 0x0000, 0x0140); in e1000_phy_init_script_igp3()
2946 hw->phy.ops.write_reg(hw, 0x1F30, 0x1606); in e1000_phy_init_script_igp3()
2948 hw->phy.ops.write_reg(hw, 0x1F31, 0xB814); in e1000_phy_init_script_igp3()
2950 hw->phy.ops.write_reg(hw, 0x1F35, 0x002A); in e1000_phy_init_script_igp3()
2952 hw->phy.ops.write_reg(hw, 0x1F3E, 0x0067); in e1000_phy_init_script_igp3()
2954 hw->phy.ops.write_reg(hw, 0x1F54, 0x0065); in e1000_phy_init_script_igp3()
2956 hw->phy.ops.write_reg(hw, 0x1F55, 0x002A); in e1000_phy_init_script_igp3()
2958 hw->phy.ops.write_reg(hw, 0x1F56, 0x002A); in e1000_phy_init_script_igp3()
2960 hw->phy.ops.write_reg(hw, 0x1F72, 0x3FB0); in e1000_phy_init_script_igp3()
2962 hw->phy.ops.write_reg(hw, 0x1F76, 0xC0FF); in e1000_phy_init_script_igp3()
2964 hw->phy.ops.write_reg(hw, 0x1F77, 0x1DEC); in e1000_phy_init_script_igp3()
2966 hw->phy.ops.write_reg(hw, 0x1F78, 0xF9EF); in e1000_phy_init_script_igp3()
2968 hw->phy.ops.write_reg(hw, 0x1F79, 0x0210); in e1000_phy_init_script_igp3()
2970 hw->phy.ops.write_reg(hw, 0x1895, 0x0003); in e1000_phy_init_script_igp3()
2972 hw->phy.ops.write_reg(hw, 0x1796, 0x0008); in e1000_phy_init_script_igp3()
2974 hw->phy.ops.write_reg(hw, 0x1798, 0xD008); in e1000_phy_init_script_igp3()
2978 hw->phy.ops.write_reg(hw, 0x1898, 0xD918); in e1000_phy_init_script_igp3()
2980 hw->phy.ops.write_reg(hw, 0x187A, 0x0800); in e1000_phy_init_script_igp3()
2984 hw->phy.ops.write_reg(hw, 0x0019, 0x008D); in e1000_phy_init_script_igp3()
2986 hw->phy.ops.write_reg(hw, 0x001B, 0x2080); in e1000_phy_init_script_igp3()
2988 hw->phy.ops.write_reg(hw, 0x0014, 0x0045); in e1000_phy_init_script_igp3()
2990 hw->phy.ops.write_reg(hw, 0x0000, 0x1340); in e1000_phy_init_script_igp3()
3070 u32 phy_addr = 0; in e1000_determine_phy_address()
3076 for (phy_addr = 0; phy_addr < E1000_MAX_PHY_ADDR; phy_addr++) { in e1000_determine_phy_address()
3078 i = 0; in e1000_determine_phy_address()
3109 if ((page >= 768) || (page == 0 && reg == 25) || (reg == 31)) in e1000_get_phy_addr_for_bm_page()
3155 page_shift = 0; in e1000_write_phy_reg_bm()
3215 page_shift = 0; in e1000_read_phy_reg_bm()
3430 * 3) Write the address using the address opcode (0x11)
3431 * 4) Read or write the data using the data opcode (0x12)
3447 u16 phy_reg = 0; in e1000_access_phy_wakeup_reg_bm()
3466 DEBUGOUT2("Accessing PHY page %d reg 0x%x\n", page, reg); in e1000_access_phy_wakeup_reg_bm()
3468 /* Write the Wakeup register page offset value using opcode 0x11 */ in e1000_access_phy_wakeup_reg_bm()
3476 /* Read the Wakeup register page value using opcode 0x12 */ in e1000_access_phy_wakeup_reg_bm()
3480 /* Write the Wakeup register page value using opcode 0x12 */ in e1000_access_phy_wakeup_reg_bm()
3506 u16 mii_reg = 0; in e1000_power_up_phy_copper()
3524 u16 mii_reg = 0; in e1000_power_down_phy_copper()
3567 if (page > 0 && page < HV_INTC_FC_PAGE_START) { in __e1000_read_phy_reg_hv()
3575 page = 0; in __e1000_read_phy_reg_hv()
3589 DEBUGOUT3("reading PHY page %d (or 0x%x shifted) reg 0x%x\n", page, in __e1000_read_phy_reg_hv()
3677 if (page > 0 && page < HV_INTC_FC_PAGE_START) { in __e1000_write_phy_reg_hv()
3685 page = 0; in __e1000_write_phy_reg_hv()
3695 u16 data2 = 0x7EFF; in __e1000_write_phy_reg_hv()
3697 (1 << 6) | 0x3, in __e1000_write_phy_reg_hv()
3715 DEBUGOUT3("writing PHY page %d (or 0x%x shifted) reg 0x%x\n", page, in __e1000_write_phy_reg_hv()
3813 /* masking with 0x3F to remove the page from offset */ in e1000_access_phy_debug_regs_hv()
3814 ret_val = e1000_write_phy_reg_mdic(hw, addr_reg, (u16)offset & 0x3F); in e1000_access_phy_debug_regs_hv()
3887 * Success returns 0, Failure returns -E1000_ERR_PHY (-2)
3973 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link); in e1000_get_phy_info_82577()
4124 u32 mphy_ctrl = 0; in e1000_read_phy_reg_mphy()
4186 u32 mphy_ctrl = 0; in e1000_write_phy_reg_mphy()
4247 u16 retry_count = 0; in e1000_is_mphy_ready()
4248 u32 mphy_ctrl = 0; in e1000_is_mphy_ready()
4303 /* Recalibrate the device back to 0 */ in __e1000_access_xmdio_reg()
4304 ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAC, 0); in __e1000_access_xmdio_reg()