Lines Matching refs:pdg

3084 	u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size;  in ath5k_combine_pwr_to_pdadc_curves()  local
3094 for (pdg = 0, pdadc_i = 0; pdg < pdcurves; pdg++) { in ath5k_combine_pwr_to_pdadc_curves()
3095 pdadc_tmp = ah->ah_txpower.tmpL[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3097 if (pdg == pdcurves - 1) in ath5k_combine_pwr_to_pdadc_curves()
3100 gain_boundaries[pdg] = pwr_max[pdg] + 4; in ath5k_combine_pwr_to_pdadc_curves()
3104 gain_boundaries[pdg] = in ath5k_combine_pwr_to_pdadc_curves()
3105 (pwr_max[pdg] + pwr_min[pdg + 1]) / 2; in ath5k_combine_pwr_to_pdadc_curves()
3109 if (gain_boundaries[pdg] > AR5K_TUNE_MAX_TXPOWER) in ath5k_combine_pwr_to_pdadc_curves()
3110 gain_boundaries[pdg] = AR5K_TUNE_MAX_TXPOWER; in ath5k_combine_pwr_to_pdadc_curves()
3114 if (pdg == 0) in ath5k_combine_pwr_to_pdadc_curves()
3118 pdadc_0 = (gain_boundaries[pdg - 1] - pwr_min[pdg]) - in ath5k_combine_pwr_to_pdadc_curves()
3136 pdadc_n = gain_boundaries[pdg] + pd_gain_overlap - pwr_min[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3138 table_size = pwr_max[pdg] - pwr_min[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3166 while (pdg < AR5K_EEPROM_N_PD_GAINS) { in ath5k_combine_pwr_to_pdadc_curves()
3167 gain_boundaries[pdg] = gain_boundaries[pdg - 1]; in ath5k_combine_pwr_to_pdadc_curves()
3168 pdg++; in ath5k_combine_pwr_to_pdadc_curves()
3284 int pdg, i; in ath5k_setup_channel_powertable() local
3293 for (pdg = 0; pdg < ee->ee_pd_gains[ee_mode]; pdg++) { in ath5k_setup_channel_powertable()
3299 u8 idx = pdg_curve_to_idx[pdg]; in ath5k_setup_channel_powertable()
3306 tmpL = ah->ah_txpower.tmpL[pdg]; in ath5k_setup_channel_powertable()
3307 tmpR = ah->ah_txpower.tmpR[pdg]; in ath5k_setup_channel_powertable()
3315 table_min[pdg] = min(pdg_L->pd_pwr[0], in ath5k_setup_channel_powertable()
3318 table_max[pdg] = max(pdg_L->pd_pwr[pdg_L->pd_points - 1], in ath5k_setup_channel_powertable()
3328 table_min[pdg] = min(pdg_L->pd_pwr[0], in ath5k_setup_channel_powertable()
3331 table_max[pdg] = in ath5k_setup_channel_powertable()
3340 if (!(ee->ee_pd_gains[ee_mode] > 1 && pdg == 0)) { in ath5k_setup_channel_powertable()
3342 table_min[pdg] = in ath5k_setup_channel_powertable()
3352 if (table_max[pdg] - table_min[pdg] > 126) in ath5k_setup_channel_powertable()
3353 table_min[pdg] = table_max[pdg] - 126; in ath5k_setup_channel_powertable()
3360 ath5k_create_power_curve(table_min[pdg], in ath5k_setup_channel_powertable()
3361 table_max[pdg], in ath5k_setup_channel_powertable()
3372 ath5k_create_power_curve(table_min[pdg], in ath5k_setup_channel_powertable()
3373 table_max[pdg], in ath5k_setup_channel_powertable()
3387 for (i = 0; (i < (u16) (table_max[pdg] - table_min[pdg])) && in ath5k_setup_channel_powertable()