/drivers/clk/samsung/ |
D | clk-pll.h | 41 #define PLL_RATE(_fin, _m, _p, _s, _k, _ks) \ argument 42 ((u64)(_fin) * (BIT(_ks) * (_m) + (_k)) / BIT(_ks) / ((_p) << (_s))) 43 #define PLL_VALID_RATE(_fin, _fout, _m, _p, _s, _k, _ks) ((_fout) + \ argument 44 BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout))) 46 #define PLL_35XX_RATE(_fin, _rate, _m, _p, _s) \ argument 49 _m, _p, _s, 0, 16), \ 51 .pdiv = (_p), \ 55 #define PLL_S3C2410_MPLL_RATE(_fin, _rate, _m, _p, _s) \ argument 58 _m + 8, _p + 2, _s, 0, 16), \ 60 .pdiv = (_p), \ [all …]
|
/drivers/net/ethernet/freescale/fs_enet/ |
D | mac-scc.c | 62 #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 …]
|
D | mac-fcc.c | 54 #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/net/ethernet/8390/ |
D | 8390p.c | 7 #define ei_inb(_p) inb(_p) argument 8 #define ei_outb(_v, _p) outb(_v, _p) argument 9 #define ei_inb_p(_p) inb_p(_p) argument 10 #define ei_outb_p(_v, _p) outb_p(_v, _p) argument
|
D | 8390.h | 155 #define ei_inb(_p) inb(_p) argument 156 #define ei_outb(_v, _p) outb(_v, _p) argument 157 #define ei_inb_p(_p) inb(_p) argument 158 #define ei_outb_p(_v, _p) outb(_v, _p) argument
|
D | etherh.c | 51 #define ei_inb(_p) readb((void __iomem *)_p) argument 52 #define ei_outb(_v,_p) writeb(_v,(void __iomem *)_p) argument 53 #define ei_inb_p(_p) readb((void __iomem *)_p) argument 54 #define ei_outb_p(_v,_p) writeb(_v,(void __iomem *)_p) argument
|
/drivers/clk/sunxi-ng/ |
D | ccu_mp.c | 19 unsigned int _m, _p; in ccu_mp_find_best() local 21 for (_p = 1; _p <= max_p; _p <<= 1) { in ccu_mp_find_best() 23 unsigned long tmp_rate = parent / _p / _m; in ccu_mp_find_best() 31 best_p = _p; in ccu_mp_find_best() 49 unsigned int _m, _p, div; in ccu_mp_find_best_with_parent_adj() local 61 for (_p = 1; _p <= max_p; _p <<= 1) { in ccu_mp_find_best_with_parent_adj() 63 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 42 for (_p = nkmp->min_p; _p <= nkmp->max_p; _p <<= 1) { in ccu_nkmp_find_best() 47 _m, _p); in ccu_nkmp_find_best() 57 best_p = _p; in ccu_nkmp_find_best()
|
/drivers/clk/sunxi/ |
D | clk-sun9i-core.c | 156 u32 _p; in sun9i_a80_get_ahb_factors() local 161 _p = order_base_2(DIV_ROUND_UP(req->parent_rate, req->rate)); in sun9i_a80_get_ahb_factors() 164 if (_p > 3) in sun9i_a80_get_ahb_factors() 165 _p = 3; in sun9i_a80_get_ahb_factors() 167 req->rate = req->parent_rate >> _p; in sun9i_a80_get_ahb_factors() 168 req->p = _p; in sun9i_a80_get_ahb_factors()
|
/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | os.h | 19 u32 __iomem *_p = (u32 __iomem *)(p); \ 21 iowrite32_native(lower_32_bits(_v), &_p[0]); \ 22 iowrite32_native(upper_32_bits(_v), &_p[1]); \
|
/drivers/misc/sgi-xp/ |
D | xpc.h | 586 #define XPC_DEACTIVATE_PARTITION(_p, _reason) \ argument 587 xpc_deactivate_partition(__LINE__, (_p), (_reason)) 602 #define XPC_PARTID(_p) ((short)((_p) - &xpc_partitions[0])) argument 725 #define XPC_SET_REASON(_p, _reason, _line) \ argument 727 (_p)->reason = _reason; \ 728 (_p)->reason_line = _line; \
|
/drivers/gpu/drm/nouveau/include/nvif/ |
D | push.h | 83 struct nvif_push *_p = (p); \ 85 PUSH_ASSERT(_p->cur < _p->seg, "segment overrun"); \ 86 PUSH_ASSERT(_p->cur < _p->end, "pushbuf overrun"); \ 87 PUSH_PRINTF(_p, "%08x"f, _d, ##a); \ 88 *_p->cur++ = _d; \ 117 struct nvif_push *_p = (p); \ 119 PUSH_ASSERT(_p->cur + _s <= _p->seg, "segment overrun"); \ 120 PUSH_ASSERT(_p->cur + _s <= _p->end, "pushbuf overrun"); \ 121 memcpy(_p->cur, (d), _s << 2); \ 122 _p->cur += _s; \
|
D | printf.h | 9 struct nvif_parent *_p = _o->parent; \ 10 _p->func->l(_o, "[%s/%08x:%s] "f"\n", _o->client->object.name, _o->handle, _o->name, ##a); \
|
/drivers/net/ethernet/sfc/ |
D | ef100_rx.c | 25 #define PREFIX_WORD(_p, _f) le32_to_cpu((__force __le32)(_p)[PREFIX_OFFSET_W(_f)]) argument 26 #define PREFIX_FIELD(_p, _f) ((PREFIX_WORD(_p, _f) >> PREFIX_OFFSET_B(_f)) & \ argument
|
/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_timestamp.c | 18 #define INV_ICM42600_TIMESTAMP_MIN_PERIOD(_p) \ argument 19 (((_p) * (100 - INV_ICM42600_TIMESTAMP_JITTER)) / 100) 20 #define INV_ICM42600_TIMESTAMP_MAX_PERIOD(_p) \ argument 21 (((_p) * (100 + INV_ICM42600_TIMESTAMP_JITTER)) / 100)
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9003_eeprom.h | 72 #define NOISE_PWR_DBM_2_INT(_p) ((((_p) + 3) >> 2) + NOISE_PWR_DATA_OFFSET) argument 73 #define N2DBM(_p) NOISE_PWR_DBM_2_INT(_p) argument
|
/drivers/xen/ |
D | xen-balloon.c | 50 #define PAGES2KB(_p) ((_p)<<(PAGE_SHIFT-10)) argument
|
/drivers/net/dsa/mv88e6xxx/ |
D | serdes.h | 128 void mv88e6352_serdes_get_regs(struct mv88e6xxx_chip *chip, int port, void *_p); 130 void mv88e6390_serdes_get_regs(struct mv88e6xxx_chip *chip, int port, void *_p);
|
D | serdes.c | 399 void mv88e6352_serdes_get_regs(struct mv88e6xxx_chip *chip, int port, void *_p) in mv88e6352_serdes_get_regs() argument 401 u16 *p = _p; in mv88e6352_serdes_get_regs() 985 void mv88e6390_serdes_get_regs(struct mv88e6xxx_chip *chip, int port, void *_p) in mv88e6390_serdes_get_regs() argument 987 u16 *p = _p; in mv88e6390_serdes_get_regs()
|
/drivers/net/dsa/ |
D | rtl8366rb.c | 188 #define RTL8366RB_MIB_CTRL_PORT_RESET(_p) BIT(2 + (_p)) argument 192 #define RTL8366RB_PORT_VLAN_CTRL_REG(_p) \ argument 193 (RTL8366RB_PORT_VLAN_CTRL_BASE + (_p) / 4) 195 #define RTL8366RB_PORT_VLAN_CTRL_SHIFT(_p) (4 * ((_p) % 4)) argument
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 179 #define GPU_REV_EXT(name, _rev, _p, _s, stat) \ argument 181 .revision = (_rev) << 12 | (_p) << 4 | (_s), \ 182 .issues = hw_issues_##name##_r##_rev##p##_p##stat, \
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_dsi.c | 550 u8 _p, best_p; in exynos_dsi_pll_find_pms() local 557 for (_p = p_min; _p <= p_max; ++_p) { in exynos_dsi_pll_find_pms() 562 tmp = (u64)fout * (_p << _s); in exynos_dsi_pll_find_pms() 569 do_div(tmp, _p); in exynos_dsi_pll_find_pms() 575 do_div(tmp, _p << _s); in exynos_dsi_pll_find_pms() 579 best_p = _p; in exynos_dsi_pll_find_pms()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.h | 407 #define RS_DRV_DATA_PACK(_c, _p) ((void *)(uintptr_t)\ argument 408 (((uintptr_t)_p) |\
|
/drivers/clk/imx/ |
D | clk.h | 179 #define PLL_1416X_RATE(_rate, _m, _p, _s) \ argument 183 .pdiv = (_p), \ 187 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \ argument 191 .pdiv = (_p), \
|
/drivers/firewire/ |
D | ohci.c | 455 static char _p(u32 *s, int shift) in _p() function 474 *s, *s >> 24 & 63, _p(s, 6), _p(s, 4), _p(s, 2), in log_selfids() 482 _p(s, 16), _p(s, 14), _p(s, 12), _p(s, 10), in log_selfids() 483 _p(s, 8), _p(s, 6), _p(s, 4), _p(s, 2)); in log_selfids()
|