/openbmc/linux/drivers/clk/samsung/ |
H A D | clk-pll.h | 43 #define PLL_RATE(_fin, _m, _p, _s, _k, _ks) \ argument 44 ((u64)(_fin) * (BIT(_ks) * (_m) + (_k)) / BIT(_ks) / ((_p) << (_s))) 45 #define PLL_VALID_RATE(_fin, _fout, _m, _p, _s, _k, _ks) ((_fout) + \ argument 46 BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout))) 57 #define PLL_36XX_RATE(_fin, _rate, _m, _p, _s, _k) \ argument 60 _m, _p, _s, _k, 16), \ 64 .kdiv = (_k), \ 77 #define PLL_4600_RATE(_fin, _rate, _m, _p, _s, _k, _vsel) \ argument 80 _m, _p, _s, _k, 16), \ 84 .kdiv = (_k), \ [all …]
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_nkm.c | 26 unsigned long _n, _k, _m; in ccu_nkm_find_best_with_parent_adj() local 28 for (_k = nkm->min_k; _k <= nkm->max_k; _k++) { in ccu_nkm_find_best_with_parent_adj() 33 tmp_parent = clk_hw_round_rate(parent_hw, rate * _m / (_n * _k)); in ccu_nkm_find_best_with_parent_adj() 35 tmp_rate = tmp_parent * _n * _k / _m; in ccu_nkm_find_best_with_parent_adj() 42 best_k = _k; in ccu_nkm_find_best_with_parent_adj() 63 unsigned long _n, _k, _m; in ccu_nkm_find_best() local 65 for (_k = nkm->min_k; _k <= nkm->max_k; _k++) { in ccu_nkm_find_best() 70 tmp_rate = parent * _n * _k / _m; in ccu_nkm_find_best() 75 best_k = _k; in ccu_nkm_find_best()
|
H A D | ccu_nk.c | 23 unsigned int _k, _n; in ccu_nk_find_best() local 25 for (_k = nk->min_k; _k <= nk->max_k; _k++) { in ccu_nk_find_best() 27 unsigned long tmp_rate = parent * _n * _k; in ccu_nk_find_best() 34 best_k = _k; in ccu_nk_find_best()
|
H A D | ccu_nkmp.c | 37 unsigned long _n, _k, _m, _p; in ccu_nkmp_find_best() local 39 for (_k = nkmp->min_k; _k <= nkmp->max_k; _k++) { in ccu_nkmp_find_best() 46 _n, _k, in ccu_nkmp_find_best() 55 best_k = _k; in ccu_nkmp_find_best()
|
/openbmc/linux/arch/mips/include/asm/sn/ |
H A D | klconfig.h | 180 #define PTR_CH_MALLOC_HDR(_k) ((klc_malloc_hdr_t *)\ argument 181 ((unsigned long)_k + (_k->ch_malloc_hdr_off))) 185 #define PTR_CH_CONS_INFO(_k) ((console_t *)\ argument 186 ((unsigned long)_k + (_k->ch_cons_off)))
|
/openbmc/u-boot/arch/arm/include/asm/arch-imx8m/ |
H A D | clock.h | 636 #define DRAM_BYPASS_ROOT_CONFIG(_rate, _m, _p, _s, _k) \ argument 642 .apb_pre_div = (_k), \
|
/openbmc/linux/drivers/clk/imx/ |
H A D | clk.h | 271 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \ argument 277 .kdiv = (_k), \
|
/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk.h | 322 #define RK3588_PLL_RATE(_rate, _p, _m, _s, _k) \ argument 328 .k = _k, \
|
/openbmc/linux/lib/ |
H A D | bch.c | 974 #define find_poly_roots(_p, _k, _elp, _loc) chien_search(_p, len, _elp, _loc) argument
|
/openbmc/u-boot/lib/ |
H A D | bch.c | 987 #define find_poly_roots(_p, _k, _elp, _loc) chien_search(_p, len, _elp, _loc) argument
|