/linux-4.1.27/drivers/clk/at91/ |
H A D | clk-peripheral.c | 237 unsigned long cur_rate = *parent_rate; clk_sam9x5_peripheral_round_rate() local 246 cur_rate = *parent_rate >> shift; clk_sam9x5_peripheral_round_rate() 247 if (cur_rate <= periph->range.max) clk_sam9x5_peripheral_round_rate() 252 if (rate >= cur_rate) clk_sam9x5_peripheral_round_rate() 253 return cur_rate; clk_sam9x5_peripheral_round_rate() 255 best_diff = cur_rate - rate; clk_sam9x5_peripheral_round_rate() 256 best_rate = cur_rate; clk_sam9x5_peripheral_round_rate() 258 cur_rate = *parent_rate >> shift; clk_sam9x5_peripheral_round_rate() 259 if (cur_rate < rate) clk_sam9x5_peripheral_round_rate() 260 cur_diff = rate - cur_rate; clk_sam9x5_peripheral_round_rate() 262 cur_diff = cur_rate - rate; clk_sam9x5_peripheral_round_rate() 266 best_rate = cur_rate; clk_sam9x5_peripheral_round_rate() 269 if (!best_diff || cur_rate < rate) clk_sam9x5_peripheral_round_rate()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | clkt2xxx_dpllcore.c | 115 u32 cur_rate, low, mult, div, valid_rate, done_rate; omap2_reprogram_dpllcore() local 120 cur_rate = omap2xxx_clk_get_core_rate(); omap2_reprogram_dpllcore() 123 if ((rate == (cur_rate / 2)) && (mult == 2)) { omap2_reprogram_dpllcore() 125 } else if ((rate == (cur_rate * 2)) && (mult == 1)) { omap2_reprogram_dpllcore() 127 } else if (rate != cur_rate) { omap2_reprogram_dpllcore()
|
H A D | clkt2xxx_virt_prcm_set.c | 101 u32 cur_rate, done_rate, bypass = 0; omap2_select_table_rate() local 126 cur_rate = omap2xxx_clk_get_core_rate(); omap2_select_table_rate() 128 if (prcm->dpll_speed == cur_rate / 2) { omap2_select_table_rate() 130 } else if (prcm->dpll_speed == cur_rate * 2) { omap2_select_table_rate() 132 } else if (prcm->dpll_speed != cur_rate) { omap2_select_table_rate()
|
/linux-4.1.27/drivers/clk/mvebu/ |
H A D | clk-cpu.c | 113 unsigned long fabric_div, target_div, cur_rate; clk_cpu_on_set_rate() local 123 cur_rate = __clk_get_rate(hwclk->clk); clk_cpu_on_set_rate() 130 if (rate == 2 * cur_rate) clk_cpu_on_set_rate()
|
/linux-4.1.27/sound/usb/ |
H A D | clock.c | 358 int err, cur_rate, prev_rate; set_sample_rate_v2() local 387 cur_rate = get_sample_rate_v2(chip, iface, fmt->altsetting, clock); set_sample_rate_v2() 389 cur_rate = prev_rate; set_sample_rate_v2() 392 if (cur_rate != rate) { set_sample_rate_v2() 396 iface, fmt->altsetting, rate, cur_rate); set_sample_rate_v2() 401 cur_rate, rate); set_sample_rate_v2()
|
H A D | pcm.c | 107 if (subs->cur_rate < fp->rate_min || find_format() 108 subs->cur_rate > fp->rate_max) find_format() 113 if (fp->rate_table[i] == subs->cur_rate) find_format() 599 subs->cur_rate, configure_sync_endpoint() 607 subs->cur_rate, subs->pcm_format); configure_sync_endpoint() 639 subs->cur_rate, configure_sync_endpoint() 663 subs->cur_rate, configure_endpoint() 702 subs->cur_rate = params_rate(hw_params); snd_usb_hw_params() 708 subs->pcm_format, subs->cur_rate, subs->channels); snd_usb_hw_params() 737 subs->cur_rate = 0; snd_usb_hw_free() 787 subs->cur_rate); snd_usb_pcm_prepare()
|
H A D | card.h | 119 unsigned int cur_rate; /* current rate (for hw_params callback) */ member in struct:snd_usb_substream
|
/linux-4.1.27/sound/atmel/ |
H A D | ac97c.c | 76 unsigned int cur_rate; member in struct:atmel_ac97c 183 if (chip->cur_rate) { atmel_ac97c_playback_open() 184 runtime->hw.rate_min = chip->cur_rate; atmel_ac97c_playback_open() 185 runtime->hw.rate_max = chip->cur_rate; atmel_ac97c_playback_open() 202 if (chip->cur_rate) { atmel_ac97c_capture_open() 203 runtime->hw.rate_min = chip->cur_rate; atmel_ac97c_capture_open() 204 runtime->hw.rate_max = chip->cur_rate; atmel_ac97c_capture_open() 220 chip->cur_rate = 0; atmel_ac97c_playback_close() 237 chip->cur_rate = 0; atmel_ac97c_capture_close() 266 chip->cur_rate = params_rate(hw_params); atmel_ac97c_playback_hw_params() 290 chip->cur_rate = params_rate(hw_params); atmel_ac97c_capture_hw_params()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_av.c | 106 static u8 ib_rate_to_memfree(u8 req_rate, u8 cur_rate) ib_rate_to_memfree() argument 108 if (cur_rate <= req_rate) ib_rate_to_memfree() 115 switch ((cur_rate - 1) / req_rate) { ib_rate_to_memfree()
|
/linux-4.1.27/sound/soc/mxs/ |
H A D | mxs-saif.h | 121 unsigned int cur_rate; member in struct:mxs_saif
|
H A D | mxs-saif.c | 107 if (master_saif->ongoing && rate != master_saif->cur_rate) { mxs_saif_set_clk() 110 master_saif->id, master_saif->cur_rate); mxs_saif_set_clk() 152 master_saif->cur_rate = rate; mxs_saif_set_clk() 580 delay = USEC_PER_SEC / master_saif->cur_rate; mxs_saif_trigger()
|
/linux-4.1.27/drivers/net/wireless/libertas/ |
H A D | rx.c | 147 priv->cur_rate = lbs_fw_index_to_data_rate(p_rx_pd->rx_rate); lbs_process_rxed_packet() 268 priv->cur_rate = lbs_fw_index_to_data_rate(prxpd->rx_rate); process_rxed_802_11_packet()
|
H A D | dev.h | 173 u8 cur_rate; member in struct:lbs_private
|
H A D | cfg.c | 1635 /* Convert priv->cur_rate from hw_value to NL80211 value */ lbs_cfg_get_station() 1637 if (priv->cur_rate == lbs_rates[i].hw_value) { lbs_cfg_get_station()
|
/linux-4.1.27/sound/pci/ice1712/ |
H A D | ice1724.c | 675 return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY; snd_vt1724_set_pro_rate() 681 return (rate == ice->cur_rate) ? 0 : -EBUSY; snd_vt1724_set_pro_rate() 690 else if (rate == ice->cur_rate) { snd_vt1724_set_pro_rate() 696 ice->cur_rate = rate; snd_vt1724_set_pro_rate() 2850 if (ice->cur_rate) snd_vt1724_resume() 2851 rate = ice->cur_rate; snd_vt1724_resume()
|
H A D | ice1712.c | 1044 ice->cur_rate = rate; snd_ice1712_set_pro_rate() 2820 if (ice->cur_rate) snd_ice1712_resume() 2821 rate = ice->cur_rate; snd_ice1712_resume() 2830 ice->cur_rate = rate; snd_ice1712_resume()
|
H A D | ice1712.h | 347 unsigned int cur_rate; /* current rate */ member in struct:snd_ice1712
|