/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/ |
H A D | if_rtwn_ridx.h | 26 /* HW rate indices. */ 46 #define RTWN_RATE_IS_CCK(rate) ((rate) <= RTWN_RIDX_CCK11) 47 #define RTWN_RATE_IS_OFDM(rate) \ 48 ((rate) >= RTWN_RIDX_OFDM6 && (rate) != RTWN_RIDX_UNKNOWN) 54 rate2ridx(uint8_t rate) argument 56 if (rate & IEEE80211_RATE_MCS) { 57 return ((rate & 0xf) + RTWN_RIDX_HT_MCS_SHIFT); 59 switch (rate) { 82 uint8_t cix, rate; local [all...] |
H A D | if_rtwn_tx.c | 121 uint8_t rate, ridx, type; local 131 /* Choose a TX rate index. */ 135 rate = tp->mgmtrate; 137 rate = tp->mcastrate; 139 rate = tp->ucastrate; 144 rate = ni->ni_txrate; 147 rate = IEEE80211_RATE_MCS | 0x4; /* MCS4 */ 149 rate = ridx2rate[RTWN_RIDX_OFDM36]; 151 rate = ridx2rate[RTWN_RIDX_CCK55]; 155 ridx = rate2ridx(rate); [all...] |
/haiku/src/add-ons/print/drivers/lpstyl/ |
H A D | LpstylData.cpp | 23 int32 rate = B57600; local 24 fNode->WriteAttr("transport_baudrate", B_INT32_TYPE, 0, &rate, sizeof(int32));
|
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_phy.h | 91 uint32_t rateKbps; /* transfer rate in kbs */ 93 * preamble in CCK rate code */ 97 * rate; used for dur. calcs */ 107 ieee80211_ack_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 111 * XXX Assert this is for a legacy rate; not for an MCS rate. 112 * If the caller wishes to use it for a basic rate, they should 115 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); 123 ieee80211_ctl_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 139 ieee80211_rate2phytype(const struct ieee80211_rate_table *rt, uint8_t rate) argument 155 ieee80211_isratevalid(const struct ieee80211_rate_table *rt, uint8_t rate) argument 174 ieee80211_ack_duration(const struct ieee80211_rate_table *rt, uint8_t rate, int isShortPreamble) argument 192 ieee80211_legacy_rate_lookup(const struct ieee80211_rate_table *rt, uint8_t rate) argument [all...] |
H A D | ieee80211_amrr.c | 168 uint8_t rate; local 204 /* Initial rate - lowest */ 205 rate = rs->rs_rates[0]; 207 /* XXX clear the basic rate flag if it's not 11n */ 209 rate &= IEEE80211_RATE_VAL; 211 /* pick initial rate from the rateset - HT or otherwise */ 223 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL; 225 /* if the rate is an 11n rate, ensure the MCS bit is set */ 227 rate | 483 int rate; local [all...] |
/haiku/headers/private/shared/ |
H A D | StringForRate.h | 14 const char* string_for_rate(double rate, char* string, size_t stringSize);
|
/haiku/src/kits/shared/ |
H A D | StringForRate.cpp | 27 string_for_rate(double rate, char* string, size_t stringSize) argument 39 while (index < B_COUNT_OF(kFormats) - 1 && rate >= 1024.0) { 40 rate /= 1024.0; 47 formatter.Format(format, rate); 52 numberFormat.Format(printedRate, rate);
|
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/ |
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...] |
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...] |
/haiku/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; 204 // Set the sample rate 207 fFormatInfo.output.rate [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/ |
H A D | r92c_rx.c | 97 uint8_t flags, rate; local 102 rate = MS(le32toh(stat->rxdw3), R92C_RXDW3_RATE); 103 if (RTWN_RATE_IS_CCK(rate)) 116 uint8_t rate; local 120 rate = MS(rxdw3, R92C_RXDW3_RATE); 126 if ((rxdw3 & R92C_RXDW3_SPLCP) && rate >= RTWN_RIDX_HT_MCS(0)) 134 if (RTWN_RATE_IS_CCK(rate)) 136 else if (rate < RTWN_RIDX_HT_MCS(0)) 141 /* Map HW rate index to 802.11 rate [all...] |
/haiku/src/preferences/input/ |
H A D | KeyboardSettings.cpp | 38 KeyboardSettings::SetKeyboardRepeatRate(int32 rate) argument 40 if (set_key_repeat_rate(rate) != B_OK) 42 fSettings.key_repeat_rate = rate;
|
H A D | KeyboardSettings.h | 30 void SetKeyboardRepeatRate(int32 rate);
|
H A D | InputKeyboard.cpp | 113 int32 rate; local 114 if (message->FindInt32("be:value", &rate) != B_OK) 116 fSettings.SetKeyboardRepeatRate(rate);
|
/haiku/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/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", 93 snooze(rate);
|
/haiku/src/add-ons/media/media-add-ons/opensound/ |
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);
|
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...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/ |
H A D | r12a_rx.c | 228 uint8_t flags, rate; local 232 rate = MS(le32toh(stat->rxdw3), R12A_RXDW3_RATE); 233 if (RTWN_RATE_IS_CCK(rate)) 247 uint8_t rate; local 253 rate = MS(rxdw3, R12A_RXDW3_RATE); 265 if ((rxdw4 & R12A_RXDW4_SPLCP) && rate >= RTWN_RIDX_HT_MCS(0)) 282 if (RTWN_RATE_IS_CCK(rate)) 291 if (rate < RTWN_RIDX_HT_MCS(0)) { 304 /* Map HW rate index to 802.11 rate [all...] |
/haiku/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/src/libs/compat/openbsd_wlan/net80211/ |
H A D | ieee80211_rssadapt.c | 53 static struct timeval lastrateadapt; /* time of last rate adaptation msg */ 54 static int currssadaptps = 0; /* rate-adaptation msgs this second */ 55 static int ieee80211_adaptrate = 4; /* rate-adaptation max msgs/sec */ 143 /* a node is eligible for its rate to be raised every 1/10 to 10 168 * Adapt the data rate to suit the conditions. When a transmitted 171 * the same data rate. 186 "%s rate #%d > #%d out of bounds\n", 220 int i, rate, top; local 240 rate = (rs->rs_rates[id->id_rateidx + 1] & IEEE80211_RATE_VAL); 245 rate / [all...] |
/haiku/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);
|