Home
last modified time | relevance | path

Searched refs:rateinfo (Results 1 – 2 of 2) sorted by relevance

/linux/net/netfilter/
H A Dxt_hashlimit.c112 } rateinfo; member
532 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc()
539 u64 interval = dh->rateinfo.interval * HZ; in rateinfo_recalc()
544 dh->rateinfo.prev = now; in rateinfo_recalc()
545 dh->rateinfo.prev_window = in rateinfo_recalc()
546 ((dh->rateinfo.current_rate * interval) > in rateinfo_recalc()
547 (delta * dh->rateinfo.rate)); in rateinfo_recalc()
548 dh->rateinfo.current_rate = 0; in rateinfo_recalc()
553 dh->rateinfo.prev = now; in rateinfo_recalc()
556 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dcfg80211.c1364 mwifiex_parse_htinfo(struct mwifiex_private *priv, u8 rateinfo, u8 htinfo, in mwifiex_parse_htinfo() argument
1373 rate->mcs = rateinfo; in mwifiex_parse_htinfo()
1378 rate->mcs = rateinfo & 0x0F; in mwifiex_parse_htinfo()
1402 if ((rateinfo >> 4) == 1) in mwifiex_parse_htinfo()
1412 if ((htinfo & BIT(0)) && (rateinfo < 16)) { in mwifiex_parse_htinfo()
1413 rate->mcs = rateinfo; in mwifiex_parse_htinfo()
1441 if (rateinfo < ARRAY_SIZE(legacy_rates)) in mwifiex_parse_htinfo()
1442 rate->legacy = legacy_rates[rateinfo]; in mwifiex_parse_htinfo()