Home
last modified time | relevance | path

Searched refs:bw (Results 26 – 50 of 213) sorted by relevance

123456789

/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dusb_phy.c87 u8 channel = chan->hw_value, bw, bw_index; in mt76x2u_phy_set_channel() local
96 bw = 1; in mt76x2u_phy_set_channel()
110 bw = 2; in mt76x2u_phy_set_channel()
115 bw = 0; in mt76x2u_phy_set_channel()
123 mt76x2_configure_tx_delay(dev, chan->band, bw); in mt76x2u_phy_set_channel()
137 ret = mt76x2_mcu_set_channel(dev, channel, bw, bw_index, scan); in mt76x2u_phy_set_channel()
H A Dmcu.c15 int mt76x2_mcu_set_channel(struct mt76x02_dev *dev, u8 channel, u8 bw, in mt76x2_mcu_set_channel() argument
21 u8 bw; in mt76x2_mcu_set_channel() member
31 .bw = bw, in mt76x2_mcu_set_channel()
H A Dpci_phy.c148 u8 bw, bw_index; in mt76x2_phy_set_channel() local
159 bw = 1; in mt76x2_phy_set_channel()
173 bw = 2; in mt76x2_phy_set_channel()
178 bw = 0; in mt76x2_phy_set_channel()
186 mt76x2_configure_tx_delay(dev, band, bw); in mt76x2_phy_set_channel()
200 ret = mt76x2_mcu_set_channel(dev, channel, bw, bw_index, scan); in mt76x2_phy_set_channel()
/freebsd/usr.sbin/wake/
H A Dwake.c159 ssize_t bw; in send_wakeup() local
171 bw = 0; in send_wakeup()
173 if ((bw = write(bpf, p, len)) == -1) { in send_wakeup()
177 len -= bw; in send_wakeup()
178 p += bw; in send_wakeup()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs_sta.c29 bw = ath11k_mac_mac80211_bw_to_ath11k_bw(txrate->bw); in ath11k_debugfs_sta_add_tx_stats()
85 STATS_OP_FMT(AMPDU).bw[0][bw] += in ath11k_debugfs_sta_add_tx_stats()
91 STATS_OP_FMT(AMPDU).bw[1][bw] += in ath11k_debugfs_sta_add_tx_stats()
101 STATS_OP_FMT(SUCC).bw[0][bw] += peer_stats->succ_bytes; in ath11k_debugfs_sta_add_tx_stats()
105 STATS_OP_FMT(SUCC).bw[1][bw] += peer_stats->succ_pkts; in ath11k_debugfs_sta_add_tx_stats()
109 STATS_OP_FMT(FAIL).bw[0][bw] += peer_stats->failed_bytes; in ath11k_debugfs_sta_add_tx_stats()
113 STATS_OP_FMT(FAIL).bw[1][bw] += peer_stats->failed_pkts; in ath11k_debugfs_sta_add_tx_stats()
117 STATS_OP_FMT(RETRY).bw[0][bw] += peer_stats->retry_bytes; in ath11k_debugfs_sta_add_tx_stats()
121 STATS_OP_FMT(RETRY).bw[1][bw] += peer_stats->retry_pkts; in ath11k_debugfs_sta_add_tx_stats()
191 stats->bw[j][0], stats->bw[j][1], in ath11k_dbg_sta_dump_tx_stats()
[all …]
/freebsd/crypto/openssh/
H A Dmisc.c1752 bw->lamt = 0; in bandwidth_limit_init()
1769 if (bw->lamt < bw->thresh) in bandwidth_limit()
1773 timersub(&bw->bwend, &bw->bwstart, &bw->bwend); in bandwidth_limit()
1778 waitlen = (double)1000000L * bw->lamt / bw->rate; in bandwidth_limit()
1783 if (timercmp(&bw->bwstart, &bw->bwend, >)) { in bandwidth_limit()
1784 timersub(&bw->bwstart, &bw->bwend, &bw->bwend); in bandwidth_limit()
1789 if (bw->thresh < bw->buflen / 4) in bandwidth_limit()
1790 bw->thresh = bw->buflen / 4; in bandwidth_limit()
1793 if (bw->thresh > bw->buflen * 8) in bandwidth_limit()
1794 bw->thresh = bw->buflen * 8; in bandwidth_limit()
[all …]
/freebsd/crypto/openssl/test/testutil/
H A Dtests.c416 BIGNUM *bw; in test_BN_eq_word() local
420 if ((bw = BN_new()) != NULL) in test_BN_eq_word()
421 BN_set_word(bw, w); in test_BN_eq_word()
422 test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "==", a, bw); in test_BN_eq_word()
423 BN_free(bw); in test_BN_eq_word()
430 BIGNUM *bw, *aa; in test_BN_abs_eq_word() local
436 if ((bw = BN_new()) != NULL) in test_BN_abs_eq_word()
437 BN_set_word(bw, w); in test_BN_abs_eq_word()
439 aa, bw); in test_BN_abs_eq_word()
440 BN_free(bw); in test_BN_abs_eq_word()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Drs.c85 const char *iwl_rs_pretty_bw(int bw) in iwl_rs_pretty_bw() argument
87 if (bw >= ARRAY_SIZE(pretty_bw)) in iwl_rs_pretty_bw()
90 return pretty_bw[bw]; in iwl_rs_pretty_bw()
197 u32 bw = (rate & RATE_MCS_CHAN_WIDTH_MSK) >> in rs_pretty_print_rate() local
237 rate, type, iwl_rs_pretty_ant(ant), iwl_rs_pretty_bw(bw), mcs, nss, in rs_pretty_print_rate()
/freebsd/sbin/pfctl/
H A Dpfctl_altq.c212 print_queue(a, level, bw, 1, qopts); in print_altq()
246 if (bw != NULL && bw->bw_percent > 0) { in print_altq()
247 if (bw->bw_percent < 100) in print_altq()
276 if (bw != NULL && bw->bw_percent > 0) { in print_queue()
277 if (bw->bw_percent < 100) in print_queue()
312 if (bw->bw_absolute > 0) in eval_pfaltq()
313 pa->ifbandwidth = bw->bw_absolute; in eval_pfaltq()
425 pa->bandwidth = eval_bwspec(bw, in eval_pfqueue()
1382 if (bw->bw_absolute > 0) in eval_bwspec()
1383 return (MIN(bw->bw_absolute, ref_bw)); in eval_bwspec()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dacs.c650 int n_chans, u32 bw, in acs_find_ideal_chan_mode() argument
682 if (!chan_bw_allowed(chan, bw, 1, 1)) { in acs_find_ideal_chan_mode()
685 chan->chan, bw); in acs_find_ideal_chan_mode()
733 if (!chan_bw_allowed(adj_chan, bw, 1, 0)) { in acs_find_ideal_chan_mode()
736 chan->chan, adj_chan->chan, bw); in acs_find_ideal_chan_mode()
845 u32 bw; in acs_find_ideal_chan() local
849 bw = op_class_to_bandwidth(iface->conf->op_class); in acs_find_ideal_chan()
850 n_chans = bw / 20; in acs_find_ideal_chan()
877 bw = num_chan_to_bw(n_chans); in acs_find_ideal_chan()
883 "ACS: Survey analysis for selected bandwidth %d MHz", bw); in acs_find_ideal_chan()
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Drx.c190 if (pkt_stat->bw == RTW_CHANNEL_WIDTH_80) in rtw_rx_fill_rx_status()
191 rx_status->bw = RATE_INFO_BW_80; in rtw_rx_fill_rx_status()
192 else if (pkt_stat->bw == RTW_CHANNEL_WIDTH_40) in rtw_rx_fill_rx_status()
193 rx_status->bw = RATE_INFO_BW_40; in rtw_rx_fill_rx_status()
195 rx_status->bw = RATE_INFO_BW_20; in rtw_rx_fill_rx_status()
H A Drtw8821c.c328 switch (bw) { in rtw8821c_set_channel_rf()
363 if (bw == RTW_CHANNEL_WIDTH_40) { in rtw8821c_set_channel_rxdfir()
369 } else if (bw == RTW_CHANNEL_WIDTH_80) { in rtw8821c_set_channel_rxdfir()
433 switch (bw) { in rtw8821c_set_channel_bb()
502 u8 bw, u8 primary_ch_idx) in rtw8821c_set_channel_bb_swing() argument
562 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
570 u8 rxsc, bw; in query_phy_status_page1() local
579 bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page1()
581 bw = RTW_CHANNEL_WIDTH_40; in query_phy_status_page1()
583 bw = RTW_CHANNEL_WIDTH_80; in query_phy_status_page1()
[all …]
H A Drtw8822b.c471 bw == RTW_CHANNEL_WIDTH_40) || in rtw8822b_set_channel_cca()
473 bw == RTW_CHANNEL_WIDTH_40) || in rtw8822b_set_channel_cca()
527 switch (bw) { in rtw8822b_set_channel_rf()
592 if (bw == RTW_CHANNEL_WIDTH_40) { in rtw8822b_set_channel_rxdfir()
659 switch (bw) { in rtw8822b_set_channel_bb()
848 pkt_stat->bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page0()
858 u8 rxsc, bw; in query_phy_status_page1() local
871 bw = RTW_CHANNEL_WIDTH_20; in query_phy_status_page1()
873 bw = RTW_CHANNEL_WIDTH_40; in query_phy_status_page1()
875 bw = RTW_CHANNEL_WIDTH_80; in query_phy_status_page1()
[all …]
/freebsd/sys/dev/aac/
H A Daac_debug.c218 struct aac_blockwrite *bw; in aac_print_fib() local
223 bw = (struct aac_blockwrite*)fib->data; in aac_print_fib()
233 if (bw->Command == VM_CtBlockWrite) { in aac_print_fib()
236 "(%s)\n", bw->ContainerId, in aac_print_fib()
237 bw->BlockNumber, bw->ByteCount, in aac_print_fib()
238 bw->Stable == CSTABLE ? "stable" : in aac_print_fib()
240 sg = &bw->SgMap; in aac_print_fib()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dtestmode.c311 rate.bw = RATE_INFO_BW_160; in mt7915_tm_set_tx_len()
314 rate.bw = RATE_INFO_BW_80; in mt7915_tm_set_tx_len()
317 rate.bw = RATE_INFO_BW_40; in mt7915_tm_set_tx_len()
320 rate.bw = RATE_INFO_BW_20; in mt7915_tm_set_tx_len()
536 tx_cont->bw = CMD_CBW_40MHZ; in mt7915_tm_set_tx_cont()
539 tx_cont->bw = CMD_CBW_80MHZ; in mt7915_tm_set_tx_cont()
545 tx_cont->bw = CMD_CBW_160MHZ; in mt7915_tm_set_tx_cont()
548 tx_cont->bw = CMD_CBW_5MHZ; in mt7915_tm_set_tx_cont()
551 tx_cont->bw = CMD_CBW_10MHZ; in mt7915_tm_set_tx_cont()
554 tx_cont->bw = CMD_CBW_20MHZ; in mt7915_tm_set_tx_cont()
[all …]
/freebsd/sys/net/altq/
H A Daltq_fairq.c613 uint64_t bw; in fairq_addq() local
649 bw = b->bw_bytes * machclk_freq / b->bw_delta; in fairq_addq()
650 if (bw < cl->cl_hogs_m1) in fairq_addq()
749 uint64_t bw; in fairq_pollq() local
769 bw = cl->cl_bw_bytes * machclk_freq / cl->cl_bw_delta; in fairq_pollq()
771 if (bw > cl->cl_bandwidth) in fairq_pollq()
775 (uintmax_t)bw, cl->cl_bandwidth, *hit_limit, b); in fairq_pollq()
790 uint64_t bw; in fairq_selectq() local
821 bw = b->bw_bytes * machclk_freq / b->bw_delta; in fairq_selectq()
822 if (bw >= cl->cl_hogs_m1) { in fairq_selectq()
/freebsd/contrib/tcpdump/
H A Dprint-rsvp.c519 } bw; in rsvp_intserv_print() local
558 bw.i = GET_BE_U_4(tptr + 4); in rsvp_intserv_print()
612 bw.i = GET_BE_U_4(tptr + 4); in rsvp_intserv_print()
614 bw.i = GET_BE_U_4(tptr + 8); in rsvp_intserv_print()
615 ND_PRINT("\n\t\tToken Bucket Size: %.10g bytes", bw.f); in rsvp_intserv_print()
616 bw.i = GET_BE_U_4(tptr + 12); in rsvp_intserv_print()
638 bw.i = GET_BE_U_4(tptr + 4); in rsvp_intserv_print()
639 ND_PRINT("\n\t\tRate: %.10g Mbps", bw.f / 125000); in rsvp_intserv_print()
696 } bw; in rsvp_obj_print() local
1564 bw.f * 8 / 1000000); in rsvp_obj_print()
[all …]
H A Dprint-ospf.c275 } bw; in ospf_te_lsa_print() local
368 bw.i = GET_BE_U_4(tptr); in ospf_te_lsa_print()
369 ND_PRINT(", %.3f Mbps", bw.f * 8 / 1000000); in ospf_te_lsa_print()
377 bw.i = GET_BE_U_4(tptr + te_class * 4); in ospf_te_lsa_print()
380 bw.f * 8 / 1000000); in ospf_te_lsa_print()
402 bw.i = GET_BE_U_4(tptr + 4 + te_class * 4); in ospf_te_lsa_print()
405 bw.f * 8 / 1000000); in ospf_te_lsa_print()
435 bw.i = GET_BE_U_4(tptr + 4 + (priority_level * 4)); in ospf_te_lsa_print()
438 bw.f * 8 / 1000000); in ospf_te_lsa_print()
460 bw.i = GET_BE_U_4(tptr); in ospf_te_lsa_print()
[all …]
H A Dprint-lmp.c369 } bw; in lmp_print_data_link_subobjs() local
404 bw.i = GET_BE_U_4(obj_tptr + offset + 4); in lmp_print_data_link_subobjs()
406 bw.f*8/1000000); in lmp_print_data_link_subobjs()
407 bw.i = GET_BE_U_4(obj_tptr + offset + 8); in lmp_print_data_link_subobjs()
409 bw.f*8/1000000); in lmp_print_data_link_subobjs()
440 } bw; in lmp_print() local
806 bw.i = GET_BE_U_4(obj_tptr + 12); in lmp_print()
807 ND_PRINT("\n\t Transmission Rate: %.3f Mbps",bw.f*8/1000000); in lmp_print()
/freebsd/sys/dev/aacraid/
H A Daacraid_debug.c131 struct aac_blockwrite *bw; in aacraid_print_fib() local
136 bw = (struct aac_blockwrite*)fib->data; in aacraid_print_fib()
146 if (bw->Command == VM_CtBlockWrite) { in aacraid_print_fib()
149 "(%s)\n", bw->ContainerId, in aacraid_print_fib()
150 bw->BlockNumber, bw->ByteCount, in aacraid_print_fib()
151 bw->Stable == CSTABLE ? "stable" : in aacraid_print_fib()
153 sg = &bw->SgMap; in aacraid_print_fib()
H A Daacraid_cam.c458 struct aac_blockwrite *bw; in aac_container_rw_command() local
460 bw->Command = VM_CtBlockWrite; in aac_container_rw_command()
462 bw->BlockNumber = blockno; in aac_container_rw_command()
464 bw->Stable = CUNSTABLE; in aac_container_rw_command()
465 aac_blockwrite_tole(bw); in aac_container_rw_command()
467 cm->cm_sgtable = &bw->SgMap; in aac_container_rw_command()
484 struct aac_blockwrite64 *bw; in aac_container_rw_command() local
489 bw->BlockNumber = blockno; in aac_container_rw_command()
490 bw->Pad = 0; in aac_container_rw_command()
491 bw->Flags = 0; in aac_container_rw_command()
[all …]
/freebsd/contrib/wpa/src/common/
H A Docv.c44 if (op_class_map->bw == BW40PLUS) in ocv_derive_all_parameters()
46 else if (op_class_map->bw == BW40MINUS) in ocv_derive_all_parameters()
48 else if (op_class_map->bw == BW40) in ocv_derive_all_parameters()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76_connac3_mac.c19 status->bw = RATE_INFO_BW_HE_RU; in mt76_connac3_mac_decode_he_radiotap_ru()
79 he_mu->flags2 |= MU_PREP(FLAGS2_BW_FROM_SIG_A_BW, status->bw) | in mt76_connac3_mac_decode_he_mu_radiotap()
85 if (status->bw >= RATE_INFO_BW_40) { in mt76_connac3_mac_decode_he_mu_radiotap()
90 if (status->bw >= RATE_INFO_BW_80) { in mt76_connac3_mac_decode_he_mu_radiotap()
H A Dmt76_connac_mac.c702 rate.bw = RATE_INFO_BW_160; in mt76_connac2_mac_fill_txs()
706 rate.bw = RATE_INFO_BW_80; in mt76_connac2_mac_fill_txs()
710 rate.bw = RATE_INFO_BW_40; in mt76_connac2_mac_fill_txs()
714 rate.bw = RATE_INFO_BW_20; in mt76_connac2_mac_fill_txs()
764 status->bw = RATE_INFO_BW_HE_RU; in mt76_connac2_mac_decode_he_radiotap_ru()
1017 u8 stbc, gi, bw, dcm, nss; in mt76_connac2_mac_fill_rx_rate() local
1085 switch (bw) { in mt76_connac2_mac_fill_rx_rate()
1091 status->bw = RATE_INFO_BW_HE_RU; in mt76_connac2_mac_fill_rx_rate()
1095 status->bw = RATE_INFO_BW_40; in mt76_connac2_mac_fill_rx_rate()
1099 status->bw = RATE_INFO_BW_80; in mt76_connac2_mac_fill_rx_rate()
[all …]
/freebsd/tests/sys/netpfil/common/
H A Ddummynet.sh98 jexec alcatraz dnctl pipe 1 config bw 30Byte/s
142 jexec alcatraz dnctl pipe 1 config bw 100Byte/s
186 jexec alcatraz dnctl pipe 1 config bw 10Mb queue 100 droptail
237 jexec ${j}b dnctl pipe 1 config bw 10Mb queue 100 delay 500 droptail
291 jexec alcatraz dnctl pipe 1 config bw 1MByte/s
400 jexec alcatraz dnctl pipe 1 config bw 1MByte/s
504 jexec gw dnctl pipe 1 config bw 300Byte/s

123456789