Home
last modified time | relevance | path

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

12345678910>>...314

/kernel/linux/linux-5.10/arch/arm/mach-ep93xx/
Dclock.c29 unsigned long rate; member
36 int (*set_rate)(struct clk *clk, unsigned long rate);
42 static int set_keytchclk_rate(struct clk *clk, unsigned long rate);
43 static int set_div_rate(struct clk *clk, unsigned long rate);
44 static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate);
45 static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate);
48 .rate = EP93XX_EXT_CLK_RATE,
107 .rate = EP93XX_EXT_CLK_RATE,
111 .rate = EP93XX_EXT_CLK_RATE,
312 unsigned long rate = clk_get_rate(clk->parent); in get_uart_rate() local
[all …]
/kernel/linux/linux-6.6/drivers/mmc/host/
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 …]
/kernel/linux/linux-6.6/drivers/clk/rockchip/
Dclk-pll.c51 struct rockchip_clk_pll *pll, unsigned long rate) in rockchip_get_pll_settings() argument
57 if (rate == rate_table[i].rate) in rockchip_get_pll_settings()
73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
74 return rate_table[i].rate; in rockchip_pll_round_rate()
78 return rate_table[i - 1].rate; in rockchip_pll_round_rate()
140 struct rockchip_pll_rate_table *rate) in rockchip_rk3036_pll_get_params() argument
145 rate->fbdiv = ((pllcon >> RK3036_PLLCON0_FBDIV_SHIFT) in rockchip_rk3036_pll_get_params()
147 rate->postdiv1 = ((pllcon >> RK3036_PLLCON0_POSTDIV1_SHIFT) in rockchip_rk3036_pll_get_params()
151 rate->refdiv = ((pllcon >> RK3036_PLLCON1_REFDIV_SHIFT) in rockchip_rk3036_pll_get_params()
153 rate->postdiv2 = ((pllcon >> RK3036_PLLCON1_POSTDIV2_SHIFT) in rockchip_rk3036_pll_get_params()
[all …]
/kernel/linux/linux-5.10/drivers/clk/rockchip/
Dclk-pll.c51 struct rockchip_clk_pll *pll, unsigned long rate) in rockchip_get_pll_settings() argument
57 if (rate == rate_table[i].rate) in rockchip_get_pll_settings()
73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
74 return rate_table[i].rate; in rockchip_pll_round_rate()
78 return rate_table[i - 1].rate; in rockchip_pll_round_rate()
140 struct rockchip_pll_rate_table *rate) in rockchip_rk3036_pll_get_params() argument
145 rate->fbdiv = ((pllcon >> RK3036_PLLCON0_FBDIV_SHIFT) in rockchip_rk3036_pll_get_params()
147 rate->postdiv1 = ((pllcon >> RK3036_PLLCON0_POSTDIV1_SHIFT) in rockchip_rk3036_pll_get_params()
151 rate->refdiv = ((pllcon >> RK3036_PLLCON1_REFDIV_SHIFT) in rockchip_rk3036_pll_get_params()
153 rate->postdiv2 = ((pllcon >> RK3036_PLLCON1_POSTDIV2_SHIFT) in rockchip_rk3036_pll_get_params()
[all …]
/kernel/linux/linux-6.6/drivers/clk/
Dclk_test.c3 * Kunit test for clk rate management
19 unsigned long rate; member
28 return ctx->rate; in clk_dummy_recalc_rate()
34 /* Just return the same rate without modifying it */ in clk_dummy_determine_rate()
46 req->rate = req->max_rate; in clk_dummy_maximize_rate()
59 req->rate = req->min_rate; in clk_dummy_minimize_rate()
65 unsigned long rate, in clk_dummy_set_rate() argument
71 ctx->rate = rate; in clk_dummy_set_rate()
110 * clk_round_rate() or clk_set_rate() with a rate lower than
114 * behaviour to always pick up the closest rate higher than the
[all …]
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
Dccu_nm.c22 u64 rate = parent; in ccu_nm_calc_rate() local
24 rate *= n; in ccu_nm_calc_rate()
25 do_div(rate, m); in ccu_nm_calc_rate()
27 return rate; in ccu_nm_calc_rate()
30 static void ccu_nm_find_best(unsigned long parent, unsigned long rate, in ccu_nm_find_best() argument
42 if (tmp_rate > rate) in ccu_nm_find_best()
45 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nm_find_best()
82 unsigned long rate; in ccu_nm_recalc_rate() local
87 rate = ccu_frac_helper_read_rate(&nm->common, &nm->frac); in ccu_nm_recalc_rate()
90 rate /= nm->fixed_post_div; in ccu_nm_recalc_rate()
[all …]
Dccu_mp.c13 static void ccu_mp_find_best(unsigned long parent, unsigned long rate, in ccu_mp_find_best() argument
25 if (tmp_rate > rate) in ccu_mp_find_best()
28 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best()
42 unsigned long rate, in ccu_mp_find_best_with_parent_adj() argument
56 * unsigned long in rate * m * p below in ccu_mp_find_best_with_parent_adj()
59 maxdiv = min(ULONG_MAX / rate, maxdiv); in ccu_mp_find_best_with_parent_adj()
68 if (rate * div == parent_rate_saved) { in ccu_mp_find_best_with_parent_adj()
71 * rate can be divided from parent clock without in ccu_mp_find_best_with_parent_adj()
72 * needing to change parent rate, so return the in ccu_mp_find_best_with_parent_adj()
76 return rate; in ccu_mp_find_best_with_parent_adj()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Dhal_com.h21 /* Rate */
113 #define HDATA_RATE(rate)\ argument
114 (rate == DESC_RATE1M) ? "CCK_1M" : \
115 (rate == DESC_RATE2M) ? "CCK_2M" : \
116 (rate == DESC_RATE5_5M) ? "CCK5_5M" : \
117 (rate == DESC_RATE11M) ? "CCK_11M" : \
118 (rate == DESC_RATE6M) ? "OFDM_6M" : \
119 (rate == DESC_RATE9M) ? "OFDM_9M" : \
120 (rate == DESC_RATE12M) ? "OFDM_12M" : \
121 (rate == DESC_RATE18M) ? "OFDM_18M" : \
[all …]
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
Dccu_nm.c22 u64 rate = parent; in ccu_nm_calc_rate() local
24 rate *= n; in ccu_nm_calc_rate()
25 do_div(rate, m); in ccu_nm_calc_rate()
27 return rate; in ccu_nm_calc_rate()
31 unsigned long rate, struct _ccu_nm *nm) in ccu_nm_find_best() argument
42 if (ccu_is_better_rate(common, rate, tmp_rate, best_rate)) { in ccu_nm_find_best()
81 unsigned long rate; in ccu_nm_recalc_rate() local
86 rate = ccu_frac_helper_read_rate(&nm->common, &nm->frac); in ccu_nm_recalc_rate()
89 rate /= nm->fixed_post_div; in ccu_nm_recalc_rate()
91 return rate; in ccu_nm_recalc_rate()
[all …]
Dccu_mp.c13 static unsigned long ccu_mp_find_best(unsigned long parent, unsigned long rate, in ccu_mp_find_best() argument
25 if (tmp_rate > rate) in ccu_mp_find_best()
28 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best()
44 unsigned long rate, in ccu_mp_find_best_with_parent_adj() argument
58 * unsigned long in rate * m * p below in ccu_mp_find_best_with_parent_adj()
61 maxdiv = min(ULONG_MAX / rate, maxdiv); in ccu_mp_find_best_with_parent_adj()
70 if (rate * div == parent_rate_saved) { in ccu_mp_find_best_with_parent_adj()
73 * rate can be divided from parent clock without in ccu_mp_find_best_with_parent_adj()
74 * needing to change parent rate, so return the in ccu_mp_find_best_with_parent_adj()
78 return rate; in ccu_mp_find_best_with_parent_adj()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_policer.sh144 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null
145 check_fail $? "Policer rate was changed to rate lower than limit"
147 rate 2000000001 &> /dev/null
148 check_fail $? "Policer rate was changed to rate higher than limit"
150 devlink trap policer set $DEVLINK_DEV policer 1 rate 1
151 check_err $? "Failed to set policer rate to minimum"
152 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000000000
153 check_err $? "Failed to set policer rate to maximum"
155 log_test "Trap policer rate limits"
205 local rate pct drop_rate
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/
Dpolice.json17 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
20 "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
40 "$TC actions add action police rate 4Mbit burst 120k index 9"
42 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
66 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
69 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
90 …"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit inde…
93 …"matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
114 … "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
117 "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb",
[all …]
Dsample.json17 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
20 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
41 "cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2",
44 "matchPattern": "action order [0-9]+: sample rate 1/700 group 2 continue.*index 2 ref",
65 "cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",
68 "matchPattern": "action order [0-9]+: sample rate 1/10000 group 11 drop.*index 22 ref",
89 "cmdUnderTest": "$TC actions add action sample rate 20000 group 72 reclassify index 100",
92 … "matchPattern": "action order [0-9]+: sample rate 1/20000 group 72 reclassify.*index 100 ref",
113 "cmdUnderTest": "$TC actions add action sample rate 20 group 2 pipe index 100",
116 "matchPattern": "action order [0-9]+: sample rate 1/20 group 2 pipe.*index 100 ref",
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/actions/
Dpolice.json17 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
20 "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
40 "$TC actions add action police rate 4Mbit burst 120k index 9"
42 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
66 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
69 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
90 …"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit inde…
93 …"matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
114 … "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
117 "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb",
[all …]
Dsample.json17 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
20 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
41 "cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2",
44 "matchPattern": "action order [0-9]+: sample rate 1/700 group 2 continue.*index 2 ref",
65 "cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",
68 "matchPattern": "action order [0-9]+: sample rate 1/10000 group 11 drop.*index 22 ref",
89 "cmdUnderTest": "$TC actions add action sample rate 20000 group 72 reclassify index 100",
92 … "matchPattern": "action order [0-9]+: sample rate 1/20000 group 72 reclassify.*index 100 ref",
113 "cmdUnderTest": "$TC actions add action sample rate 20 group 2 pipe index 100",
116 "matchPattern": "action order [0-9]+: sample rate 1/20 group 2 pipe.*index 100 ref",
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_policer.sh144 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null
145 check_fail $? "Policer rate was changed to rate lower than limit"
147 rate 2000000001 &> /dev/null
148 check_fail $? "Policer rate was changed to rate higher than limit"
150 devlink trap policer set $DEVLINK_DEV policer 1 rate 1
151 check_err $? "Failed to set policer rate to minimum"
152 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000000000
153 check_err $? "Failed to set policer rate to maximum"
155 log_test "Trap policer rate limits"
205 local rate pct drop_rate
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c72 * rate, ht rate, prev rate, next rate
74 * If there isn't a valid next or previous rate then INV is used which
116 struct rs_rate *rate,
128 struct rs_rate *rate, in rs_ant_allow() argument
135 struct rs_rate *rate, in rs_mimo_allow() argument
157 struct rs_rate *rate, in rs_siso_allow() argument
167 struct rs_rate *rate, in rs_sgi_allow() argument
173 if (is_ht20(rate) && (ht_cap->cap & in rs_sgi_allow()
176 if (is_ht40(rate) && (ht_cap->cap & in rs_sgi_allow()
179 if (is_ht80(rate) && (vht_cap->cap & in rs_sgi_allow()
[all …]
Drs.h27 u8 prev_rs; /* previous rate used in rs algo */
28 u8 next_rs; /* next rate used in rs algo */
179 #define is_legacy(rate) is_type_legacy((rate)->type) argument
180 #define is_ht_siso(rate) is_type_ht_siso((rate)->type) argument
181 #define is_ht_mimo2(rate) is_type_ht_mimo2((rate)->type) argument
182 #define is_vht_siso(rate) is_type_vht_siso((rate)->type) argument
183 #define is_vht_mimo2(rate) is_type_vht_mimo2((rate)->type) argument
184 #define is_siso(rate) is_type_siso((rate)->type) argument
185 #define is_mimo2(rate) is_type_mimo2((rate)->type) argument
186 #define is_mimo(rate) is_type_mimo((rate)->type) argument
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c77 * rate, ht rate, prev rate, next rate
79 * If there isn't a valid next or previous rate then INV is used which
121 struct rs_rate *rate,
133 struct rs_rate *rate, in rs_ant_allow() argument
140 struct rs_rate *rate, in rs_mimo_allow() argument
162 struct rs_rate *rate, in rs_siso_allow() argument
172 struct rs_rate *rate, in rs_sgi_allow() argument
178 if (is_ht20(rate) && (ht_cap->cap & in rs_sgi_allow()
181 if (is_ht40(rate) && (ht_cap->cap & in rs_sgi_allow()
184 if (is_ht80(rate) && (vht_cap->cap & in rs_sgi_allow()
[all …]
Drs.h33 u8 prev_rs; /* previous rate used in rs algo */
34 u8 next_rs; /* next rate used in rs algo */
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
[all …]
/kernel/linux/linux-5.10/arch/c6x/platforms/
Dpll.c77 return clk->rate; in clk_get_rate()
81 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument
87 return clk->round_rate(clk, rate); in clk_round_rate()
89 return clk->rate; in clk_round_rate()
93 /* Propagate rate to children */
100 clk->rate = clk->recalc(clk); in propagate_rate()
105 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
114 ret = clk->set_rate(clk, rate); in clk_set_rate()
119 clk->rate = clk->recalc(clk); in clk_set_rate()
147 clk->rate = clk->recalc(clk); in clk_set_parent()
[all …]
/kernel/linux/linux-5.10/drivers/clk/at91/
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 = parent->rate / (qdpmc + 1)
28 * rate - rate is adjustable.
29 * clk->rate = parent->rate / (qdaudio * div))
216 static int clk_audio_pll_frac_compute_frac(unsigned long rate, in clk_audio_pll_frac_compute_frac() argument
[all …]
/kernel/linux/linux-6.6/drivers/clk/at91/
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 = parent->rate / (qdpmc + 1)
28 * rate - rate is adjustable.
29 * clk->rate = parent->rate / (qdaudio * div))
216 static int clk_audio_pll_frac_compute_frac(unsigned long rate, in clk_audio_pll_frac_compute_frac() argument
[all …]
/kernel/linux/linux-6.6/drivers/clk/actions/
Dowl-composite.c60 long rate; in owl_comp_div_determine_rate() local
62 rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_determine_rate()
63 req->rate, &req->best_parent_rate); in owl_comp_div_determine_rate()
64 if (rate < 0) in owl_comp_div_determine_rate()
65 return rate; in owl_comp_div_determine_rate()
67 req->rate = rate; in owl_comp_div_determine_rate()
76 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_recalc_rate()
80 static int owl_comp_div_set_rate(struct clk_hw *hw, unsigned long rate, in owl_comp_div_set_rate() argument
85 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_set_rate()
86 rate, parent_rate); in owl_comp_div_set_rate()
[all …]
/kernel/linux/linux-6.6/drivers/clk/samsung/
Dclk-pll.c39 struct samsung_clk_pll *pll, unsigned long rate) in samsung_get_pll_settings() argument
45 if (rate == rate_table[i].rate) in samsung_get_pll_settings()
61 if (drate >= rate_table[i].rate) in samsung_pll_round_rate()
62 return rate_table[i].rate; in samsung_pll_round_rate()
66 return rate_table[i - 1].rate; in samsung_pll_round_rate()
239 const struct samsung_pll_rate_table *rate, u32 pll_con) in samsung_pll35xx_mp_change() argument
246 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); in samsung_pll35xx_mp_change()
253 const struct samsung_pll_rate_table *rate; in samsung_pll35xx_set_rate() local
256 /* Get required rate settings from table */ in samsung_pll35xx_set_rate()
257 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate()
[all …]

12345678910>>...314