| /OK3568_Linux_fs/kernel/drivers/clk/sprd/ |
| H A D | div.c | 14 unsigned long rate, in sprd_div_helper_round_rate() 22 static long sprd_div_round_rate(struct clk_hw *hw, unsigned long rate, in sprd_div_round_rate() 57 unsigned long rate, in sprd_div_helper_set_rate() 77 static int sprd_div_set_rate(struct clk_hw *hw, unsigned long rate, in sprd_div_set_rate()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | rs.h | 195 #define is_legacy(rate) is_type_legacy((rate)->type) argument 196 #define is_ht_siso(rate) is_type_ht_siso((rate)->type) argument 197 #define is_ht_mimo2(rate) is_type_ht_mimo2((rate)->type) argument 198 #define is_vht_siso(rate) is_type_vht_siso((rate)->type) argument 199 #define is_vht_mimo2(rate) is_type_vht_mimo2((rate)->type) argument 200 #define is_siso(rate) is_type_siso((rate)->type) argument 201 #define is_mimo2(rate) is_type_mimo2((rate)->type) argument 202 #define is_mimo(rate) is_type_mimo((rate)->type) argument 203 #define is_ht(rate) is_type_ht((rate)->type) argument 204 #define is_vht(rate) is_type_vht((rate)->type) argument [all …]
|
| H A D | rs.c | 133 struct rs_rate *rate, in rs_ant_allow() 140 struct rs_rate *rate, in rs_mimo_allow() 162 struct rs_rate *rate, in rs_siso_allow() 172 struct rs_rate *rate, in rs_sgi_allow() 521 static char *rs_pretty_rate(const struct rs_rate *rate) in rs_pretty_rate() 566 static inline void rs_dump_rate(struct iwl_mvm *mvm, const struct rs_rate *rate, in rs_dump_rate() 818 struct rs_rate *rate) in ucode_rate_from_rs_rate() 887 struct rs_rate *rate) in rs_rate_from_ucode_rate() 981 static int rs_toggle_antenna(u32 valid_ant, struct rs_rate *rate) in rs_toggle_antenna() 1006 struct rs_rate *rate) in rs_get_supported_rates() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/sunxi-ng/ |
| H A D | ccu_nm.c | 22 u64 rate = parent; in ccu_nm_calc_rate() local 30 static void ccu_nm_find_best(unsigned long parent, unsigned long rate, in ccu_nm_find_best() 82 unsigned long rate; in ccu_nm_recalc_rate() local 120 static long ccu_nm_round_rate(struct clk_hw *hw, unsigned long rate, in ccu_nm_round_rate() 169 static int ccu_nm_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_nm_set_rate()
|
| H A D | ccu_nk.c | 18 static void ccu_nk_find_best(unsigned long parent, unsigned long rate, in ccu_nk_find_best() 69 unsigned long rate, n, k; in ccu_nk_recalc_rate() local 93 static long ccu_nk_round_rate(struct clk_hw *hw, unsigned long rate, in ccu_nk_round_rate() 116 static int ccu_nk_set_rate(struct clk_hw *hw, unsigned long rate, in ccu_nk_set_rate()
|
| /OK3568_Linux_fs/kernel/drivers/clk/tegra/ |
| H A D | clk-divider.c | 21 static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate, in get_div() 41 u64 rate = parent_rate; in clk_frac_div_recalc_rate() local 61 static long clk_frac_div_round_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_round_rate() 80 static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate, in clk_frac_div_set_rate() 121 unsigned long rate = clk_hw_get_rate(hw); in clk_divider_restore_context() local
|
| /OK3568_Linux_fs/kernel/sound/firewire/tascam/ |
| H A D | tascam-stream.c | 44 static int set_clock(struct snd_tscm *tscm, unsigned int rate, in set_clock() 97 int snd_tscm_stream_get_rate(struct snd_tscm *tscm, unsigned int *rate) in snd_tscm_stream_get_rate() 177 static int set_stream_formats(struct snd_tscm *tscm, unsigned int rate) in set_stream_formats() 281 static int keep_resources(struct snd_tscm *tscm, unsigned int rate, in keep_resources() 386 int snd_tscm_stream_reserve_duplex(struct snd_tscm *tscm, unsigned int rate, in snd_tscm_stream_reserve_duplex() 431 int snd_tscm_stream_start_duplex(struct snd_tscm *tscm, unsigned int rate) in snd_tscm_stream_start_duplex()
|
| /OK3568_Linux_fs/kernel/sound/firewire/dice/ |
| H A D | dice-stream.c | 32 int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate, in snd_dice_stream_get_rate_mode() 64 static int ensure_phase_lock(struct snd_dice *dice, unsigned int rate) in ensure_phase_lock() 169 struct fw_iso_resources *resources, unsigned int rate, in keep_resources() 210 static int keep_dual_resources(struct snd_dice *dice, unsigned int rate, in keep_dual_resources() 278 int snd_dice_stream_reserve_duplex(struct snd_dice *dice, unsigned int rate, in snd_dice_stream_reserve_duplex() 340 unsigned int rate, struct reg_params *params) in start_streams() 400 unsigned int rate; in snd_dice_stream_start_duplex() local 627 unsigned int rate; in snd_dice_stream_detect_current_formats() local
|
| /OK3568_Linux_fs/kernel/drivers/clk/rockchip/ |
| H A D | clk-cpu.c | 73 struct rockchip_cpuclk *cpuclk, unsigned long rate) in rockchip_get_cpuclk_settings() 104 const struct rockchip_cpuclk_rate_table *rate) in rockchip_cpuclk_set_dividers() 122 const struct rockchip_cpuclk_rate_table *rate) in rockchip_cpuclk_set_pre_muxs() 140 const struct rockchip_cpuclk_rate_table *rate) in rockchip_cpuclk_set_post_muxs() 161 const struct rockchip_cpuclk_rate_table *rate; in rockchip_cpuclk_pre_rate_change() local 238 const struct rockchip_cpuclk_rate_table *rate; in rockchip_cpuclk_post_rate_change() local 438 const struct rockchip_cpuclk_rate_table *rate; in rockchip_cpuclk_v2_pre_rate_change() local 461 const struct rockchip_cpuclk_rate_table *rate; in rockchip_cpuclk_v2_post_rate_change() local
|
| /OK3568_Linux_fs/kernel/drivers/clk/ |
| H A D | clk-divider.c | 219 unsigned long parent_rate, unsigned long rate, in _div_round_up() 233 unsigned long parent_rate, unsigned long rate, in _div_round_closest() 257 unsigned long parent_rate, unsigned long rate, in _div_round() 266 static bool _is_best_div(unsigned long rate, unsigned long now, in _is_best_div() 289 unsigned long rate, in clk_divider_bestdiv() 346 unsigned long rate, unsigned long *prate, in divider_round_rate_parent() 359 unsigned long rate, unsigned long *prate, in divider_ro_round_rate_parent() 380 static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, in clk_divider_round_rate() 401 int divider_get_val(unsigned long rate, unsigned long parent_rate, in divider_get_val() 418 static int clk_divider_set_rate(struct clk_hw *hw, unsigned long rate, in clk_divider_set_rate()
|
| H A D | clk-cdce925.c | 109 static void cdce925_pll_find_rate(unsigned long rate, in cdce925_pll_find_rate() 146 static long cdce925_pll_round_rate(struct clk_hw *hw, unsigned long rate, in cdce925_pll_round_rate() 155 static int cdce925_pll_set_rate(struct clk_hw *hw, unsigned long rate, in cdce925_pll_set_rate() 203 unsigned long rate = clk_get_rate(parent); in cdce925_pll_calc_range_bits() local 378 static u16 cdce925_calc_divider(unsigned long rate, in cdce925_calc_divider() 396 struct clk_hw *hw, unsigned long rate) in cdce925_clk_best_parent_rate() 438 static long cdce925_clk_round_rate(struct clk_hw *hw, unsigned long rate, in cdce925_clk_round_rate() 455 static int cdce925_clk_set_rate(struct clk_hw *hw, unsigned long rate, in cdce925_clk_set_rate() 474 static u16 cdce925_y1_calc_divider(unsigned long rate, in cdce925_y1_calc_divider() 491 static long cdce925_clk_y1_round_rate(struct clk_hw *hw, unsigned long rate, in cdce925_clk_y1_round_rate() [all …]
|
| H A D | clk-scpi.c | 36 static long scpi_clk_round_rate(struct clk_hw *hw, unsigned long rate, in scpi_clk_round_rate() 48 static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate, in scpi_clk_set_rate() 63 static long __scpi_dvfs_round_rate(struct scpi_clk *clk, unsigned long rate) in __scpi_dvfs_round_rate() 96 static long scpi_dvfs_round_rate(struct clk_hw *hw, unsigned long rate, in scpi_dvfs_round_rate() 104 static int __scpi_find_dvfs_index(struct scpi_clk *clk, unsigned long rate) in __scpi_find_dvfs_index() 115 static int scpi_dvfs_set_rate(struct clk_hw *hw, unsigned long rate, in scpi_dvfs_set_rate()
|
| /OK3568_Linux_fs/kernel/drivers/clk/qcom/ |
| H A D | clk-rcg.c | 326 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div) in calc_rate() 403 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 516 static int clk_rcg_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_set_rate() 529 static int clk_rcg_bypass_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_bypass_set_rate() 549 static int clk_rcg_bypass2_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_bypass2_set_rate() 575 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg_bypass2_set_rate_and_parent() 617 static int clk_rcg_pixel_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_pixel_set_rate() 662 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg_pixel_set_rate_and_parent() 691 static int clk_rcg_esc_set_rate(struct clk_hw *hw, unsigned long rate, in clk_rcg_esc_set_rate() 728 unsigned long rate, unsigned long parent_rate, u8 index) in clk_rcg_esc_set_rate_and_parent() [all …]
|
| H A D | clk-alpha-pll.c | 415 alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, in alpha_pll_round_rate() 443 alpha_pll_find_vco(const struct clk_alpha_pll *pll, unsigned long rate) in alpha_pll_find_vco() 537 static int __clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, in __clk_alpha_pll_set_rate() 576 static int clk_alpha_pll_set_rate(struct clk_hw *hw, unsigned long rate, in clk_alpha_pll_set_rate() 583 static int clk_alpha_pll_hwfsm_set_rate(struct clk_hw *hw, unsigned long rate, in clk_alpha_pll_hwfsm_set_rate() 590 static long clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate, in clk_alpha_pll_round_rate() 622 alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, in alpha_huayra_pll_round_rate() 658 u64 rate = parent_rate, tmp; in alpha_pll_huayra_recalc_rate() local 709 static int alpha_pll_huayra_set_rate(struct clk_hw *hw, unsigned long rate, in alpha_pll_huayra_set_rate() 752 static long alpha_pll_huayra_round_rate(struct clk_hw *hw, unsigned long rate, in alpha_pll_huayra_round_rate() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/b43/ |
| H A D | ppr.c | 28 u8 *rate; in b43_ppr_add() local 38 u8 *rate; in b43_ppr_apply_max() local 48 u8 *rate; in b43_ppr_apply_min() local 59 u8 *rate; in b43_ppr_get_max() local
|
| /OK3568_Linux_fs/kernel/drivers/clk/imx/ |
| H A D | clk-pllv3.c | 119 static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_round_rate() 128 static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_set_rate() 167 static long clk_pllv3_sys_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_sys_round_rate() 184 static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_sys_set_rate() 228 static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_av_round_rate() 260 static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_av_set_rate() 321 unsigned long parent_rate, unsigned long rate) in clk_pllv3_vf610_rate_to_mf() 357 static long clk_pllv3_vf610_round_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_vf610_round_rate() 365 static int clk_pllv3_vf610_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_vf610_set_rate()
|
| /OK3568_Linux_fs/kernel/drivers/sh/clk/ |
| H A D | core.c | 78 unsigned long rate; member 139 unsigned long rate) in clk_rate_table_round() 162 unsigned int div_max, unsigned long rate) in clk_rate_div_range_round() 182 unsigned int mult_max, unsigned long rate) in clk_rate_mult_range_round() 197 unsigned long rate) in clk_rate_table_find() 480 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 552 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 578 unsigned long rate = clkp->rate; in clks_core_resume() local
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | hbm_kern.h | 58 #define CREDIT_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20) argument 59 #define BYTES_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20) argument 60 #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate)) argument 137 static __always_inline void hbm_init_vqueue(struct hbm_vqueue *qdp, int rate) in hbm_init_vqueue() 146 int rate) in hbm_init_edt_vqueue()
|
| /OK3568_Linux_fs/kernel/drivers/memory/tegra/ |
| H A D | tegra20-emc.c | 141 unsigned long rate; member 183 unsigned long rate) in tegra_emc_find_timing() 203 static int emc_prepare_timing_change(struct tegra_emc *emc, unsigned long rate) in emc_prepare_timing_change() 285 u32 rate; in load_one_timing_from_dt() local 445 static long emc_round_rate(unsigned long rate, in emc_round_rate() 508 static bool tegra_emc_validate_rate(struct tegra_emc *emc, unsigned long rate) in tegra_emc_validate_rate() 549 static int tegra_emc_debug_min_rate_get(void *data, u64 *rate) in tegra_emc_debug_min_rate_get() 558 static int tegra_emc_debug_min_rate_set(void *data, u64 rate) in tegra_emc_debug_min_rate_set() 579 static int tegra_emc_debug_max_rate_get(void *data, u64 *rate) in tegra_emc_debug_max_rate_get() 588 static int tegra_emc_debug_max_rate_set(void *data, u64 rate) in tegra_emc_debug_max_rate_set()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_vop2_clk.c | 151 static long clk_virtual_round_rate(struct clk_hw *hw, unsigned long rate, in clk_virtual_round_rate() 162 static int clk_virtual_set_rate(struct clk_hw *hw, unsigned long rate, in clk_virtual_set_rate() 208 static int vop2_div_get_val(unsigned long rate, unsigned long parent_rate) in vop2_div_get_val() 223 unsigned long rate; in vop2_clk_div_recalc_rate() local 234 static long vop2_clk_div_round_rate(struct clk_hw *hw, unsigned long rate, in vop2_clk_div_round_rate() 254 static int vop2_clk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in vop2_clk_div_set_rate()
|
| /OK3568_Linux_fs/kernel/drivers/clk/ux500/ |
| H A D | clk-prcmu.c | 82 static long clk_prcmu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_round_rate() 89 static int clk_prcmu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_set_rate() 247 unsigned long rate, in clk_reg_prcmu() 294 unsigned long rate, in clk_reg_prcmu_scalable() 313 unsigned long rate, in clk_reg_prcmu_scalable_rate() 341 unsigned long rate, in clk_reg_prcmu_opp_volt_scalable()
|
| /OK3568_Linux_fs/kernel/sound/firewire/fireface/ |
| H A D | ff-protocol-latter.c | 73 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() 78 unsigned int rate; in parse_clock_bits() member 143 static int latter_get_clock(struct snd_ff *ff, unsigned int *rate, in latter_get_clock() 174 static int latter_allocate_resources(struct snd_ff *ff, unsigned int rate) in latter_allocate_resources() 250 static int latter_begin_session(struct snd_ff *ff, unsigned int rate) in latter_begin_session() 332 unsigned int rate; in latter_dump_status() local
|
| /OK3568_Linux_fs/kernel/sound/firewire/digi00x/ |
| H A D | digi00x-stream.c | 30 int snd_dg00x_stream_get_local_rate(struct snd_dg00x *dg00x, unsigned int *rate) in snd_dg00x_stream_get_local_rate() 51 int snd_dg00x_stream_set_local_rate(struct snd_dg00x *dg00x, unsigned int rate) in snd_dg00x_stream_set_local_rate() 103 unsigned int *rate) in snd_dg00x_stream_get_external_rate() 189 unsigned int rate) in keep_resources() 286 int snd_dg00x_stream_reserve_duplex(struct snd_dg00x *dg00x, unsigned int rate, in snd_dg00x_stream_reserve_duplex()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | sdhci-milbeaut.c | 40 #define MLB_CAL_TOCLKFREQ_MHZ(rate) (rate / MLB_SD_TOCLK_I_DIV / 1000000) argument 41 #define MLB_CAL_TOCLKFREQ_KHZ(rate) (rate / MLB_SD_TOCLK_I_DIV / 1000) argument 46 #define MLB_CAL_BCLKFREQ(rate) (rate / MLB_SD_BCLK_I_DIV / 1000000) argument 144 int rate) in sdhci_milbeaut_bridge_init() 213 int rate = clk_get_rate(priv->clk); in sdhci_milbeaut_init() local
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | mac.c | 28 mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate) in mt76_mac_process_tx_rate() 69 struct ieee80211_tx_rate *rate = info->status.rates; in mt76_mac_fill_tx_status() local 105 const struct ieee80211_tx_rate *rate, u8 *nss_val) in mt76_mac_tx_rate_val() 147 const struct ieee80211_tx_rate *rate) in mt76_mac_wcid_set_rate() 397 mt76_mac_process_rate(struct ieee80211_rx_status *status, u16 rate) in mt76_mac_process_rate() 444 u16 rate, int rssi) in mt7601u_rx_monitor_beacon() 466 u16 rate = le16_to_cpu(rxwi->rate); in mt76_mac_process_rx() local
|