/drivers/net/wireless/b43legacy/ |
H A D | main.h | 86 int b43legacy_is_cck_rate(int rate) argument 88 return (rate == B43legacy_CCK_RATE_1MB || 89 rate == B43legacy_CCK_RATE_2MB || 90 rate == B43legacy_CCK_RATE_5MB || 91 rate == B43legacy_CCK_RATE_11MB); 95 int b43legacy_is_ofdm_rate(int rate) argument 97 return !b43legacy_is_cck_rate(rate);
|
/drivers/clk/ |
H A D | Makefile | 3 obj-$(CONFIG_COMMON_CLK) += clk.o clk-fixed-rate.o clk-gate.o \
|
H A D | clk-divider.c | 26 * rate - rate is adjustable. clk->rate = parent->rate / divisor 56 static int clk_divider_bestdiv(struct clk_hw *hw, unsigned long rate, argument 63 if (!rate) 64 rate = 1; 73 bestdiv = DIV_ROUND_UP(parent_rate, rate); 81 * unsigned long in rate * i below 83 maxdiv = min(ULONG_MAX / rate, maxdi 106 clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) argument 122 clk_divider_set_rate(struct clk_hw *hw, unsigned long rate) argument [all...] |
H A D | clk.c | 54 (u32 *)&clk->rate); 294 ret = clk->rate; 561 * clk_get_rate - return the rate of clk 562 * @clk: the clk whose rate is being returned 564 * Simply returns the cached rate of the clk. Does not query the hardware. If 569 unsigned long rate; local 572 rate = __clk_get_rate(clk); 575 return rate; 580 * __clk_round_rate - round the given rate for a clk 581 * @clk: round the rate o 585 __clk_round_rate(struct clk *clk, unsigned long rate) argument 610 clk_round_rate(struct clk *clk, unsigned long rate) argument 765 clk_calc_new_rates(struct clk *clk, unsigned long rate) argument 897 clk_set_rate(struct clk *clk, unsigned long rate) argument [all...] |
/drivers/net/wireless/b43/ |
H A D | main.h | 96 static inline int b43_is_cck_rate(int rate) argument 98 return (rate == B43_CCK_RATE_1MB || 99 rate == B43_CCK_RATE_2MB || 100 rate == B43_CCK_RATE_5MB || rate == B43_CCK_RATE_11MB); 103 static inline int b43_is_ofdm_rate(int rate) argument 105 return !b43_is_cck_rate(rate);
|
/drivers/staging/iio/magnetometer/ |
H A D | hmc5843.c | 128 u8 rate; member in struct:hmc5843_data 255 reg_val = (meas_conf & MEAS_CONF_MASK) | (data->rate << RATE_OFFSET); 302 * Value | Minimum data output rate(Hz) 315 u8 rate) 320 reg_val = (data->meas_conf) | (rate << RATE_OFFSET); 321 if (rate >= RATE_NOT_USED) { 323 "This data output rate is not supported\n"); 337 unsigned long rate = 0; local 340 rate = RATE_5; 342 rate 314 hmc5843_set_rate(struct i2c_client *client, u8 rate) argument 375 s32 rate; local [all...] |
/drivers/net/wireless/ath/ath9k/ |
H A D | rc.c | 383 struct ieee80211_tx_rate *rate) 388 if (!(rate->flags & IEEE80211_TX_RC_MCS)) 389 return rate->idx; 391 while (i < ARRAY_SIZE(mcs_rix_off) && rate->idx > mcs_rix_off[i]) { 395 rix += rate->idx + rate_table->mcs_start; 397 if ((rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) && 398 (rate->flags & IEEE80211_TX_RC_SHORT_GI)) 400 else if (rate->flags & IEEE80211_TX_RC_SHORT_GI) 402 else if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) 536 u8 rate local 382 ath_rc_get_rateindex(const struct ath_rate_table *rate_table, struct ieee80211_tx_rate *rate) argument 579 u8 rate = rateset->rs_rates[i]; local 609 u8 rate, next_rate, best_rate, maxindex, minindex; local 702 ath_rc_rate_set_series(const struct ath_rate_table *rate_table, struct ieee80211_tx_rate *rate, struct ieee80211_tx_rate_control *txrc, u8 tries, u8 rix, int rtsctsenable) argument 1059 int rate; local 1348 struct ieee80211_tx_rate *rate = &tx_info->status.rates[i]; local [all...] |
/drivers/sh/clk/ |
H A D | core.c | 64 freq = clk->parent->rate * mult / div; 78 unsigned long rate; member in struct:clk_rate_round_data 107 rate_error = abs(freq - rounder->rate); 117 if (rounder->rate >= highest) 119 if (rounder->rate <= lowest) 139 unsigned long rate) 146 .rate = rate, 162 unsigned int div_max, unsigned long rate) 169 .rate 137 clk_rate_table_round(struct clk *clk, struct cpufreq_frequency_table *freq_table, unsigned long rate) argument 161 clk_rate_div_range_round(struct clk *clk, unsigned int div_min, unsigned int div_max, unsigned long rate) argument 181 clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, unsigned int mult_max, unsigned long rate) argument 195 clk_rate_table_find(struct clk *clk, struct cpufreq_frequency_table *freq_table, unsigned long rate) argument 482 clk_set_rate(struct clk *clk, unsigned long rate) argument 548 clk_round_rate(struct clk *clk, unsigned long rate) argument 663 unsigned long rate = clkp->rate; local [all...] |
/drivers/net/wireless/libertas/ |
H A D | radiotap.h | 5 u8 rate; member in struct:tx_radiotap_hdr 35 u8 rate; member in struct:rx_radiotap_hdr
|
/drivers/net/wireless/mwifiex/ |
H A D | cfp.c | 76 * the corresponding data rate. 104 u32 rate; local 109 rate = 0x0D; /* MCS 32 SGI rate */ 111 rate = 0x0C; /* MCS 32 LGI rate */ 116 rate = mcs_rate[1][index]; 119 rate = mcs_rate[0][index]; 123 rate = mcs_rate[3][index]; 126 rate 142 mwifiex_data_rate_to_index(u32 rate) argument [all...] |
/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | rate.h | 34 /* phy rate in kbps [20Mhz] */ 36 /* phy rate in kbps [40Mhz] */ 38 /* phy rate in kbps [20Mhz] with SGI */ 40 /* phy rate in kbps [40Mhz] with SGI */ 42 /* phy ctl byte 3, code rate, modulation type, # of streams */ 44 /* matching legacy ofdm rate in 500bkps */ 75 #define BRCMS_RATE_MASK_FULL 0xff /* Rate value mask with basic rate flag */ 78 * rate spec : holds rate and mode specific information required to generate a 84 /* rate spe 183 u32 rate = (ratespec & BRCMS_RATE_MASK); local [all...] |
H A D | Makefile | 33 rate.o \
|
/drivers/base/power/ |
H A D | opp.c | 53 * @rate: Frequency in hertz 63 unsigned long rate; member in struct:opp 187 f = tmp_opp->rate; 262 temp_opp->rate == freq) { 303 if (temp_opp->available && temp_opp->rate >= *freq) { 305 *freq = opp->rate; 347 if (temp_opp->rate > *freq) 354 *freq = opp->rate; 419 new_opp->rate = freq; 426 if (new_opp->rate < op [all...] |
/drivers/net/wan/ |
H A D | sbni.h | 49 u8 rate : 2; member in struct:sbni_csr1 53 u8 rate : 2; 126 u32 rate : 2; member in struct:sbni_flags
|
/drivers/usb/gadget/ |
H A D | u_uac1.h | 38 int rate; member in struct:gaudio_snd_dev
|
/drivers/ide/ |
H A D | ide-xfer-mode.c | 240 * ide_set_xfer_rate - set transfer rate 242 * @rate: speed to attempt to set 249 int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) argument 258 rate = ide_rate_filter(drive, rate); 260 BUG_ON(rate < XFER_PIO_0); 262 if (rate >= XFER_PIO_0 && rate <= XFER_PIO_6) 263 return ide_set_pio_mode(drive, rate); 265 return ide_set_dma_mode(drive, rate); [all...] |
/drivers/net/wireless/rtlwifi/ |
H A D | rc.c | 35 *Finds the highest rate index we can use 37 *it to lowest rate CCK_1M, otherwise we set rate to 51 *this rate is no use for true rate, firmware 52 *will control rate at all it just used for 54 *2.in rtl_get_tcb_desc when we check rate is 55 * 1M we will not use FW rate but user rate. 99 struct ieee80211_tx_rate *rate, 97 _rtl_rc_rate_set_series(struct rtl_priv *rtlpriv, struct ieee80211_sta *sta, struct ieee80211_tx_rate *rate, struct ieee80211_tx_rate_control *txrc, u8 tries, char rix, int rtsctsenable, bool not_data) argument [all...] |
/drivers/net/wireless/wl1251/ |
H A D | tx.h | 118 * A bit mask that specifies the initial rate to be used 134 __le16 rate; member in struct:tx_double_buffer_desc 199 /* At which rate we got a ACK */ 200 u16 rate; member in struct:tx_result
|
H A D | rx.h | 104 u8 rate; member in struct:wl1251_rx_descriptor
|
/drivers/infiniband/hw/mthca/ |
H A D | mthca_av.c | 101 return memfree_rate_to_ib(mthca_rate, dev->rate[port - 1]); 103 return tavor_rate_to_ib(mthca_rate, dev->rate[port - 1]); 112 * Inter-packet delay (IPD) to get from rate X down to a rate 136 u8 rate; local 138 if (!static_rate || ib_rate_to_mult(static_rate) >= dev->rate[port - 1]) 142 rate = ib_rate_to_memfree(ib_rate_to_mult(static_rate), 143 dev->rate[port - 1]); 145 rate = ib_rate_to_tavor(static_rate); 147 if (!(dev->limits.stat_rate_support & (1 << rate))) [all...] |
/drivers/cpufreq/ |
H A D | s3c2416-cpufreq.c | 122 pr_err("cpufreq: Failed to set armdiv rate %dkHz: %d\n", 264 /* When leavin dvs mode, always switch the armdiv to the hclk rate 376 unsigned long rate; local 391 * other means to distinguish them other than through the rate of 394 rate = clk_get_rate(msysclk); 395 if (rate == 800 * 1000 * 1000) { 397 rate / 1000); 400 } else if (rate / 1000 == 534000) { 402 rate / 1000); 412 rate / 100 [all...] |
/drivers/spi/ |
H A D | spi-sh-hspi.c | 116 u32 rate, best_rate, min, tmp; local 129 rate = clk_get_rate(hspi->clk); 133 rate /= 128; 135 rate /= 16; 138 rate /= (((idiv_clk & 0x1F) + 1) * 2) ; 141 tmp = abs(target_rate - rate); 145 best_rate = rate;
|
/drivers/staging/rtl8712/ |
H A D | ieee80211.c | 51 * for adhoc-master to generate ie and provide supported-rate to fw 73 uint r8712_is_cckrates_included(u8 *rate) argument 77 while (rate[i] != 0) { 78 if ((((rate[i]) & 0x7f) == 2) || (((rate[i]) & 0x7f) == 4) || 79 (((rate[i]) & 0x7f) == 11) || (((rate[i]) & 0x7f) == 22)) 86 uint r8712_is_cckratesonly_included(u8 *rate) argument 90 while (rate[i] != 0) { 91 if ((((rate[ [all...] |
/drivers/net/wireless/prism54/ |
H A D | islpci_eth.h | 31 u8 rate; member in struct:rfmon_header
|
/drivers/net/wireless/ath/ath5k/ |
H A D | pcu.c | 71 * based on current tx rate instead of the base rate. 75 * rate -> duration table. This mapping is hw-based so 79 * ah->ah_ack_bitrate_high to true else base rate is 105 * @rate: The @struct ieee80211_rate 108 * Calculate tx duration of a frame given it's rate and length 114 int len, struct ieee80211_rate *rate, bool shortpre) 123 NULL, len, rate); 133 bitrate = rate->bitrate; 159 /* Bit rate i 113 ath5k_hw_get_frame_duration(struct ath5k_hw *ah, int len, struct ieee80211_rate *rate, bool shortpre) argument 277 struct ieee80211_rate *rate; local [all...] |