Searched refs:cur_agc_index (Results 1 – 2 of 2) sorted by relevance
1845 u16 cur_agc_index, max_agc_index = 0; in igb_get_cable_length_igp_2() local1865 cur_agc_index = (phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & in igb_get_cable_length_igp_2()1869 if ((cur_agc_index >= ARRAY_SIZE(e1000_igp_2_cable_length_table)) || in igb_get_cable_length_igp_2()1870 (cur_agc_index == 0)) { 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 min_agc_index = cur_agc_index; in igb_get_cable_length_igp_2()1880 e1000_igp_2_cable_length_table[cur_agc_index]) in igb_get_cable_length_igp_2()1881 max_agc_index = cur_agc_index; in igb_get_cable_length_igp_2()1883 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in igb_get_cable_length_igp_2()
1835 u16 cur_agc_index, max_agc_index = 0; in e1000e_get_cable_length_igp_2() local1855 cur_agc_index = ((phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & in e1000e_get_cable_length_igp_2()1859 if ((cur_agc_index >= IGP02E1000_CABLE_LENGTH_TABLE_SIZE) || in e1000e_get_cable_length_igp_2()1860 (cur_agc_index == 0)) in e1000e_get_cable_length_igp_2()1865 e1000_igp_2_cable_length_table[cur_agc_index]) in e1000e_get_cable_length_igp_2()1866 min_agc_index = cur_agc_index; in e1000e_get_cable_length_igp_2()1868 e1000_igp_2_cable_length_table[cur_agc_index]) in e1000e_get_cable_length_igp_2()1869 max_agc_index = cur_agc_index; in e1000e_get_cable_length_igp_2()1871 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in e1000e_get_cable_length_igp_2()