Searched refs:rates (Results 1 - 25 of 53) sorted by relevance

123

/external/iptables/extensions/
H A Dlibxt_limit.c112 static const struct rates struct
116 } rates[] = { { "day", XT_LIMIT_SCALE*24*60*60 }, variable in typeref:struct:rates
130 for (i = 1; i < ARRAY_SIZE(rates); ++i)
131 if (period > rates[i].mult
132 || rates[i].mult/period < rates[i].mult%period)
135 printf(" %u/%s", rates[i-1].mult / period, rates[i-1].name);
155 static const struct rates rates_xlate[] = {
171 for (i = 1; i < ARRAY_SIZE(rates);
[all...]
H A Dlibebt_limit.c126 struct rates struct
132 static struct rates g_rates[] =
144 for (i = 1; i < sizeof(g_rates)/sizeof(struct rates); i++)
H A Dlibxt_hashlimit.c604 struct rates { struct
612 static const struct rates rates[] = { variable in typeref:struct:rates
621 const struct rates *_rates = (revision == 1) ? rates_v1 : rates;
629 for (i = 1; i < ARRAY_SIZE(rates); ++i)
/external/autotest/client/site_tests/power_Backlight/
H A Dpower_Backlight.py54 rates = []
67 rates.append(rate)
70 if rates[i] <= rates[i-1]:
/external/iw/
H A Dibss.c27 unsigned char rates[NL80211_MAX_SUPP_RATES]; local
131 /* basic rates */
132 if (argc > 1 && strcmp(argv[0], "basic-rates") == 0) {
140 rates[n_rates] = rate * 2;
143 if (*end != '\0' || !rates[n_rates] ||
144 rate*2 != rates[n_rates])
151 NLA_PUT(msg, NL80211_ATTR_BSS_BASIC_RATES, n_rates, rates);
198 " [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] "
206 "it with the specified basic-rates, multicast-rate and beacon-interval.");
H A Dmesh.c441 unsigned char rates[NL80211_MAX_SUPP_RATES]; local
514 /* basic rates */
515 if (argc > 1 && strcmp(argv[0], "basic-rates") == 0) {
523 rates[n_rates] = rate * 2;
526 if (*end != '\0' || !rates[n_rates] ||
527 rate*2 != rates[n_rates])
534 NLA_PUT(msg, NL80211_ATTR_BSS_BASIC_RATES, n_rates, rates);
606 " [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>]"
610 "Join a mesh with the given mesh ID with frequency, basic-rates,\n"
611 "mcast-rate and mesh parameters. Basic-rates ar
[all...]
/external/syslinux/gpxe/src/net/80211/
H A Drc80211.c59 * for rates with less than 4 RX packets or 1 TX, as an indicator that
62 * In deciding which rates are best, we find the weighted average of
75 * sending AP in choosing rates, but we won't use rates for long that
235 dev->rates[dev->rate] / 10, dev->rates[rate_idx] / 10 );
334 dev->rctl, dev->rates[dev->rate] / 10,
335 dev->rates[dev->rate - 1] / 10,
354 for ( ridx = 0; ridx < dev->nr_rates && dev->rates[ridx] != rate;
H A Dnet80211.c419 * 802.11b supports rates of 1.0, 2.0, 5.5, and 11.0 Mbps; any other
529 hdr->duration = net80211_duration ( dev, 10, dev->rates[dev->rate] );
731 hdr->duration = net80211_duration ( dev, 10, dev->rates[dev->rate] );
1055 u16 old_rate = dev->rates[dev->rate];
1083 u8 rid = ie->rates[i];
1090 dev->rates[dev->nr_rates++] = rate;
1137 /* Allow only those rates that are also supported by
1145 if ( dev->hw->rates[band][j] == dev->rates[i] ){
1154 dev->rates[
[all...]
/external/syslinux/gpxe/src/drivers/net/ath5k/
H A Dath5k_phy.c1667 struct ath5k_rate_pcal_info *rates)
1718 rates->freq = target;
1720 rates->target_power_6to24 =
1726 rates->target_power_36 =
1732 rates->target_power_48 =
1738 rates->target_power_54 =
2412 * rates[0] - rates[7] -> OFDM rates
2413 * rates[
1665 ath5k_get_rate_pcal_data(struct ath5k_hw *ah, struct net80211_channel *channel, struct ath5k_rate_pcal_info *rates) argument
2422 u16 *rates; local
[all...]
/external/syslinux/gpxe/src/include/gpxe/
H A Dnet80211.h257 * irrelevant for 802.11g data rates, since they use a different
271 /** The maximum number of TX rates we allow to be configured simultaneously */
503 /** List of transmission rates supported by the card, indexed by band
508 u16 rates[NET80211_NR_BANDS][NET80211_MAX_RATES]; member in struct:net80211_hw_info
510 /** Number of supported rates, indexed by band */
814 /** A list of all possible TX rates we might use
818 u16 rates[NET80211_MAX_RATES]; member in struct:net80211_device
820 /** The number of transmission rates in the rates array */
823 /** The rate currently in use, as an index into the rates arra
[all...]
/external/libopus/tests/
H A Dtest_opus_encode.c243 int rates[13]={6000,12000,48000,16000,32000,48000,64000,512000,13000,24000,48000,64000,96000}; local
245 rate=rates[j]+fast_rand()%rates[j];
272 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS((rates[j]>=64000?2:1)))!=OPUS_OK)test_failed();
329 int rates[16]={4000,12000,32000,8000,16000,32000,48000,88000,4000,12000,32000,8000,16000,32000,48000,88000}; local
333 rate=rates[j]+fast_rand()%rates[j];
/external/tcpdump/
H A Dprint-802_11.c284 struct rates_t rates; member in struct:mgmt_body_t
710 for (z = 0; z < p.rates.length ; z++) { \
711 PRINT_RATE(sep, p.rates.rate[z], \
712 (p.rates.rate[z] & 0x80 ? "*" : "")); \
715 if (p.rates.length != 0) \
1153 "the data rates in BSSBasicRateSet parameter", /* 18 */
1180 "Association denied due to excessive frame loss rates and/or "
1300 struct rates_t rates; local
1389 memcpy(&rates, p + offset, 2);
1392 if (rates
[all...]
/external/iproute2/misc/
H A Difstat.c257 double *rates = n->rate; local
265 rates = h1->rate;
283 (unsigned)rates[i]);
299 const double *rates, int i)
310 if (rates[i] > mega) {
311 sprintf(temp, "%uM", (unsigned)(rates[i]/mega));
313 } else if (rates[i] > kilo) {
314 sprintf(temp, "%uK", (unsigned)(rates[i]/kilo));
317 fprintf(fp, "%-6u ", (unsigned)rates[i]);
298 format_rate(FILE *fp, const unsigned long long *vals, const double *rates, int i) argument
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Ddriver_nl80211_scan.c320 struct nlattr *rates; local
324 rates = nla_nest_start(msg, NL80211_ATTR_SCAN_SUPP_RATES);
325 if (rates == NULL)
329 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates
330 * by masking out everything else apart from the OFDM rates 6,
331 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz
332 * rates are left enabled.
337 nla_nest_end(msg, rates);
1134 struct nlattr *rates; local
[all...]
H A Ddriver_nl80211_capa.c1367 mode->rates = os_calloc(mode->num_rates, sizeof(int));
1368 if (!mode->rates)
1379 mode->rates[idx] = nla_get_u32(
1488 if (modes[m].rates[i] > 200) {
1535 mode->rates = os_malloc(4 * sizeof(int));
1536 if (mode->rates == NULL) {
1543 if (mode11g->rates[i] != 10 && mode11g->rates[i] != 20 &&
1544 mode11g->rates[i] != 55 && mode11g->rates[
[all...]
H A Ddriver_hostap.c1117 mode->rates = os_zalloc(rlen);
1118 if (mode->channels == NULL || mode->rates == NULL) {
1120 os_free(mode->rates);
1133 mode->rates[0] = 10;
1134 mode->rates[1] = 20;
1135 mode->rates[2] = 55;
1136 mode->rates[3] = 110;
/external/wpa_supplicant_8/src/drivers/
H A Ddriver_nl80211_scan.c320 struct nlattr *rates; local
324 rates = nla_nest_start(msg, NL80211_ATTR_SCAN_SUPP_RATES);
325 if (rates == NULL)
329 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates
330 * by masking out everything else apart from the OFDM rates 6,
331 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz
332 * rates are left enabled.
337 nla_nest_end(msg, rates);
1134 struct nlattr *rates; local
[all...]
H A Ddriver_nl80211_capa.c1367 mode->rates = os_calloc(mode->num_rates, sizeof(int));
1368 if (!mode->rates)
1379 mode->rates[idx] = nla_get_u32(
1488 if (modes[m].rates[i] > 200) {
1535 mode->rates = os_malloc(4 * sizeof(int));
1536 if (mode->rates == NULL) {
1543 if (mode11g->rates[i] != 10 && mode11g->rates[i] != 20 &&
1544 mode11g->rates[i] != 55 && mode11g->rates[
[all...]
H A Ddriver_hostap.c1117 mode->rates = os_zalloc(rlen);
1118 if (mode->channels == NULL || mode->rates == NULL) {
1120 os_free(mode->rates);
1133 mode->rates[0] = 10;
1134 mode->rates[1] = 20;
1135 mode->rates[2] = 55;
1136 mode->rates[3] = 110;
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Ddriver_nl80211_scan.c320 struct nlattr *rates; local
324 rates = nla_nest_start(msg, NL80211_ATTR_SCAN_SUPP_RATES);
325 if (rates == NULL)
329 * Remove 2.4 GHz rates 1, 2, 5.5, 11 Mbps from supported rates
330 * by masking out everything else apart from the OFDM rates 6,
331 * 9, 12, 18, 24, 36, 48, 54 Mbps from non-MCS rates. All 5 GHz
332 * rates are left enabled.
337 nla_nest_end(msg, rates);
1134 struct nlattr *rates; local
[all...]
H A Ddriver_nl80211_capa.c1367 mode->rates = os_calloc(mode->num_rates, sizeof(int));
1368 if (!mode->rates)
1379 mode->rates[idx] = nla_get_u32(
1488 if (modes[m].rates[i] > 200) {
1535 mode->rates = os_malloc(4 * sizeof(int));
1536 if (mode->rates == NULL) {
1543 if (mode11g->rates[i] != 10 && mode11g->rates[i] != 20 &&
1544 mode11g->rates[i] != 55 && mode11g->rates[
[all...]
H A Ddriver_hostap.c1117 mode->rates = os_zalloc(rlen);
1118 if (mode->channels == NULL || mode->rates == NULL) {
1120 os_free(mode->rates);
1133 mode->rates[0] = 10;
1134 mode->rates[1] = 20;
1135 mode->rates[2] = 55;
1136 mode->rates[3] = 110;
/external/syslinux/gpxe/src/usr/
H A Diwmgmt.c73 dev->rates[dev->rate] / 10 );
/external/wpa_supplicant_8/wpa_supplicant/
H A Dbss.h145 int wpa_bss_get_bit_rates(const struct wpa_bss *bss, u8 **rates);
/external/syslinux/gpxe/src/drivers/net/rtl818x/
H A Drtl818x.c181 (dev->rates[dev->rate] * 2) / 10);
183 ((dev->rates[dev->rate] * 2) / 10);
571 rtl818x_rates[hw_rate] != dev->rates[dev->rate];
582 dev->rates[dev->rtscts_rate];
718 memcpy(hwinfo->rates[NET80211_BAND_2GHZ], rtl818x_rates,

Completed in 595 milliseconds

123