Searched refs:rate (Results 26 - 50 of 148) sorted by relevance

123456

/haiku/src/tests/add-ons/kernel/drivers/audio/
H A Dmulti_audio_test.cpp99 uint32 rate = 0; local
103 rate = kSampleRates[i];
106 return rate;
173 uint32 rate = strtoul(argv[1], NULL, 0); local
178 if (rate == kSampleRates[i])
183 fprintf(stderr, "Invalid sample rate %ld!\n", rate);
195 printf("Current sample rate is %lu Hz (0x%lx)\n", get_rate(sRate), sRate);
232 printf("max cont. var. sample rate:\t%.0f\n",
234 printf("min cont. var. sample rate
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/amrr/
H A Damrr.c45 * AMRR rate control. See:
85 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */
90 int rate);
127 * the returned rate with the relevant preamble rate flag.
220 * The code below assumes that we are dealing with hardware multi rate retry
226 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument
234 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode));
237 "%s: set xmit rate to %dM", __func__,
239 (ni->ni_rates.rs_rates[rate]
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/onoe/
H A Donoe.c36 * Atsushi Onoe's rate control algorithm.
75 * Default parameters for the rate control algorithm. These are
76 * all tunable with sysctls. The rate controller runs periodically
80 * it gives a "raise rate credit". If transmits look to not be working
82 * the transmit rate is raised. Various error conditions force the
83 * the transmit rate to be dropped.
89 * the transmit rate is increased.
93 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */
95 static int ath_rate_raise_threshold = 10; /* rate ctl raise threshold */
98 int rate);
201 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/esound_sink/
H A DESDEndpoint.cpp325 ESDEndpoint::SetFormat(int bits, int channels, float rate) argument
331 PRINT(("SetFormat(%d,%d,%f)\n", bits, channels, rate));
355 fDefaultRate = rate;
365 uint32 rate; member in struct:serverinfo
372 PRINT(("err 0x%08lx, version: %lu, rate: %lu, fmt: %lu\n", err, si.ver, si.rate, si.fmt));
456 esd_rate_t rate; member in struct:__anon8
463 c.rate = fDefaultRate;
H A DESDEndpoint.h58 status_t SetFormat(int bits, int channels, float rate=ESD_DEFAULT_RATE);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_phy.c70 /* XXX the 11n and the basic rate flag are unfortunately overlapping. Grr. */
292 * Setup a rate table's reverse lookup table and fill in
316 * Map without the basic rate bit.
319 * rate bit is stripped here.
321 * For HT, use the MCS rate bit.
328 /* XXX assume the control rate is non-MCS? */
333 * XXX for 11g the control rate to use for 5.5 and 11 Mb/s
336 * 2Mb/s rate which will work but is suboptimal
338 * NB: Control rate is always less than or equal to the
339 * current rate, s
450 ieee80211_rate2plcp(int rate, enum ieee80211_phytype type) argument
504 ieee80211_compute_duration(const struct ieee80211_rate_table *rt, uint32_t frameLen, uint16_t rate, int isShortPreamble) argument
597 ieee80211_compute_duration_ht(uint32_t frameLen, uint16_t rate, int streams, int isht40, int isShortGI) argument
[all...]
H A Dieee80211_scan.c59 * driver (.5dBm). Transmit rate thresholds are IEEE rate codes (i.e
66 /* transmit rate thresholds */
103 .rate = ROAM_RATE_11A_DEFAULT },
105 .rate = ROAM_RATE_11B_DEFAULT },
107 .rate = ROAM_RATE_11BONLY_DEFAULT },
109 .rate = ROAM_RATE_11A_DEFAULT },
111 .rate = ROAM_RATE_11A_DEFAULT },
113 .rate = ROAM_RATE_11A_DEFAULT },
115 .rate
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_tx_ht.c212 * Fill in the rate array information based on the current
213 * node configuration and the choices made by the rate
217 * rate control code, but for now it can live here.
231 uint8_t rate; local
237 * We only do LDPC if the rate is 11n, both we and the
241 * it if any of the rate entries aren't 11n.
262 rate = rt->info[rc[i].rix].rateCode;
267 if ((! IS_HT_RATE(rate)) && bf->bf_state.bfs_shpream)
268 rate |= rt->info[rc[i].rix].shortPreamble;
273 rc[i].ratecode = rate;
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_keyboard.cpp99 set_typematic(int32 rate, bigtime_t delay) argument
103 TRACE("ps2: set_typematic rate %" B_PRId32 ", delay %" B_PRId64 "\n",
104 rate, delay);
107 if (rate < 20)
108 rate = 20;
109 if (rate > 300)
110 rate = 300;
113 rate = ((rate - 20) * 31) / (300 - 20);
116 value = 31 - rate;
[all...]
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211.c322 * rate tables. This must be called by the driver after
334 int i, j, mode, rate, maxrate, r; local
376 rate = rs->rs_rates[i];
377 mword = ieee80211_rate2media(ic, rate, mode);
392 * Add rate to the collection of all rates.
394 r = rate & IEEE80211_RATE_VAL;
403 rate = (rate & IEEE80211_RATE_VAL) / 2;
404 if (rate > maxrate)
405 maxrate = rate;
522 ieee80211_findrate(struct ieee80211com *ic, enum ieee80211_phymode mode, int rate) argument
1348 ieee80211_rate2media(struct ieee80211com *ic, int rate, enum ieee80211_phymode mode) argument
1417 int rate; member in struct:__anon81
1448 ieee80211_rate2plcp(u_int8_t rate, enum ieee80211_phymode mode) argument
[all...]
H A Dieee80211_amrr.c85 #define RV(rate) ((rate) & IEEE80211_RATE_VAL)
95 DPRINTF(("increase rate=%d,#tx=%d,#retries=%d\n",
116 DPRINTF(("decrease rate=%d,#tx=%d,#retries=%d\n",
/haiku/src/add-ons/kernel/drivers/audio/usb/
H A DAudioStreamingInterface.h58 static usb_audio_sampling_freq GetSamFreq(uint32 rate);
118 uint32 GetSamplingRateId(uint32 rate);
H A DAudioStreamingInterface.cpp18 uint32 rate; member in struct:RatePair
280 AudioStreamAlternate::GetSamplingRateId(uint32 rate) argument
282 if (rate == 0)
283 rate = fSamplingRate;
286 if (ratesMap[i].rate == rate)
289 TRACE(ERR, "Ignore unsupported sample rate %d.\n", rate);
375 return ratesMap[i].rate;
377 TRACE(ERR, "Unknown sample rate i
[all...]
/haiku/src/add-ons/kernel/drivers/audio/null/
H A Dnull_multi.c120 device->playback_stream.rate = data->output.rate;
123 device->record_stream.rate = data->input.rate;
140 data->output.rate = device->playback_stream.rate;
142 data->input.rate = device->record_stream.rate;
H A Ddriver.h31 uint32 rate; member in struct:__anon1557
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/
H A Drt2560.c1186 tap->wr_rate = ieee80211_plcp2rate(desc->rate,
1379 rt2560_plcp_signal(int rate) argument
1381 switch (rate) {
1398 return 0xff; /* XXX unsupported/unknown rate */
1403 uint32_t flags, int len, int rate, int encrypt, bus_addr_t physaddr)
1419 desc->plcp_signal = rt2560_plcp_signal(rate);
1423 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) {
1430 plcp_length = howmany(16 * len, rate);
1431 if (rate == 22) {
1439 if (rate !
1402 rt2560_setup_tx_desc(struct rt2560_softc *sc, struct rt2560_tx_desc *desc, uint32_t flags, int len, int rate, int encrypt, bus_addr_t physaddr) argument
1457 int nsegs, rate, error; local
1515 int nsegs, rate, error; local
1592 rt2560_sendprot(struct rt2560_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument
1655 int nsegs, rate, error; local
1739 int nsegs, rate, error; local
2308 uint8_t rate; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5416/
H A Dar5416_xmit.c161 ar5416RateToRateTable(struct ath_hal *ah, uint8_t rate, HAL_BOOL is_ht40) argument
167 switch (rate) {
186 switch (rate) {
209 if ((rate & 0x80) && is_ht40) {
210 return (AH5416(ah)->ah_ratesArray[rateHt40_0 + (rate & 0x7)]);
211 } else if (rate & 0x80) {
212 return (AH5416(ah)->ah_ratesArray[rateHt20_0 + (rate & 0x7)]);
220 * Return the TX power to be used for the given rate/chains/TX power.
226 ar5416GetTxRatePower(struct ath_hal *ah, uint8_t rate, uint8_t tx_chainmask, argument
269 if (rate
985 uint8_t rate; local
1073 uint8_t rate; local
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/
H A DMixer.h38 void SetOutputRate(uint32 rate);
H A DStream.h47 uint32 _DecodeRate(uint32 rate);
/haiku/src/add-ons/kernel/drivers/audio/ac97/
H A Dac97.h156 CAP_VARIABLE_PCM = 0x0000000000000400ULL, /* variable rate PCM */
157 CAP_DOUBLE_PCM = 0x0000000000000800ULL, /* double rate PCM */
159 CAP_VARIABLE_MIC = 0x0000000000002000ULL, /* variable rate mic PCM */
191 typedef bool (* codec_set_rate)(ac97_dev *dev, uint8 reg, uint32 rate);
192 typedef bool (* codec_get_rate)(ac97_dev *dev, uint8 reg, uint32 *rate);
237 bool ac97_set_rate(ac97_dev *dev, uint8 reg, uint32 rate);
238 bool ac97_get_rate(ac97_dev *dev, uint8 reg, uint32 *rate);
/haiku/src/apps/powerstatus/
H A DACPIDriverInterface.h23 void AddRate(int32 rate);
/haiku/src/kits/media/legacy/
H A DOldMediaModule.h95 virtual void TransportChanged(mk_time time, mk_rate rate,
102 virtual void TransportChangedReceived(mk_time time, mk_rate rate,
162 BTimeBase(mk_rate rate = 1.0);
194 BMediaChannel(mk_rate rate,
H A DOldMediaModule.cpp195 mk_rate rate,
232 mk_rate rate,
453 BTimeBase::BTimeBase(mk_rate rate) argument
582 BMediaChannel::BMediaChannel(mk_rate rate, argument
194 TransportChanged(mk_time time, mk_rate rate, transport_status status) argument
231 TransportChangedReceived(mk_time time, mk_rate rate, transport_status status) argument
/haiku/src/tests/kits/midi/synth_file_reader/
H A DSynthFileReader.h66 void Play(uint16 rate, uint32 offset, uint32 size);
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/
H A Dr12a_tx.c94 uint8_t rate; local
110 rate = rtwn_ctl_mcsrate(ic->ic_rt, ridx);
112 rate = ieee80211_ctl_rate(ic->ic_rt, ridx2rate[ridx]);
113 ridx = rate2ridx(IEEE80211_RV(rate));
116 /* RTS rate fallback limit (max). */
321 /* Data rate fallback limit (max). */
327 /* Force this rate if needed. */
385 /* Set TX rate index. */
433 uint8_t flags, rate; local
438 rate
[all...]

Completed in 134 milliseconds

123456