Searched refs:agc_value (Results 1 – 3 of 3) sorted by relevance
1843 u16 phy_data, i, agc_value = 0; in igb_get_cable_length_igp_2() local1882 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in igb_get_cable_length_igp_2()1885 agc_value -= (e1000_igp_2_cable_length_table[min_agc_index] + in igb_get_cable_length_igp_2()1887 agc_value /= (IGP02E1000_PHY_CHANNEL_NUM - 2); in igb_get_cable_length_igp_2()1890 phy->min_cable_length = ((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in igb_get_cable_length_igp_2()1891 (agc_value - IGP02E1000_AGC_RANGE) : 0; in igb_get_cable_length_igp_2()1892 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()
4882 u16 agc_value = 0; in e1000_get_cable_length() local4946 agc_value += cur_agc_value; in e1000_get_cable_length()4954 if (agc_value < in e1000_get_cable_length()4956 agc_value -= min_agc_value; in e1000_get_cable_length()4959 agc_value /= (IGP01E1000_PHY_CHANNEL_NUM - 1); in e1000_get_cable_length()4962 agc_value /= IGP01E1000_PHY_CHANNEL_NUM; in e1000_get_cable_length()4966 *min_length = ((e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length()4968 (e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length()4970 *max_length = e1000_igp_cable_length_table[agc_value] + in e1000_get_cable_length()