| /kernel/linux/linux-4.19/arch/unicore32/kernel/ |
| D | clock.c | 32 unsigned long rate; member 38 .rate = CLOCK_TICK_RATE, 95 return clk->rate; in clk_get_rate() 100 unsigned long rate; member 104 {.rate = 25175000, .cfg = 0x00002001, .div = 0x9}, 105 {.rate = 31500000, .cfg = 0x00002001, .div = 0x7}, 106 {.rate = 40000000, .cfg = 0x00003801, .div = 0x9}, 107 {.rate = 49500000, .cfg = 0x00003801, .div = 0x7}, 108 {.rate = 65000000, .cfg = 0x00002c01, .div = 0x4}, 109 {.rate = 78750000, .cfg = 0x00002400, .div = 0x7}, [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-ep93xx/ |
| D | clock.c | 32 unsigned long rate; member 39 int (*set_rate)(struct clk *clk, unsigned long rate); 45 static int set_keytchclk_rate(struct clk *clk, unsigned long rate); 46 static int set_div_rate(struct clk *clk, unsigned long rate); 47 static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate); 48 static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate); 51 .rate = EP93XX_EXT_CLK_RATE, 110 .rate = EP93XX_EXT_CLK_RATE, 114 .rate = EP93XX_EXT_CLK_RATE, 315 unsigned long rate = clk_get_rate(clk->parent); in get_uart_rate() local [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-ep93xx/ |
| D | clock.c | 29 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-4.19/drivers/clk/rockchip/ |
| D | clk-pll.c | 59 struct rockchip_clk_pll *pll, unsigned long rate) in rockchip_get_pll_settings() argument 65 if (rate == rate_table[i].rate) in rockchip_get_pll_settings() 81 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate() 82 return rate_table[i].rate; in rockchip_pll_round_rate() 86 return rate_table[i - 1].rate; in rockchip_pll_round_rate() 138 struct rockchip_pll_rate_table *rate) in rockchip_rk3036_pll_get_params() argument 143 rate->fbdiv = ((pllcon >> RK3036_PLLCON0_FBDIV_SHIFT) in rockchip_rk3036_pll_get_params() 145 rate->postdiv1 = ((pllcon >> RK3036_PLLCON0_POSTDIV1_SHIFT) in rockchip_rk3036_pll_get_params() 149 rate->refdiv = ((pllcon >> RK3036_PLLCON1_REFDIV_SHIFT) in rockchip_rk3036_pll_get_params() 151 rate->postdiv2 = ((pllcon >> RK3036_PLLCON1_POSTDIV2_SHIFT) in rockchip_rk3036_pll_get_params() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/rockchip/ |
| D | clk-pll.c | 51 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/sunxi-ng/ |
| D | ccu_nm.c | 22 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 …]
|
| D | ccu_mp.c | 13 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/ |
| D | hal_com.h | 21 /* 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-4.19/drivers/staging/rtl8723bs/include/ |
| D | hal_com.h | 21 /* 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-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| D | police.json | 17 "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 …]
|
| D | sample.json | 17 "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-4.19/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| D | police.json | 17 "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 …]
|
| D | sample.json | 17 "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-4.19/drivers/clk/sunxi-ng/ |
| D | ccu_nm.c | 25 u64 rate = parent; in ccu_nm_calc_rate() local 27 rate *= n; in ccu_nm_calc_rate() 28 do_div(rate, m); in ccu_nm_calc_rate() 30 return rate; in ccu_nm_calc_rate() 33 static void ccu_nm_find_best(unsigned long parent, unsigned long rate, in ccu_nm_find_best() argument 45 if (tmp_rate > rate) in ccu_nm_find_best() 48 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_nm_find_best() 85 unsigned long rate; in ccu_nm_recalc_rate() local 90 rate = ccu_frac_helper_read_rate(&nm->common, &nm->frac); in ccu_nm_recalc_rate() 93 rate /= nm->fixed_post_div; in ccu_nm_recalc_rate() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | devlink_trap_policer.sh | 144 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-4.19/drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | rs.c | 89 * rate, ht rate, prev rate, next rate 91 * If there isn't a valid next or previous rate then INV is used which 133 struct rs_rate *rate, 145 struct rs_rate *rate, in rs_ant_allow() argument 152 struct rs_rate *rate, in rs_mimo_allow() argument 174 struct rs_rate *rate, in rs_siso_allow() argument 184 struct rs_rate *rate, in rs_sgi_allow() argument 190 if (is_ht20(rate) && (ht_cap->cap & in rs_sgi_allow() 193 if (is_ht40(rate) && (ht_cap->cap & in rs_sgi_allow() 196 if (is_ht80(rate) && (vht_cap->cap & in rs_sgi_allow() [all …]
|
| D | rs.h | 44 u8 prev_rs; /* previous rate used in rs algo */ 45 u8 next_rs; /* next rate used in rs algo */ 206 #define is_legacy(rate) is_type_legacy((rate)->type) argument 207 #define is_ht_siso(rate) is_type_ht_siso((rate)->type) argument 208 #define is_ht_mimo2(rate) is_type_ht_mimo2((rate)->type) argument 209 #define is_vht_siso(rate) is_type_vht_siso((rate)->type) argument 210 #define is_vht_mimo2(rate) is_type_vht_mimo2((rate)->type) argument 211 #define is_siso(rate) is_type_siso((rate)->type) argument 212 #define is_mimo2(rate) is_type_mimo2((rate)->type) argument 213 #define is_mimo(rate) is_type_mimo((rate)->type) argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | rs.c | 77 * 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 …]
|
| D | rs.h | 33 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/ |
| D | pll.c | 77 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-4.19/arch/c6x/platforms/ |
| D | pll.c | 81 return clk->rate; in clk_get_rate() 85 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument 91 return clk->round_rate(clk, rate); in clk_round_rate() 93 return clk->rate; in clk_round_rate() 97 /* Propagate rate to children */ 104 clk->rate = clk->recalc(clk); in propagate_rate() 109 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 118 ret = clk->set_rate(clk, rate); in clk_set_rate() 123 clk->rate = clk->recalc(clk); in clk_set_rate() 151 clk->rate = clk->recalc(clk); in clk_set_parent() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/at91/ |
| D | clk-audio-pll.c | 10 * (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-4.19/drivers/clk/at91/ |
| D | clk-audio-pll.c | 14 * (FRAC). FRAC can output between 620 and 700MHz and only multiply the rate of 15 * its own parent. PMC and PAD can then divide the FRAC rate to best match the 16 * asked rate. 20 * rate - rate is adjustable. 21 * clk->rate = parent->rate * ((nd + 1) + (fracr / 2^22)) 26 * rate - rate is adjustable. 27 * clk->rate = parent->rate / (qdpmc + 1) 32 * rate - rate is adjustable. 33 * clk->rate = parent->rate / (qdaudio * div)) 219 static int clk_audio_pll_frac_compute_frac(unsigned long rate, in clk_audio_pll_frac_compute_frac() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/qcom/ |
| D | clk-rcg2.c | 126 * Calculate m/n:d rate 129 * rate = ----------- x --- 133 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) in calc_rate() argument 136 rate *= 2; in calc_rate() 137 rate /= hid_div + 1; in calc_rate() 141 u64 tmp = rate; in calc_rate() 144 rate = tmp; in calc_rate() 147 return rate; in calc_rate() 181 unsigned long clk_flags, rate = req->rate; in _freq_tbl_determine_rate() local 188 f = qcom_find_freq_floor(f, rate); in _freq_tbl_determine_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/imx/ |
| D | clk-scu.c | 33 * struct imx_sc_msg_req_set_clock_rate - clock set rate protocol 35 * @rate: rate to set 36 * @resource: clock resource to set rate 39 * This structure describes the SCU protocol of clock rate set 43 __le32 rate; member 54 __le32 rate; member 58 * struct imx_sc_msg_get_clock_rate - clock get rate protocol 60 * @req: get rate request protocol 61 * @resp: get rate response protocol 63 * This structure describes the SCU protocol of clock rate get [all …]
|