/drivers/clk/ |
D | clk-nspire.c | 17 #define MHZ (1000 * 1000) macro 48 clk->base_clock = 48 * MHZ; in nspire_clkinfo_cx() 50 clk->base_clock = 6 * EXTRACT(val, CX_BASE) * MHZ; in nspire_clkinfo_cx() 59 clk->base_clock = 27 * MHZ; in nspire_clkinfo_classic() 61 clk->base_clock = (300 - 6 * EXTRACT(val, CLASSIC_BASE)) * MHZ; in nspire_clkinfo_classic() 136 info.base_clock / MHZ, in nspire_clk_setup() 137 info.base_clock / info.base_cpu_ratio / MHZ, in nspire_clk_setup() 138 info.base_clock / info.base_ahb_ratio / MHZ); in nspire_clk_setup()
|
/drivers/net/can/softing/ |
D | softing_cs.c | 37 #define MHZ (1000*1000) macro 44 .freq = 16 * MHZ, .max_brp = 32, .max_sjw = 4, 56 .freq = 16 * MHZ, .max_brp = 32, .max_sjw = 4, 68 .freq = 20 * MHZ, .max_brp = 32, .max_sjw = 4, 80 .freq = 24 * MHZ, .max_brp = 64, .max_sjw = 4, 92 .freq = 16 * MHZ, .max_brp = 64, .max_sjw = 4, 104 .freq = 20 * MHZ, .max_brp = 32, .max_sjw = 4, 116 .freq = 24 * MHZ, .max_brp = 64, .max_sjw = 4, 128 .freq = 16 * MHZ, .max_brp = 64, .max_sjw = 4, 140 .freq = 24 * MHZ, .max_brp = 64, .max_sjw = 4,
|
/drivers/clk/mediatek/ |
D | clk-mt2701.c | 38 108 * MHZ), 40 400 * MHZ), 44 340 * MHZ), 46 340 * MHZ), 48 340 * MHZ), 50 300 * MHZ), 52 27 * MHZ), 54 416 * MHZ), 56 143 * MHZ), 58 27 * MHZ), [all …]
|
D | clk-mtk.h | 27 #define MHZ (1000 * 1000) macro
|
D | clk-mt8173.c | 36 FIXED_CLK(CLK_TOP_USB_SYSPLL_125M, "usb_syspll_125m", "clk26m", 125 * MHZ), 1029 #define MT8173_PLL_FMAX (3000UL * MHZ)
|
D | clk-pll.c | 140 unsigned long fmin = 1000 * MHZ; in mtk_pll_calc_values()
|
D | clk-mt8135.c | 601 #define MT8135_PLL_FMAX (2000 * MHZ)
|
/drivers/clk/sirf/ |
D | clk-common.c | 13 #define MHZ (KHZ * KHZ) macro 91 WARN_ON(fin % MHZ); in pll_clk_recalc_rate() 92 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate() 106 rate = rate - rate % MHZ; in pll_clk_round_rate() 108 nf = rate / MHZ; in pll_clk_round_rate() 116 nr = fin / MHZ; in pll_clk_round_rate() 138 nf = rate / MHZ; in pll_clk_set_rate() 139 if (unlikely((rate % MHZ) || nf > BIT(13) || nf < 1)) in pll_clk_set_rate() 143 BUG_ON(fin < MHZ); in pll_clk_set_rate() 145 nr = fin / MHZ; in pll_clk_set_rate() [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_dsi.c | 537 #ifndef MHZ 538 #define MHZ (1000*1000) macro 552 p_min = DIV_ROUND_UP(fin, (12 * MHZ)); in exynos_dsi_pll_find_pms() 553 p_max = fin / (6 * MHZ); in exynos_dsi_pll_find_pms() 568 if (tmp < 500 * MHZ || in exynos_dsi_pll_find_pms() 569 tmp > driver_data->max_freq * MHZ) in exynos_dsi_pll_find_pms() 621 100 * MHZ, 120 * MHZ, 160 * MHZ, 200 * MHZ, in exynos_dsi_set_pll() 622 270 * MHZ, 320 * MHZ, 390 * MHZ, 450 * MHZ, in exynos_dsi_set_pll() 623 510 * MHZ, 560 * MHZ, 640 * MHZ, 690 * MHZ, in exynos_dsi_set_pll() 624 770 * MHZ, 870 * MHZ, 950 * MHZ, in exynos_dsi_set_pll() [all …]
|
/drivers/phy/samsung/ |
D | phy-exynos4x12-usb2.c | 143 case 10 * MHZ: in exynos4x12_rate_to_clk() 146 case 12 * MHZ: in exynos4x12_rate_to_clk() 152 case 20 * MHZ: in exynos4x12_rate_to_clk() 155 case 24 * MHZ: in exynos4x12_rate_to_clk() 158 case 50 * MHZ: in exynos4x12_rate_to_clk()
|
D | phy-exynos5250-usb2.c | 153 case 10 * MHZ: in exynos5250_rate_to_clk() 156 case 12 * MHZ: in exynos5250_rate_to_clk() 162 case 20 * MHZ: in exynos5250_rate_to_clk() 165 case 24 * MHZ: in exynos5250_rate_to_clk() 168 case 50 * MHZ: in exynos5250_rate_to_clk()
|
D | phy-s5pv210-usb2.c | 76 case 12 * MHZ: in s5pv210_rate_to_clk() 79 case 24 * MHZ: in s5pv210_rate_to_clk() 82 case 48 * MHZ: in s5pv210_rate_to_clk()
|
D | phy-exynos4210-usb2.c | 111 case 12 * MHZ: in exynos4210_rate_to_clk() 114 case 24 * MHZ: in exynos4210_rate_to_clk() 117 case 48 * MHZ: in exynos4210_rate_to_clk()
|
D | phy-exynos5-usbdrd.c | 123 #define MHZ (KHZ * KHZ) macro 206 case 10 * MHZ: in exynos5_rate_to_clk() 209 case 12 * MHZ: in exynos5_rate_to_clk() 215 case 20 * MHZ: in exynos5_rate_to_clk() 218 case 24 * MHZ: in exynos5_rate_to_clk() 221 case 50 * MHZ: in exynos5_rate_to_clk()
|
D | phy-samsung-usb2.h | 23 #define MHZ (KHZ * KHZ) macro
|
/drivers/mfd/ |
D | sm501.c | 87 #define MHZ (1000 * 1000) macro 122 pll2 = 288 * MHZ; in decode_div() 127 #define fmt_freq(x) ((x) / MHZ), ((x) % MHZ), (x) 145 pll2 = 336 * MHZ; in sm501_dump_clk() 148 pll2 = 288 * MHZ; in sm501_dump_clk() 151 pll2 = 240 * MHZ; in sm501_dump_clk() 154 pll2 = 192 * MHZ; in sm501_dump_clk() 158 sdclk0 = (misct & (1<<12)) ? pll2 : 288 * MHZ; in sm501_dump_clk() 161 sdclk1 = (misct & (1<<20)) ? pll2 : 288 * MHZ; in sm501_dump_clk() 1543 .mclk = 72 * MHZ, [all …]
|
/drivers/clk/ingenic/ |
D | cgu.c | 30 #define MHZ (1000 * 1000) macro 137 n = parent_rate / (10 * MHZ); in ingenic_pll_calc() 141 m = (rate / MHZ) * od * n / (parent_rate / MHZ); in ingenic_pll_calc()
|
/drivers/spi/ |
D | spi-ath79.c | 34 #define MHZ (1000 * 1000) macro 259 rate = DIV_ROUND_UP(clk_get_rate(sp->clk), MHZ); in ath79_spi_probe()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 235 CHECK_AND_PRINT_I(20MHZ), in iwl_nvm_print_channel_flags() 236 CHECK_AND_PRINT_I(40MHZ), in iwl_nvm_print_channel_flags() 237 CHECK_AND_PRINT_I(80MHZ), in iwl_nvm_print_channel_flags() 238 CHECK_AND_PRINT_I(160MHZ), in iwl_nvm_print_channel_flags()
|
/drivers/clk/samsung/ |
D | clk-s3c2410.c | 383 if (_get_rate("xti") == 12 * MHZ) { in s3c2410_common_clk_init() 393 if (_get_rate("xti") == 12 * MHZ) { in s3c2410_common_clk_init()
|
D | clk-exynos5410.c | 273 if (!IS_ERR(xxti) && clk_get_rate(xxti) == 24 * MHZ) in exynos5410_clk_init()
|
D | clk-exynos5250.c | 821 if (_get_rate("fin_pll") == 24 * MHZ) { in exynos5250_clk_init() 826 if (_get_rate("mout_vpllsrc") == 24 * MHZ) in exynos5250_clk_init()
|
D | clk.h | 51 #define MHZ (1000 * 1000) macro
|
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gk20a.h | 28 #define MHZ (KHZ * 1000) macro
|
/drivers/staging/sm750fb/ |
D | sm750.h | 7 #define MHZ(x) ((x) * 1000000) macro
|