rate 50 altq/altq.h u_int rate; /* rate in bit-per-sec */ rate 536 altq/altq_cdnr.c tb->rate = TB_SCALE(profile->rate / 8) / machclk_freq; rate 538 altq/altq_cdnr.c if (tb->rate > 0) rate 539 altq/altq_cdnr.c tb->filluptime = tb->depth / tb->rate; rate 604 altq/altq_cdnr.c tbm->tb.token += interval * tbm->tb.rate; rate 711 altq/altq_cdnr.c tcm->cmtd_tb.token += interval * tcm->cmtd_tb.rate; rate 722 altq/altq_cdnr.c tcm->peak_tb.token += interval * tcm->peak_tb.rate; rate 244 altq/altq_cdnr.h u_int64_t rate; rate 273 altq/altq_subr.c if (profile->rate == 0) { rate 288 altq/altq_subr.c tbr->tbr_rate = TBR_SCALE(profile->rate / 8) / machclk_freq; rate 364 altq/altq_subr.c profile->rate = 0; rate 367 altq/altq_subr.c profile->rate = rate 102 arch/i386/include/ioctl_fd.h int rate; /* transfer speed code */ rate 1601 arch/i386/isa/pccom.c cominit(bus_space_tag_t iot, bus_space_handle_t ioh, int rate) rate 1607 arch/i386/isa/pccom.c rate = comspeed(COM_FREQ, rate); /* XXX not comdefaultrate? */ rate 1608 arch/i386/isa/pccom.c bus_space_write_1(iot, ioh, com_dlbl, rate); rate 1609 arch/i386/isa/pccom.c bus_space_write_1(iot, ioh, com_dlbh, rate >> 8); rate 1652 arch/i386/isa/pccom.c com_kgdb_attach(bus_space_tag_t iot, bus_addr_t iobase, int rate, int frequency, rate 1667 arch/i386/isa/pccom.c cominit(com_kgdb_iot, com_kgdb_ioh, rate); rate 117 compat/linux/linux_fdio.c lflop.rate = fparams.rate; rate 53 compat/linux/linux_fdio.h u_char rate; rate 147 compat/linux/linux_fdio.h u_char rate; rate 795 dev/acpi/acpi.c unsigned int remaining, rem, minutes, rate; rate 822 dev/acpi/acpi.c rate = 0; rate 840 dev/acpi/acpi.c rate = bat->aba_softc->sc_bst.bst_rate; rate 852 dev/acpi/acpi.c if (pi->ac_state == APM_AC_ON || rate == 0) rate 855 dev/acpi/acpi.c pi->minutes_left = 100 * minutes / rate; rate 923 dev/ic/acx.c int rate; rate 947 dev/ic/acx.c rate = ni->ni_rates.rs_rates[0]; rate 948 dev/ic/acx.c rate &= IEEE80211_RATE_VAL; rate 991 dev/ic/acx.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 994 dev/ic/acx.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 995 dev/ic/acx.c rate &= IEEE80211_RATE_VAL; rate 1016 dev/ic/acx.c tap->wt_rate = rate; rate 1032 dev/ic/acx.c if (acx_encap(sc, buf, m, ni, rate) != 0) { rate 2176 dev/ic/acx.c struct ieee80211_node *ni, int rate) rate 2259 dev/ic/acx.c txbuf->tb_rate = rate; rate 2304 dev/ic/acx.c sc->chip_set_fw_txdesc_rate(sc, txbuf, rate); rate 93 dev/ic/acx100.c #define ACX100_RATE(rate) ((rate) * 5) rate 672 dev/ic/acx100.c int rate) rate 674 dev/ic/acx100.c FW_TXDESC_SETFIELD_1(sc, tx_buf, f_tx_rate100, ACX100_RATE(rate)); rate 445 dev/ic/acx111.c uint16_t rate; rate 447 dev/ic/acx111.c rate = acx111_rate_map[rate0]; rate 448 dev/ic/acx111.c if (rate == 0) rate 450 dev/ic/acx111.c rate = acx111_rate_map[2]; rate 452 dev/ic/acx111.c FW_TXDESC_SETFIELD_2(sc, tx_buf, u.r2.rate111, rate); rate 1778 dev/ic/aic7xxx.c syncrate->rate != NULL; rate 1815 dev/ic/aic7xxx.c || (syncrate->rate == NULL) rate 1841 dev/ic/aic7xxx.c while (syncrate->rate != NULL) { rate 2066 dev/ic/aic7xxx.c devinfo->target, syncrate->rate, rate 2442 dev/ic/aic7xxx.c struct ahc_syncrate *rate; rate 2464 dev/ic/aic7xxx.c rate = ahc_devlimited_syncrate(ahc, tinfo, &period, rate 2511 dev/ic/aic7xxx.c ahc_validate_offset(ahc, tinfo, rate, &offset, rate 775 dev/ic/aic7xxxvar.h char *rate; rate 1304 dev/ic/an.c int i, rate, error = 0; rate 1312 dev/ic/an.c rate = ieee80211_media2rate(ime->ifm_media); rate 1313 dev/ic/an.c if (rate == 0) rate 1316 dev/ic/an.c if ((rs->rs_rates[i] & IEEE80211_RATE_VAL) == rate) rate 1355 dev/ic/an.c int rate, buflen; rate 1369 dev/ic/an.c rate = ic->ic_sup_rates[IEEE80211_MODE_11B].rs_rates[ rate 1372 dev/ic/an.c rate = 0; rate 1374 dev/ic/an.c rate = sc->sc_buf.sc_status.an_current_tx_rate; rate 1375 dev/ic/an.c imr->ifm_active |= ieee80211_rate2media(ic, rate, IEEE80211_MODE_11B); rate 314 dev/ic/ar5xxx.c const HAL_RATE *rate; rate 322 dev/ic/ar5xxx.c rate = &rates->info[rate_index]; rate 327 dev/ic/ar5xxx.c switch (rate->phy) { rate 332 dev/ic/ar5xxx.c value = AR5K_CCK_TX_TIME(rate->rateKbps, frame_length, rate 333 dev/ic/ar5xxx.c (short_preamble && rate->shortPreamble)); rate 340 dev/ic/ar5xxx.c if (AR5K_OFDM_NUM_BITS_PER_SYM(rate->rateKbps) == 0) rate 342 dev/ic/ar5xxx.c value = AR5K_OFDM_TX_TIME(rate->rateKbps, frame_length); rate 350 dev/ic/ar5xxx.c if (AR5K_TURBO_NUM_BITS_PER_SYM(rate->rateKbps) == 0) rate 352 dev/ic/ar5xxx.c value = AR5K_TURBO_TX_TIME(rate->rateKbps, frame_length); rate 360 dev/ic/ar5xxx.c if (AR5K_XR_NUM_BITS_PER_SYM(rate->rateKbps) == 0) rate 362 dev/ic/ar5xxx.c value = AR5K_XR_TX_TIME(rate->rateKbps, frame_length); rate 1304 dev/ic/ath.c u_int8_t rate; rate 1361 dev/ic/ath.c rate = rt->info[0].rateCode | rt->info[0].shortPreamble; rate 1363 dev/ic/ath.c rate = rt->info[0].rateCode; rate 1375 dev/ic/ath.c , rate, 1 /* series 0 rate/tries */ rate 3087 dev/ic/atw.c int i, len, rate, rate0; rate 3186 dev/ic/atw.c rate = 0; rate 3188 dev/ic/atw.c rate = rate_tbl[rate0]; rate 3209 dev/ic/atw.c tap->ar_rate = rate; rate 3436 dev/ic/atw.c atw_compute_duration1(int len, int use_ack, uint32_t flags, int rate, rate 3459 dev/ic/atw.c data_dur = (bitlen * 2) / rate; rate 3460 dev/ic/atw.c remainder = (bitlen * 2) % rate; rate 3462 dev/ic/atw.c d->d_residue = (rate - remainder) / 16; rate 3466 dev/ic/atw.c switch (rate) { rate 3523 dev/ic/atw.c int fraglen, int rate, struct atw_duration *d0, struct atw_duration *dn, rate 3564 dev/ic/atw.c overlen, len, rate, flags); rate 3570 dev/ic/atw.c rc = atw_compute_duration1(firstlen + hdrlen, ack, flags, rate, d0); rate 3578 dev/ic/atw.c return atw_compute_duration1(lastlen + hdrlen, ack, flags, rate, dn); rate 3622 dev/ic/atw.c int do_encrypt, npkt, rate; rate 3687 dev/ic/atw.c rate = 2; rate 3689 dev/ic/atw.c rate = MAX(2, ieee80211_get_rate(ic)); rate 3693 dev/ic/atw.c rate, &txs->txs_d0, &txs->txs_dn, &npkt, rate 3718 dev/ic/atw.c tap->at_rate = rate; rate 3774 dev/ic/atw.c hh->atw_rate = rate * 5; rate 3909 dev/ic/atw.c sc->sc_dev.dv_xname, rate * 5)); rate 3910 dev/ic/atw.c ctl |= htole32(LSHIFT(MAX(10, rate * 5), ATW_TXCTL_TXDR_MASK)); rate 168 dev/ic/awi.c static int awi_media_rate2opt(struct awi_softc *sc, int rate); rate 596 dev/ic/awi.c awi_media_rate2opt(sc, rate) rate 598 dev/ic/awi.c int rate; rate 603 dev/ic/awi.c switch (rate) { rate 633 dev/ic/awi.c int rate; rate 635 dev/ic/awi.c rate = 0; rate 654 dev/ic/awi.c rate = 10; rate 658 dev/ic/awi.c rate = 20; rate 661 dev/ic/awi.c rate = 55; rate 664 dev/ic/awi.c rate = 110; rate 667 dev/ic/awi.c return rate; rate 680 dev/ic/awi.c int i, rate, error; rate 684 dev/ic/awi.c rate = awi_media_opt2rate(sc, ime->ifm_media); rate 685 dev/ic/awi.c if (rate == 0) rate 687 dev/ic/awi.c if (rate != sc->sc_tx_rate) { rate 690 dev/ic/awi.c if (rate == AWI_80211_RATE(phy_rates[2 + i])) rate 963 dev/ic/awi.c u_int8_t rate; rate 1015 dev/ic/awi.c rate = sc->sc_tx_rate; /*XXX*/ rate 1020 dev/ic/awi.c awi_write_1(sc, txd + AWI_TXD_RATE, rate); rate 1322 dev/ic/awi.c u_int8_t state, rate, rssi; rate 1337 dev/ic/awi.c rate = awi_read_1(sc, rxoff + AWI_RXD_RATE); rate 1540 dev/ic/awi.c u_int8_t *rate; rate 1552 dev/ic/awi.c rate = sc->sc_mib_phy.aSuprt_Data_Rates; rate 1554 dev/ic/awi.c for (i = 0; i < rate[1]; i++) { rate 1555 dev/ic/awi.c if (AWI_80211_RATE(rate[2 + i]) > sc->sc_tx_rate) rate 1556 dev/ic/awi.c sc->sc_tx_rate = AWI_80211_RATE(rate[2 + i]); rate 2285 dev/ic/awi.c u_int8_t rate, *phy_rates; rate 2322 dev/ic/awi.c rate = AWI_RATE_1MBIT; rate 2324 dev/ic/awi.c if (AWI_80211_RATE(asresp[2 + i]) <= rate) rate 2330 dev/ic/awi.c rate = AWI_80211_RATE(asresp[2 + i]); rate 2343 dev/ic/awi.c sc->sc_tx_rate = rate; rate 204 dev/ic/awivar.h #define AWI_80211_RATE(rate) (((rate) & 0x7f) * 5) rate 1296 dev/ic/com.c cominit(bus_space_tag_t iot, bus_space_handle_t ioh, int rate, int frequency) rate 1302 dev/ic/com.c rate = comspeed(frequency, rate); /* XXX not comdefaultrate? */ rate 1303 dev/ic/com.c bus_space_write_1(iot, ioh, com_dlbl, rate); rate 1304 dev/ic/com.c bus_space_write_1(iot, ioh, com_dlbh, rate >> 8); rate 1376 dev/ic/com.c comcnattach(bus_space_tag_t iot, bus_addr_t iobase, int rate, int frequency, tcflag_t cflag) rate 1388 dev/ic/com.c cominit(iot, comconsioh, rate, frequency); rate 1424 dev/ic/com.c com_kgdb_attach(bus_space_tag_t iot, bus_addr_t iobase, int rate, rate 1428 dev/ic/com.c int rate, frequency; rate 1445 dev/ic/com.c cominit(com_kgdb_iot, com_kgdb_ioh, rate, frequency); rate 360 dev/ic/if_wi_ieee.h int rate; /* Data Rate */ rate 2648 dev/ic/iha.c int rate; rate 2656 dev/ic/iha.c rate = (period & PERIOD_SYXPD) >> 4; rate 2658 dev/ic/iha.c rate = 100 + rate * 50; rate 2660 dev/ic/iha.c rate = 50 + rate * 25; rate 2661 dev/ic/iha.c rate = 1000000000 / rate; rate 2662 dev/ic/iha.c printf("%d.%d MHz %d REQ/ACK offset ", rate / 1000000, rate 2663 dev/ic/iha.c (rate % 1000000 + 99999) / 100000, period & PERIOD_SYOFS); rate 282 dev/ic/malo.c int len, int rate, const bus_dma_segment_t *segs, int nsegs); rate 312 dev/ic/malo.c int malo_cmd_set_rate(struct malo_softc *sc, uint8_t rate); rate 1145 dev/ic/malo.c int rate; rate 1188 dev/ic/malo.c rate = malo_fix2rate(ic->ic_fixed_rate); rate 1189 dev/ic/malo.c malo_cmd_set_rate(sc, rate); rate 1649 dev/ic/malo.c int len, int rate, const bus_dma_segment_t *segs, int nsegs) rate 1652 dev/ic/malo.c desc->datarate = rate; /* 0 = mgmt frame, 1 = data frame */ rate 2350 dev/ic/malo.c malo_cmd_set_rate(struct malo_softc *sc, uint8_t rate) rate 2385 dev/ic/malo.c if (rate != 0) { rate 2388 dev/ic/malo.c if (body->aprates[i] == rate) { rate 504 dev/ic/mfireg.h uint32_t rate; rate 923 dev/ic/pgt.c uint8_t rate, rssi; rate 1000 dev/ic/pgt.c rate = pha->pra_rate; rate 2059 dev/ic/pgt.c uint32_t rate; rate 2071 dev/ic/pgt.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 2074 dev/ic/pgt.c if (pgt_oid_get(sc, PGT_OID_LINK_STATE, &rate, sizeof(rate))) rate 2076 dev/ic/pgt.c rate = letoh32(rate); rate 2079 dev/ic/pgt.c sc->sc_dev.dv_xname, __func__, rate)); rate 2081 dev/ic/pgt.c if (rate == 0) rate 2090 dev/ic/pgt.c imr->ifm_active |= ieee80211_rate2media(ic, rate, ic->ic_curmode); rate 1370 dev/ic/rt2560.c #define RAL_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) rate 1389 dev/ic/rt2560.c switch (desc->rate) { rate 1400 dev/ic/rt2560.c if (desc->rate == 10) rate 1402 dev/ic/rt2560.c if (desc->rate == 20) rate 1404 dev/ic/rt2560.c if (desc->rate == 55) rate 1406 dev/ic/rt2560.c if (desc->rate == 110) rate 1417 dev/ic/rt2560.c rt2560_ack_rate(struct ieee80211com *ic, int rate) rate 1419 dev/ic/rt2560.c switch (rate) { rate 1426 dev/ic/rt2560.c return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; rate 1452 dev/ic/rt2560.c rt2560_txtime(int len, int rate, uint32_t flags) rate 1456 dev/ic/rt2560.c if (RAL_RATE_IS_OFDM(rate)) { rate 1458 dev/ic/rt2560.c txtime = (8 + 4 * len + 3 + rate - 1) / rate; rate 1462 dev/ic/rt2560.c txtime = (16 * len + rate - 1) / rate; rate 1463 dev/ic/rt2560.c if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE)) rate 1472 dev/ic/rt2560.c rt2560_plcp_signal(int rate) rate 1474 dev/ic/rt2560.c switch (rate) { rate 1498 dev/ic/rt2560.c uint32_t flags, int len, int rate, int encrypt, bus_addr_t physaddr) rate 1516 dev/ic/rt2560.c desc->plcp_signal = rt2560_plcp_signal(rate); rate 1520 dev/ic/rt2560.c if (RAL_RATE_IS_OFDM(rate)) { rate 1527 dev/ic/rt2560.c plcp_length = (16 * len + rate - 1) / rate; rate 1528 dev/ic/rt2560.c if (rate == 22) { rate 1536 dev/ic/rt2560.c if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) rate 1548 dev/ic/rt2560.c int rate = 2, error; rate 1566 dev/ic/rt2560.c RT2560_TX_TIMESTAMP, m0->m_pkthdr.len, rate, 0, rate 1608 dev/ic/rt2560.c int rate = 2, error; rate 1639 dev/ic/rt2560.c tap->wt_rate = rate; rate 1662 dev/ic/rt2560.c dur = rt2560_txtime(RAL_ACK_SIZE, rate, ic->ic_flags) + rate 1673 dev/ic/rt2560.c rt2560_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate, 0, rate 1683 dev/ic/rt2560.c m0->m_pkthdr.len, sc->prioq.cur, rate)); rate 1706 dev/ic/rt2560.c int pktlen, rate, needcts = 0, needrts = 0, error; rate 1727 dev/ic/rt2560.c rate = ni->ni_rates.rs_rates[0]; rate 1729 dev/ic/rt2560.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 1732 dev/ic/rt2560.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 1733 dev/ic/rt2560.c if (rate == 0) rate 1734 dev/ic/rt2560.c rate = 2; /* XXX should not happen */ rate 1735 dev/ic/rt2560.c rate &= IEEE80211_RATE_VAL; rate 1750 dev/ic/rt2560.c RAL_RATE_IS_OFDM(rate)) { rate 1763 dev/ic/rt2560.c ackrate = rt2560_ack_rate(ic, rate); rate 1765 dev/ic/rt2560.c dur = rt2560_txtime(pktlen, rate, ic->ic_flags) + rate 1872 dev/ic/rt2560.c tap->wt_rate = rate; rate 1893 dev/ic/rt2560.c dur = rt2560_txtime(RAL_ACK_SIZE, rt2560_ack_rate(ic, rate), rate 1898 dev/ic/rt2560.c rt2560_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate, 1, rate 1908 dev/ic/rt2560.c m0->m_pkthdr.len, txq->cur_encrypt, rate)); rate 246 dev/ic/rt2560reg.h uint8_t rate; rate 1261 dev/ic/rt2661.c #define RAL_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) rate 1276 dev/ic/rt2661.c switch (desc->rate & 0xf) { rate 1287 dev/ic/rt2661.c if (desc->rate == 10) rate 1289 dev/ic/rt2661.c if (desc->rate == 20) rate 1291 dev/ic/rt2661.c if (desc->rate == 55) rate 1293 dev/ic/rt2661.c if (desc->rate == 110) rate 1304 dev/ic/rt2661.c rt2661_ack_rate(struct ieee80211com *ic, int rate) rate 1306 dev/ic/rt2661.c switch (rate) { rate 1313 dev/ic/rt2661.c return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; rate 1339 dev/ic/rt2661.c rt2661_txtime(int len, int rate, uint32_t flags) rate 1343 dev/ic/rt2661.c if (RAL_RATE_IS_OFDM(rate)) { rate 1345 dev/ic/rt2661.c txtime = (8 + 4 * len + 3 + rate - 1) / rate; rate 1349 dev/ic/rt2661.c txtime = (16 * len + rate - 1) / rate; rate 1350 dev/ic/rt2661.c if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE)) rate 1359 dev/ic/rt2661.c rt2661_plcp_signal(int rate) rate 1361 dev/ic/rt2661.c switch (rate) { rate 1385 dev/ic/rt2661.c uint32_t flags, uint16_t xflags, int len, int rate, rate 1413 dev/ic/rt2661.c desc->plcp_signal = rt2661_plcp_signal(rate); rate 1417 dev/ic/rt2661.c if (RAL_RATE_IS_OFDM(rate)) { rate 1424 dev/ic/rt2661.c plcp_length = (16 * len + rate - 1) / rate; rate 1425 dev/ic/rt2661.c if (rate == 22) { rate 1433 dev/ic/rt2661.c if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) rate 1455 dev/ic/rt2661.c int rate, error; rate 1461 dev/ic/rt2661.c rate = IEEE80211_IS_CHAN_5GHZ(ni->ni_chan) ? 12 : 2; rate 1489 dev/ic/rt2661.c tap->wt_rate = rate; rate 1509 dev/ic/rt2661.c dur = rt2661_txtime(RAL_ACK_SIZE, rate, ic->ic_flags) + rate 1521 dev/ic/rt2661.c m0->m_pkthdr.len, rate, data->map->dm_segs, data->map->dm_nsegs, rate 1531 dev/ic/rt2661.c m0->m_pkthdr.len, sc->mgtq.cur, rate)); rate 1554 dev/ic/rt2661.c int pktlen, rate, needcts = 0, needrts = 0, error; rate 1573 dev/ic/rt2661.c rate = ni->ni_rates.rs_rates[0]; rate 1575 dev/ic/rt2661.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 1578 dev/ic/rt2661.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 1579 dev/ic/rt2661.c if (rate == 0) rate 1580 dev/ic/rt2661.c rate = 2; /* XXX should not happen */ rate 1581 dev/ic/rt2661.c rate &= IEEE80211_RATE_VAL; rate 1596 dev/ic/rt2661.c RAL_RATE_IS_OFDM(rate)) { rate 1609 dev/ic/rt2661.c ackrate = rt2661_ack_rate(ic, rate); rate 1611 dev/ic/rt2661.c dur = rt2661_txtime(pktlen, rate, ic->ic_flags) + rate 1717 dev/ic/rt2661.c tap->wt_rate = rate; rate 1737 dev/ic/rt2661.c dur = rt2661_txtime(RAL_ACK_SIZE, rt2661_ack_rate(ic, rate), rate 1742 dev/ic/rt2661.c rt2661_setup_tx_desc(sc, desc, flags, 0, m0->m_pkthdr.len, rate, rate 1751 dev/ic/rt2661.c m0->m_pkthdr.len, txq->cur, rate)); rate 2802 dev/ic/rt2661.c int rate; rate 2812 dev/ic/rt2661.c rate = IEEE80211_IS_CHAN_5GHZ(ni->ni_chan) ? 12 : 2; rate 2815 dev/ic/rt2661.c m0->m_pkthdr.len, rate, NULL, 0, RT2661_QID_MGT); rate 269 dev/ic/rt2661reg.h uint8_t rate; rate 1135 dev/ic/rtw.c int hwrate, len, rate, rssi, sq; rate 1233 dev/ic/rtw.c rate = ratetbl[hwrate]; rate 1237 dev/ic/rtw.c ("rate %d.%d Mb/s, time %08x%08x\n", (rate * 5) / 10, rate 1238 dev/ic/rtw.c (rate * 5) % 10, htsfth, htsftl)); rate 1305 dev/ic/rtw.c rate, rssi); rate 1322 dev/ic/rtw.c rr->rr_rate = rate; rate 2953 dev/ic/rtw.c rtw_compute_duration1(int len, int use_ack, uint32_t flags, int rate, rate 2976 dev/ic/rtw.c data_dur = (bitlen * 2) / rate; rate 2977 dev/ic/rtw.c remainder = (bitlen * 2) % rate; rate 2979 dev/ic/rtw.c d->d_residue = (rate - remainder) / 16; rate 2983 dev/ic/rtw.c switch (rate) { rate 3040 dev/ic/rtw.c int fraglen, int rate, struct rtw_duration *d0, struct rtw_duration *dn, rate 3081 dev/ic/rtw.c overlen, len, rate, flags); rate 3087 dev/ic/rtw.c rc = rtw_compute_duration1(firstlen + hdrlen, ack, flags, rate, d0); rate 3095 dev/ic/rtw.c return rtw_compute_duration1(lastlen + hdrlen, ack, flags, rate, dn); rate 3117 dev/ic/rtw.c int desc, i, lastdesc, npkt, rate; rate 3169 dev/ic/rtw.c rate = 2; rate 3171 dev/ic/rtw.c rate = MAX(2, ieee80211_get_rate(ic)); rate 3178 dev/ic/rtw.c : sizeof(wh), rate, 0); rate 3184 dev/ic/rtw.c switch (rate) { rate 3214 dev/ic/rtw.c rate, &ts->ts_d0, &ts->ts_dn, &npkt, rate 3251 dev/ic/rtw.c rt->rt_rate = rate; rate 1200 dev/isa/ess.c int rate; rate 1267 dev/isa/ess.c rate = rec->sample_rate; rate 1269 dev/isa/ess.c rate = play->sample_rate; rate 1271 dev/isa/ess.c ess_write_x_reg(sc, ESS_XCMD_SAMPLE_RATE, ess_srtotc(rate)); rate 1272 dev/isa/ess.c ess_write_x_reg(sc, ESS_XCMD_FILTER_CLOCK, ess_srtofc(rate)); rate 1275 dev/isa/ess.c ess_write_mix_reg(sc, ESS_MREG_SAMPLE_RATE, ess_srtotc(rate)); rate 1276 dev/isa/ess.c ess_write_mix_reg(sc, ESS_MREG_FILTER_CLOCK, ess_srtofc(rate)); rate 2481 dev/isa/ess.c ess_srtotc(rate) rate 2482 dev/isa/ess.c u_int rate; rate 2487 dev/isa/ess.c if (rate <= 22050) rate 2488 dev/isa/ess.c tc = 128 - 397700L / rate; rate 2490 dev/isa/ess.c tc = 256 - 795500L / rate; rate 2500 dev/isa/ess.c ess_srtofc(rate) rate 2501 dev/isa/ess.c u_int rate; rate 2508 dev/isa/ess.c return (256 - 200279L / rate); rate 722 dev/isa/fd.c bus_space_write_1(iot, ioh_ctl, fdctl, type->rate); rate 1779 dev/isa/gus.c sc->sc_voc[voice].rate = freq; rate 1789 dev/isa/gus.c gus_set_recrate(sc, rate) rate 1791 dev/isa/gus.c u_long rate; rate 1796 dev/isa/gus.c DPRINTF(("gus_set_recrate %lu\n", rate)); rate 1799 dev/isa/gus.c realrate = 9878400/(16*(rate+2)); /* formula from GUS docs */ rate 1801 dev/isa/gus.c realrate = (9878400 >> 4)/rate - 2; /* formula from code, sigh. */ rate 110 dev/isa/gusvar.h int rate; /* Sample rate of voice being played back */ rate 207 dev/isa/sbdsp.c sc->sc_i.rate, sc->sc_i.tc, rate 208 dev/isa/sbdsp.c sc->sc_o.rate, sc->sc_o.tc); rate 526 dev/isa/sbdsp.c u_int rate, tc, bmode; rate 577 dev/isa/sbdsp.c rate = p->sample_rate; rate 674 dev/isa/sbdsp.c sc->sc_o.rate = rate; rate 680 dev/isa/sbdsp.c sc->sc_i.rate = rate; rate 1152 dev/isa/sbdsp.c sbdsp16_set_rate(sc, cmd, rate) rate 1154 dev/isa/sbdsp.c int cmd, rate; rate 1156 dev/isa/sbdsp.c DPRINTF(("sbdsp16_set_rate: sc=%p cmd=0x%02x rate=%d\n", sc, cmd, rate)); rate 1159 dev/isa/sbdsp.c sbdsp_wdsp(sc, rate >> 8) < 0 || rate 1160 dev/isa/sbdsp.c sbdsp_wdsp(sc, rate) < 0) rate 1226 dev/isa/sbdsp.c if (sbdsp16_set_rate(sc, SB_DSP16_INPUTRATE, sc->sc_i.rate)) { rate 1228 dev/isa/sbdsp.c sc->sc_i.rate)); rate 1234 dev/isa/sbdsp.c sc->sc_i.rate)); rate 1361 dev/isa/sbdsp.c if (sbdsp16_set_rate(sc, SB_DSP16_OUTPUTRATE, sc->sc_o.rate)) { rate 1363 dev/isa/sbdsp.c sc->sc_o.rate)); rate 1369 dev/isa/sbdsp.c sc->sc_o.rate)); rate 132 dev/isa/sbdspvar.h u_int rate; /* Sample rate */ rate 414 dev/pci/agp.c int rq, sba, fw, rate, capoff; rate 445 dev/pci/agp.c rate = (AGP_MODE_GET_RATE(tstatus) rate 448 dev/pci/agp.c if (rate & AGP_MODE_RATE_4x) rate 449 dev/pci/agp.c rate = AGP_MODE_RATE_4x; rate 450 dev/pci/agp.c else if (rate & AGP_MODE_RATE_2x) rate 451 dev/pci/agp.c rate = AGP_MODE_RATE_2x; rate 453 dev/pci/agp.c rate = AGP_MODE_RATE_1x; rate 459 dev/pci/agp.c command = AGP_MODE_SET_RATE(command, rate); rate 310 dev/pci/cmpci.c int rate; rate 326 dev/pci/cmpci.c cmpci_rate_to_index(int rate) rate 331 dev/pci/cmpci.c if (rate <= rate 332 dev/pci/cmpci.c (cmpci_rate_table[i].rate + cmpci_rate_table[i+1].rate) / 2) rate 340 dev/pci/cmpci.c return cmpci_rate_table[index].rate; rate 392 dev/pci/cs4280.c cs4280_set_adc_rate(sc, rate) rate 394 dev/pci/cs4280.c int rate; rate 427 dev/pci/cs4280.c if (rate < 8000) rate 428 dev/pci/cs4280.c rate = 8000; rate 429 dev/pci/cs4280.c if (rate > 48000) rate 430 dev/pci/cs4280.c rate = 48000; rate 432 dev/pci/cs4280.c cx = rate << 16; rate 441 dev/pci/cs4280.c cpi = cx / rate; rate 442 dev/pci/cs4280.c cx -= cpi * rate; rate 445 dev/pci/cs4280.c cy = cx / rate; rate 447 dev/pci/cs4280.c cx -= cy * rate; rate 452 dev/pci/cs4280.c cdlay = ((48000 * 24) + rate - 1) / rate; rate 457 dev/pci/cs4280.c cnt = rate << 16; rate 462 dev/pci/cs4280.c if (((rate / tmp1) * tmp1) != rate) rate 465 dev/pci/cs4280.c if (((rate / 3) * 3) != rate) rate 468 dev/pci/cs4280.c if (((rate / tmp1) * tmp1) != rate) rate 512 dev/pci/cs4280.c cs4280_set_dac_rate(sc, rate) rate 514 dev/pci/cs4280.c int rate; rate 531 dev/pci/cs4280.c if (rate < 8000) rate 532 dev/pci/cs4280.c rate = 8000; rate 533 dev/pci/cs4280.c if (rate > 48000) rate 534 dev/pci/cs4280.c rate = 48000; rate 535 dev/pci/cs4280.c px = rate << 16; rate 809 dev/pci/cs4281.c cs4281_sr2regval(rate) rate 810 dev/pci/cs4281.c int rate; rate 815 dev/pci/cs4281.c if (rate > 48000) rate 816 dev/pci/cs4281.c rate = 48000; rate 817 dev/pci/cs4281.c if (rate < 6023) rate 818 dev/pci/cs4281.c rate = 6023; rate 820 dev/pci/cs4281.c switch (rate) { rate 840 dev/pci/cs4281.c retval = 1536000/rate; /* == 24576000/(rate*16) */ rate 847 dev/pci/cs4281.c cs4281_set_dac_rate(sc, rate) rate 849 dev/pci/cs4281.c int rate; rate 851 dev/pci/cs4281.c BA0WRITE4(sc, CS4281_DACSR, cs4281_sr2regval(rate)); rate 855 dev/pci/cs4281.c cs4281_set_adc_rate(sc, rate) rate 857 dev/pci/cs4281.c int rate; rate 859 dev/pci/cs4281.c BA0WRITE4(sc, CS4281_ADCSR, cs4281_sr2regval(rate)); rate 192 dev/pci/eap.c void eap1371_set_adc_rate(struct eap_softc *sc, int rate); rate 193 dev/pci/eap.c void eap1371_set_dac_rate(struct eap_softc *sc, int rate, int which); rate 469 dev/pci/eap.c eap1371_set_adc_rate(struct eap_softc *sc, int rate) rate 477 dev/pci/eap.c if (rate > 48000) rate 478 dev/pci/eap.c rate = 48000; rate 479 dev/pci/eap.c if (rate < 4000) rate 480 dev/pci/eap.c rate = 4000; rate 481 dev/pci/eap.c n = rate / 3000; rate 485 dev/pci/eap.c freq = ((48000 << 15) / rate) * n; rate 486 dev/pci/eap.c if (rate >= 24000) { rate 510 dev/pci/eap.c eap1371_set_dac_rate(struct eap_softc *sc, int rate, int which) rate 518 dev/pci/eap.c if (rate > 48000) rate 519 dev/pci/eap.c rate = 48000; rate 520 dev/pci/eap.c if (rate < 4000) rate 521 dev/pci/eap.c rate = 4000; rate 522 dev/pci/eap.c freq = ((rate << 15) + 1500) / 3000; rate 523 dev/pci/emuxki.c emuxki_rate_to_pitch(u_int32_t rate) rate 566 dev/pci/emuxki.c if (rate == 0) rate 568 dev/pci/emuxki.c rate *= 11185; /* Scale 48000 to 0x20002380 */ rate 570 dev/pci/emuxki.c if (rate & 0x80000000) { /* Detect leading "1" */ rate 572 dev/pci/emuxki.c logMagTable[0x7f & (rate >> 24)] + rate 573 dev/pci/emuxki.c (0x7f & (rate >> 17)) * rate 574 dev/pci/emuxki.c logSlopeTable[0x7f & (rate >> 24)]); rate 576 dev/pci/emuxki.c rate <<= 1; rate 526 dev/pci/fms.c int rate; rate 587 dev/pci/fms.c play->sample_rate = fms_rates[i].rate; rate 628 dev/pci/fms.c rec->sample_rate = fms_rates[i].rate; rate 621 dev/pci/if_ipw.c int rate; rate 629 dev/pci/if_ipw.c int rate, i; rate 642 dev/pci/if_ipw.c rate = (i < N(rates)) ? rates[i].rate : 0; rate 645 dev/pci/if_ipw.c imr->ifm_active |= ieee80211_rate2media(ic, rate, IEEE80211_MODE_11B); rate 676 dev/pci/if_iwi.c int rate; rate 686 dev/pci/if_iwi.c rate = iwi_rate(val); rate 688 dev/pci/if_iwi.c imr->ifm_active |= ieee80211_rate2media(ic, rate, ic->ic_curmode); rate 956 dev/pci/if_iwi.c tap->wr_rate = iwi_rate(frame->rate); rate 200 dev/pci/if_iwireg.h uint8_t rate; rate 237 dev/pci/if_iwireg.h uint8_t rate; rate 1223 dev/pci/if_wpi.c letoh16(head->len), (int8_t)stat->rssi, head->rate, head->chan, rate 1275 dev/pci/if_wpi.c switch (head->rate) { rate 1329 dev/pci/if_wpi.c stat->nkill, stat->rate, letoh32(stat->duration), rate 1527 dev/pci/if_wpi.c wpi_plcp_signal(int rate) rate 1529 dev/pci/if_wpi.c switch (rate) { rate 1553 dev/pci/if_wpi.c #define WPI_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) rate 1567 dev/pci/if_wpi.c int i, rate, error, ovhd = 0; rate 1579 dev/pci/if_wpi.c rate = ni->ni_rates.rs_rates[0]; rate 1581 dev/pci/if_wpi.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 1584 dev/pci/if_wpi.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 1585 dev/pci/if_wpi.c rate &= IEEE80211_RATE_VAL; rate 1595 dev/pci/if_wpi.c tap->wt_rate = rate; rate 1648 dev/pci/if_wpi.c WPI_RATE_IS_OFDM(rate)) { rate 1677 dev/pci/if_wpi.c tx->rate = wpi_plcp_signal(rate); rate 2201 dev/pci/if_wpi.c struct ieee80211_channel *c, int rate) rate 2223 dev/pci/if_wpi.c switch (rate) { rate 2254 dev/pci/if_wpi.c if (!WPI_RATE_IS_OFDM(rate)) rate 2308 dev/pci/if_wpi.c bcn->rate = (ic->ic_curmode == IEEE80211_MODE_11A) ? rate 2394 dev/pci/if_wpi.c node.rate = (ic->ic_curmode == IEEE80211_MODE_11A) ? rate 2468 dev/pci/if_wpi.c hdr->rate = wpi_plcp_signal(12); rate 2472 dev/pci/if_wpi.c hdr->rate = wpi_plcp_signal(2); rate 2647 dev/pci/if_wpi.c node.rate = wpi_plcp_signal(2); rate 192 dev/pci/if_wpireg.h uint8_t rate; rate 230 dev/pci/if_wpireg.h uint8_t rate; rate 351 dev/pci/if_wpireg.h uint8_t rate; rate 375 dev/pci/if_wpireg.h uint8_t rate; rate 404 dev/pci/if_wpireg.h uint8_t rate; rate 483 dev/pci/if_wpireg.h uint8_t rate; rate 1281 dev/pci/yds.c u_int rate; rate 1296 dev/pci/yds.c for (i = 0; lpfqt[i].rate != 0; i++) rate 1297 dev/pci/yds.c if (sample_rate <= lpfqt[i].rate) rate 1309 dev/pci/yds.c u_int rate; rate 1324 dev/pci/yds.c for (i = 0; lpfkt[i].rate != 0; i++) rate 1325 dev/pci/yds.c if (sample_rate <= lpfkt[i].rate) rate 293 dev/pcmcia/if_malovar.h uint8_t rate; rate 1022 dev/sbus/spif.c u_int32_t rate; rate 1024 dev/sbus/spif.c rate = (2 * clock) / (16 * speed); rate 1025 dev/sbus/spif.c if (rate & 1) rate 1026 dev/sbus/spif.c rate = (rate >> 1) + 1; rate 1028 dev/sbus/spif.c rate = rate >> 1; rate 1030 dev/sbus/spif.c if (rate > 0xffff || rate == 0) rate 1033 dev/sbus/spif.c *bprlp = rate & 0xff; rate 1034 dev/sbus/spif.c *bprhp = (rate >> 8) & 0xff; rate 658 dev/usb/if_ral.c #define RAL_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) rate 835 dev/usb/if_ral.c switch (desc->rate) { rate 846 dev/usb/if_ral.c if (desc->rate == 10) rate 848 dev/usb/if_ral.c if (desc->rate == 20) rate 850 dev/usb/if_ral.c if (desc->rate == 55) rate 852 dev/usb/if_ral.c if (desc->rate == 110) rate 863 dev/usb/if_ral.c ural_ack_rate(struct ieee80211com *ic, int rate) rate 865 dev/usb/if_ral.c switch (rate) { rate 872 dev/usb/if_ral.c return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; rate 898 dev/usb/if_ral.c ural_txtime(int len, int rate, uint32_t flags) rate 902 dev/usb/if_ral.c if (RAL_RATE_IS_OFDM(rate)) { rate 904 dev/usb/if_ral.c txtime = (8 + 4 * len + 3 + rate - 1) / rate; rate 908 dev/usb/if_ral.c txtime = (16 * len + rate - 1) / rate; rate 909 dev/usb/if_ral.c if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE)) rate 918 dev/usb/if_ral.c ural_plcp_signal(int rate) rate 920 dev/usb/if_ral.c switch (rate) { rate 944 dev/usb/if_ral.c uint32_t flags, int len, int rate) rate 959 dev/usb/if_ral.c desc->plcp_signal = ural_plcp_signal(rate); rate 963 dev/usb/if_ral.c if (RAL_RATE_IS_OFDM(rate)) { rate 970 dev/usb/if_ral.c plcp_length = (16 * len + rate - 1) / rate; rate 971 dev/usb/if_ral.c if (rate == 22) { rate 979 dev/usb/if_ral.c if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) rate 997 dev/usb/if_ral.c int xferlen, rate = 2; rate 1025 dev/usb/if_ral.c m0->m_pkthdr.len, rate); rate 1028 dev/usb/if_ral.c m0->m_pkthdr.len, rate, xferlen)); rate 1050 dev/usb/if_ral.c int rate, xferlen, pktlen, needrts = 0, needcts = 0; rate 1071 dev/usb/if_ral.c rate = ni->ni_rates.rs_rates[0]; rate 1073 dev/usb/if_ral.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 1076 dev/usb/if_ral.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 1077 dev/usb/if_ral.c if (rate == 0) rate 1078 dev/usb/if_ral.c rate = 2; /* XXX should not happen */ rate 1079 dev/usb/if_ral.c rate &= IEEE80211_RATE_VAL; rate 1087 dev/usb/if_ral.c RAL_RATE_IS_OFDM(rate)) { rate 1100 dev/usb/if_ral.c ackrate = ural_ack_rate(ic, rate); rate 1102 dev/usb/if_ral.c dur = ural_txtime(pktlen, rate, ic->ic_flags) + rate 1163 dev/usb/if_ral.c dur = ural_txtime(RAL_ACK_SIZE, ural_ack_rate(ic, rate), rate 1180 dev/usb/if_ral.c tap->wt_rate = rate; rate 1196 dev/usb/if_ral.c ural_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate); rate 1209 dev/usb/if_ral.c m0->m_pkthdr.len, rate, xferlen)); rate 186 dev/usb/if_ralreg.h uint8_t rate; rate 721 dev/usb/if_rum.c #define RUM_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) rate 893 dev/usb/if_rum.c switch (desc->rate) { rate 904 dev/usb/if_rum.c if (desc->rate == 10) rate 906 dev/usb/if_rum.c if (desc->rate == 20) rate 908 dev/usb/if_rum.c if (desc->rate == 55) rate 910 dev/usb/if_rum.c if (desc->rate == 110) rate 921 dev/usb/if_rum.c rum_ack_rate(struct ieee80211com *ic, int rate) rate 923 dev/usb/if_rum.c switch (rate) { rate 930 dev/usb/if_rum.c return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; rate 956 dev/usb/if_rum.c rum_txtime(int len, int rate, uint32_t flags) rate 960 dev/usb/if_rum.c if (RUM_RATE_IS_OFDM(rate)) { rate 962 dev/usb/if_rum.c txtime = (8 + 4 * len + 3 + rate - 1) / rate; rate 966 dev/usb/if_rum.c txtime = (16 * len + rate - 1) / rate; rate 967 dev/usb/if_rum.c if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE)) rate 976 dev/usb/if_rum.c rum_plcp_signal(int rate) rate 978 dev/usb/if_rum.c switch (rate) { rate 1002 dev/usb/if_rum.c uint32_t flags, uint16_t xflags, int len, int rate) rate 1021 dev/usb/if_rum.c desc->plcp_signal = rum_plcp_signal(rate); rate 1025 dev/usb/if_rum.c if (RUM_RATE_IS_OFDM(rate)) { rate 1032 dev/usb/if_rum.c plcp_length = (16 * len + rate - 1) / rate; rate 1033 dev/usb/if_rum.c if (rate == 22) { rate 1041 dev/usb/if_rum.c if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) rate 1059 dev/usb/if_rum.c int rate, xferlen, pktlen, needrts = 0, needcts = 0; rate 1080 dev/usb/if_rum.c rate = ni->ni_rates.rs_rates[0]; rate 1082 dev/usb/if_rum.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 1085 dev/usb/if_rum.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 1086 dev/usb/if_rum.c if (rate == 0) rate 1087 dev/usb/if_rum.c rate = 2; /* XXX should not happen */ rate 1088 dev/usb/if_rum.c rate &= IEEE80211_RATE_VAL; rate 1096 dev/usb/if_rum.c RUM_RATE_IS_OFDM(rate)) { rate 1109 dev/usb/if_rum.c ackrate = rum_ack_rate(ic, rate); rate 1111 dev/usb/if_rum.c dur = rum_txtime(pktlen, rate, ic->ic_flags) + rate 1171 dev/usb/if_rum.c dur = rum_txtime(RUM_ACK_SIZE, rum_ack_rate(ic, rate), rate 1188 dev/usb/if_rum.c tap->wt_rate = rate; rate 1204 dev/usb/if_rum.c rum_setup_tx_desc(sc, desc, flags, 0, m0->m_pkthdr.len, rate); rate 1217 dev/usb/if_rum.c m0->m_pkthdr.len + RT2573_TX_DESC_SIZE, rate, xferlen)); rate 2155 dev/usb/if_rum.c int rate; rate 2165 dev/usb/if_rum.c rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_bss->ni_chan) ? 12 : 2; rate 2168 dev/usb/if_rum.c m0->m_pkthdr.len, rate); rate 211 dev/usb/if_rumreg.h uint8_t rate; rate 875 dev/usb/if_uath.c xled.rate = htobe32(1); rate 905 dev/usb/if_uath.c xled.rate = htobe32(1); rate 159 dev/usb/if_uathreg.h uint32_t rate; rate 1758 dev/usb/if_zyd.c zyd_plcp_signal(int rate) rate 1760 dev/usb/if_zyd.c switch (rate) { rate 1810 dev/usb/if_zyd.c letoh16(retry->rate), ether_sprintf(retry->macaddr), rate 2052 dev/usb/if_zyd.c int xferlen, totlen, rate; rate 2072 dev/usb/if_zyd.c rate = ni->ni_rates.rs_rates[0]; rate 2074 dev/usb/if_zyd.c rate = ic->ic_sup_rates[ic->ic_curmode]. rate 2077 dev/usb/if_zyd.c rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate 2078 dev/usb/if_zyd.c rate &= IEEE80211_RATE_VAL; rate 2079 dev/usb/if_zyd.c if (rate == 0) /* XXX should not happen */ rate 2080 dev/usb/if_zyd.c rate = 2; rate 2098 dev/usb/if_zyd.c } else if (ZYD_RATE_IS_OFDM(rate) && rate 2113 dev/usb/if_zyd.c desc->phy = zyd_plcp_signal(rate); rate 2114 dev/usb/if_zyd.c if (ZYD_RATE_IS_OFDM(rate)) { rate 2118 dev/usb/if_zyd.c } else if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) rate 2127 dev/usb/if_zyd.c desc->plcp_length = (16 * totlen + rate - 1) / rate; rate 2129 dev/usb/if_zyd.c if (rate == 22) { rate 2141 dev/usb/if_zyd.c tap->wt_rate = rate; rate 2159 dev/usb/if_zyd.c sc->sc_dev.dv_xname, m0->m_pkthdr.len, rate, xferlen)); rate 1062 dev/usb/if_zydreg.h uint16_t rate; rate 1090 dev/usb/if_zydreg.h #define ZYD_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) rate 2912 dev/usb/uaudio.c const struct audio_params *p, int mode, u_long rate) rate 2918 dev/usb/uaudio.c rate, p->hw_channels)); rate 2934 dev/usb/uaudio.c if (UA_SAMP_LO(a1d) <= rate && rate <= UA_SAMP_HI(a1d)) rate 2941 dev/usb/uaudio.c if (UA_GETSAMP(a1d, j) == rate) rate 2955 dev/usb/uaudio.c u_long rate; rate 2970 dev/usb/uaudio.c while ((rate = p->sample_rate * n++) <= max) { rate 2971 dev/usb/uaudio.c i = uaudio_match_alt_sub(nalts, alts, p, mode, rate); rate 2973 dev/usb/uaudio.c p->hw_sample_rate = rate; rate 114 dev/usb/uftdi.c int uftdi_8u232am_getrate(speed_t speed, int *rate); rate 564 dev/usb/uftdi.c int rate, data, flow; rate 574 dev/usb/uftdi.c case 300: rate = ftdi_sio_b300; break; rate 575 dev/usb/uftdi.c case 600: rate = ftdi_sio_b600; break; rate 576 dev/usb/uftdi.c case 1200: rate = ftdi_sio_b1200; break; rate 577 dev/usb/uftdi.c case 2400: rate = ftdi_sio_b2400; break; rate 578 dev/usb/uftdi.c case 4800: rate = ftdi_sio_b4800; break; rate 579 dev/usb/uftdi.c case 9600: rate = ftdi_sio_b9600; break; rate 580 dev/usb/uftdi.c case 19200: rate = ftdi_sio_b19200; break; rate 581 dev/usb/uftdi.c case 38400: rate = ftdi_sio_b38400; break; rate 582 dev/usb/uftdi.c case 57600: rate = ftdi_sio_b57600; break; rate 583 dev/usb/uftdi.c case 115200: rate = ftdi_sio_b115200; break; rate 590 dev/usb/uftdi.c if (uftdi_8u232am_getrate(t->c_ospeed, &rate) == -1) rate 596 dev/usb/uftdi.c USETW(req.wValue, rate); rate 705 dev/usb/uftdi.c uftdi_8u232am_getrate(speed_t speed, int *rate) rate 764 dev/usb/uftdi.c *rate = result; rate 466 dev/usb/umct.c umct_set_baudrate(struct umct_softc *sc, u_int rate) rate 474 dev/usb/umct.c switch (rate) { rate 488 dev/usb/umct.c val = UMCT_BAUD_RATE(rate); rate 625 net/pf_ioctl.c tb.rate = altq->ifbandwidth; rate 656 net/pf_ioctl.c tb.rate = 0; rate 258 net80211/ieee80211.c int i, j, mode, rate, maxrate, mword, mopt, r; rate 299 net80211/ieee80211.c rate = rs->rs_rates[i]; rate 300 net80211/ieee80211.c mword = ieee80211_rate2media(ic, rate, mode); rate 315 net80211/ieee80211.c r = rate & IEEE80211_RATE_VAL; rate 324 net80211/ieee80211.c rate = (rate & IEEE80211_RATE_VAL) / 2; rate 325 net80211/ieee80211.c if (rate > maxrate) rate 326 net80211/ieee80211.c maxrate = rate; rate 356 net80211/ieee80211.c int rate) rate 362 net80211/ieee80211.c if (IEEERATE(ic, mode, i) == rate) rate 819 net80211/ieee80211.c ieee80211_rate2media(struct ieee80211com *ic, int rate, rate 858 net80211/ieee80211.c mask = rate & IEEE80211_RATE_VAL; rate 896 net80211/ieee80211.c int rate; rate 920 net80211/ieee80211.c return ieeerates[i].rate; rate 1362 net80211/ieee80211_input.c u_int8_t rate; rate 1410 net80211/ieee80211_input.c rate = ieee80211_setup_rates(ic, ni, rates, xrates, rate 1413 net80211/ieee80211_input.c if (rate & IEEE80211_RATE_BASIC) { rate 1486 net80211/ieee80211_input.c u_int8_t rate; rate 1589 net80211/ieee80211_input.c rate = ieee80211_setup_rates(ic, ni, rates, xrates, rate 1592 net80211/ieee80211_input.c if (rate & IEEE80211_RATE_BASIC) { rate 1633 net80211/ieee80211_input.c u_int8_t rate; rate 1693 net80211/ieee80211_input.c rate = ieee80211_setup_rates(ic, ni, rates, xrates, rate 1696 net80211/ieee80211_input.c if (rate & IEEE80211_RATE_BASIC) { rate 315 net80211/ieee80211_node.c u_int8_t rate; rate 339 net80211/ieee80211_node.c rate = ieee80211_fix_rate(ic, ni, IEEE80211_F_DONEGO); rate 340 net80211/ieee80211_node.c if (rate & IEEE80211_RATE_BASIC) rate 358 net80211/ieee80211_node.c printf(" %2dM%c", (rate & IEEE80211_RATE_VAL) / 2, rate 511 net80211/ieee80211_node.c int rate; rate 516 net80211/ieee80211_node.c rate = (*rates)[ic->ic_fixed_rate]; rate 518 net80211/ieee80211_node.c rate = (*rates)[ic->ic_bss->ni_txrate]; rate 520 net80211/ieee80211_node.c rate = 0; rate 522 net80211/ieee80211_node.c return rate & IEEE80211_RATE_VAL; rate 152 net80211/ieee80211_proto.c ieee80211_dump_pkt(const u_int8_t *buf, int len, int rate, int rssi) rate 196 net80211/ieee80211_proto.c if (rate >= 0) rate 197 net80211/ieee80211_proto.c printf(" %d%sM", rate / 2, (rate & 1) ? ".5" : ""); rate 365 net80211/ieee80211_proto.c u_int rate; rate 560 net80211/ieee80211_proto.c rate = ni->ni_rates.rs_rates[ni->ni_txrate] & rate 564 net80211/ieee80211_proto.c rate / 2, (rate & 1) ? ".5" : ""); rate 225 net80211/ieee80211_rssadapt.c int i, rate, top; rate 245 net80211/ieee80211_rssadapt.c rate = (rs->rs_rates[id->id_rateidx + 1] & IEEE80211_RATE_VAL); rate 250 net80211/ieee80211_rssadapt.c rate / 2, rate * 5 % 10, (*thrs)[id->id_rateidx + 1])); rate 270 net80211/ieee80211_rssadapt.c rate = (rs->rs_rates[j] & IEEE80211_RATE_VAL); rate 271 net80211/ieee80211_rssadapt.c printf(", T[%d.%d] = %d", rate / 2, rate 272 net80211/ieee80211_rssadapt.c rate * 5 % 10, ra->ra_rate_thresh[i][j]);