Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 195) sorted by relevance

12345678

/drivers/net/wireless/ath9k/
Drc.c568 u8 rate = rateset->rs_rates[i]; in ath_rc_setvalid_rates() local
575 if (((rate & 0x7F) == (dot11rate & 0x7F)) && in ath_rc_setvalid_rates()
614 u8 rate = rateset->rs_rates[i]; in ath_rc_setvalid_htrates() local
617 if (((rate & 0x7F) != (dot11rate & 0x7F)) || in ath_rc_setvalid_htrates()
643 u8 rate, next_rate, best_rate, maxindex, minindex; in ath_rc_ratefind_ht() local
693 rate = ath_rc_priv->valid_rate_index[index]; in ath_rc_ratefind_ht()
694 if (rate > ath_rc_priv->rate_max_phy) in ath_rc_ratefind_ht()
708 per_thres = ath_rc_priv->state[rate].per; in ath_rc_ratefind_ht()
712 this_thruput = rate_table->info[rate].user_ratekbps * in ath_rc_ratefind_ht()
717 best_rate = rate; in ath_rc_ratefind_ht()
[all …]
/drivers/net/wireless/b43legacy/
Dmain.h86 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument
88 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate()
89 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate()
90 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate()
91 rate == B43legacy_CCK_RATE_11MB); in b43legacy_is_cck_rate()
95 int b43legacy_is_ofdm_rate(int rate) in b43legacy_is_ofdm_rate() argument
97 return !b43legacy_is_cck_rate(rate); in b43legacy_is_ofdm_rate()
/drivers/staging/otus/80211core/
Dcic.c217 u8_t rate = 0; in zfPhyCtrlToRate() local
225 rate = (u8_t)mcs; in zfPhyCtrlToRate()
229 rate = zcOfdmPhyCrtlToRate[mcs-8]; in zfPhyCtrlToRate()
233 rate = (u8_t)mcs + 12; in zfPhyCtrlToRate()
237 rate = (u8_t)mcs + 12 + 2; in zfPhyCtrlToRate()
241 rate = (u8_t)30; in zfPhyCtrlToRate()
246 return rate; in zfPhyCtrlToRate()
410 u32_t rate; in zfCoreEvent() local
414 rate=((u32_t*)rsp)[0] >> 16; in zfCoreEvent()
416 if (rate > 15) { in zfCoreEvent()
[all …]
/drivers/net/wireless/b43/
Dmain.h79 static inline int b43_is_cck_rate(int rate) in b43_is_cck_rate() argument
81 return (rate == B43_CCK_RATE_1MB || in b43_is_cck_rate()
82 rate == B43_CCK_RATE_2MB || in b43_is_cck_rate()
83 rate == B43_CCK_RATE_5MB || rate == B43_CCK_RATE_11MB); in b43_is_cck_rate()
86 static inline int b43_is_ofdm_rate(int rate) in b43_is_ofdm_rate() argument
88 return !b43_is_cck_rate(rate); in b43_is_ofdm_rate()
Dxmit.c196 u8 rate, rate_fb; in b43_generate_txhdr() local
208 rate = txrate ? txrate->hw_value : B43_CCK_RATE_1MB; in b43_generate_txhdr()
209 rate_ofdm = b43_is_ofdm_rate(rate); in b43_generate_txhdr()
215 txhdr->phy_rate = b43_plcp_get_ratecode_ofdm(rate); in b43_generate_txhdr()
217 txhdr->phy_rate = b43_plcp_get_ratecode_cck(rate); in b43_generate_txhdr()
222 if ((rate_fb == rate) || in b43_generate_txhdr()
268 plcp_fragment_len, rate); in b43_generate_txhdr()
271 plcp_fragment_len, rate); in b43_generate_txhdr()
/drivers/infiniband/hw/mthca/
Dmthca_av.c101 return memfree_rate_to_ib(mthca_rate, dev->rate[port - 1]); in mthca_rate_to_ib()
103 return tavor_rate_to_ib(mthca_rate, dev->rate[port - 1]); in mthca_rate_to_ib()
136 u8 rate; in mthca_get_rate() local
138 if (!static_rate || ib_rate_to_mult(static_rate) >= dev->rate[port - 1]) in mthca_get_rate()
142 rate = ib_rate_to_memfree(ib_rate_to_mult(static_rate), in mthca_get_rate()
143 dev->rate[port - 1]); in mthca_get_rate()
145 rate = ib_rate_to_tavor(static_rate); in mthca_get_rate()
147 if (!(dev->limits.stat_rate_support & (1 << rate))) in mthca_get_rate()
148 rate = 1; in mthca_get_rate()
150 return rate; in mthca_get_rate()
/drivers/staging/rtl8187se/
Dr8180_dm.c171 if((priv->ieee80211->rate/5) < 36) // Schedule Dig under all OFDM rates. By Bruce, 2007-06-01.
380 u8 rate argument
387 switch(rate)
426 printk("GetUpgradeTxRate(): Input Tx Rate(%d) is undefined!\n", rate);
427 return rate;
438 return rate;
440 return rate;
451 u8 rate argument
458 switch(rate)
497 printk("GetDegradeTxRate(): Input Tx Rate(%d) is undefined!\n", rate);
[all …]
/drivers/staging/wlan-ng/
Dprism2mib.c1042 void prism2mgmt_get_oprateset(u16 *rate, p80211pstrd_t *pstr) in prism2mgmt_get_oprateset() argument
1053 if ( BIT0 & (*rate) ) { in prism2mgmt_get_oprateset()
1060 if ( BIT1 & (*rate) ) { in prism2mgmt_get_oprateset()
1067 if ( BIT2 & (*rate) ) { in prism2mgmt_get_oprateset()
1074 if ( BIT3 & (*rate) ) { in prism2mgmt_get_oprateset()
1101 void prism2mgmt_set_oprateset(u16 *rate, p80211pstrd_t *pstr) in prism2mgmt_set_oprateset() argument
1108 *rate = 0; in prism2mgmt_set_oprateset()
1115 *rate |= BIT0; in prism2mgmt_set_oprateset()
1118 *rate |= BIT1; in prism2mgmt_set_oprateset()
1121 *rate |= BIT2; in prism2mgmt_set_oprateset()
[all …]
/drivers/spi/
Domap_uwire.c325 unsigned long rate; in uwire_setup_transfer() local
374 rate = clk_get_rate(uwire->ck); in uwire_setup_transfer()
403 div2 = (rate / div1 + hz - 1) / hz; in uwire_setup_transfer()
409 spi->dev.bus_id, rate / 10 / 8, hz); in uwire_setup_transfer()
420 rate /= div1; in uwire_setup_transfer()
427 rate /= 2; in uwire_setup_transfer()
432 rate /= 4; in uwire_setup_transfer()
439 rate /= 8; in uwire_setup_transfer()
446 rate / 1000); in uwire_setup_transfer()
Dorion_spi.c99 u32 rate; in orion_spi_baudrate_set() local
112 rate = DIV_ROUND_UP(tclk_hz, speed); in orion_spi_baudrate_set()
113 rate = roundup(rate, 2); in orion_spi_baudrate_set()
116 if (rate > 30) in orion_spi_baudrate_set()
119 if (rate < 4) in orion_spi_baudrate_set()
120 rate = 4; in orion_spi_baudrate_set()
123 prescale = 0x10 + rate/2; in orion_spi_baudrate_set()
/drivers/infiniband/ulp/ipoib/
Dipoib_fs.c199 int rate; in ipoib_path_seq_show() local
214 rate = ib_rate_to_mult(path.pathrec.rate) * 25; in ipoib_path_seq_show()
222 10 - ((rate % 10) ? 2 : 0), in ipoib_path_seq_show()
223 rate / 10, rate % 10 ? ".5" : ""); in ipoib_path_seq_show()
/drivers/ide/
Dide-lib.c255 int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) in ide_set_xfer_rate() argument
264 rate = ide_rate_filter(drive, rate); in ide_set_xfer_rate()
266 BUG_ON(rate < XFER_PIO_0); in ide_set_xfer_rate()
268 if (rate >= XFER_PIO_0 && rate <= XFER_PIO_5) in ide_set_xfer_rate()
269 return ide_set_pio_mode(drive, rate); in ide_set_xfer_rate()
271 return ide_set_dma_mode(drive, rate); in ide_set_xfer_rate()
/drivers/net/wireless/iwlwifi/
Diwl-3945-rs.h171 u8 rate = iwl3945_rates[rate_index].prev_ieee; in iwl3945_get_prev_ieee_rate() local
173 if (rate == IWL_RATE_INVALID) in iwl3945_get_prev_ieee_rate()
174 rate = rate_index; in iwl3945_get_prev_ieee_rate()
175 return rate; in iwl3945_get_prev_ieee_rate()
Diwl-agn-rs.c1044 s8 rate = index; in rs_get_best_rate() local
1049 high_low = rs_get_adjacent_rate(priv, rate, rate_mask, in rs_get_best_rate()
1070 if ((((100 * tpt_tbl[rate]) > lq_sta->last_tpt) && in rs_get_best_rate()
1073 (tpt_tbl[rate] <= active_tpt))) || in rs_get_best_rate()
1075 (tpt_tbl[rate] > active_tpt))) { in rs_get_best_rate()
1085 new_rate = rate; in rs_get_best_rate()
1089 rate = low; in rs_get_best_rate()
1106 rate = high; in rs_get_best_rate()
1110 new_rate = rate; in rs_get_best_rate()
1129 s32 rate; in rs_switch_to_mimo2() local
[all …]
Diwl-3945.c269 int iwl3945_rs_next_rate(struct iwl3945_priv *priv, int rate) in iwl3945_rs_next_rate() argument
271 int next_rate = iwl3945_get_prev_ieee_rate(rate); in iwl3945_rs_next_rate()
275 if (rate == IWL_RATE_12M_INDEX) in iwl3945_rs_next_rate()
277 else if (rate == IWL_RATE_6M_INDEX) in iwl3945_rs_next_rate()
283 if (rate == IWL_RATE_11M_INDEX) in iwl3945_rs_next_rate()
356 rate_idx = iwl3945_hwrate_to_plcp_idx(tx_resp->rate); in iwl3945_rx_reply_tx()
371 tx_resp->rate, tx_resp->failure_frame); in iwl3945_rx_reply_tx()
490 int rate; in iwl3945_dbg_report_frame() local
517 rate = iwl3945_hwrate_to_plcp_idx(rx_hdr->rate); in iwl3945_dbg_report_frame()
518 if (rate == -1) in iwl3945_dbg_report_frame()
[all …]
Diwl-agn-rs.h299 u8 rate = iwl_rates[rate_index].prev_ieee; in iwl_get_prev_ieee_rate() local
301 if (rate == IWL_RATE_INVALID) in iwl_get_prev_ieee_rate()
302 rate = rate_index; in iwl_get_prev_ieee_rate()
303 return rate; in iwl_get_prev_ieee_rate()
/drivers/isdn/gigaset/
Dusb-gigaset.c213 u32 rate; in gigaset_baud_rate() local
219 case B300: rate = 300; break; in gigaset_baud_rate()
220 case B600: rate = 600; break; in gigaset_baud_rate()
221 case B1200: rate = 1200; break; in gigaset_baud_rate()
222 case B2400: rate = 2400; break; in gigaset_baud_rate()
223 case B4800: rate = 4800; break; in gigaset_baud_rate()
224 case B9600: rate = 9600; break; in gigaset_baud_rate()
225 case B19200: rate = 19200; break; in gigaset_baud_rate()
226 case B38400: rate = 38400; break; in gigaset_baud_rate()
227 case B57600: rate = 57600; break; in gigaset_baud_rate()
[all …]
/drivers/ssb/
Ddriver_mipscore.c153 u32 pll_type, n, m, rate = 0; in ssb_cpu_clock() local
163 rate = 200000000; in ssb_cpu_clock()
165 rate = ssb_calc_clock_rate(pll_type, n, m); in ssb_cpu_clock()
169 rate *= 2; in ssb_cpu_clock()
172 return rate; in ssb_cpu_clock()
/drivers/net/wan/
Dsbni.h49 u8 rate : 2; member
53 u8 rate : 2;
126 u32 rate : 2; member
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_wx.c58 u8 max_rate, rate; local
153 rate = network->rates_ex[j++] & 0x7F;
155 rate = network->rates[i++] & 0x7F;
156 if (rate > max_rate)
157 max_rate = rate;
159 "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
162 rate = network->rates_ex[j] & 0x7F;
164 "%d%s ", rate >> 1, (rate & 1) ? ".5" : "");
165 if (rate > max_rate)
166 max_rate = rate;
/drivers/atm/
Deni.c1292 int rate,ubr,unlimited,new_tx; in reserve_or_set_tx() local
1296 rate = atm_pcr_goal(txtp); in reserve_or_set_tx()
1298 unlimited = ubr && (!rate || rate <= -ATM_OC3_PCR || in reserve_or_set_tx()
1299 rate >= ATM_OC3_PCR); in reserve_or_set_tx()
1337 error = comp_tx(eni_dev,&rate,tx->reserved,&pre,&res,unlimited); in reserve_or_set_tx()
1338 if (!error && txtp->min_pcr > rate) error = -EINVAL; in reserve_or_set_tx()
1340 txtp->max_pcr < rate) error = -EINVAL; in reserve_or_set_tx()
1341 if (!error && !ubr && rate > eni_dev->tx_bw+tx->reserved) in reserve_or_set_tx()
1343 if (!error && set_rsv && !set_shp && rate < tx->shaping) in reserve_or_set_tx()
1345 if (!error && !set_rsv && rate > tx->reserved && !ubr) in reserve_or_set_tx()
[all …]
/drivers/infiniband/core/
Duverbs_marshall.c108 dst->rate = src->rate; in ib_copy_path_rec_to_user()
134 dst->rate = src->rate; in ib_copy_path_rec_from_user()
/drivers/char/ip2/
Di2cmd.c192 i2cmdBaudDef(int which, unsigned short rate) in i2cmdBaudDef() argument
206 pCM->cmd[1] = (unsigned char) rate; in i2cmdBaudDef()
207 pCM->cmd[2] = (unsigned char) (rate >> 8); in i2cmdBaudDef()
/drivers/clocksource/
Dtcb_clksrc.c221 u32 rate, divided_rate = 0; in tcb_clksrc_init() local
238 rate = (u32) clk_get_rate(t0_clk); in tcb_clksrc_init()
249 tmp = rate / divisor; in tcb_clksrc_init()
250 pr_debug("TC: %u / %-3u [%d] --> %u\n", rate, divisor, i, tmp); in tcb_clksrc_init()
/drivers/net/wireless/libertas/
Dtx.c21 static u32 convert_radiotap_rate_to_mv(u8 rate) in convert_radiotap_rate_to_mv() argument
23 switch (rate) { in convert_radiotap_rate_to_mv()
119 txpd->tx_control = cpu_to_le32(convert_radiotap_rate_to_mv(rtap_hdr->rate)); in lbs_hard_start_xmit()

12345678