/freebsd-11-stable/sys/dev/ath/ath_hal/ |
H A D | ah_eeprom_v1.c | 204 /* Copy pcdac and gain_f values from EEPROM */ 205 chan->pcdac[0] = (athvals[loc] >> 10) & 0x3F; 207 chan->pcdac[1] = ((athvals[loc] << 2) & 0x3C) 210 chan->pcdac[2] = (athvals[loc+1] >> 2) & 0x3F; 213 chan->pcdac[3] = (athvals[loc+2] >> 6) & 0x3F; 215 chan->pcdac[4] = (athvals[loc+3] >> 10) & 0x3F; 217 chan->pcdac[5] = ((athvals[loc+3] << 2) & 0x3C) 220 chan->pcdac[6] = (athvals[loc+4] >> 2) & 0x3F; 223 chan->pcdac[7] = (athvals[loc+5] >> 6) & 0x3F; 225 chan->pcdac[ [all...] |
H A D | ah_eeprom_v1.h | 55 #define AR_TP_SCALING_ENTRIES 11 /* # entries in transmit power dBm->pcdac */ 73 uint8_t pcdac[AR_TP_SCALING_ENTRIES]; member in struct:tpcMap
|
H A D | ah_eeprom_v3.c | 229 pExpnXPD->pcdac[0] = pCalCh->pcd1_xg0; 230 pExpnXPD->pcdac[1] = (uint16_t) 231 (pExpnXPD->pcdac[0] + pCalCh->pcd2_delta_xg0); 232 pExpnXPD->pcdac[2] = (uint16_t) 233 (pExpnXPD->pcdac[1] + pCalCh->pcd3_delta_xg0); 234 pExpnXPD->pcdac[3] = (uint16_t) 235 (pExpnXPD->pcdac[2] + pCalCh->pcd4_delta_xg0); 243 pPowerExpn->pDataPerChannel[ii].pDataPerXPD[xgainList[0]].pcdac[0] = pCalCh->pcd1_xg0; 244 pPowerExpn->pDataPerChannel[ii].pDataPerXPD[xgainList[1]].pcdac[0] = 20; 245 pPowerExpn->pDataPerChannel[ii].pDataPerXPD[xgainList[1]].pcdac[ [all...] |
H A D | ah_eeprom_9287.h | 117 uint8_t pcdac[2][5]; member in struct:cal_data_op_loop_ar9287
|
H A D | ah_eeprom_v14.h | 251 uint8_t pcdac[2][5]; /* pcdac used for power measurement */ member in struct:calDataPerFreqOpLoop
|
H A D | ah_eeprom_v3.h | 153 /* Used during pcdac table construction */ 185 /* points to the appropriate pcdac structs in the above struct based on mode */ 236 uint16_t pcdac[NUM_POINTS_XPD0]; member in struct:__anon9194 264 int16_t pwr1_xg3; /* pcdac = 20 */ 265 int16_t pwr2_xg3; /* pcdac = 35 */ 266 int16_t pwr3_xg3; /* pcdac = 63 */
|
/freebsd-11-stable/tools/tools/ath/athpow/ |
H A D | athpow.c | 62 static void printPcdacTable(FILE *fd, u_int16_t pcdac[], u_int n); 139 printPcdacTable(FILE *fd, u_int16_t pcdac[], u_int n) argument 145 i, pcdac[2*i + 1], pcdac[2*i], 146 i+1, pcdac[2*(i+1) + 1], pcdac[2*(i+1)]);
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_reset.c | 614 * Returns: the pcdac value 626 if (pRD->pcdac[i] != 63) 627 return pRD->pcdac[i]; 631 if (pRD->pcdac[i] != 63 && pRD->pcdac[i-1] != 63) { 632 interp = (350 * (pRD->pcdac[i] - pRD->pcdac[i-1])) + 999; 633 interp = (interp / 1000) + pRD->pcdac[i-1]; 639 if (pRD->pcdac[i] != 63) 640 return pRD->pcdac[ 660 getGainF(struct ath_hal *ah, const struct tpcMap *pRD, uint8_t pcdac, uint8_t *dBm) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9280_olc.c | 65 uint8_t pcdac, i = 0; local 80 pcdac = rawDatasetOpLoop[idxL].pcdac[0][0]; 83 pcdac = rawDatasetOpLoop[idxR].pcdac[0][0]; 87 while (pcdac > AH9280(ah)->originalGain[i] &&
|
H A D | ar9280.c | 267 minPcdac = data->pDataPerXPD[minIndex].pcdac[0]; 271 minPcdac = data->pDataPerXPD[minIndex].pcdac[i];
|
H A D | ar9287.c | 209 minPcdac = data->pDataPerXPD[minIndex].pcdac[0]; 213 minPcdac = data->pDataPerXPD[minIndex].pcdac[i];
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5112.c | 434 OS_MEMCPY(&pcdacs[0], &pRawCh->pDataPerXPD[jj].pcdac[0], 447 OS_MEMCPY(&pcdacs[0], &pRawCh->pDataPerXPD[jj].pcdac[0], 461 OS_MEMCPY(&pcdacs[0], &pRawCh->pDataPerXPD[jj].pcdac[0], 615 "%s: at least 2 pcdac values needed [%d]\n", 657 /* Search for highest pcdac 0.25dB below maxPower */ 695 uint16_t msbFlag = 0x40; // turns on the 7th bit of the pcdac 706 /* Search for highest pcdac 0.25dB below maxPower */ 754 minPcdac = data->pDataPerXPD[minIndex].pcdac[0]; 758 minPcdac = data->pDataPerXPD[minIndex].pcdac[i];
|
H A D | ar5111.c | 52 static void ar5212GetLowerUpperPcdacs(uint16_t pcdac, uint16_t channel, 413 /* setup the pcdac struct to point to the correct info, based on mode */ 457 /* Now scale the pcdac values to fit in the 64 entry power table */ 478 * this pcdac the same as the power from the 479 * next highest pcdac. 491 /* Find the first power level with a pcdac */ 495 /* Write all the first pcdac entries based off the pcdacMin */ 523 /* Write all the last pcdac entries based off the last valid pcdac */ 537 * Get or interpolate the pcdac valu 608 ar5212GetLowerUpperPcdacs(uint16_t pcdac, uint16_t channel, const PCDACS_EEPROM *pSrcStruct, uint16_t *pLowerPcdac, uint16_t *pUpperPcdac) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar2133.c | 350 minPcdac = data->pDataPerXPD[minIndex].pcdac[0]; 354 minPcdac = data->pDataPerXPD[minIndex].pcdac[i];
|
/freebsd-11-stable/tools/tools/ath/ath_ee_9287_print/ |
H A D | 9287.c | 168 printf(" pcdac:"); 170 printf("[%d][%d]=%d, ", i, j, f->pcdac[i][j]);
|
/freebsd-11-stable/tools/tools/ath/ath_ee_v14_print/ |
H A D | ath_ee_v14_print.c | 229 printf(" %d: pwrPdg: %d, vpdPdg: %d, pcdac: %d, empty: %d\n", 230 j, f->pwrPdg[i][j], f->vpdPdg[i][j], f->pcdac[i][j], f->empty[i][j]);
|
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_eeprom.c | 4711 int i, u_int8_t *pcdac) 4717 *pcdac = 0; 4722 *pcdac = ((tx_gain >> 24) & 0xff); 4728 // pcdac read back from reg, read back value depends on reset 2GHz/5GHz ini 4739 u_int8_t pcdac = 0; local 4762 ar9300_eeprom_get_pcdac_tx_gain_table_i(ah, ig, &pcdac); 4763 if (pcdac >= tx_gain_max[i]) 4768 if (pcdac == tx_gain_max[i]) 4710 ar9300_eeprom_get_pcdac_tx_gain_table_i(struct ath_hal *ah, int i, u_int8_t *pcdac) argument
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_reset.c | 135 static void ar5211GetLowerUpperPcdacs(uint16_t pcdac, 1323 /* setup the pcdac struct to point to the correct info, based on mode */ 1410 /* Now scale the pcdac values to fit in the 64 entry power table */ 1431 * this pcdac the same as the power from the 1432 * next highest pcdac. 1444 /* Find the first power level with a pcdac */ 1447 /* Write all the first pcdac entries based off the pcdacMin */ 1471 /* Write all the last pcdac entries based off the last valid pcdac */ 1690 * Get or interpolate the pcdac valu 1869 ar5211GetLowerUpperPcdacs(uint16_t pcdac, uint16_t channel, const PCDACS_EEPROM *pSrcStruct, uint16_t *pLowerPcdac, uint16_t *pUpperPcdac) argument [all...] |
/freebsd-11-stable/tools/tools/ath/athprom/ |
H A D | athprom.c | 800 } else if (strneq(var, "pcdac", 5)) { 807 pDataPerXPD[singleXpd].pcdac[atoi(var+5)]); 809 undef("pcdac");
|