/linux-6.6.21/drivers/clk/samsung/ |
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))) 48 #define PLL_35XX_RATE(_fin, _rate, _m, _p, _s) \ argument 51 _m, _p, _s, 0, 16), \ 52 .mdiv = (_m), \ 57 #define PLL_36XX_RATE(_fin, _rate, _m, _p, _s, _k) \ argument 60 _m, _p, _s, _k, 16), \ 61 .mdiv = (_m), \ [all …]
|
/linux-6.6.21/drivers/net/ethernet/freescale/fs_enet/ |
D | mac-scc.c | 61 #define W32(_p, _m, _v) __fs_out32(&(_p)->_m, (_v)) argument 62 #define R32(_p, _m) __fs_in32(&(_p)->_m) argument 63 #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) argument 64 #define C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) argument 66 #define W16(_p, _m, _v) __fs_out16(&(_p)->_m, (_v)) argument 67 #define R16(_p, _m) __fs_in16(&(_p)->_m) argument 68 #define S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) argument 69 #define C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) argument 71 #define W8(_p, _m, _v) __fs_out8(&(_p)->_m, (_v)) argument 72 #define R8(_p, _m) __fs_in8(&(_p)->_m) argument [all …]
|
D | mac-fcc.c | 52 #define W32(_p, _m, _v) out_be32(&(_p)->_m, (_v)) argument 53 #define R32(_p, _m) in_be32(&(_p)->_m) argument 54 #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) argument 55 #define C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) argument 57 #define W16(_p, _m, _v) out_be16(&(_p)->_m, (_v)) argument 58 #define R16(_p, _m) in_be16(&(_p)->_m) argument 59 #define S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) argument 60 #define C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) argument 62 #define W8(_p, _m, _v) out_8(&(_p)->_m, (_v)) argument 63 #define R8(_p, _m) in_8(&(_p)->_m) argument [all …]
|
/linux-6.6.21/drivers/clk/sunxi-ng/ |
D | ccu_nkm.c | 26 unsigned long _n, _k, _m; in ccu_nkm_find_best_with_parent_adj() local 30 for (_m = nkm->min_m; _m <= nkm->max_m; _m++) { 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() 43 best_m = _m; in ccu_nkm_find_best_with_parent_adj() 63 unsigned long _n, _k, _m; in ccu_nkm_find_best() local 67 for (_m = nkm->min_m; _m <= nkm->max_m; _m++) { in ccu_nkm_find_best() 70 tmp_rate = parent * _n * _k / _m; in ccu_nkm_find_best() 76 best_m = _m; in ccu_nkm_find_best()
|
D | ccu_mp.c | 19 unsigned int _m, _p; in ccu_mp_find_best() local 22 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best() 23 unsigned long tmp_rate = parent / _p / _m; in ccu_mp_find_best() 30 best_m = _m; in ccu_mp_find_best() 51 unsigned int _m, _p, div; in ccu_mp_find_best_with_parent_adj() local 64 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best_with_parent_adj() 65 div = _m * _p; in ccu_mp_find_best_with_parent_adj()
|
D | ccu_nkmp.c | 37 unsigned long _n, _k, _m, _p; in ccu_nkmp_find_best() local 41 for (_m = nkmp->min_m; _m <= nkmp->max_m; _m++) { in ccu_nkmp_find_best() 47 _m, _p); in ccu_nkmp_find_best() 56 best_m = _m; in ccu_nkmp_find_best()
|
D | ccu_nm.c | 35 unsigned long _n, _m; in ccu_nm_find_best() local 38 for (_m = nm->min_m; _m <= nm->max_m; _m++) { in ccu_nm_find_best() 40 _n, _m); in ccu_nm_find_best() 45 best_m = _m; in ccu_nm_find_best()
|
/linux-6.6.21/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_ddc_clk.c | 34 u8 best_m = 0, best_n = 0, _m, _n; in sun4i_ddc_calc_divider() local 36 for (_m = 0; _m < 16; _m++) { in sun4i_ddc_calc_divider() 41 (_m + m_offset); in sun4i_ddc_calc_divider() 48 best_m = _m; in sun4i_ddc_calc_divider()
|
/linux-6.6.21/drivers/net/wireless/ath/ath5k/ |
D | debug.h | 116 #define ATH5K_DBG(_sc, _m, _fmt, ...) do { \ argument 117 if (unlikely((_sc)->debug.level & (_m) && net_ratelimit())) \ 122 #define ATH5K_DBG_UNLIMIT(_sc, _m, _fmt, ...) do { \ argument 123 if (unlikely((_sc)->debug.level & (_m))) \
|
/linux-6.6.21/fs/ocfs2/cluster/ |
D | masklog.h | 159 u64 _m = MLOG_MASK_PREFIX | (mask); \ 160 if (_m & ML_ALLOWED_BITS) \ 161 __mlog_printk(&_m, __func__, __LINE__, fmt, \
|
/linux-6.6.21/drivers/clk/meson/ |
D | clk-pll.h | 24 #define PLL_PARAMS(_m, _n) \ argument 26 .m = (_m), \
|
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | memory.h | 107 u##t __iomem *_m = nvkm_kmap(o); \ 108 if (likely(_m)) { \ 111 iowrite##t##_native(_d, &_m[_o++]); \ 113 memset_io(&_m[_o], _d, _s); \
|
/linux-6.6.21/drivers/scsi/csiostor/ |
D | csio_mb.h | 144 #define csio_set_mb_intr_idx(_m, _i) ((_m)->intr_idx = (_i)) argument 145 #define csio_get_mb_intr_idx(_m) ((_m)->intr_idx) argument
|
/linux-6.6.21/drivers/gpu/drm/armada/ |
D | armada_crtc.h | 18 #define armada_reg_queue_mod(_r, _i, _v, _m, _o) \ argument 22 __reg[_i].mask = ~(_m); \
|
/linux-6.6.21/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_type.h | 145 #define FM10K_RSSRK(_n, _m) (((_n) * 0x10) + (_m) + 0x0800) argument 148 #define FM10K_RETA(_n, _m) (((_n) * 0x20) + (_m) + 0x1000) argument 331 #define FM10K_VLAN_TABLE(_n, _m) ((0x80 * (_n)) + (_m) + 0x14000) argument
|
D | fm10k_mbx.h | 15 #define FM10K_MBMEM_VF(_n, _m) (((_n) * 0x10) + (_m) + 0x18000) argument
|
/linux-6.6.21/arch/powerpc/mm/ptdump/ |
D | bats.c | 58 #define BAT_SHOW_603(_m, _n, _l, _u, _d) bat_show_603(_m, _n, mfspr(_l), mfspr(_u), _d) argument
|
/linux-6.6.21/drivers/scsi/aic94xx/ |
D | aic94xx_dump.c | 220 #define PRINT_MREG_8bit(_ha, _m, _n, _r) asd_printk(MSTR_8BIT, _m, #_n, _n, \ argument 222 #define PRINT_MREG_16bit(_ha, _m, _n, _r) asd_printk(MSTR_16BIT, _m, #_n, _n, \ argument 224 #define PRINT_MREG_32bit(_ha, _m, _n, _r) asd_printk(MSTR_32BIT, _m, #_n, _n, \ argument 240 #define CMDP_REG(_n, _m) (_m*(CSEQ_PAGE_SIZE*2)+CSEQ_##_n) argument
|
/linux-6.6.21/include/math-emu/ |
D | op-2.h | 447 if (_FP_FRAC_GT_2(_m, _r)) \ 451 if (_FP_FRAC_GE_2(_r, Y) && _FP_FRAC_GT_2(_m, _r)) \ 457 _FP_FRAC_DEC_2(_r, _m); \ 475 if (_FP_FRAC_GT_2(_m, _r)) \ 479 if (_FP_FRAC_GE_2(_r, Y) && _FP_FRAC_GT_2(_m, _r)) \ 485 if (!_FP_FRAC_EQ_2(_r, _m)) \
|
D | op-4.h | 358 _FP_FRAC_DECL_4(_n); _FP_FRAC_DECL_4(_m); \ 401 if (_FP_FRAC_GT_4(_m, X)) \ 405 if (_FP_FRAC_GE_4(X, Y) && _FP_FRAC_GT_4(_m, X)) \ 411 _FP_FRAC_DEC_4(X, _m); \ 414 if (!_FP_FRAC_EQ_4(X, _m)) \
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-comp.h | 54 typeof(_mask) (_m) = (_mask); \ 56 (base) + (ofst), (val), (_m), ##__VA_ARGS__); \
|
/linux-6.6.21/drivers/net/ethernet/micrel/ |
D | ks8851.h | 27 #define KS_MAR(_m) (0x14 - (_m)) argument
|
/linux-6.6.21/kernel/bpf/ |
D | tnum.c | 12 #define TNUM(_v, _m) (struct tnum){.value = _v, .mask = _m} argument
|
/linux-6.6.21/drivers/clk/x86/ |
D | clk-cgu.h | 280 _shift, _width, _cf, _v, _m, _d) \ argument 296 .mult = _m, \
|
/linux-6.6.21/drivers/clk/imx/ |
D | clk.h | 263 #define PLL_1416X_RATE(_rate, _m, _p, _s) \ argument 266 .mdiv = (_m), \ 271 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \ argument 274 .mdiv = (_m), \
|