Searched refs:agc_value (Results 1 – 3 of 3) sorted by relevance
1842 u16 phy_data, i, agc_value = 0; in igb_get_cable_length_igp_2() local1881 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in igb_get_cable_length_igp_2()1884 agc_value -= (e1000_igp_2_cable_length_table[min_agc_index] + in igb_get_cable_length_igp_2()1886 agc_value /= (IGP02E1000_PHY_CHANNEL_NUM - 2); in igb_get_cable_length_igp_2()1889 phy->min_cable_length = ((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in igb_get_cable_length_igp_2()1890 (agc_value - IGP02E1000_AGC_RANGE) : 0; in igb_get_cable_length_igp_2()1891 phy->max_cable_length = agc_value + IGP02E1000_AGC_RANGE; in igb_get_cable_length_igp_2()
1816 u16 phy_data, i, agc_value = 0; in e1000e_get_cable_length_igp_2() local1853 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in e1000e_get_cable_length_igp_2()1856 agc_value -= (e1000_igp_2_cable_length_table[min_agc_index] + in e1000e_get_cable_length_igp_2()1858 agc_value /= (IGP02E1000_PHY_CHANNEL_NUM - 2); in e1000e_get_cable_length_igp_2()1861 phy->min_cable_length = (((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in e1000e_get_cable_length_igp_2()1862 (agc_value - IGP02E1000_AGC_RANGE) : 0); in e1000e_get_cable_length_igp_2()1863 phy->max_cable_length = agc_value + IGP02E1000_AGC_RANGE; in e1000e_get_cable_length_igp_2()
4881 u16 agc_value = 0; in e1000_get_cable_length() local4945 agc_value += cur_agc_value; in e1000_get_cable_length()4953 if (agc_value < in e1000_get_cable_length()4955 agc_value -= min_agc_value; in e1000_get_cable_length()4958 agc_value /= (IGP01E1000_PHY_CHANNEL_NUM - 1); in e1000_get_cable_length()4961 agc_value /= IGP01E1000_PHY_CHANNEL_NUM; in e1000_get_cable_length()4965 *min_length = ((e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length()4967 (e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length()4969 *max_length = e1000_igp_cable_length_table[agc_value] + in e1000_get_cable_length()