Home
last modified time | relevance | path

Searched refs:_m (Results 1 – 25 of 31) sorted by relevance

12

/drivers/clk/samsung/
Dclk-pll.h45 #define PLL_RATE(_fin, _m, _p, _s, _k, _ks) \ argument
46 ((u64)(_fin) * (BIT(_ks) * (_m) + (_k)) / BIT(_ks) / ((_p) << (_s)))
47 #define PLL_VALID_RATE(_fin, _fout, _m, _p, _s, _k, _ks) ((_fout) + \ argument
48 BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout)))
50 #define PLL_35XX_RATE(_fin, _rate, _m, _p, _s) \ argument
53 _m, _p, _s, 0, 16), \
54 .mdiv = (_m), \
59 #define PLL_S3C2410_MPLL_RATE(_fin, _rate, _m, _p, _s) \ argument
62 _m + 8, _p + 2, _s, 0, 16), \
63 .mdiv = (_m), \
[all …]
/drivers/net/ethernet/freescale/fs_enet/
Dmac-scc.c62 #define W32(_p, _m, _v) __fs_out32(&(_p)->_m, (_v)) argument
63 #define R32(_p, _m) __fs_in32(&(_p)->_m) argument
64 #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) argument
65 #define C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) argument
67 #define W16(_p, _m, _v) __fs_out16(&(_p)->_m, (_v)) argument
68 #define R16(_p, _m) __fs_in16(&(_p)->_m) argument
69 #define S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) argument
70 #define C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) argument
72 #define W8(_p, _m, _v) __fs_out8(&(_p)->_m, (_v)) argument
73 #define R8(_p, _m) __fs_in8(&(_p)->_m) argument
[all …]
Dmac-fcc.c54 #define W32(_p, _m, _v) out_be32(&(_p)->_m, (_v)) argument
55 #define R32(_p, _m) in_be32(&(_p)->_m) argument
56 #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) argument
57 #define C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) argument
59 #define W16(_p, _m, _v) out_be16(&(_p)->_m, (_v)) argument
60 #define R16(_p, _m) in_be16(&(_p)->_m) argument
61 #define S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) argument
62 #define C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) argument
64 #define W8(_p, _m, _v) out_8(&(_p)->_m, (_v)) argument
65 #define R8(_p, _m) in_8(&(_p)->_m) argument
[all …]
/drivers/clk/sunxi-ng/
Dccu_mp.c19 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()
49 unsigned int _m, _p, div; in ccu_mp_find_best_with_parent_adj() local
62 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best_with_parent_adj()
63 div = _m * _p; in ccu_mp_find_best_with_parent_adj()
Dccu_nkm.c24 unsigned long _n, _k, _m; in ccu_nkm_find_best() local
28 for (_m = nkm->min_m; _m <= nkm->max_m; _m++) { in ccu_nkm_find_best()
31 tmp_rate = parent * _n * _k / _m; in ccu_nkm_find_best()
39 best_m = _m; in ccu_nkm_find_best()
Dccu_nkmp.c37 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()
Dccu_nm.c35 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()
48 best_m = _m; in ccu_nm_find_best()
/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_ddc_clk.c34 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()
/drivers/net/wireless/ath/ath5k/
Ddebug.h116 #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))) \
/drivers/gpu/drm/nouveau/include/nvkm/core/
Dmemory.h105 u##t __iomem *_m = nvkm_kmap(o); \
106 if (likely(_m)) { \
109 iowrite##t##_native(_d, &_m[_o++]); \
111 memset_io(&_m[_o], _d, _s); \
/drivers/scsi/csiostor/
Dcsio_mb.h144 #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
/drivers/clk/meson/
Dclk-pll.h24 #define PLL_PARAMS(_m, _n) \ argument
26 .m = (_m), \
/drivers/net/ethernet/intel/fm10k/
Dfm10k_type.h145 #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
Dfm10k_mbx.h15 #define FM10K_MBMEM_VF(_n, _m) (((_n) * 0x10) + (_m) + 0x18000) argument
/drivers/gpu/drm/armada/
Darmada_crtc.h18 #define armada_reg_queue_mod(_r, _i, _v, _m, _o) \ argument
22 __reg[_i].mask = ~(_m); \
/drivers/scsi/aic94xx/
Daic94xx_dump.c220 #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
/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-comp.h54 typeof(_mask) (_m) = (_mask); \
56 (base) + (ofst), (val), (_m), ##__VA_ARGS__); \
/drivers/clk/imx/
Dclk.h260 #define PLL_1416X_RATE(_rate, _m, _p, _s) \ argument
263 .mdiv = (_m), \
268 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \ argument
271 .mdiv = (_m), \
/drivers/net/ethernet/micrel/
Dks8851.h27 #define KS_MAR(_m) (0x14 - (_m)) argument
/drivers/clk/x86/
Dclk-cgu.h280 _shift, _width, _cf, _v, _m, _d) \ argument
296 .mult = _m, \
/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c546 u16 _m, best_m; in exynos_dsi_pll_find_pms() local
559 _m = tmp; in exynos_dsi_pll_find_pms()
560 if (_m < 41 || _m > 125) in exynos_dsi_pll_find_pms()
563 tmp = (u64)_m * fin; in exynos_dsi_pll_find_pms()
569 tmp = (u64)_m * fin; in exynos_dsi_pll_find_pms()
575 best_m = _m; in exynos_dsi_pll_find_pms()
/drivers/comedi/drivers/
Dni_stc.h255 #define NISTC_RTSI_TRIG_NUM_CHAN(_m) ((_m) ? 8 : 7) argument
256 #define NISTC_RTSI_TRIG_DIR(_c, _m) ((_m) ? BIT(8 + (_c)) : BIT(7 + (_c))) argument
Daddi_apci_3120.c58 #define APCI3120_TIMER_MODE(_t, _m) ((_m) << ((_t) * 2)) argument
/drivers/misc/sgi-xp/
Dxpnet.c82 #define XPNET_VALID_MSG(_m) \ argument
83 ((XPNET_VERSION_MAJOR(_m->version) == XPNET_VERSION_MAJOR(XPNET_VERSION)) \
/drivers/mailbox/
Dbcm-flexrm-mailbox.c247 #define DESC_DEC(_d, _s, _m) (((_d) >> (_s)) & (_m)) argument
248 #define DESC_ENC(_d, _v, _s, _m) \ argument
250 (_d) &= ~((u64)(_m) << (_s)); \
251 (_d) |= (((u64)(_v) & (_m)) << (_s)); \

12