Lines Matching refs:pdg

3081 	u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size;  in ath5k_combine_pwr_to_pdadc_curves()  local
3091 for (pdg = 0, pdadc_i = 0; pdg < pdcurves; pdg++) { in ath5k_combine_pwr_to_pdadc_curves()
3092 pdadc_tmp = ah->ah_txpower.tmpL[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3094 if (pdg == pdcurves - 1) in ath5k_combine_pwr_to_pdadc_curves()
3097 gain_boundaries[pdg] = pwr_max[pdg] + 4; in ath5k_combine_pwr_to_pdadc_curves()
3101 gain_boundaries[pdg] = in ath5k_combine_pwr_to_pdadc_curves()
3102 (pwr_max[pdg] + pwr_min[pdg + 1]) / 2; in ath5k_combine_pwr_to_pdadc_curves()
3106 if (gain_boundaries[pdg] > AR5K_TUNE_MAX_TXPOWER) in ath5k_combine_pwr_to_pdadc_curves()
3107 gain_boundaries[pdg] = AR5K_TUNE_MAX_TXPOWER; in ath5k_combine_pwr_to_pdadc_curves()
3111 if (pdg == 0) in ath5k_combine_pwr_to_pdadc_curves()
3115 pdadc_0 = (gain_boundaries[pdg - 1] - pwr_min[pdg]) - in ath5k_combine_pwr_to_pdadc_curves()
3133 pdadc_n = gain_boundaries[pdg] + pd_gain_overlap - pwr_min[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3135 table_size = pwr_max[pdg] - pwr_min[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3163 while (pdg < AR5K_EEPROM_N_PD_GAINS) { in ath5k_combine_pwr_to_pdadc_curves()
3164 gain_boundaries[pdg] = gain_boundaries[pdg - 1]; in ath5k_combine_pwr_to_pdadc_curves()
3165 pdg++; in ath5k_combine_pwr_to_pdadc_curves()
3281 int pdg, i; in ath5k_setup_channel_powertable() local
3290 for (pdg = 0; pdg < ee->ee_pd_gains[ee_mode]; pdg++) { in ath5k_setup_channel_powertable()
3296 u8 idx = pdg_curve_to_idx[pdg]; in ath5k_setup_channel_powertable()
3303 tmpL = ah->ah_txpower.tmpL[pdg]; in ath5k_setup_channel_powertable()
3304 tmpR = ah->ah_txpower.tmpR[pdg]; in ath5k_setup_channel_powertable()
3312 table_min[pdg] = min(pdg_L->pd_pwr[0], in ath5k_setup_channel_powertable()
3315 table_max[pdg] = max(pdg_L->pd_pwr[pdg_L->pd_points - 1], in ath5k_setup_channel_powertable()
3325 table_min[pdg] = min(pdg_L->pd_pwr[0], in ath5k_setup_channel_powertable()
3328 table_max[pdg] = in ath5k_setup_channel_powertable()
3337 if (!(ee->ee_pd_gains[ee_mode] > 1 && pdg == 0)) { in ath5k_setup_channel_powertable()
3339 table_min[pdg] = in ath5k_setup_channel_powertable()
3349 if (table_max[pdg] - table_min[pdg] > 126) in ath5k_setup_channel_powertable()
3350 table_min[pdg] = table_max[pdg] - 126; in ath5k_setup_channel_powertable()
3357 ath5k_create_power_curve(table_min[pdg], in ath5k_setup_channel_powertable()
3358 table_max[pdg], in ath5k_setup_channel_powertable()
3369 ath5k_create_power_curve(table_min[pdg], in ath5k_setup_channel_powertable()
3370 table_max[pdg], in ath5k_setup_channel_powertable()
3384 for (i = 0; (i < (u16) (table_max[pdg] - table_min[pdg])) && in ath5k_setup_channel_powertable()