Home
last modified time | relevance | path

Searched full:rate (Results 1 – 25 of 3472) sorted by relevance

12345678910>>...139

/linux/drivers/clk/rockchip/
H A Dclk-pll.c52 struct rockchip_clk_pll *pll, unsigned long rate) in rockchip_get_pll_settings() argument
58 if (rate == rate_table[i].rate) in rockchip_get_pll_settings()
74 if (req->rate >= rate_table[i].rate) { in rockchip_pll_determine_rate()
75 req->rate = rate_table[i].rate; in rockchip_pll_determine_rate()
82 req->rate = rate_table[i - 1].rate; in rockchip_pll_determine_rate()
146 struct rockchip_pll_rate_table *rate) in rockchip_rk3036_pll_get_params() argument
196 rockchip_rk3036_pll_set_params(struct rockchip_clk_pll * pll,const struct rockchip_pll_rate_table * rate) rockchip_rk3036_pll_set_params() argument
260 const struct rockchip_pll_rate_table *rate; rockchip_rk3036_pll_set_rate() local
307 const struct rockchip_pll_rate_table *rate; rockchip_rk3036_pll_init() local
389 rockchip_rk3066_pll_get_params(struct rockchip_clk_pll * pll,struct rockchip_pll_rate_table * rate) rockchip_rk3066_pll_get_params() argument
433 rockchip_rk3066_pll_set_params(struct rockchip_clk_pll * pll,const struct rockchip_pll_rate_table * rate) rockchip_rk3066_pll_set_params() argument
495 const struct rockchip_pll_rate_table *rate; rockchip_rk3066_pll_set_rate() local
542 const struct rockchip_pll_rate_table *rate; rockchip_rk3066_pll_init() local
628 rockchip_rk3399_pll_get_params(struct rockchip_clk_pll * pll,struct rockchip_pll_rate_table * rate) rockchip_rk3399_pll_get_params() argument
680 rockchip_rk3399_pll_set_params(struct rockchip_clk_pll * pll,const struct rockchip_pll_rate_table * rate) rockchip_rk3399_pll_set_params() argument
744 const struct rockchip_pll_rate_table *rate; rockchip_rk3399_pll_set_rate() local
791 const struct rockchip_pll_rate_table *rate; rockchip_rk3399_pll_init() local
889 rockchip_rk3588_pll_get_params(struct rockchip_clk_pll * pll,struct rockchip_pll_rate_table * rate) rockchip_rk3588_pll_get_params() argument
939 rockchip_rk3588_pll_set_params(struct rockchip_clk_pll * pll,const struct rockchip_pll_rate_table * rate) rockchip_rk3588_pll_set_params() argument
1000 const struct rockchip_pll_rate_table *rate; rockchip_rk3588_pll_set_rate() local
[all...]
H A Dclk-cpu.c15 * CPU clock rate and this relation is usually specified in the hardware manual
18 * The below implementation of the CPU clock allows the rate changes of the CPU
19 * clock and the corresponding rate changes of the auxiliary clocks of the CPU
21 * for each configurable rate which is then used to program the clock hardware
22 * registers to achieve a fast co-oridinated rate change for all the CPU domain
25 * On a rate change request for the CPU clock, the rate change is propagated
29 * down in order to keep the output clock rate within the previous OPP limits.
68 struct rockchip_cpuclk *cpuclk, unsigned long rate) in rockchip_get_cpuclk_settings() argument
75 if (rate in rockchip_get_cpuclk_settings()
99 rockchip_cpuclk_set_dividers(struct rockchip_cpuclk * cpuclk,const struct rockchip_cpuclk_rate_table * rate) rockchip_cpuclk_set_dividers() argument
117 rockchip_cpuclk_set_pre_muxs(struct rockchip_cpuclk * cpuclk,const struct rockchip_cpuclk_rate_table * rate) rockchip_cpuclk_set_pre_muxs() argument
135 rockchip_cpuclk_set_post_muxs(struct rockchip_cpuclk * cpuclk,const struct rockchip_cpuclk_rate_table * rate) rockchip_cpuclk_set_post_muxs() argument
156 const struct rockchip_cpuclk_rate_table *rate; rockchip_cpuclk_pre_rate_change() local
227 const struct rockchip_cpuclk_rate_table *rate; rockchip_cpuclk_post_rate_change() local
404 const struct rockchip_cpuclk_rate_table *rate; rockchip_cpuclk_multi_pll_pre_rate_change() local
427 const struct rockchip_cpuclk_rate_table *rate; rockchip_cpuclk_multi_pll_post_rate_change() local
[all...]
/linux/drivers/mmc/host/
H A Dsdhci-of-aspeed-test.c8 int rate = 52000000; in aspeed_sdhci_phase_ddr52() local
11 aspeed_sdhci_phase_to_tap(NULL, rate, 0)); in aspeed_sdhci_phase_ddr52()
13 aspeed_sdhci_phase_to_tap(NULL, rate, 1)); in aspeed_sdhci_phase_ddr52()
15 aspeed_sdhci_phase_to_tap(NULL, rate, 2)); in aspeed_sdhci_phase_ddr52()
17 aspeed_sdhci_phase_to_tap(NULL, rate, 3)); in aspeed_sdhci_phase_ddr52()
19 aspeed_sdhci_phase_to_tap(NULL, rate, 4)); in aspeed_sdhci_phase_ddr52()
21 aspeed_sdhci_phase_to_tap(NULL, rate, 5)); in aspeed_sdhci_phase_ddr52()
23 aspeed_sdhci_phase_to_tap(NULL, rate, 23)); in aspeed_sdhci_phase_ddr52()
25 aspeed_sdhci_phase_to_tap(NULL, rate, 24)); in aspeed_sdhci_phase_ddr52()
27 aspeed_sdhci_phase_to_tap(NULL, rate, 25)); in aspeed_sdhci_phase_ddr52()
[all …]
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dmmrc.c11 * rate
17 * rate
43 * Number of attempts for each lookaround rate within at most two RC cycles
49 * Limit the number of times we try to pick a theoretically better rate to
56 * Initial and reset probability per rate in the table
59 * with no edivence and so will cause unexpected changes in the rate table
65 * rate stats
88 * The time cap on rate allocation for multiple attempts. If a single attempt
93 /* The time window for all rates in rate table */
163 /* EWMA percentage value for averaging the best rate probabilit
257 rate_update_index(struct mmrc_table * tb,struct mmrc_rate * rate) rate_update_index() argument
279 struct mmrc_rate rate; get_rate_row() local
340 calculate_bits_per_symbol(struct mmrc_rate * rate) calculate_bits_per_symbol() argument
386 get_tx_time(struct mmrc_rate * rate) get_tx_time() argument
419 mmrc_calculate_theoretical_throughput(struct mmrc_rate rate) mmrc_calculate_theoretical_throughput() argument
449 struct mmrc_rate rate = get_rate_row(tb, index); calculate_throughput() local
471 validate_rate(struct mmrc_table * tb,struct mmrc_rate * rate) validate_rate() argument
503 struct mmrc_rate rate; find_baseline_index() local
703 calculate_attempt_time(struct mmrc_rate * rate,size_t size) calculate_attempt_time() argument
719 mmrc_calculate_rate_tx_time(struct mmrc_rate * rate,size_t size) mmrc_calculate_rate_tx_time() argument
735 calculate_remaining_attempts(struct mmrc_table * tb,struct mmrc_rate_table * rate,s32 * rem_time,size_t size) calculate_remaining_attempts() argument
776 allocate_initial_attempts(struct mmrc_rate_table * rate,s32 * rem_time,size_t size) allocate_initial_attempts() argument
[all...]
/linux/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dpolice.json20 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
23 "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
46 "$TC actions add action police rate 4Mbit burst 120k index 9"
48 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
75 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
78 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
102 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3",
105 "matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
129 "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
132 "matchPattern": "action order [0-9]*: police 0x9 rate
[all...]
H A Dsample.json20 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
23 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
47 "cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2",
50 "matchPattern": "action order [0-9]+: sample rate 1/700 group 2 continue.*index 2 ref",
74 "cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",
77 "matchPattern": "action order [0-9]+: sample rate 1/10000 group 11 drop.*index 22 ref",
101 "cmdUnderTest": "$TC actions add action sample rate 20000 group 72 reclassify index 100",
104 … "matchPattern": "action order [0-9]+: sample rate 1/20000 group 72 reclassify.*index 100 ref",
128 "cmdUnderTest": "$TC actions add action sample rate 20 group 2 pipe index 100",
131 "matchPattern": "action order [0-9]+: sample rate 1/20 group 2 pipe.*index 100 ref",
[all …]
/linux/drivers/clk/
H A Dclk_test.c31 unsigned long rate; member
41 return ctx->rate; in clk_dummy_recalc_rate()
47 /* Just return the same rate without modifying it */ in clk_dummy_determine_rate()
59 req->rate = req->max_rate; in clk_dummy_maximize_rate()
72 req->rate = req->min_rate; in clk_dummy_minimize_rate()
78 unsigned long rate, in clk_dummy_set_rate() argument
84 ctx->rate = rate; in clk_dummy_set_rate()
137 * clk_round_rate() or clk_set_rate() with a rate lower than
141 * behaviour to always pick up the closest rate highe
247 unsigned long rate; clk_test_get_rate() local
268 unsigned long rate; clk_test_set_get_rate() local
293 unsigned long rate; clk_test_set_set_get_rate() local
389 unsigned long rate; clk_test_uncached_get_rate() local
413 unsigned long rate; clk_test_uncached_set_range() local
442 unsigned long rate; clk_test_uncached_updated_rate_set_range() local
574 unsigned long rate; clk_test_multiple_parents_mux_set_range_set_parent_get_rate() local
747 unsigned long parent_rate, rate; clk_test_orphan_transparent_multiple_parent_mux_set_parent_get_rate() local
812 unsigned long rate; clk_test_orphan_transparent_multiple_parent_mux_set_parent_set_range_modified() local
881 long rate; clk_test_orphan_transparent_multiple_parent_mux_set_range_round_rate() local
911 unsigned long rate; clk_test_orphan_transparent_multiple_parent_mux_set_range_set_parent_get_rate() local
1112 long rate; clk_test_single_parent_mux_set_range_round_rate_parent_only() local
1142 long rate; clk_test_single_parent_mux_set_range_round_rate_child_smaller() local
1180 long rate; clk_test_single_parent_mux_set_range_round_rate_parent_smaller() local
1278 unsigned long rate, new_rate; clk_test_orphan_transparent_parent_mux_set_range() local
1382 unsigned long rate; clk_orphan_two_level_root_last_test_get_rate() local
1404 unsigned long rate; clk_orphan_two_level_root_last_test_set_range() local
1456 unsigned long rate; clk_range_test_set_range() local
1528 long rate; clk_range_test_set_range_round_rate_lower() local
1553 unsigned long rate; clk_range_test_set_range_set_rate_lower() local
1613 long rate; clk_range_test_set_range_round_rate_higher() local
1638 unsigned long rate; clk_range_test_set_range_set_rate_higher() local
1702 unsigned long rate; clk_range_test_set_range_get_rate_raised() local
1734 unsigned long rate; clk_range_test_set_range_get_rate_lowered() local
1794 unsigned long rate; clk_range_test_set_range_rate_maximized() local
1847 unsigned long rate; clk_range_test_multiple_set_range_rate_maximized() local
1906 unsigned long rate; clk_range_test_multiple_set_range_rate_put_maximized() local
1982 unsigned long rate; clk_range_test_set_range_rate_minimized() local
2035 unsigned long rate; clk_range_test_multiple_set_range_rate_minimized() local
2090 unsigned long rate; clk_range_test_multiple_set_range_rate_put_minimized() local
2314 unsigned long rate; KUNIT_ARRAY_PARAM() local
2607 unsigned long rate; clk_mux_no_reparent_set_rate() local
3137 clk_assigned_rates_register_clk(struct kunit * test,struct clk_dummy_context * ctx,struct device_node * np,const char * name,unsigned long rate,const struct clk_spread_spectrum * sscs) clk_assigned_rates_register_clk() argument
[all...]
H A Dclk-vt8500.c137 if (req->rate == 0) in vt8500_dclk_determine_rate()
140 divisor = req->best_parent_rate / req->rate; in vt8500_dclk_determine_rate()
142 /* If prate / rate would be decimal, incr the divisor */ in vt8500_dclk_determine_rate()
143 if (req->rate * divisor < req->best_parent_rate) in vt8500_dclk_determine_rate()
153 req->rate = req->best_parent_rate / divisor; in vt8500_dclk_determine_rate()
158 static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate, in vt8500_dclk_set_rate() argument
165 if (rate == 0) in vt8500_dclk_set_rate()
168 divisor = parent_rate / rate; in vt8500_dclk_set_rate()
351 static int vt8500_find_pll_bits(unsigned long rate, unsigned long parent_rate, in vt8500_find_pll_bits() argument
357 if ((rate < parent_rat in vt8500_find_pll_bits()
390 wm8650_find_pll_bits(unsigned long rate,unsigned long parent_rate,u32 * multiplier,u32 * divisor1,u32 * divisor2) wm8650_find_pll_bits() argument
453 wm8750_find_pll_bits(unsigned long rate,unsigned long parent_rate,u32 * filter,u32 * multiplier,u32 * divisor1,u32 * divisor2) wm8750_find_pll_bits() argument
501 wm8850_find_pll_bits(unsigned long rate,unsigned long parent_rate,u32 * multiplier,u32 * divisor1,u32 * divisor2) wm8850_find_pll_bits() argument
547 vtwm_pll_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) vtwm_pll_set_rate() argument
[all...]
H A Dclk-fractional-divider_test.c14 * requested rate.
19 unsigned long rate, parent_rate, parent_rate_before, m, n, max_n; in clk_fd_test_approximation_max_denominator() local
28 rate = 240000000; in clk_fd_test_approximation_max_denominator()
29 parent_rate = (max_n + 1) * rate; /* so that it exceeds the maximum divisor */ in clk_fd_test_approximation_max_denominator()
32 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_denominator()
43 * requested rate.
48 unsigned long rate, parent_rate, parent_rate_before, m, n, max_m; in clk_fd_test_approximation_max_numerator() local
57 rate = 240000000; in clk_fd_test_approximation_max_numerator()
58 parent_rate = rate / (max_m + 1); /* so that it exceeds the maximum numerator */ in clk_fd_test_approximation_max_numerator()
61 clk_fractional_divider_general_approximation(&fd->hw, rate, &parent_rate, &m, &n); in clk_fd_test_approximation_max_numerator()
[all …]
/linux/drivers/clk/at91/
H A Dclk-audio-pll.c10 * (FRAC). FRAC can output between 620 and 700MHz and only multiply the rate of
11 * its own parent. PMC and PAD can then divide the FRAC rate to best match the
12 * asked rate.
16 * rate - rate is adjustable.
17 * clk->rate = parent->rate * ((nd + 1) + (fracr / 2^22))
22 * rate - rate is adjustable.
23 * clk->rate
216 clk_audio_pll_frac_compute_frac(unsigned long rate,unsigned long parent_rate,unsigned long * nd,unsigned long * fracr) clk_audio_pll_frac_compute_frac() argument
368 clk_audio_pll_frac_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_audio_pll_frac_set_rate() argument
391 clk_audio_pll_pad_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_audio_pll_pad_set_rate() argument
415 clk_audio_pll_pmc_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_audio_pll_pmc_set_rate() argument
[all...]
/linux/drivers/clk/samsung/
H A Dclk-pll.c37 struct samsung_clk_pll *pll, unsigned long rate) in samsung_get_pll_settings() argument
43 if (rate == rate_table[i].rate) in samsung_get_pll_settings()
59 if (req->rate >= rate_table[i].rate) { in samsung_pll_determine_rate()
60 req->rate = rate_table[i].rate; in samsung_pll_determine_rate()
67 req->rate = rate_table[i - 1].rate; in samsung_pll_determine_rate()
231 const struct samsung_pll_rate_table *rate, u3 in samsung_pll35xx_mp_change() argument
248 const struct samsung_pll_rate_table *rate; samsung_pll35xx_set_rate() local
352 samsung_pll36xx_mpk_change(const struct samsung_pll_rate_table * rate,u32 pll_con0,u32 pll_con1) samsung_pll36xx_mpk_change() argument
369 const struct samsung_pll_rate_table *rate; samsung_pll36xx_set_rate() local
476 const struct samsung_pll_rate_table *rate; samsung_pll0822x_set_rate() local
570 const struct samsung_pll_rate_table *rate; samsung_pll0831x_set_rate() local
665 samsung_pll45xx_mp_change(u32 pll_con0,u32 pll_con1,const struct samsung_pll_rate_table * rate) samsung_pll45xx_mp_change() argument
681 const struct samsung_pll_rate_table *rate; samsung_pll45xx_set_rate() local
802 samsung_pll46xx_mpk_change(u32 pll_con0,u32 pll_con1,const struct samsung_pll_rate_table * rate) samsung_pll46xx_mpk_change() argument
818 const struct samsung_pll_rate_table *rate; samsung_pll46xx_set_rate() local
1056 const struct samsung_pll_rate_table *rate; samsung_pll2550xx_set_rate() local
1151 const struct samsung_pll_rate_table *rate; samsung_pll2650x_set_rate() local
1243 const struct samsung_pll_rate_table *rate; samsung_pll2650xx_set_rate() local
1370 samsung_pll1031x_mpk_change(u32 pll_con0,u32 pll_con3,const struct samsung_pll_rate_table * rate) samsung_pll1031x_mpk_change() argument
1386 const struct samsung_pll_rate_table *rate; samsung_pll1031x_set_rate() local
1494 samsung_a9fraco_mpk_change(u32 pll_con0,u32 pll_con5,const struct samsung_pll_rate_table * rate) samsung_a9fraco_mpk_change() argument
1508 const struct samsung_pll_rate_table *rate; samsung_a9fraco_set_rate() local
[all...]
/linux/drivers/clk/qcom/
H A Dclk-rcg2.c166 * calc_rate() - Calculate rate based on m/n:d values
168 * @rate: Parent rate.
175 * Return calculated rate according to formula:
178 * rate = ----------- x ---
182 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) in calc_rate() argument
185 rate = mult_frac(rate, 2, hid_div + 1); in calc_rate()
188 rate = mult_frac(rate, in calc_rate()
233 unsigned long clk_flags, rate = req->rate; _freq_tbl_determine_rate() local
294 unsigned long parent_rate, rate; __clk_rcg2_select_conf() local
346 unsigned long clk_flags, rate = req->rate; _freq_tbl_fm_determine_rate() local
434 clk_rcg2_calc_mnd(u64 parent_rate,u64 rate,struct freq_tbl * f,unsigned int mnd_max,unsigned int pre_div_max) clk_rcg2_calc_mnd() argument
620 __clk_rcg2_set_rate(struct clk_hw * hw,unsigned long rate,enum freq_policy policy) __clk_rcg2_set_rate() argument
643 __clk_rcg2_fm_set_rate(struct clk_hw * hw,unsigned long rate) __clk_rcg2_fm_set_rate() argument
667 clk_rcg2_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_set_rate() argument
673 clk_rcg2_set_gp_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_set_gp_rate() argument
689 clk_rcg2_set_floor_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_set_floor_rate() argument
695 clk_rcg2_fm_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_fm_set_rate() argument
702 clk_rcg2_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_rcg2_set_rate_and_parent() argument
708 clk_rcg2_set_floor_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_rcg2_set_floor_rate_and_parent() argument
714 clk_rcg2_fm_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_rcg2_fm_set_rate_and_parent() argument
886 clk_edp_pixel_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_edp_pixel_set_rate() argument
926 clk_edp_pixel_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_edp_pixel_set_rate_and_parent() argument
1010 clk_byte_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_byte_set_rate() argument
1027 clk_byte_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_byte_set_rate_and_parent() argument
1051 unsigned long rate = req->rate; clk_byte2_determine_rate() local
1067 clk_byte2_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_byte2_set_rate() argument
1097 clk_byte2_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_byte2_set_rate_and_parent() argument
1148 clk_pixel_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_pixel_set_rate() argument
1190 clk_pixel_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_pixel_set_rate_and_parent() argument
1280 clk_gfx3d_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_gfx3d_set_rate_and_parent() argument
1300 clk_gfx3d_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_gfx3d_set_rate() argument
1370 __clk_rcg2_shared_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,enum freq_policy policy) __clk_rcg2_shared_set_rate() argument
1399 clk_rcg2_shared_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_shared_set_rate() argument
1406 clk_rcg2_shared_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_rcg2_shared_set_rate_and_parent() argument
1411 clk_rcg2_shared_set_floor_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_shared_set_floor_rate() argument
1418 clk_rcg2_shared_set_floor_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_rcg2_shared_set_floor_rate_and_parent() argument
1780 clk_rcg2_dp_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rcg2_dp_set_rate() argument
1825 clk_rcg2_dp_set_rate_and_parent(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate,u8 index) clk_rcg2_dp_set_rate_and_parent() argument
[all...]
/linux/net/wireless/
H A Dutil.c1418 static u32 cfg80211_calculate_bitrate_ht(struct rate_info *rate) in cfg80211_calculate_bitrate_dmg()
1423 if (WARN_ON_ONCE(rate->mcs >= 32)) in cfg80211_calculate_bitrate_dmg()
1426 modulation = rate->mcs & 7; in cfg80211_calculate_bitrate_dmg()
1427 streams = (rate->mcs >> 3) + 1; in cfg80211_calculate_bitrate_dmg()
1429 bitrate = (rate->bw == RATE_INFO_BW_40) ? 13500000 : 6500000; in cfg80211_calculate_bitrate_dmg()
1440 if (rate->flags & RATE_INFO_FLAGS_SHORT_GI) in cfg80211_calculate_bitrate_dmg()
1447 static u32 cfg80211_calculate_bitrate_dmg(struct rate_info *rate) in cfg80211_calculate_bitrate_dmg()
1488 if (WARN_ON_ONCE(rate->mcs >= ARRAY_SIZE(__mcs2bitrate))) in cfg80211_calculate_bitrate_edmg()
1491 return __mcs2bitrate[rate->mcs]; in cfg80211_calculate_bitrate_edmg()
1494 static u32 cfg80211_calculate_bitrate_extended_sc_dmg(struct rate_info *rate) in cfg80211_calculate_bitrate_edmg()
1377 cfg80211_calculate_bitrate_ht(struct rate_info * rate) cfg80211_calculate_bitrate_ht() argument
1406 cfg80211_calculate_bitrate_dmg(struct rate_info * rate) cfg80211_calculate_bitrate_dmg() argument
1453 cfg80211_calculate_bitrate_extended_sc_dmg(struct rate_info * rate) cfg80211_calculate_bitrate_extended_sc_dmg() argument
1472 cfg80211_calculate_bitrate_edmg(struct rate_info * rate) cfg80211_calculate_bitrate_edmg() argument
1506 cfg80211_calculate_bitrate_vht(struct rate_info * rate) cfg80211_calculate_bitrate_vht() argument
1601 cfg80211_calculate_bitrate_he(struct rate_info * rate) cfg80211_calculate_bitrate_he() argument
1688 _cfg80211_calculate_bitrate_eht_uhr(struct rate_info * rate) _cfg80211_calculate_bitrate_eht_uhr() argument
1830 cfg80211_calculate_bitrate_eht(struct rate_info * rate) cfg80211_calculate_bitrate_eht() argument
1843 cfg80211_calculate_bitrate_uhr(struct rate_info * rate) cfg80211_calculate_bitrate_uhr() argument
1874 cfg80211_calculate_bitrate_s1g(struct rate_info * rate) cfg80211_calculate_bitrate_s1g() argument
1982 cfg80211_calculate_bitrate(struct rate_info * rate) cfg80211_calculate_bitrate() argument
2725 int rate = (rates[i] & 0x7f) * 5; ieee80211_get_ratemask() local
[all...]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Drc.c9 *Finds the highest rate index we can use
11 *it to lowest rate CCK_1M, otherwise we set rate to
12 *highest rate based on wireless mode used for iwconfig
13 *show Tx rate.
24 struct ieee80211_tx_rate rate; in _rtl_rc_get_highest_rix() local
42 *this rate is no use for true rate, firmware in _rtl_rc_get_highest_rix()
43 *will control rate at all it just used for in _rtl_rc_get_highest_rix()
45 *2.in rtl_get_tcb_desc when we check rate is in _rtl_rc_get_highest_rix()
46 * 1M we will not use FW rate but user rate. in _rtl_rc_get_highest_rix()
70 ieee80211_rate_set_vht(&rate, in _rtl_rc_get_highest_rix()
[all …]
/linux/drivers/clk/tegra/
H A Dclk-tegra124-emc.c66 unsigned long rate, parent_rate; member
101 * so get the parent rate explicitly. in emc_recalc_rate()
112 * Rounds up unless no higher rate exists, in which case down. This way is
113 * safer since things have EMC rate floors. Also don't touch parent_rate
138 if (timing->rate < req->rate && i != t - 1) in emc_determine_rate()
141 if (timing->rate > req->max_rate) { in emc_determine_rate()
143 req->rate = tegra->timings[i - 1].rate; in emc_determine_rate()
147 if (timing->rate < re in emc_determine_rate()
321 emc_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) emc_set_rate() argument
[all...]
/linux/tools/testing/selftests/drivers/net/hw/
H A Ddevlink_rate_cross_esw.py5 Devlink Rate Cross-eswitch Scheduling Test Suite
8 Control-plane tests for cross-eswitch TX scheduling via devlink-rate.
10 rate groups using the cross-device parent-dev attribute.
24 - cross-esw rate scheduling returns EOPNOTSUPP.
107 # --- Rate operation helpers ---
111 """Creates rate node."""
115 "rate-node-name": node_name,
127 """Gets rate node."""
131 "rate-node-name": node_name,
137 """Gets rate leaf (VF)."""
[all …]
/linux/drivers/clk/ti/
H A Dclkt_dpll.c25 /* DPLL rate rounding: minimum DPLL multiplier, divider values */
33 * Scale factor to mitigate roundoff errors in DPLL rate rounding.
35 * but the closer the rounded rate to the target rate. DPLL_SCALE_FACTOR
124 * @new_rate: pointer to storage for the resulting rounded rate
125 * @target_rate: the desired DPLL rate
126 * @parent_rate: the DPLL's parent clock rate
129 * resulting rate will not be higher than the target_rate, and that
152 * The new rate must be <= the target rate to avoid programming in _dpll_test_mult()
153 * a rate that is impossible for the hardware to handle in _dpll_test_mult()
225 * omap2_get_dpll_rate - returns the current DPLL CLKOUT rate
[all …]
H A Ddpll44xx.c34 /* Static rate multiplier for OMAP4 REGM4XEN clocks */
104 * omap4_dpll_regm4xen_recalc - compute DPLL rate, considering REGM4XEN bit
105 * @hw: pointer to the clock to compute the rate for
106 * @parent_rate: clock rate of the DPLL parent
108 * Compute the output rate for the OMAP4 DPLL represented by @clk.
110 * OMAP4 ABE DPLL. Returns the DPLL's output rate (before M-dividers)
118 unsigned long rate; in omap4_dpll_regm4xen_recalc() local
126 rate = omap2_get_dpll_rate(clk); in omap4_dpll_regm4xen_recalc()
131 rate *= OMAP4430_REGM4XEN_MULT; in omap4_dpll_regm4xen_recalc()
133 return rate; in omap4_dpll_regm4xen_recalc()
[all …]
/linux/drivers/clk/imx/
H A Dclk-pll14xx.c109 struct clk_pll14xx *pll, unsigned long rate)
115 if (rate == rate_table[i].rate) in pll14xx_calc_rate()
136 unsigned long rate, unsigned long prate) in imx_pll14xx_calc_settings()
140 /* calc kdiv = round(rate * pdiv * 65536 * 2^sdiv / prate) - (mdiv * 65536) */ in imx_pll14xx_calc_settings()
141 kdiv = ((rate * ((pdiv * 65536) << sdiv) + prate / 2) / prate) - (mdiv * 65536); in imx_pll14xx_calc_settings()
146 static void imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rate, in imx_pll14xx_calc_settings()
167 /* First try if we can get the desired rate from one of the static entries */ in imx_pll14xx_calc_settings()
168 tt = imx_get_pll_settings(pll, rate); in imx_pll14xx_calc_settings()
171 clk_hw_get_name(&pll->hw), prate, rate); in imx_pll14xx_calc_settings()
98 imx_get_pll_settings(struct clk_pll14xx * pll,unsigned long rate) imx_get_pll_settings() argument
125 pll1443x_calc_kdiv(int mdiv,int pdiv,int sdiv,unsigned long rate,unsigned long prate) pll1443x_calc_kdiv() argument
135 imx_pll14xx_calc_settings(struct clk_pll14xx * pll,unsigned long rate,unsigned long prate,struct imx_pll14xx_rate_table * t) imx_pll14xx_calc_settings() argument
284 clk_pll14xx_mp_change(const struct imx_pll14xx_rate_table * rate,u32 pll_div) clk_pll14xx_mp_change() argument
307 const struct imx_pll14xx_rate_table *rate; clk_pll1416x_set_rate() local
373 struct imx_pll14xx_rate_table rate; clk_pll1443x_set_rate() local
[all...]
H A Dclk-pllv3.c40 * @ref_clock: reference clock rate
125 req->rate = (req->rate >= parent_rate * 22) ? parent_rate * 22 : parent_rate * 20; in clk_pllv3_determine_rate()
130 static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate, in clk_pllv3_set_rate() argument
136 if (rate == parent_rate * 22) in clk_pllv3_set_rate()
138 else if (rate == parent_rate * 20) in clk_pllv3_set_rate()
177 if (req->rate > max_rate) in clk_pllv3_sys_determine_rate()
178 req->rate = max_rate; in clk_pllv3_sys_determine_rate()
179 else if (req->rate < min_rate) in clk_pllv3_sys_determine_rate()
180 req->rate in clk_pllv3_sys_determine_rate()
188 clk_pllv3_sys_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_pllv3_sys_set_rate() argument
266 clk_pllv3_av_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_pllv3_av_set_rate() argument
327 clk_pllv3_vf610_rate_to_mf(unsigned long parent_rate,unsigned long rate) clk_pllv3_vf610_rate_to_mf() argument
374 clk_pllv3_vf610_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_pllv3_vf610_set_rate() argument
[all...]
/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-control.c75 unsigned int mt8186_general_rate_transform(struct device *dev, unsigned int rate) in mt8186_general_rate_transform() argument
77 switch (rate) { in mt8186_general_rate_transform()
111 dev_err(dev, "%s(), rate %u invalid, use %d!!!\n", in mt8186_general_rate_transform()
112 __func__, rate, MTK_AFE_RATE_48K); in mt8186_general_rate_transform()
118 static unsigned int tdm_rate_transform(struct device *dev, unsigned int rate) in tdm_rate_transform() argument
120 switch (rate) { in tdm_rate_transform()
158 dev_err(dev, "%s(), rate %u invalid, use %d!!!\n", in tdm_rate_transform()
159 __func__, rate, MTK_AFE_TDM_RATE_48K); in tdm_rate_transform()
165 static unsigned int pcm_rate_transform(struct device *dev, unsigned int rate) in pcm_rate_transform() argument
167 switch (rate) { in pcm_rate_transform()
[all …]
/linux/arch/arm/mach-omap2/
H A Dclkt2xxx_virt_prcm_set.c16 * code. However, some notion of "rate set" is probably still necessary
17 * for OMAP2xxx at least. Rate sets should be generalized so they can be
19 * has in the past expressed a preference to use rate sets for OPP changes,
48 * sys_ck_rate: the rate of the external high-frequency clock
58 * Set virt_prcm_set's rate to the mpu_speed field of the current PRCM set.
67 * Look for a rate equal or less than the target rate given a configuration set.
90 if (ptr->mpu_speed <= req->rate) in omap2_determine_rate_to_table()
93 req->rate = highest_rate; in omap2_determine_rate_to_table()
98 /* Sets basic clocks based on the specified rate */
99 static int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate, in omap2_select_table_rate() argument
[all …]
/linux/net/mac80211/
H A Drc80211_minstrel_ht.c16 #include "rate.h"
58 /* MCS rate information for an MCS group */
204 * To enable sufficiently targeted rate sampling, MCS rates are divided into
328 * Look up an MCS group index based on mac80211 rate information
331 minstrel_ht_get_group_idx(struct ieee80211_tx_rate *rate) in minstrel_ht_get_group_idx() argument
333 return GROUP_IDX((rate->idx / 8) + 1, in minstrel_ht_get_group_idx()
334 !!(rate->flags & IEEE80211_TX_RC_SHORT_GI), in minstrel_ht_get_group_idx()
335 !!(rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)); in minstrel_ht_get_group_idx()
342 minstrel_ht_ri_get_group_idx(struct rate_info *rate) in minstrel_ht_ri_get_group_idx() argument
344 return GROUP_IDX((rate->mcs / 8) + 1, in minstrel_ht_ri_get_group_idx()
[all …]
/linux/arch/arm/mach-omap1/
H A Dclock.h40 #define CK_1710 (1 << 4) /* 1710 extra for rate selection */
66 * @rate: current clock rate
68 * @recalc: fn ptr that returns the clock's current rate
69 * @set_rate: fn ptr that can change the clock's current rate
70 * @round_rate: fn ptr that can round the clock's current rate
73 * @fixed_div: when > 0, this clock's rate is its parent's rate / @fixed_div
75 * @rate_offset: bitshift for rate selection bitfield (OMAP1 only)
80 unsigned long rate; member
82 unsigned long (*recalc)(struct omap1_clk *clk, unsigned long rate);
83 int (*set_rate)(struct omap1_clk *clk, unsigned long rate,
[all …]
/linux/drivers/clk/actions/
H A Dowl-factor.c44 unsigned long rate, unsigned long parent_rate) in _get_table_val() argument
54 if ((unsigned long)calc_rate <= rate) { in _get_table_val()
67 struct clk_hw *hw, unsigned long rate, in owl_clk_val_best() argument
75 if (!rate) in owl_clk_val_best()
76 rate = 1; in owl_clk_val_best()
80 bestval = _get_table_val(clkt, rate, parent_rate); in owl_clk_val_best()
85 try_parent_rate = rate * clkt->div / clkt->mul; in owl_clk_val_best()
92 * It's the most ideal case if the requested rate can be in owl_clk_val_best()
94 * parent rate, so return the divider immediately. in owl_clk_val_best()
103 if (cur_rate <= rate && cur_rate > best) { in owl_clk_val_best()
[all …]

12345678910>>...139