Home
last modified time | relevance | path

Searched refs:AH_MIN (Results 1 – 16 of 16) sorted by relevance

/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar9002/
H A Dar9287_reset.c169 twiceLargestAntenna = (int16_t)AH_MIN((AntennaReduction) - twiceLargestAntenna, 0); in ar9287SetPowerPerRateTable()
178 scaledPower = AH_MIN(powerLimit, twiceMaxRegulatoryPower + twiceLargestAntenna); in ar9287SetPowerPerRateTable()
255 twiceMaxEdgePower = AH_MIN(twiceMaxEdgePower, twiceMinEdgePower); in ar9287SetPowerPerRateTable()
263 minCtlPower = (uint8_t)AH_MIN(twiceMaxEdgePower, scaledPower); in ar9287SetPowerPerRateTable()
268 targetPowerCck.tPow2x[i] = (uint8_t)AH_MIN(targetPowerCck.tPow2x[i], minCtlPower); in ar9287SetPowerPerRateTable()
274 targetPowerOfdm.tPow2x[i] = (uint8_t)AH_MIN(targetPowerOfdm.tPow2x[i], minCtlPower); in ar9287SetPowerPerRateTable()
280 targetPowerHt20.tPow2x[i] = (uint8_t)AH_MIN(targetPowerHt20.tPow2x[i], minCtlPower); in ar9287SetPowerPerRateTable()
284 targetPowerCckExt.tPow2x[0] = (uint8_t)AH_MIN(targetPowerCckExt.tPow2x[0], minCtlPower); in ar9287SetPowerPerRateTable()
288 targetPowerOfdmExt.tPow2x[0] = (uint8_t)AH_MIN(targetPowerOfdmExt.tPow2x[0], minCtlPower); in ar9287SetPowerPerRateTable()
293 targetPowerHt40.tPow2x[i] = (uint8_t)AH_MIN(targetPowerHt40.tPow2x[i], minCtlPower); in ar9287SetPowerPerRateTable()
[all …]
H A Dar9285_reset.c100 twiceMaxRegulatoryPower = AH_MIN(MAX_RATE_POWER, AH_PRIVATE(ah)->ah_powerLimit); in ar9285SetTransmitPower()
431 twiceLargestAntenna = (int16_t)AH_MIN((AntennaReduction) - twiceLargestAntenna, 0); in ar9285SetPowerPerRateTable()
440 scaledPower = AH_MIN(powerLimit, twiceMaxRegulatoryPower + twiceLargestAntenna); in ar9285SetPowerPerRateTable()
500 twiceMaxEdgePower = AH_MIN(twiceMaxEdgePower, twiceMinEdgePower); in ar9285SetPowerPerRateTable()
508 minCtlPower = (uint8_t)AH_MIN(twiceMaxEdgePower, scaledPower); in ar9285SetPowerPerRateTable()
513 targetPowerCck.tPow2x[i] = (uint8_t)AH_MIN(targetPowerCck.tPow2x[i], minCtlPower); in ar9285SetPowerPerRateTable()
519 targetPowerOfdm.tPow2x[i] = (uint8_t)AH_MIN(targetPowerOfdm.tPow2x[i], minCtlPower); in ar9285SetPowerPerRateTable()
525 targetPowerHt20.tPow2x[i] = (uint8_t)AH_MIN(targetPowerHt20.tPow2x[i], minCtlPower); in ar9285SetPowerPerRateTable()
529 targetPowerCckExt.tPow2x[0] = (uint8_t)AH_MIN(targetPowerCckExt.tPow2x[0], minCtlPower); in ar9285SetPowerPerRateTable()
532 targetPowerOfdmExt.tPow2x[0] = (uint8_t)AH_MIN(targetPowerOfdmExt.tPow2x[0], minCtlPower); in ar9285SetPowerPerRateTable()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/contrib/ath_hal/ar9300/
H A Dar9300_phy.c444 ((int16_t)AH_MIN((ahp->twice_antenna_reduction - in ar9300_adjust_reg_txpower_cdd()
475 ((int16_t)AH_MIN((ahp->twice_antenna_reduction - in ar9300_adjust_reg_txpower_cdd()
603 ahp->txpower[2][0] = AH_MIN(rates_array[ALL_TARGET_LEGACY_1L_5L], in ar9300_init_rate_txpower_cck()
605 ahp->txpower[3][0] = AH_MIN(rates_array[ALL_TARGET_LEGACY_11L], in ar9300_init_rate_txpower_cck()
612 ahp->txpower[2][1] = AH_MIN(rates_array[ALL_TARGET_LEGACY_1L_5L], in ar9300_init_rate_txpower_cck()
614 ahp->txpower[3][1] = AH_MIN(rates_array[ALL_TARGET_LEGACY_11L], in ar9300_init_rate_txpower_cck()
620 ahp->txpower[2][2] = AH_MIN(rates_array[ALL_TARGET_LEGACY_1L_5L], in ar9300_init_rate_txpower_cck()
622 ahp->txpower[3][2] = AH_MIN(rates_array[ALL_TARGET_LEGACY_11L], in ar9300_init_rate_txpower_cck()
672 ((int16_t)AH_MIN((ahp->twice_antenna_reduction - in ar9300_init_rate_txpower_ofdm()
686 ((int16_t)AH_MIN((ahp->twice_antenna_reduction - in ar9300_init_rate_txpower_ofdm()
[all …]
H A Dar9300_xmit_ds.c759 set_11n_tx_power(0, AH_MIN(txpower, series[0].tx_power_cap)); in ar9300_set_11n_rate_scenario()
803 set_11n_tx_power(1, AH_MIN(txpower, series[1].tx_power_cap)); in ar9300_set_11n_rate_scenario()
815 set_11n_tx_power(2, AH_MIN(txpower, series[2].tx_power_cap)); in ar9300_set_11n_rate_scenario()
826 set_11n_tx_power(3, AH_MIN(txpower, series[3].tx_power_cap)); in ar9300_set_11n_rate_scenario()
H A Dar9300_eeprom.c2597 twice_largest_antenna = (int16_t)AH_MIN((twice_antenna_reduction - in ar9300_eeprom_set_power_per_rate_table()
2607 scaled_power = AH_MIN(power_limit, max_reg_allowed_power); in ar9300_eeprom_set_power_per_rate_table()
2725 AH_MIN(twice_max_edge_power, twice_min_edge_power); in ar9300_eeprom_set_power_per_rate_table()
2734 min_ctl_power = (u_int8_t)AH_MIN(twice_max_edge_power, scaled_power); in ar9300_eeprom_set_power_per_rate_table()
2747 (u_int8_t)AH_MIN(p_pwr_array[i], min_ctl_power); in ar9300_eeprom_set_power_per_rate_table()
2754 (u_int8_t)AH_MIN(p_pwr_array[i], min_ctl_power); in ar9300_eeprom_set_power_per_rate_table()
2790 (u_int8_t)AH_MIN(p_pwr_array[i], min_ctl_power); in ar9300_eeprom_set_power_per_rate_table()
2826 AH_MIN(target_power_cck_ext.t_pow2x[0], min_ctl_power); in ar9300_eeprom_set_power_per_rate_table()
2833 AH_MIN(target_power_ofdm_ext.t_pow2x[0], min_ctl_power); in ar9300_eeprom_set_power_per_rate_table()
2840 AH_MIN(p_pwr_array[i], min_ctl_power); in ar9300_eeprom_set_power_per_rate_table()
[all …]
H A Dar9300_reset.c1315 AH_MIN(MAX_RATE_POWER, AH_PRIVATE(ah)->ah_powerLimit)) != HAL_OK) in ar9300_channel_change()
2754 ahpriv->ah_powerLimit = AH_MIN(limit, MAX_RATE_POWER); in ar9300_set_tx_power_limit()
2763 AH_MIN(MAX_RATE_POWER, ahpriv->ah_powerLimit)) != HAL_OK) in ar9300_set_tx_power_limit()
3209 AH_MIN(MAX_RATE_POWER, ahpriv->ah_powerLimit)); in ar9300_process_ini()
H A Dar9300_paprd.c525 AH_MIN(MAX_RATE_POWER, AH_PRIVATE(ah)->ah_powerLimit)) != HAL_OK) { in ar9300_enable_paprd()
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5212/
H A Dar5212_reset.c1994 AH_PRIVATE(ah)->ah_powerLimit = AH_MIN(limit, MAX_RATE_POWER); in ar5212SetTxPowerLimit()
2022 powerLimit = AH_MIN(MAX_RATE_POWER, AH_PRIVATE(ah)->ah_powerLimit); in ar5212SetTransmitPower()
2170 twiceMaxEdgePower = AH_MIN(twiceMaxEdgePower, twiceMinEdgePower); in ar5212SetRateTable()
2192 twiceMaxEdgePowerCck = AH_MIN(twiceMaxEdgePowerCck, twiceMinEdgePowerCck); in ar5212SetRateTable()
2225 scaledPower = AH_MIN(twiceMaxEdgePower, in ar5212SetRateTable()
2244 scaledPower = AH_MIN(scaledPower, in ar5212SetRateTable()
2252 scaledPower = AH_MIN(scaledPower, in ar5212SetRateTable()
2256 maxAvailPower = AH_MIN(scaledPower, in ar5212SetRateTable()
2262 scaledPower = AH_MIN(scaledPower, powerLimit); in ar5212SetRateTable()
2269 rpow[5] = AH_MIN(rpow[0], targetPowerOfdm.twicePwr36); in ar5212SetRateTable()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5210/
H A Dar5210_reset.c722 AH_PRIVATE(ah)->ah_powerLimit = AH_MIN(limit, AR5210_MAX_RATE_POWER); in ar5210SetTxPowerLimit()
780 cp[9] = AH_MIN(pRD->regdmn[rd], pRD->rate36); in setupPowerSettings()
781 cp[8] = AH_MIN(pRD->regdmn[rd], pRD->rate48); in setupPowerSettings()
782 cp[7] = AH_MIN(pRD->regdmn[rd], pRD->rate54); in setupPowerSettings()
803 dBm36 = AH_MIN(dBm36, dBmRD); in setupPowerSettings()
806 dBm48 = AH_MIN(dBm48, dBmRD); in setupPowerSettings()
809 dBm54 = AH_MIN(dBm54, dBmRD); in setupPowerSettings()
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5416/
H A Dar5416_reset.c917 AH_PRIVATE(ah)->ah_powerLimit = AH_MIN(limit, MAX_RATE_POWER); in ar5416SetTxPowerLimit()
1087 twiceMaxRegulatoryPower = AH_MIN(MAX_RATE_POWER, AH_PRIVATE(ah)->ah_powerLimit); in ar5416SetTransmitPower()
1868 twiceLargestAntenna = (int16_t)AH_MIN((AntennaReduction) - twiceLargestAntenna, 0); in ar5416SetPowerPerRateTable()
1879 scaledPower = AH_MIN(powerLimit, twiceMaxRegulatoryPower + twiceLargestAntenna); in ar5416SetPowerPerRateTable()
1976 twiceMaxEdgePower = AH_MIN(twiceMaxEdgePower, twiceMinEdgePower); in ar5416SetPowerPerRateTable()
1984 minCtlPower = (uint8_t)AH_MIN(twiceMaxEdgePower, scaledPower); in ar5416SetPowerPerRateTable()
1989 targetPowerCck.tPow2x[i] = (uint8_t)AH_MIN(targetPowerCck.tPow2x[i], minCtlPower); in ar5416SetPowerPerRateTable()
1995 targetPowerOfdm.tPow2x[i] = (uint8_t)AH_MIN(targetPowerOfdm.tPow2x[i], minCtlPower); in ar5416SetPowerPerRateTable()
2001 targetPowerHt20.tPow2x[i] = (uint8_t)AH_MIN(targetPowerHt20.tPow2x[i], minCtlPower); in ar5416SetPowerPerRateTable()
2005 targetPowerCckExt.tPow2x[0] = (uint8_t)AH_MIN(targetPowerCckExt.tPow2x[0], minCtlPower); in ar5416SetPowerPerRateTable()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/
H A Dah.c1073 qi->tqi_aifs = AH_MIN(qInfo->tqi_aifs, 255); in ath_hal_setTxQProps()
1077 cw = AH_MIN(qInfo->tqi_cwmin, 1024); in ath_hal_setTxQProps()
1085 cw = AH_MIN(qInfo->tqi_cwmax, 1024); in ath_hal_setTxQProps()
1094 qi->tqi_shretry = AH_MIN(qInfo->tqi_shretry, 15); in ath_hal_setTxQProps()
1098 qi->tqi_lgretry = AH_MIN(qInfo->tqi_lgretry, 15); in ath_hal_setTxQProps()
H A Dah_eeprom_v4k.c347 len = AH_MIN(len, sizeof(struct ar5416eeprom_4k)) / sizeof(uint16_t); in ath_hal_v4kEepromAttach()
H A Dah_eeprom_9287.c358 len = AH_MIN(len, sizeof(HAL_EEPROM_9287)) / sizeof(uint16_t); in ath_hal_9287EepromAttach()
H A Dah_eeprom_v14.c398 len = AH_MIN(len, sizeof(struct ar5416eeprom)) / sizeof(uint16_t); in ath_hal_v14EepromAttach()
H A Dah_internal.h27 #define AH_MIN(a,b) ((a)<(b)?(a):(b)) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5211/
H A Dar5211_reset.c1303 AH_PRIVATE(ah)->ah_powerLimit = AH_MIN(limit, MAX_RATE_POWER); in ar5211SetTxPowerLimit()
1615 twicePower = AH_MIN(twicePower, twiceMaxEdgePower); in ar5211SetRateTable()
1629 twicePower = AH_MIN(twicePower, ee->ee_turbo2WMaxPower5); in ar5211SetRateTable()
1633 pRatesPower[i] = AH_MIN(twicePower, twiceMaxRDPower - twiceAntennaReduction); in ar5211SetRateTable()
1644 pRatesPower[i] = AH_MIN(pRatesPower[i], scaledPower); in ar5211SetRateTable()