Home
last modified time | relevance | path

Searched refs:agc_value (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/intel/igb/
De1000_phy.c1841 u16 phy_data, i, agc_value = 0; in igb_get_cable_length_igp_2() local
1880 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in igb_get_cable_length_igp_2()
1883 agc_value -= (e1000_igp_2_cable_length_table[min_agc_index] + in igb_get_cable_length_igp_2()
1885 agc_value /= (IGP02E1000_PHY_CHANNEL_NUM - 2); in igb_get_cable_length_igp_2()
1888 phy->min_cable_length = ((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in igb_get_cable_length_igp_2()
1889 (agc_value - IGP02E1000_AGC_RANGE) : 0; in igb_get_cable_length_igp_2()
1890 phy->max_cable_length = agc_value + IGP02E1000_AGC_RANGE; in igb_get_cable_length_igp_2()
/linux-6.12.1/drivers/net/ethernet/intel/e1000e/
Dphy.c1864 u16 phy_data, i, agc_value = 0; in e1000e_get_cable_length_igp_2() local
1901 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in e1000e_get_cable_length_igp_2()
1904 agc_value -= (e1000_igp_2_cable_length_table[min_agc_index] + in e1000e_get_cable_length_igp_2()
1906 agc_value /= (IGP02E1000_PHY_CHANNEL_NUM - 2); 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()
1911 phy->max_cable_length = agc_value + IGP02E1000_AGC_RANGE; in e1000e_get_cable_length_igp_2()
/linux-6.12.1/drivers/net/ethernet/intel/e1000/
De1000_hw.c4878 u16 agc_value = 0; in e1000_get_cable_length() local
4941 agc_value += cur_agc_value; in e1000_get_cable_length()
4949 if (agc_value < in e1000_get_cable_length()
4951 agc_value -= min_agc_value; in e1000_get_cable_length()
4954 agc_value /= (IGP01E1000_PHY_CHANNEL_NUM - 1); in e1000_get_cable_length()
4957 agc_value /= IGP01E1000_PHY_CHANNEL_NUM; in e1000_get_cable_length()
4961 *min_length = ((e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length()
4963 (e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length()
4965 *max_length = e1000_igp_cable_length_table[agc_value] + in e1000_get_cable_length()