Home
last modified time | relevance | path

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

12

/drivers/clk/samsung/
Dclk-pll.h43 #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 …]
/drivers/net/ethernet/freescale/fs_enet/
Dmac-scc.c61 #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 …]
Dmac-fcc.c52 #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 …]
/drivers/clk/sunxi-ng/
Dccu_nkm.c26 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()
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()
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()
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()
45 best_m = _m; in ccu_nm_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()
/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.h107 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); \
/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/net/ethernet/micrel/
Dks8851.h27 #define KS_MAR(_m) (0x14 - (_m)) argument
/drivers/clk/imx/
Dclk.h263 #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), \
/drivers/clk/x86/
Dclk-cgu.h280 _shift, _width, _cf, _v, _m, _d) \ argument
296 .mult = _m, \
/drivers/clk/
Dclk-sp7021.c44 u64 _m = mask; \
45 (_m << 16) | FIELD_PREP(_m, value); \
/drivers/counter/
Di8254.c26 #define I8254_CONTROL(_sc, _rw, _m) \ argument
28 u8_encode_bits(_m, I8254_M))
/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
/drivers/misc/sgi-xp/
Dxpnet.c82 #define XPNET_VALID_MSG(_m) \ argument
83 ((XPNET_VERSION_MAJOR(_m->version) == XPNET_VERSION_MAJOR(XPNET_VERSION)) \
/drivers/gpu/drm/bridge/
Dsamsung-dsim.c561 u16 _m, best_m; in samsung_dsim_pll_find_pms() local
574 _m = tmp; in samsung_dsim_pll_find_pms()
575 if (_m < driver_data->m_min || _m > driver_data->m_max) in samsung_dsim_pll_find_pms()
578 tmp = (u64)_m * fin; in samsung_dsim_pll_find_pms()
584 tmp = (u64)_m * fin; in samsung_dsim_pll_find_pms()
590 best_m = _m; in samsung_dsim_pll_find_pms()

12