pModal 238 drivers/net/wireless/ath/ath9k/eeprom_4k.c struct modal_eep_4k_header *pModal = &eep->modalHeader; pModal 243 drivers/net/wireless/ath/ath9k/eeprom_4k.c return pModal->noiseFloorThreshCh[0]; pModal 259 drivers/net/wireless/ath/ath9k/eeprom_4k.c return pModal->ob_0; pModal 261 drivers/net/wireless/ath/ath9k/eeprom_4k.c return pModal->db1_1; pModal 271 drivers/net/wireless/ath/ath9k/eeprom_4k.c return pModal->version; pModal 273 drivers/net/wireless/ath/ath9k/eeprom_4k.c return pModal->antdiv_ctl1; pModal 277 drivers/net/wireless/ath/ath9k/eeprom_4k.c return pModal->antennaGainCh[0]; pModal 585 drivers/net/wireless/ath/ath9k/eeprom_4k.c struct modal_eep_4k_header *pModal = &pEepData->modalHeader; pModal 593 drivers/net/wireless/ath/ath9k/eeprom_4k.c ht40PowerIncForPdadc = pModal->ht40PowerIncForPdadc; pModal 700 drivers/net/wireless/ath/ath9k/eeprom_4k.c struct modal_eep_4k_header *pModal, pModal 706 drivers/net/wireless/ath/ath9k/eeprom_4k.c le32_to_cpu(pModal->antCtrlChain[0]), 0); pModal 709 drivers/net/wireless/ath/ath9k/eeprom_4k.c SM(pModal->iqCalICh[0], AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF) | pModal 710 drivers/net/wireless/ath/ath9k/eeprom_4k.c SM(pModal->iqCalQCh[0], AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF), pModal 714 drivers/net/wireless/ath/ath9k/eeprom_4k.c txRxAttenLocal = pModal->txRxAttenCh[0]; pModal 717 drivers/net/wireless/ath/ath9k/eeprom_4k.c AR_PHY_GAIN_2GHZ_XATTEN1_MARGIN, pModal->bswMargin[0]); pModal 719 drivers/net/wireless/ath/ath9k/eeprom_4k.c AR_PHY_GAIN_2GHZ_XATTEN1_DB, pModal->bswAtten[0]); pModal 722 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->xatten2Margin[0]); pModal 724 drivers/net/wireless/ath/ath9k/eeprom_4k.c AR_PHY_GAIN_2GHZ_XATTEN2_DB, pModal->xatten2Db[0]); pModal 729 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->bswMargin[0]); pModal 731 drivers/net/wireless/ath/ath9k/eeprom_4k.c AR_PHY_GAIN_2GHZ_XATTEN1_DB, pModal->bswAtten[0]); pModal 734 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->xatten2Margin[0]); pModal 737 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->xatten2Db[0]); pModal 743 drivers/net/wireless/ath/ath9k/eeprom_4k.c AR9280_PHY_RXGAIN_TXRX_MARGIN, pModal->rxTxMarginCh[0]); pModal 748 drivers/net/wireless/ath/ath9k/eeprom_4k.c AR9280_PHY_RXGAIN_TXRX_MARGIN, pModal->rxTxMarginCh[0]); pModal 760 drivers/net/wireless/ath/ath9k/eeprom_4k.c struct modal_eep_4k_header *pModal; pModal 769 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal = &eep->modalHeader; pModal 772 drivers/net/wireless/ath/ath9k/eeprom_4k.c REG_WRITE(ah, AR_PHY_SWITCH_COM, le32_to_cpu(pModal->antCtrlCommon)); pModal 775 drivers/net/wireless/ath/ath9k/eeprom_4k.c ath9k_hw_4k_set_gain(ah, pModal, eep, txRxAttenLocal); pModal 778 drivers/net/wireless/ath/ath9k/eeprom_4k.c if (pModal->version >= 3) { pModal 779 drivers/net/wireless/ath/ath9k/eeprom_4k.c ant_div_control1 = pModal->antdiv_ctl1; pModal 780 drivers/net/wireless/ath/ath9k/eeprom_4k.c ant_div_control2 = pModal->antdiv_ctl2; pModal 826 drivers/net/wireless/ath/ath9k/eeprom_4k.c if (pModal->version >= 2) { pModal 827 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[0] = pModal->ob_0; pModal 828 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[1] = pModal->ob_1; pModal 829 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[2] = pModal->ob_2; pModal 830 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[3] = pModal->ob_3; pModal 831 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[4] = pModal->ob_4; pModal 833 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[0] = pModal->db1_0; pModal 834 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[1] = pModal->db1_1; pModal 835 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[2] = pModal->db1_2; pModal 836 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[3] = pModal->db1_3; pModal 837 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[4] = pModal->db1_4; pModal 839 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[0] = pModal->db2_0; pModal 840 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[1] = pModal->db2_1; pModal 841 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[2] = pModal->db2_2; pModal 842 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[3] = pModal->db2_3; pModal 843 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[4] = pModal->db2_4; pModal 844 drivers/net/wireless/ath/ath9k/eeprom_4k.c } else if (pModal->version == 1) { pModal 845 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[0] = pModal->ob_0; pModal 846 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[1] = ob[2] = ob[3] = ob[4] = pModal->ob_1; pModal 847 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[0] = pModal->db1_0; pModal 848 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[1] = db1[2] = db1[3] = db1[4] = pModal->db1_1; pModal 849 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[0] = pModal->db2_0; pModal 850 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[1] = db2[2] = db2[3] = db2[4] = pModal->db2_1; pModal 855 drivers/net/wireless/ath/ath9k/eeprom_4k.c ob[i] = pModal->ob_0; pModal 856 drivers/net/wireless/ath/ath9k/eeprom_4k.c db1[i] = pModal->db1_0; pModal 857 drivers/net/wireless/ath/ath9k/eeprom_4k.c db2[i] = pModal->db1_0; pModal 970 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->switchSettling); pModal 972 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->adcDesiredSize); pModal 975 drivers/net/wireless/ath/ath9k/eeprom_4k.c SM(pModal->txEndToXpaOff, AR_PHY_RF_CTL4_TX_END_XPAA_OFF) | pModal 976 drivers/net/wireless/ath/ath9k/eeprom_4k.c SM(pModal->txEndToXpaOff, AR_PHY_RF_CTL4_TX_END_XPAB_OFF) | pModal 977 drivers/net/wireless/ath/ath9k/eeprom_4k.c SM(pModal->txFrameToXpaOn, AR_PHY_RF_CTL4_FRAME_XPAA_ON) | pModal 978 drivers/net/wireless/ath/ath9k/eeprom_4k.c SM(pModal->txFrameToXpaOn, AR_PHY_RF_CTL4_FRAME_XPAB_ON), 0); pModal 981 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->txEndToRxOn); pModal 985 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->txEndToRxOn); pModal 987 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->thresh62); pModal 989 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->thresh62); pModal 993 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->txFrameToDataStart); pModal 995 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->txFrameToPaOn); pModal 1002 drivers/net/wireless/ath/ath9k/eeprom_4k.c pModal->swSettleHt40); pModal 1007 drivers/net/wireless/ath/ath9k/eeprom_4k.c bb_desired_scale = (pModal->bb_scale_smrt_antenna & pModal 236 drivers/net/wireless/ath/ath9k/eeprom_9287.c struct modal_eep_ar9287_header *pModal = &eep->modalHeader; pModal 242 drivers/net/wireless/ath/ath9k/eeprom_9287.c return pModal->noiseFloorThreshCh[0]; pModal 276 drivers/net/wireless/ath/ath9k/eeprom_9287.c return max_t(u8, pModal->antennaGainCh[0], pModal 277 drivers/net/wireless/ath/ath9k/eeprom_9287.c pModal->antennaGainCh[1]); pModal 713 drivers/net/wireless/ath/ath9k/eeprom_9287.c struct modal_eep_ar9287_header *pModal = &pEepData->modalHeader; pModal 721 drivers/net/wireless/ath/ath9k/eeprom_9287.c ht40PowerIncForPdadc = pModal->ht40PowerIncForPdadc; pModal 854 drivers/net/wireless/ath/ath9k/eeprom_9287.c struct modal_eep_ar9287_header *pModal = &eep->modalHeader; pModal 859 drivers/net/wireless/ath/ath9k/eeprom_9287.c pModal = &eep->modalHeader; pModal 861 drivers/net/wireless/ath/ath9k/eeprom_9287.c REG_WRITE(ah, AR_PHY_SWITCH_COM, le32_to_cpu(pModal->antCtrlCommon)); pModal 867 drivers/net/wireless/ath/ath9k/eeprom_9287.c le32_to_cpu(pModal->antCtrlChain[i])); pModal 873 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->iqCalICh[i], pModal 875 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->iqCalQCh[i], pModal 878 drivers/net/wireless/ath/ath9k/eeprom_9287.c txRxAttenLocal = pModal->txRxAttenCh[i]; pModal 882 drivers/net/wireless/ath/ath9k/eeprom_9287.c pModal->bswMargin[i]); pModal 885 drivers/net/wireless/ath/ath9k/eeprom_9287.c pModal->bswAtten[i]); pModal 891 drivers/net/wireless/ath/ath9k/eeprom_9287.c pModal->rxTxMarginCh[i]); pModal 897 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_SETTLING_SWITCH, pModal->swSettleHt40); pModal 900 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_SETTLING_SWITCH, pModal->switchSettling); pModal 903 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_DESIRED_SZ_ADC, pModal->adcDesiredSize); pModal 906 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->txEndToXpaOff, AR_PHY_RF_CTL4_TX_END_XPAA_OFF) pModal 907 drivers/net/wireless/ath/ath9k/eeprom_9287.c | SM(pModal->txEndToXpaOff, AR_PHY_RF_CTL4_TX_END_XPAB_OFF) pModal 908 drivers/net/wireless/ath/ath9k/eeprom_9287.c | SM(pModal->txFrameToXpaOn, AR_PHY_RF_CTL4_FRAME_XPAA_ON) pModal 909 drivers/net/wireless/ath/ath9k/eeprom_9287.c | SM(pModal->txFrameToXpaOn, AR_PHY_RF_CTL4_FRAME_XPAB_ON)); pModal 912 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_TX_END_TO_A2_RX_ON, pModal->txEndToRxOn); pModal 915 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR9280_PHY_CCA_THRESH62, pModal->thresh62); pModal 917 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_EXT_CCA0_THRESH62, pModal->thresh62); pModal 926 drivers/net/wireless/ath/ath9k/eeprom_9287.c regval |= (SM(pModal->db1, AR9287_AN_RF2G3_DB1) | pModal 927 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->db2, AR9287_AN_RF2G3_DB2) | pModal 928 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_cck, AR9287_AN_RF2G3_OB_CCK) | pModal 929 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_psk, AR9287_AN_RF2G3_OB_PSK) | pModal 930 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_qam, AR9287_AN_RF2G3_OB_QAM) | pModal 931 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_pal_off, AR9287_AN_RF2G3_OB_PAL_OFF)); pModal 942 drivers/net/wireless/ath/ath9k/eeprom_9287.c regval |= (SM(pModal->db1, AR9287_AN_RF2G3_DB1) | pModal 943 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->db2, AR9287_AN_RF2G3_DB2) | pModal 944 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_cck, AR9287_AN_RF2G3_OB_CCK) | pModal 945 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_psk, AR9287_AN_RF2G3_OB_PSK) | pModal 946 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_qam, AR9287_AN_RF2G3_OB_QAM) | pModal 947 drivers/net/wireless/ath/ath9k/eeprom_9287.c SM(pModal->ob_pal_off, AR9287_AN_RF2G3_OB_PAL_OFF)); pModal 952 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_TX_END_DATA_START, pModal->txFrameToDataStart); pModal 954 drivers/net/wireless/ath/ath9k/eeprom_9287.c AR_PHY_TX_END_PA_ON, pModal->txFrameToPaOn); pModal 959 drivers/net/wireless/ath/ath9k/eeprom_9287.c pModal->xpaBiasLvl); pModal 298 drivers/net/wireless/ath/ath9k/eeprom_def.c struct modal_eep_header *pModal = pModal 300 drivers/net/wireless/ath/ath9k/eeprom_def.c EEPROM_FIELD_SWAB32(pModal->antCtrlCommon); pModal 303 drivers/net/wireless/ath/ath9k/eeprom_def.c EEPROM_FIELD_SWAB32(pModal->antCtrlChain[i]); pModal 306 drivers/net/wireless/ath/ath9k/eeprom_def.c EEPROM_FIELD_SWAB16(pModal->xpaBiasLvlFreq[i]); pModal 310 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->spurChans[i].spurChan); pModal 337 drivers/net/wireless/ath/ath9k/eeprom_def.c struct modal_eep_header *pModal = eep->modalHeader; pModal 343 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[0].noiseFloorThreshCh[0]; pModal 345 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[1].noiseFloorThreshCh[0]; pModal 361 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[0].ob; pModal 363 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[0].db; pModal 365 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[1].ob; pModal 367 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[1].db; pModal 408 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal[band].antennaGainCh[0], pModal 409 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal[band].antennaGainCh[1]), pModal 410 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal[band].antennaGainCh[2]); pModal 417 drivers/net/wireless/ath/ath9k/eeprom_def.c struct modal_eep_header *pModal, pModal 423 drivers/net/wireless/ath/ath9k/eeprom_def.c txRxAttenLocal = pModal->txRxAttenCh[i]; pModal 428 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->bswMargin[i]); pModal 431 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->bswAtten[i]); pModal 434 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->xatten2Margin[i]); pModal 437 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->xatten2Db[i]); pModal 440 drivers/net/wireless/ath/ath9k/eeprom_def.c SM(pModal-> bswMargin[i], AR_PHY_GAIN_2GHZ_BSW_MARGIN), pModal 443 drivers/net/wireless/ath/ath9k/eeprom_def.c SM(pModal->bswAtten[i], AR_PHY_GAIN_2GHZ_BSW_ATTEN), pModal 454 drivers/net/wireless/ath/ath9k/eeprom_def.c AR9280_PHY_RXGAIN_TXRX_MARGIN, pModal->rxTxMarginCh[i]); pModal 460 drivers/net/wireless/ath/ath9k/eeprom_def.c SM(pModal->rxTxMarginCh[i], AR_PHY_GAIN_2GHZ_RXTX_MARGIN), pModal 469 drivers/net/wireless/ath/ath9k/eeprom_def.c struct modal_eep_header *pModal; pModal 475 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal = &(eep->modalHeader[IS_CHAN_2GHZ(chan)]); pModal 477 drivers/net/wireless/ath/ath9k/eeprom_def.c antCtrlCommon = le32_to_cpu(pModal->antCtrlCommon); pModal 493 drivers/net/wireless/ath/ath9k/eeprom_def.c le32_to_cpu(pModal->antCtrlChain[i])); pModal 499 drivers/net/wireless/ath/ath9k/eeprom_def.c SM(pModal->iqCalICh[i], pModal 501 drivers/net/wireless/ath/ath9k/eeprom_def.c SM(pModal->iqCalQCh[i], pModal 504 drivers/net/wireless/ath/ath9k/eeprom_def.c ath9k_hw_def_set_gain(ah, pModal, eep, txRxAttenLocal, pModal 513 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->ob); pModal 517 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->db); pModal 521 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->ob_ch1); pModal 525 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->db_ch1); pModal 530 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->ob); pModal 534 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->db); pModal 538 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->ob_ch1); pModal 542 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->db_ch1); pModal 547 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->xpaBiasLvl); pModal 551 drivers/net/wireless/ath/ath9k/eeprom_def.c !!(pModal->lna_ctl & pModal 554 drivers/net/wireless/ath/ath9k/eeprom_def.c !!(pModal->lna_ctl & LNA_CTL_FORCE_XPA)); pModal 558 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->switchSettling); pModal 560 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->adcDesiredSize); pModal 565 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->pgaDesiredSize); pModal 568 drivers/net/wireless/ath/ath9k/eeprom_def.c SM(pModal->txEndToXpaOff, AR_PHY_RF_CTL4_TX_END_XPAA_OFF) pModal 569 drivers/net/wireless/ath/ath9k/eeprom_def.c | SM(pModal->txEndToXpaOff, pModal 571 drivers/net/wireless/ath/ath9k/eeprom_def.c | SM(pModal->txFrameToXpaOn, pModal 573 drivers/net/wireless/ath/ath9k/eeprom_def.c | SM(pModal->txFrameToXpaOn, pModal 577 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->txEndToRxOn); pModal 581 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->thresh62); pModal 584 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->thresh62); pModal 587 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->thresh62); pModal 590 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->thresh62); pModal 596 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->txFrameToDataStart); pModal 598 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->txFrameToPaOn); pModal 605 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->swSettleHt40); pModal 612 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->miscBits); pModal 629 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->miscBits >> 2); pModal 640 drivers/net/wireless/ath/ath9k/eeprom_def.c #define XPA_LVL_FREQ(cnt) (le16_to_cpu(pModal->xpaBiasLvlFreq[cnt])) pModal 641 drivers/net/wireless/ath/ath9k/eeprom_def.c struct modal_eep_header *pModal; pModal 651 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal = &(eep->modalHeader[IS_CHAN_2GHZ(chan)]); pModal 653 drivers/net/wireless/ath/ath9k/eeprom_def.c if (pModal->xpaBiasLvl != 0xff) { pModal 654 drivers/net/wireless/ath/ath9k/eeprom_def.c biaslevel = pModal->xpaBiasLvl; pModal 1151 drivers/net/wireless/ath/ath9k/eeprom_def.c struct modal_eep_header *pModal = pModal 1160 drivers/net/wireless/ath/ath9k/eeprom_def.c ht40PowerIncForPdadc = pModal->ht40PowerIncForPdadc; pModal 1278 drivers/net/wireless/ath/ath9k/eeprom_def.c ATH9K_POW_SM(pModal->pwrDecreaseFor3Chain, 6) pModal 1279 drivers/net/wireless/ath/ath9k/eeprom_def.c | ATH9K_POW_SM(pModal->pwrDecreaseFor2Chain, 0));