Lines Matching refs:pe

629  * Get the radar parameter values and return them in the pe
633 ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
641 pe->pe_firpwr = temp;
642 pe->pe_rrssi = MS(val, AR_PHY_RADAR_0_RRSSI);
643 pe->pe_height = MS(val, AR_PHY_RADAR_0_HEIGHT);
644 pe->pe_prssi = MS(val, AR_PHY_RADAR_0_PRSSI);
645 pe->pe_inband = MS(val, AR_PHY_RADAR_0_INBAND);
649 pe->pe_relpwr = MS(val, AR_PHY_RADAR_1_RELPWR_THRESH);
651 pe->pe_relpwr |= HAL_PHYERR_PARAM_ENABLE;
653 pe->pe_relstep = MS(val, AR_PHY_RADAR_1_RELSTEP_THRESH);
655 pe->pe_enabled = 1;
657 pe->pe_enabled = 0;
659 pe->pe_maxlen = MS(val, AR_PHY_RADAR_1_MAXLEN);
660 pe->pe_extchannel = !! (OS_REG_READ(ah, AR_PHY_RADAR_EXT) &
663 pe->pe_usefir128 = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
665 pe->pe_blockradar = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
667 pe->pe_enmaxrssi = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
673 * values in pe
676 ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
682 if (pe->pe_firpwr != HAL_PHYERR_PARAM_NOVAL) {
684 val |= SM(pe->pe_firpwr, AR_PHY_RADAR_0_FIRPWR);
686 if (pe->pe_rrssi != HAL_PHYERR_PARAM_NOVAL) {
688 val |= SM(pe->pe_rrssi, AR_PHY_RADAR_0_RRSSI);
690 if (pe->pe_height != HAL_PHYERR_PARAM_NOVAL) {
692 val |= SM(pe->pe_height, AR_PHY_RADAR_0_HEIGHT);
694 if (pe->pe_prssi != HAL_PHYERR_PARAM_NOVAL) {
696 val |= SM(pe->pe_prssi, AR_PHY_RADAR_0_PRSSI);
698 if (pe->pe_inband != HAL_PHYERR_PARAM_NOVAL) {
700 val |= SM(pe->pe_inband, AR_PHY_RADAR_0_INBAND);
708 if (pe->pe_usefir128 == 1)
710 else if (pe->pe_usefir128 == 0)
713 if (pe->pe_enmaxrssi == 1)
715 else if (pe->pe_enmaxrssi == 0)
718 if (pe->pe_blockradar == 1)
720 else if (pe->pe_blockradar == 0)
723 if (pe->pe_maxlen != HAL_PHYERR_PARAM_NOVAL) {
726 val |= SM(pe->pe_maxlen, AR_PHY_RADAR_1_MAXLEN);
735 if (pe->pe_extchannel == 1)
737 else if (pe->pe_extchannel == 0)
740 if (pe->pe_relstep != HAL_PHYERR_PARAM_NOVAL) {
743 val |= SM(pe->pe_relstep, AR_PHY_RADAR_1_RELSTEP_THRESH);
746 if (pe->pe_relpwr != HAL_PHYERR_PARAM_NOVAL) {
749 val |= SM(pe->pe_relpwr, AR_PHY_RADAR_1_RELPWR_THRESH);