/haiku-fatelf/src/apps/serialconnect/ |
H A D | SerialApp.cpp | 136 data_rate rate; local 139 rate = B_50_BPS; 142 rate = B_75_BPS; 145 rate = B_110_BPS; 148 rate = B_134_BPS; 151 rate = B_150_BPS; 154 rate = B_200_BPS; 157 rate = B_300_BPS; 160 rate = B_600_BPS; 163 rate [all...] |
/haiku-fatelf/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_phy.h | 70 uint32_t rateKbps; /* transfer rate in kbs */ 72 * preamble in CCK rate code */ 76 * rate; used for dur. calcs */ 86 ieee80211_ack_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 88 uint8_t cix = rt->info[rt->rateCodeToIndex[rate]].ctlRateIndex; 89 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); 94 ieee80211_ctl_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 96 uint8_t cix = rt->info[rt->rateCodeToIndex[rate]].ctlRateIndex; 97 KASSERT(cix != (uint8_t)-1, ("rate 102 ieee80211_rate2phytype(const struct ieee80211_rate_table *rt, uint8_t rate) argument 110 ieee80211_isratevalid(const struct ieee80211_rate_table *rt, uint8_t rate) argument 122 ieee80211_ack_duration(const struct ieee80211_rate_table *rt, uint8_t rate, int isShortPreamble) argument [all...] |
H A D | ieee80211.c | 194 /* fillin well-known rate sets if driver has not specified */ 1011 * rate tables. 1018 int i, j, mode, rate, maxrate, mword, r; local 1039 rate = rs->rs_rates[i]; 1040 mword = ieee80211_rate2media(ic, rate, mode); 1045 * Add legacy rate to the collection of all rates. 1047 r = rate & IEEE80211_RATE_VAL; 1056 rate = (rate & IEEE80211_RATE_VAL) / 2; 1057 if (rate > maxrat 1147 int i, mode, rate, mword; local 1487 ieee80211_rate2media(struct ieee80211com *ic, int rate, enum ieee80211_phymode mode) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/ports/usb_serial/ |
H A D | FTDI.cpp | 92 int32 rate = 0; local 96 case 300: rate = ftdi_sio_b300; break; 97 case 600: rate = ftdi_sio_b600; break; 98 case 1200: rate = ftdi_sio_b1200; break; 99 case 2400: rate = ftdi_sio_b2400; break; 100 case 4800: rate = ftdi_sio_b4800; break; 101 case 9600: rate = ftdi_sio_b9600; break; 102 case 19200: rate = ftdi_sio_b19200; break; 103 case 38400: rate = ftdi_sio_b38400; break; 104 case 57600: rate [all...] |
H A D | KLSI.cpp | 94 uint8 rate; local 96 case 300: rate = klsi_sio_b300; break; 97 case 600: rate = klsi_sio_b600; break; 98 case 1200: rate = klsi_sio_b1200; break; 99 case 2400: rate = klsi_sio_b2400; break; 100 case 4800: rate = klsi_sio_b4800; break; 101 case 9600: rate = klsi_sio_b9600; break; 102 case 19200: rate = klsi_sio_b19200; break; 103 case 38400: rate = klsi_sio_b38400; break; 104 case 57600: rate [all...] |
/haiku-fatelf/headers/private/shared/ |
H A D | StringForRate.h | 14 const char* string_for_rate(double rate, char* string, size_t stringSize,
|
/haiku-fatelf/src/add-ons/media/media-add-ons/multi_audio/ |
H A D | MultiAudioUtility.h | 16 // sample rate & format conversion 17 float convert_to_sample_rate(uint32 rate); 18 uint32 convert_from_sample_rate(float rate); 22 uint32 select_sample_rate(uint32 rate);
|
H A D | MultiAudioUtility.cpp | 37 convert_to_sample_rate(uint32 rate) argument 40 if (rate & 1) 43 rate >>= 1; 51 convert_from_sample_rate(float rate) argument 54 if (rate <= kSampleRates[i]) 127 select_sample_rate(uint32 rate) argument 129 // highest rate 132 if (rate & crate)
|
H A D | MultiAudioDevice.cpp | 75 if (fFormatInfo.input.rate == multiAudioRate) 78 uint32 oldRate = fFormatInfo.input.rate; 79 fFormatInfo.input.rate = multiAudioRate; 85 fFormatInfo.input.rate = oldRate; 99 if (fFormatInfo.output.rate == multiAudioRate) 102 uint32 oldRate = fFormatInfo.output.rate; 103 fFormatInfo.output.rate = multiAudioRate; 109 fFormatInfo.output.rate = oldRate; 202 // Set the sample rate 205 fFormatInfo.output.rate [all...] |
/haiku-fatelf/src/servers/input/ |
H A D | KeyboardSettings.h | 23 void SetKeyboardRepeatRate(int32 rate);
|
H A D | KeyboardSettings.cpp | 43 KeyboardSettings::SetKeyboardRepeatRate(int32 rate) argument 45 fSettings.key_repeat_rate = rate;
|
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | ser-unix.h | 43 extern int ser_unix_nop_setbaudrate (struct serial *scb, int rate); 44 extern int ser_unix_nop_setstopbits (struct serial *scb, int rate);
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | if_ath_misc.h | 51 extern int ath_tx_findrix(const struct ath_softc *sc, uint8_t rate);
|
/haiku-fatelf/src/bin/ |
H A D | vmstat.cpp | 17 {"rate", required_argument, 0, 'r'}, 31 " -r,--rate\tDumps changes periodically every <time> milli seconds.\n", 42 bigtime_t rate = 1000000LL; local 53 rate = atoi(optarg) * 1000LL; 54 if (rate <= 0) { 55 fprintf(stderr, "%s: Invalid rate: %s\n", 91 snooze(rate);
|
/haiku-fatelf/src/preferences/keyboard/ |
H A D | KeyboardSettings.h | 31 void SetKeyboardRepeatRate(int32 rate);
|
H A D | KeyboardSettings.cpp | 81 KeyboardSettings::SetKeyboardRepeatRate(int32 rate) argument 83 if (set_key_repeat_rate(rate) != B_OK) 85 fSettings.key_repeat_rate = rate; 101 printf("repeat rate: %" B_PRId32 "\n", fSettings.key_repeat_rate);
|
/haiku-fatelf/src/kits/shared/ |
H A D | StringForRate.cpp | 23 string_for_rate(double rate, char* string, size_t stringSize, double base) argument 25 double kbps = rate / base; 29 B_TRANSLATION_CONTEXT), (int)rate);
|
/haiku-fatelf/src/add-ons/media/media-add-ons/opensound/ |
H A D | OpenSoundDevice.cpp | 48 float OpenSoundDevice::convert_oss_rate_to_media_rate(int rate) argument 50 return (float)rate; 54 int OpenSoundDevice::convert_media_rate_to_oss_rate(float rate) argument 56 return (int)rate; 138 int OpenSoundDevice::select_oss_rate(const oss_audioinfo *info, int rate) argument 142 if (rate && rate >= info->min_rate && rate <= info->max_rate) 143 return rate; 153 if (rate [all...] |
H A D | OpenSoundDevice.h | 80 static float convert_oss_rate_to_media_rate(int rate); 81 static int convert_media_rate_to_oss_rate(float rate); 86 static int select_oss_rate(const oss_audioinfo *info, int rate);
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/sis7018/ |
H A D | Stream.cpp | 37 fFormat.rate = B_SR_48000; 38 fFormat.cvsr = _DecodeRate(fFormat.rate); 109 Stream::_DecodeRate(uint32 rate) argument 111 switch(rate) { 123 ERROR("Rate:%x is not supported. Fall to default 48000\n", rate); 144 if (fFormat.rate == format.rate && fFormat.format == format.format) 147 if ((format.rate & rates) == 0 || (format.format & formats) == 0) { 148 ERROR("Unsupported data format:%x or rate:%x. Ignore.\n", 149 format.format, format.rate); [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/onoe/ |
H A D | onoe.c | 34 * Atsushi Onoe's rate control algorithm. 72 * Default parameters for the rate control algorithm. These are 73 * all tunable with sysctls. The rate controller runs periodically 77 * it gives a "raise rate credit". If transmits look to not be working 79 * the transmit rate is raised. Various error conditions force the 80 * the transmit rate to be dropped. 86 * the transmit rate is increased. 90 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */ 92 static int ath_rate_raise_threshold = 10; /* rate ctl raise threshold */ 95 int rate); 188 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_keyboard.cpp | 87 set_typematic(int32 rate, bigtime_t delay) argument 91 TRACE("ps2: set_typematic rate %" B_PRId32 ", delay %" B_PRId64 "\n", 92 rate, delay); 95 if (rate < 20) 96 rate = 20; 97 if (rate > 300) 98 rate = 300; 101 rate = ((rate - 20) * 31) / (300 - 20); 104 value = 31 - rate; [all...] |
/haiku-fatelf/src/add-ons/media/media-add-ons/radeon/ |
H A D | I2CPort.h | 24 CI2CPort(CRadeon & radeon, int rate = C_RADEON_I2C_DEFAULT_CLOCK_RATE);
|
/haiku-fatelf/src/tests/add-ons/kernel/drivers/audio/ |
H A D | multi_audio_test.cpp | 103 uint32 rate = 0; local 107 rate = kSampleRates[i]; 110 return rate; 177 uint32 rate = strtoul(argv[1], NULL, 0); local 182 if (rate == kSampleRates[i]) 187 fprintf(stderr, "Invalid sample rate %ld!\n", rate); 199 printf("Current sample rate is %lu Hz (0x%lx)\n", get_rate(sRate), sRate); 236 printf("max cont. var. sample rate:\t%.0f\n", 238 printf("min cont. var. sample rate [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/amrr/ |
H A D | amrr.c | 43 * AMRR rate control. See: 82 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */ 87 int rate); 121 * the returned rate with the relevant preamble rate flag. 209 * The code below assumes that we are dealing with hardware multi rate retry 215 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument 223 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 226 "%s: set xmit rate to %dM", __func__, 228 (ni->ni_rates.rs_rates[rate] [all...] |