Home
last modified time | relevance | path

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

/freebsd/sys/dev/e1000/
H A De1000_82541.c877 u16 cur_agc_value, agc_value = 0; in e1000_get_cable_length_igp_82541() local
901 agc_value += cur_agc_value; in e1000_get_cable_length_igp_82541()
908 if (agc_value < IGP01E1000_PHY_CHANNEL_NUM * 50) { in e1000_get_cable_length_igp_82541()
909 agc_value -= min_agc_value; in e1000_get_cable_length_igp_82541()
911 agc_value /= (IGP01E1000_PHY_CHANNEL_NUM - 1); in e1000_get_cable_length_igp_82541()
914 agc_value /= IGP01E1000_PHY_CHANNEL_NUM; in e1000_get_cable_length_igp_82541()
917 phy->min_cable_length = (e1000_igp_cable_length_table[agc_value] > in e1000_get_cable_length_igp_82541()
919 ? (e1000_igp_cable_length_table[agc_value] - in e1000_get_cable_length_igp_82541()
922 phy->max_cable_length = e1000_igp_cable_length_table[agc_value] + in e1000_get_cable_length_igp_82541()
H A De1000_phy.c2571 u16 phy_data, i, agc_value = 0; in e1000_get_cable_length_igp_2() local
2610 agc_value += e1000_igp_2_cable_length_table[cur_agc_index]; in e1000_get_cable_length_igp_2()
2613 agc_value -= (e1000_igp_2_cable_length_table[min_agc_index] + in e1000_get_cable_length_igp_2()
2615 agc_value /= (IGP02E1000_PHY_CHANNEL_NUM - 2); in e1000_get_cable_length_igp_2()
2618 phy->min_cable_length = (((agc_value - IGP02E1000_AGC_RANGE) > 0) ? in e1000_get_cable_length_igp_2()
2619 (agc_value - IGP02E1000_AGC_RANGE) : 0); in e1000_get_cable_length_igp_2()
2620 phy->max_cable_length = agc_value + IGP02E1000_AGC_RANGE; in e1000_get_cable_length_igp_2()