Searched refs:cur_agc_index (Results 1 – 2 of 2) sorted by relevance
1843 u16 cur_agc_index, max_agc_index = 0; in igb_get_cable_length_igp_2() local1863 cur_agc_index = (phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & in igb_get_cable_length_igp_2()1867 if ((cur_agc_index >= ARRAY_SIZE(e1000_igp_2_cable_length_table)) || in igb_get_cable_length_igp_2()1868 (cur_agc_index == 0)) { in igb_get_cable_length_igp_2()1875 e1000_igp_2_cable_length_table[cur_agc_index]) in igb_get_cable_length_igp_2()1876 min_agc_index = cur_agc_index; in igb_get_cable_length_igp_2()1878 e1000_igp_2_cable_length_table[cur_agc_index]) in igb_get_cable_length_igp_2()1879 max_agc_index = cur_agc_index; in igb_get_cable_length_igp_2()1881 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in igb_get_cable_length_igp_2()
1817 u16 cur_agc_index, max_agc_index = 0; in e1000e_get_cable_length_igp_2() local1837 cur_agc_index = ((phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & in e1000e_get_cable_length_igp_2()1841 if ((cur_agc_index >= IGP02E1000_CABLE_LENGTH_TABLE_SIZE) || in e1000e_get_cable_length_igp_2()1842 (cur_agc_index == 0)) in e1000e_get_cable_length_igp_2()1847 e1000_igp_2_cable_length_table[cur_agc_index]) in e1000e_get_cable_length_igp_2()1848 min_agc_index = cur_agc_index; in e1000e_get_cable_length_igp_2()1850 e1000_igp_2_cable_length_table[cur_agc_index]) in e1000e_get_cable_length_igp_2()1851 max_agc_index = cur_agc_index; in e1000e_get_cable_length_igp_2()1853 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in e1000e_get_cable_length_igp_2()