• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/ath/ath5k/

Lines Matching refs:pdg

2504 	u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size;
2511 for (pdg = 0, pdadc_i = 0; pdg < pdcurves; pdg++) {
2512 pdadc_tmp = ah->ah_txpower.tmpL[pdg];
2514 if (pdg == pdcurves - 1)
2517 gain_boundaries[pdg] = pwr_max[pdg] + 4;
2521 gain_boundaries[pdg] =
2522 (pwr_max[pdg] + pwr_min[pdg + 1]) / 2;
2526 if (gain_boundaries[pdg] > AR5K_TUNE_MAX_TXPOWER)
2527 gain_boundaries[pdg] = AR5K_TUNE_MAX_TXPOWER;
2531 if (pdg == 0)
2535 pdadc_0 = (gain_boundaries[pdg - 1] - pwr_min[pdg]) -
2553 pdadc_n = gain_boundaries[pdg] + pd_gain_overlap - pwr_min[pdg];
2555 table_size = pwr_max[pdg] - pwr_min[pdg];
2583 while (pdg < AR5K_EEPROM_N_PD_GAINS) {
2584 gain_boundaries[pdg] = gain_boundaries[pdg - 1];
2585 pdg++;
2693 int pdg, i;
2702 for (pdg = 0; pdg < ee->ee_pd_gains[ee_mode]; pdg++) {
2708 u8 idx = pdg_curve_to_idx[pdg];
2715 tmpL = ah->ah_txpower.tmpL[pdg];
2716 tmpR = ah->ah_txpower.tmpR[pdg];
2724 table_min[pdg] = min(pdg_L->pd_pwr[0],
2727 table_max[pdg] = max(pdg_L->pd_pwr[pdg_L->pd_points - 1],
2737 table_min[pdg] = min(pdg_L->pd_pwr[0],
2740 table_max[pdg] =
2749 if (!(ee->ee_pd_gains[ee_mode] > 1 && pdg == 0)) {
2751 table_min[pdg] =
2761 if (table_max[pdg] - table_min[pdg] > 126)
2762 table_min[pdg] = table_max[pdg] - 126;
2769 ath5k_create_power_curve(table_min[pdg],
2770 table_max[pdg],
2781 ath5k_create_power_curve(table_min[pdg],
2782 table_max[pdg],
2796 for (i = 0; (i < (u16) (table_max[pdg] - table_min[pdg])) &&
2808 * and y values are tmpL[pdg][]) sorted in the same
2864 ath5k_setup_pwr_to_pdadc_table(ah, pdg, pdg_curve_to_idx);