Home
last modified time | relevance | path

Searched refs:cur_agc_index (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c1842 u16 cur_agc_index, max_agc_index = 0; in igb_get_cable_length_igp_2() local
1862 cur_agc_index = (phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & in igb_get_cable_length_igp_2()
1866 if ((cur_agc_index >= ARRAY_SIZE(e1000_igp_2_cable_length_table)) || in igb_get_cable_length_igp_2()
1867 (cur_agc_index == 0)) { in igb_get_cable_length_igp_2()
1874 e1000_igp_2_cable_length_table[cur_agc_index]) in igb_get_cable_length_igp_2()
1875 min_agc_index = cur_agc_index; in igb_get_cable_length_igp_2()
1877 e1000_igp_2_cable_length_table[cur_agc_index]) in igb_get_cable_length_igp_2()
1878 max_agc_index = cur_agc_index; in igb_get_cable_length_igp_2()
1880 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in igb_get_cable_length_igp_2()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c1866 u16 cur_agc_index, max_agc_index = 0; in e1000e_get_cable_length_igp_2() local
1886 cur_agc_index = ((phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & in e1000e_get_cable_length_igp_2()
1890 if ((cur_agc_index >= IGP02E1000_CABLE_LENGTH_TABLE_SIZE) || in e1000e_get_cable_length_igp_2()
1891 (cur_agc_index == 0)) in e1000e_get_cable_length_igp_2()
1896 e1000_igp_2_cable_length_table[cur_agc_index]) in e1000e_get_cable_length_igp_2()
1897 min_agc_index = cur_agc_index; in e1000e_get_cable_length_igp_2()
1899 e1000_igp_2_cable_length_table[cur_agc_index]) in e1000e_get_cable_length_igp_2()
1900 max_agc_index = cur_agc_index; in e1000e_get_cable_length_igp_2()
1902 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in e1000e_get_cable_length_igp_2()