Lines Matching refs:rt2x00_get_field16
782 offset0 = rt2x00_get_field16(eeprom, EEPROM_RSSI_BG_OFFSET0); in rt2800_agc_to_rssi()
783 offset1 = rt2x00_get_field16(eeprom, EEPROM_RSSI_BG_OFFSET1); in rt2800_agc_to_rssi()
785 offset2 = rt2x00_get_field16(eeprom, EEPROM_RSSI_BG2_OFFSET2); in rt2800_agc_to_rssi()
788 offset0 = rt2x00_get_field16(eeprom, EEPROM_RSSI_A_OFFSET0); in rt2800_agc_to_rssi()
789 offset1 = rt2x00_get_field16(eeprom, EEPROM_RSSI_A_OFFSET1); in rt2800_agc_to_rssi()
791 offset2 = rt2x00_get_field16(eeprom, EEPROM_RSSI_A2_OFFSET2); in rt2800_agc_to_rssi()
1179 rt2x00_get_field16(led->rt2x00dev->led_mcu_reg, in rt2800_brightness_set()
1182 rt2x00_get_field16(led->rt2x00dev->led_mcu_reg, in rt2800_brightness_set()
1759 led_ctrl = rt2x00_get_field16(eeprom, EEPROM_FREQ_LED_MODE); in rt2800_config_3572bt_ant()
1835 if (rt2x00_get_field16(eeprom, in rt2800_config_ant()
1878 lna_gain = rt2x00_get_field16(eeprom, EEPROM_LNA_BG); in rt2800_config_lna_gain()
1881 lna_gain = rt2x00_get_field16(eeprom, EEPROM_LNA_A0); in rt2800_config_lna_gain()
1885 lna_gain = rt2x00_get_field16(eeprom, in rt2800_config_lna_gain()
1889 lna_gain = rt2x00_get_field16(eeprom, in rt2800_config_lna_gain()
1895 lna_gain = rt2x00_get_field16(eeprom, in rt2800_config_lna_gain()
1899 lna_gain = rt2x00_get_field16(eeprom, in rt2800_config_lna_gain()
3443 if (!rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_EXTERNAL_TX_ALC)) in rt2800_get_gain_calibration_delta()
3456 tssi_bounds[0] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3458 tssi_bounds[1] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3462 tssi_bounds[2] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3464 tssi_bounds[3] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3468 tssi_bounds[4] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3470 tssi_bounds[5] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3474 tssi_bounds[6] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3476 tssi_bounds[7] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3480 tssi_bounds[8] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3483 step = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3487 tssi_bounds[0] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3489 tssi_bounds[1] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3493 tssi_bounds[2] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3495 tssi_bounds[3] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3499 tssi_bounds[4] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3501 tssi_bounds[5] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3505 tssi_bounds[6] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3507 tssi_bounds[7] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3511 tssi_bounds[8] = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3514 step = rt2x00_get_field16(eeprom, in rt2800_get_gain_calibration_delta()
3566 comp_en = rt2x00_get_field16(eeprom, in rt2800_get_txpower_bw_comp()
3569 comp_type = rt2x00_get_field16(eeprom, in rt2800_get_txpower_bw_comp()
3571 comp_value = rt2x00_get_field16(eeprom, in rt2800_get_txpower_bw_comp()
3577 comp_en = rt2x00_get_field16(eeprom, in rt2800_get_txpower_bw_comp()
3580 comp_type = rt2x00_get_field16(eeprom, in rt2800_get_txpower_bw_comp()
3582 comp_value = rt2x00_get_field16(eeprom, in rt2800_get_txpower_bw_comp()
3636 criterion = rt2x00_get_field16(eeprom, in rt2800_compensate_txpower()
3643 eirp_txpower_criterion = rt2x00_get_field16(eeprom, in rt2800_compensate_txpower()
3646 eirp_txpower_criterion = rt2x00_get_field16(eeprom, in rt2800_compensate_txpower()
3713 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3724 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
3735 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
3746 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE3); in rt2800_config_txpower_rt3593()
3761 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3772 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
3783 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
3798 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3809 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
3820 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
3831 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE3); in rt2800_config_txpower_rt3593()
3846 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3857 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
3868 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
3879 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE3); in rt2800_config_txpower_rt3593()
3894 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3905 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
3916 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
3927 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE3); in rt2800_config_txpower_rt3593()
3942 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3953 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
3964 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
3979 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
3990 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE1); in rt2800_config_txpower_rt3593()
4001 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE2); in rt2800_config_txpower_rt3593()
4010 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE3); in rt2800_config_txpower_rt3593()
4023 txpower = rt2x00_get_field16(eeprom, EEPROM_TXPOWER_BYRATE_RATE0); in rt2800_config_txpower_rt3593()
4162 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4173 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4184 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4195 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4211 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4222 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4233 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4244 txpower = rt2x00_get_field16(eeprom, in rt2800_config_txpower_rt28xx()
4627 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_DAC_TEST)) in rt2800_init_registers()
4663 if (rt2x00_get_field16(eeprom, in rt2800_init_registers()
5099 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_TXPATH) == 1) in rt2800_disable_unused_dac_adc()
5101 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RXPATH) == 1) in rt2800_disable_unused_dac_adc()
5528 div_mode = rt2x00_get_field16(eeprom, in rt2800_init_bbp_53xx()
5614 div_mode = rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_ANT_DIVERSITY); in rt2800_init_bbp_5592()
5689 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2800_init_bbp()
5690 value = rt2x00_get_field16(eeprom, EEPROM_BBP_VALUE); in rt2800_init_bbp()
5858 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RXPATH) == 1) in rt2800_normal_mode_setup_3xxx()
5860 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_TXPATH) == 1) in rt2800_normal_mode_setup_3xxx()
5944 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RXPATH) == 1) in rt2800_normal_mode_setup_5xxx()
5946 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_TXPATH) == 1) in rt2800_normal_mode_setup_5xxx()
6051 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_DAC_TEST)) in rt2800_init_rfcsr_30xx()
6884 return rt2x00_get_field16(word, EEPROM_TXMIXER_GAIN_BG_VAL); in rt2800_get_txmixer_gain_24g()
6898 return rt2x00_get_field16(word, EEPROM_TXMIXER_GAIN_A_VAL); in rt2800_get_txmixer_gain_5g()
6939 if (rt2x00_get_field16(word, EEPROM_NIC_CONF0_RXPATH) > 2) in rt2800_validate_eeprom()
6988 default_lna_gain = rt2x00_get_field16(word, EEPROM_LNA_A0); in rt2800_validate_eeprom()
6991 if (abs(rt2x00_get_field16(word, EEPROM_RSSI_BG_OFFSET0)) > 10) in rt2800_validate_eeprom()
6993 if (abs(rt2x00_get_field16(word, EEPROM_RSSI_BG_OFFSET1)) > 10) in rt2800_validate_eeprom()
7000 if (abs(rt2x00_get_field16(word, EEPROM_RSSI_BG2_OFFSET2)) > 10) in rt2800_validate_eeprom()
7003 if (rt2x00_get_field16(word, EEPROM_RSSI_BG2_LNA_A1) == 0x00 || in rt2800_validate_eeprom()
7004 rt2x00_get_field16(word, EEPROM_RSSI_BG2_LNA_A1) == 0xff) in rt2800_validate_eeprom()
7013 if (abs(rt2x00_get_field16(word, EEPROM_RSSI_A_OFFSET0)) > 10) in rt2800_validate_eeprom()
7015 if (abs(rt2x00_get_field16(word, EEPROM_RSSI_A_OFFSET1)) > 10) in rt2800_validate_eeprom()
7020 if (abs(rt2x00_get_field16(word, EEPROM_RSSI_A2_OFFSET2)) > 10) in rt2800_validate_eeprom()
7023 if (rt2x00_get_field16(word, EEPROM_RSSI_A2_LNA_A2) == 0x00 || in rt2800_validate_eeprom()
7024 rt2x00_get_field16(word, EEPROM_RSSI_A2_LNA_A2) == 0xff) in rt2800_validate_eeprom()
7032 if (rt2x00_get_field16(word, EEPROM_EXT_LNA2_A1) == 0x00 || in rt2800_validate_eeprom()
7033 rt2x00_get_field16(word, EEPROM_EXT_LNA2_A1) == 0xff) in rt2800_validate_eeprom()
7036 if (rt2x00_get_field16(word, EEPROM_EXT_LNA2_A2) == 0x00 || in rt2800_validate_eeprom()
7037 rt2x00_get_field16(word, EEPROM_EXT_LNA2_A2) == 0xff) in rt2800_validate_eeprom()
7067 rf = rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RF_TYPE); in rt2800_init_eeprom()
7104 rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_TXPATH); in rt2800_init_eeprom()
7106 rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RXPATH); in rt2800_init_eeprom()
7114 value = rt2x00_get_field16(eeprom, in rt2800_init_eeprom()
7141 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_EXTERNAL_LNA_5G)) in rt2800_init_eeprom()
7143 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_EXTERNAL_LNA_2G)) in rt2800_init_eeprom()
7149 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_HW_RADIO)) in rt2800_init_eeprom()
7155 if (rt2x00_get_field16(eeprom, EEPROM_NIC_CONF1_BT_COEXIST)) in rt2800_init_eeprom()
7162 rt2x00dev->freq_offset = rt2x00_get_field16(eeprom, EEPROM_FREQ_OFFSET); in rt2800_init_eeprom()
7180 if (rt2x00_get_field16(eeprom, EEPROM_EIRP_MAX_TX_POWER_2GHZ) < in rt2800_init_eeprom()