/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/contrib/ath_hal/ar9300/ |
H A D | ar9300_radio.c | 85 u_int32_t freq, channel_sel, reg32; local 102 freq = centers.synth_center; 104 if (freq < 4800) { /* 2 GHz, fractional mode */ 129 * will not be the frequency of chan->ic_freq or ichan->freq; 130 * it needs to be whatever frequency maps to 'freq'. 132 i = ath_hal_mhz2ieee_2ghz(ah, freq); 147 channel_sel = (freq * 4) / 120; 148 channel_frac = (((freq * 4) % 120) * 0x20000) / 120; 161 channel_sel = (freq * 4) / 75; 162 channel_frac = (((freq * [all...] |
H A D | ar9300_eeprom.c | 685 u_int16_t freq, HAL_BOOL is_2ghz) 716 (int32_t)freq, freq_array, target_power_array, num_piers)); 721 u_int16_t freq, HAL_BOOL is_2ghz) 752 (int32_t)freq, freq_array, target_power_array, num_piers)); 757 u_int16_t freq, HAL_BOOL is_2ghz) 788 (int32_t)freq, freq_array, target_power_array, num_piers)); 793 u_int16_t freq) 814 (int32_t)freq, freq_array, target_power_array, num_piers)); 965 ar9300_set_target_power_from_eeprom(struct ath_hal *ah, u_int16_t freq, argument 972 if (freq < 400 684 ar9300_eeprom_get_legacy_trgt_pwr(struct ath_hal *ah, u_int16_t rate_index, u_int16_t freq, HAL_BOOL is_2ghz) argument 720 ar9300_eeprom_get_ht20_trgt_pwr(struct ath_hal *ah, u_int16_t rate_index, u_int16_t freq, HAL_BOOL is_2ghz) argument 756 ar9300_eeprom_get_ht40_trgt_pwr(struct ath_hal *ah, u_int16_t rate_index, u_int16_t freq, HAL_BOOL is_2ghz) argument 792 ar9300_eeprom_get_cck_trgt_pwr(struct ath_hal *ah, u_int16_t rate_index, u_int16_t freq) argument 2457 ar9300_eep_def_get_max_edge_power(ar9300_eeprom_t *p_eep_data, u_int16_t freq, int idx, HAL_BOOL is_2ghz) argument 2556 u_int16_t num_ctl_modes, *p_ctl_mode, ctl_mode, freq; local [all...] |
H A D | ar9300_spectral.c | 222 int freq; member in struct:nf_cal_table_t 268 for (i = 0; nf_cal_table[i].freq != 0; i++) { 269 if (nf_cal_table[i + 0].freq == freq_mhz || 270 nf_cal_table[i + 1].freq > freq_mhz || 271 nf_cal_table[i + 1].freq == 0) { 278 "no nf cal offset found for freq %d chain %d\n", 288 for (i = 0; nf_cal_table[i].freq != 0; i++) { 289 if (nf_cal_table[i + 0].freq == freq_mhz || 290 nf_cal_table[i + 1].freq > freq_mhz || 291 nf_cal_table[i + 1].freq [all...] |
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_timer_generic.cpp | 16 uint32_t freq; local 17 asm volatile ("MRC p15, 0, %0, c14, c0, 0": "=r" (freq)); 18 return freq;
|
/haiku/src/add-ons/accelerants/intel_810/ |
H A D | i810_watermark.cpp | 42 double freq; member in struct:WatermarkInfo 133 for (i = 0; i < tableLen && table[i].freq < clockFreq; i++) 139 TRACE("chosen watermark 0x%lx (freq %f)\n", table[i].watermark, 140 table[i].freq);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5212/ |
H A D | ar5112.c | 82 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 88 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 90 if (freq < 4800) { 93 if (((freq - 2192) % 5) == 0) { 94 channelSel = ((freq - 672) * 2 - 3040)/10; 96 } else if (((freq - 2224) % 5) == 0) { 97 channelSel = ((freq - 704) * 2 - 3040) / 10; 102 __func__, freq); 110 if (freq == 2484) { 118 } else if (((freq 189 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 351 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 772 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar5413.c | 82 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 88 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 90 if (freq < 4800) { 93 if (((freq - 2192) % 5) == 0) { 94 channelSel = ((freq - 672) * 2 - 3040)/10; 96 } else if (((freq - 2224) % 5) == 0) { 97 channelSel = ((freq - 704) * 2 - 3040) / 10; 102 __func__, freq); 110 if (freq == 2484) { 118 } else if (((freq 169 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 547 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 687 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2413.c | 82 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 88 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 90 if (freq < 4800) { 93 if (((freq - 2192) % 5) == 0) { 94 channelSel = ((freq - 672) * 2 - 3040)/10; 96 } else if (((freq - 2224) % 5) == 0) { 97 channelSel = ((freq - 704) * 2 - 3040) / 10; 102 __func__, freq); 110 if (freq == 2484) { 118 } else if (((freq 503 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 644 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2425.c | 89 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 95 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 97 if (freq < 4800) { 100 channelSel = freq - 2272; 104 if (freq == 2484) { 113 } else if (((freq % 5) == 2) && (freq <= 5435)) { 114 freq = freq - 2; /* Align to even 5MHz raster */ 116 (uint32_t)(((freq 502 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 606 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2316.c | 95 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 101 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 103 if (freq < 4800) { 106 if (((freq - 2192) % 5) == 0) { 107 channelSel = ((freq - 672) * 2 - 3040)/10; 109 } else if (((freq - 2224) % 5) == 0) { 110 channelSel = ((freq - 704) * 2 - 3040) / 10; 115 __func__, freq); 123 if (freq == 2484) { 131 } else if ((freq 649 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2317.c | 86 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 92 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 94 if (freq < 4800) { 96 channelSel = freq - 2272 ; 100 if (freq == 2484) { 108 } else if ((freq % 20) == 0 && freq >= 5120) { 110 ((freq - 4800) / 20 << 2), 8); 112 } else if ((freq % 10) == 0) { 114 ((freq 629 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar5111.c | 82 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 146 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 159 if (freq == 2484) { 223 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 237 if (4000 < freq && freq < 5260) { 240 } else if (5260 <= freq && freq < 5500) { 243 } else if (5500 <= freq && freq < 572 396 uint16_t freq = ath_hal_gethwchannel(ah, chan); local [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5416/ |
H A D | ar2133.c | 133 uint16_t freq; local 139 freq = centers.synth_center; 141 if (freq < 4800) { 144 if (((freq - 2192) % 5) == 0) { 145 channelSel = ((freq - 672) * 2 - 3040)/10; 147 } else if (((freq - 2224) % 5) == 0) { 148 channelSel = ((freq - 704) * 2 - 3040) / 10; 152 "%s: invalid channel %u MHz\n", __func__, freq); 160 if (freq == 2484) { 188 } else if (((freq [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar9002/ |
H A D | ar9280.c | 78 uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local 86 freq = centers.synth_center; 94 if (freq < 4800) { /* 2 GHz, fractional mode */ 100 channelSel = (freq * 0x10000)/15; 103 if (freq == 2484) { 127 else if ((freq % 20) == 0) { 129 } else if ((freq % 10) == 0) { 168 if (freq % 5 == 0) { 173 channelSel = (freq * 0x8000)/15; 183 f = freq [all...] |
H A D | ar9287.c | 78 uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local 85 freq = centers.synth_center; 90 if (freq < 4800) { /* 2 GHz, fractional mode */ 97 channelSel = (freq * 0x10000)/15; 100 if (freq == 2484) { 112 if (freq == 2484) { 124 if ((freq % 20) == 0) { 126 } else if ((freq % 10) == 0) { 136 channelSel = (freq * 0x8000)/15; 143 ndiv = (freq * (refDiv [all...] |
/haiku/src/tests/add-ons/media/media-add-ons/mixer/ |
H A D | main.cpp | 198 fSignalFrequency = new BTextControl("freq", "Signal freq:", "256", 240 int freq = atoi(fSignalFrequency->Text()); local 241 fWaveView->waves[0].Resize(freq); 252 fWaveView->waves[1].step = (float)freq / irate; 253 fWaveView->waves[2].step = (float)freq / orate; 256 for (int i = 0; i < freq; i++) { 257 fWaveView->waves[0].SetValue(i, sinf(i * 2 * M_PI / freq)); 262 fWaveView->waves[0].ValueAt(i * freq / irate));
|
/haiku/src/add-ons/accelerants/radeon/ |
H A D | pll.c | 48 // freq - whished frequency in Hz 52 const pll_info *pll, uint32 freq, uint fixed_post_div, pll_dividers *dividers ) 121 // freq is in Hz, everything else is in 10 kHz units 123 uint32 vco = (freq / 10000) * post_div; 147 (int64)freq * ref_div * post_div, 160 error = abs( (int32)cur_freq - (int32)freq ); 174 //SHOW_FLOW( 2, "got freq=%d, best_freq=%d", freq, cur_freq ); 193 dividers->freq = best_freq; 195 /*SHOW_FLOW( 2, "post_code=%d, post=%d, extra_post_code=%d, extra_post=%d, ref=%d, feedback=%d, freq 51 Radeon_CalcPLLDividers( const pll_info *pll, uint32 freq, uint fixed_post_div, pll_dividers *dividers ) argument 210 Radeon_MatchCRTPLL( const pll_info *pll, uint32 tv_v_total, uint32 tv_h_total, uint32 tv_frame_size_adjust, uint32 freq, const display_mode *mode, uint32 max_v_tweak, uint32 max_h_tweak, uint32 max_frame_rate_drift, uint32 fixed_post_div, pll_dividers *dividers, display_mode *tweaked_mode ) argument [all...] |
H A D | set_mode.h | 21 uint32 freq; // resulting frequency member in struct:__anon1235 27 uint32 freq; // TV sub carrier frequency x12 member in struct:__anon1236 218 void Radeon_CalcPLLDividers( const pll_info *pll, uint32 freq, uint fixed_post_div, pll_dividers *dividers ); 221 uint32 tv_v_total, uint32 tv_h_total, uint32 tv_frame_size_adjust, uint32 freq,
|
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211.c | 1012 mapgsm(u_int freq, u_int flags) argument 1014 freq *= 10; 1016 freq += 5; 1018 freq += 10; 1020 freq += 20; 1022 return (freq - 906*10) / 5; 1026 mappsb(u_int freq, u_int flags) argument 1028 return 37 + ((freq * 10) + ((freq % 5) == 2 ? 5 : 0) - 49400) / 5; 1035 ieee80211_mhz2ieee(u_int freq, u_in argument 1260 is_vht160_valid_freq(uint16_t freq) argument 1273 is_vht80_valid_freq(uint16_t freq) argument 1285 addchan(struct ieee80211_channel chans[], int maxchans, int *nchans, uint8_t ieee, uint16_t freq, int8_t maxregpower, uint32_t flags) argument 1455 ieee80211_add_channel_cbw(struct ieee80211_channel chans[], int maxchans, int *nchans, uint8_t ieee, uint16_t freq, int8_t maxregpower, uint32_t chan_flags, const uint8_t bands[], int cbw_flags) argument 1476 ieee80211_add_channel(struct ieee80211_channel chans[], int maxchans, int *nchans, uint8_t ieee, uint16_t freq, int8_t maxregpower, uint32_t chan_flags, const uint8_t bands[]) argument 1486 findchannel(struct ieee80211_channel chans[], int nchans, uint16_t freq, uint32_t flags) argument 1512 uint16_t freq; local 1606 uint16_t freq; local 1748 ieee80211_find_channel(struct ieee80211com *ic, int freq, int flags) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ |
H A D | ah_regdomain.c | 423 u_int maxchans, int *nchans, uint16_t freq, uint32_t flags, 432 "%s: %d: freq=%d, flags=0x%08x\n", 433 __func__, *nchans, (int) freq, flags); 436 c->ic_freq = freq; 448 u_int maxchans, int *nchans, uint16_t freq, uint32_t flags) 459 "%s: %d: freq=%d, flags=0x%08x\n", 460 __func__, *nchans, (int) freq, flags); 464 c->ic_freq = freq; 476 uint16_t freq = freq_lo; local 483 "%s: freq 422 addchan(struct ath_hal *ah, struct ieee80211_channel chans[], u_int maxchans, int *nchans, uint16_t freq, uint32_t flags, REG_DMN_FREQ_BAND *fband, REG_DOMAIN *rd) argument 447 copychan_prev(struct ath_hal *ah, struct ieee80211_channel chans[], u_int maxchans, int *nchans, uint16_t freq, uint32_t flags) argument 736 ath_hal_mapgsm(int sku, int freq) argument 763 int i, j, next, freq; local [all...] |
/haiku/src/add-ons/accelerants/3dfx/ |
H A D | 3dfx_mode.cpp | 136 TDFX_CalcPLL(int freq) argument 139 int best_error = freq; 146 if (freqCur < freq) { 148 if (freq - freqCur < best_error) { 149 best_error = freq - freqCur; 159 if (abs(freqCur - freq) < best_error) { 160 best_error = abs(freqCur - freq);
|
/haiku/src/add-ons/accelerants/ati/ |
H A D | rage128_mode.cpp | 216 uint32 freq = mode.timing.pixel_clock / 10; local 218 if (freq > pll.max_pll_freq) 219 freq = pll.max_pll_freq; 220 if (freq * 12 < pll.min_pll_freq) 221 freq = pll.min_pll_freq / 12; 227 output_freq = postDividers[j].divider * freq;
|
/haiku/src/add-ons/media/media-add-ons/equalizer/ |
H A D | Equalizer.cpp | 117 float freq[EQ_BANDS] = {31.25, 62.5, 125, 250, 500, 1000, 2000, 4000, 8000, 16000}; local 120 fFrequency[i] = freq[i];
|
/haiku/src/add-ons/kernel/drivers/audio/usb/ |
H A D | AudioStreamingInterface.cpp | 117 _ASFormatDescriptor::GetSamFreq(const usb_audio_sampling_freq& freq) argument 119 return freq.bytes[0] | freq.bytes[1] << 8 | freq.bytes[2] << 16; 126 usb_audio_sampling_freq freq; local 128 freq.bytes[i] = 0xFF & samplingRate >> 8 * i; 129 return freq;
|
H A D | Stream.cpp | 446 usb_audio_sampling_freq freq = _ASFormatDescriptor::GetSamFreq(samplingRate); local 452 address, sizeof(freq), &freq, &actualLength); 455 freq.bytes[0], freq.bytes[1], freq.bytes[2],
|