/include/asm-generic/ |
D | atomic64.h | 21 extern long long atomic64_read(const atomic64_t *v); 22 extern void atomic64_set(atomic64_t *v, long long i); 25 extern void atomic64_##op(long long a, atomic64_t *v); 28 extern long long atomic64_##op##_return(long long a, atomic64_t *v); 39 extern long long atomic64_dec_if_positive(atomic64_t *v); 40 extern long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n); 41 extern long long atomic64_xchg(atomic64_t *v, long long new); 42 extern int atomic64_add_unless(atomic64_t *v, long long a, long long u); 44 #define atomic64_add_negative(a, v) (atomic64_add_return((a), (v)) < 0) argument 45 #define atomic64_inc(v) atomic64_add(1LL, (v)) argument [all …]
|
D | atomic.h | 43 static inline void atomic_##op(int i, atomic_t *v) \ 47 c = v->counter; \ 48 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 53 static inline int atomic_##op##_return(int i, atomic_t *v) \ 57 c = v->counter; \ 58 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 69 static inline void atomic_##op(int i, atomic_t *v) \ 74 v->counter = v->counter c_op i; \ 79 static inline int atomic_##op##_return(int i, atomic_t *v) \ 85 ret = (v->counter = v->counter c_op i); \ [all …]
|
D | atomic-long.h | 29 atomic64_t *v = (atomic64_t *)l; in atomic_long_read() local 31 return (long)atomic64_read(v); in atomic_long_read() 36 atomic64_t *v = (atomic64_t *)l; in atomic_long_set() local 38 atomic64_set(v, i); in atomic_long_set() 43 atomic64_t *v = (atomic64_t *)l; in atomic_long_inc() local 45 atomic64_inc(v); in atomic_long_inc() 50 atomic64_t *v = (atomic64_t *)l; in atomic_long_dec() local 52 atomic64_dec(v); in atomic_long_dec() 57 atomic64_t *v = (atomic64_t *)l; in atomic_long_add() local 59 atomic64_add(i, v); in atomic_long_add() [all …]
|
/include/net/ |
D | red.h | 159 static inline void red_set_vars(struct red_vars *v) in red_set_vars() argument 165 v->qavg = 0; in red_set_vars() 167 v->qcount = -1; in red_set_vars() 208 static inline int red_is_idling(const struct red_vars *v) in red_is_idling() argument 210 return v->qidlestart.tv64 != 0; in red_is_idling() 213 static inline void red_start_of_idle_period(struct red_vars *v) in red_start_of_idle_period() argument 215 v->qidlestart = ktime_get(); in red_start_of_idle_period() 218 static inline void red_end_of_idle_period(struct red_vars *v) in red_end_of_idle_period() argument 220 v->qidlestart.tv64 = 0; in red_end_of_idle_period() 223 static inline void red_restart(struct red_vars *v) in red_restart() argument [all …]
|
D | dcbevent.h | 29 int call_dcbevent_notifiers(unsigned long val, void *v); 42 static inline int call_dcbevent_notifiers(unsigned long val, void *v) in call_dcbevent_notifiers() argument
|
/include/linux/i2c/ |
D | mcs.h | 16 #define MCS_KEY_MAP(v, c) ((((v) & 0xff) << 16) | ((c) & 0xffff)) argument 17 #define MCS_KEY_VAL(v) (((v) >> 16) & 0xff) argument 18 #define MCS_KEY_CODE(v) ((v) & 0xffff) argument
|
/include/linux/ |
D | atomic.h | 26 #define atomic_read_acquire(v) smp_load_acquire(&(v)->counter) argument 30 #define atomic_set_release(v, i) smp_store_release(&(v)->counter, (i)) argument 157 #define atomic64_read_acquire(v) smp_load_acquire(&(v)->counter) argument 161 #define atomic64_set_release(v, i) smp_store_release(&(v)->counter, (i)) argument 338 static inline int atomic_add_unless(atomic_t *v, int a, int u) in atomic_add_unless() argument 340 return __atomic_add_unless(v, a, u) != u; in atomic_add_unless() 351 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) argument 367 static inline int atomic_inc_not_zero_hint(atomic_t *v, int hint) in atomic_inc_not_zero_hint() argument 373 return atomic_inc_not_zero(v); in atomic_inc_not_zero_hint() 376 val = atomic_cmpxchg(v, c, c + 1); in atomic_inc_not_zero_hint() [all …]
|
D | ssbi.h | 27 u8 v; in ssbi_reg_read() local 29 ret = ssbi_read(context, reg, &v, 1); in ssbi_reg_read() 31 *val = v; in ssbi_reg_read() 39 u8 v = val; in ssbi_reg_write() local 40 return ssbi_write(context, reg, &v, 1); in ssbi_reg_write()
|
D | mpi.h | 90 int mpi_add_ui(MPI w, MPI u, ulong v); 91 int mpi_add(MPI w, MPI u, MPI v); 92 int mpi_addm(MPI w, MPI u, MPI v, MPI m); 93 int mpi_sub_ui(MPI w, MPI u, ulong v); 94 int mpi_sub(MPI w, MPI u, MPI v); 95 int mpi_subm(MPI w, MPI u, MPI v, MPI m); 98 int mpi_mul_ui(MPI w, MPI u, ulong v); 100 int mpi_mul(MPI w, MPI u, MPI v); 101 int mpi_mulm(MPI w, MPI u, MPI v, MPI m); 117 int mpi_pow(MPI w, MPI u, MPI v); [all …]
|
D | notifier.h | 141 unsigned long val, void *v); 143 unsigned long val, void *v, int nr_to_call, int *nr_calls); 145 unsigned long val, void *v); 147 unsigned long val, void *v, int nr_to_call, int *nr_calls); 149 unsigned long val, void *v); 151 unsigned long val, void *v, int nr_to_call, int *nr_calls); 153 unsigned long val, void *v); 155 unsigned long val, void *v, int nr_to_call, int *nr_calls);
|
D | random.h | 84 static inline int arch_get_random_long(unsigned long *v) in arch_get_random_long() argument 88 static inline int arch_get_random_int(unsigned int *v) in arch_get_random_int() argument 96 static inline int arch_get_random_seed_long(unsigned long *v) in arch_get_random_seed_long() argument 100 static inline int arch_get_random_seed_int(unsigned int *v) in arch_get_random_seed_int() argument
|
D | memory.h | 91 static inline int memory_notify(unsigned long val, void *v) in memory_notify() argument 102 static inline int memory_isolate_notify(unsigned long val, void *v) in memory_isolate_notify() argument 116 extern int memory_notify(unsigned long val, void *v); 117 extern int memory_isolate_notify(unsigned long val, void *v);
|
D | file.h | 48 static inline struct fd __to_fd(unsigned long v) in __to_fd() argument 50 return (struct fd){(struct file *)(v & ~3),v & 3}; in __to_fd()
|
D | ipmi_smi.h | 158 #define ipmi_version_major(v) ((v)->ipmi_version & 0xf) argument 159 #define ipmi_version_minor(v) ((v)->ipmi_version >> 4) argument
|
/include/linux/ceph/ |
D | decode.h | 19 u64 v = get_unaligned_le64(*p); in ceph_decode_64() local 21 return v; in ceph_decode_64() 25 u32 v = get_unaligned_le32(*p); in ceph_decode_32() local 27 return v; in ceph_decode_32() 31 u16 v = get_unaligned_le16(*p); in ceph_decode_16() local 33 return v; in ceph_decode_16() 37 u8 v = *(u8 *)*p; in ceph_decode_8() local 39 return v; in ceph_decode_8() 61 #define ceph_decode_64_safe(p, end, v, bad) \ argument 64 v = ceph_decode_64(p); \ [all …]
|
D | pagelist.h | 48 static inline int ceph_pagelist_encode_64(struct ceph_pagelist *pl, u64 v) in ceph_pagelist_encode_64() argument 50 __le64 ev = cpu_to_le64(v); in ceph_pagelist_encode_64() 53 static inline int ceph_pagelist_encode_32(struct ceph_pagelist *pl, u32 v) in ceph_pagelist_encode_32() argument 55 __le32 ev = cpu_to_le32(v); in ceph_pagelist_encode_32() 58 static inline int ceph_pagelist_encode_16(struct ceph_pagelist *pl, u16 v) in ceph_pagelist_encode_16() argument 60 __le16 ev = cpu_to_le16(v); in ceph_pagelist_encode_16() 63 static inline int ceph_pagelist_encode_8(struct ceph_pagelist *pl, u8 v) in ceph_pagelist_encode_8() argument 65 return ceph_pagelist_append(pl, &v, 1); in ceph_pagelist_encode_8()
|
D | ceph_frag.h | 21 static inline __u32 ceph_frag_make(__u32 b, __u32 v) in ceph_frag_make() argument 24 (v & (0xffffffu << (24-b)) & 0xffffffu); in ceph_frag_make() 43 static inline int ceph_frag_contains_value(__u32 f, __u32 v) in ceph_frag_contains_value() argument 45 return (v & ceph_frag_mask(f)) == ceph_frag_value(f); in ceph_frag_contains_value()
|
/include/uapi/linux/ |
D | pkt_cls.h | 13 #define _TC_MAKEMASK(v,n) (_TC_MAKE32((_TC_MAKE32(1)<<(v))-1) << _TC_MAKE32(n)) argument 14 #define _TC_MAKEVALUE(v,n) (_TC_MAKE32(v) << _TC_MAKE32(n)) argument 15 #define _TC_GETVALUE(v,n,m) ((_TC_MAKE32(v) & _TC_MAKE32(m)) >> _TC_MAKE32(n)) argument 39 #define SET_TC_MUNGED(v) ( TC_MUNGED | (v & ~TC_MUNGED)) argument 40 #define CLR_TC_MUNGED(v) ( v & ~TC_MUNGED) argument 43 #define SET_TC_OK2MUNGE(v) ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE)) argument 44 #define CLR_TC_OK2MUNGE(v) ( v & ~TC_OK2MUNGE) argument 50 #define SET_TC_VERD(v,n) ((V_TC_VERD(n)) | (v & ~M_TC_VERD)) argument 56 #define SET_TC_FROM(v,n) ((V_TC_FROM(n)) | (v & ~M_TC_FROM)) argument 62 #define SET_TC_NCLS(v) ( TC_NCLS | (v & ~TC_NCLS)) argument [all …]
|
D | msdos_fs.h | 19 #define CF_LE_W(v) le16_to_cpu(v) argument 20 #define CF_LE_L(v) le32_to_cpu(v) argument 21 #define CT_LE_W(v) cpu_to_le16(v) argument 22 #define CT_LE_L(v) cpu_to_le32(v) argument
|
D | firewire-cdev.h | 721 #define FW_CDEV_ISO_PAYLOAD_LENGTH(v) (v) argument 725 #define FW_CDEV_ISO_TAG(v) ((v) << 18) argument 726 #define FW_CDEV_ISO_SY(v) ((v) << 20) argument 727 #define FW_CDEV_ISO_HEADER_LENGTH(v) ((v) << 24) argument
|
/include/sound/ |
D | pcm_params.h | 41 static inline unsigned int ld2(u_int32_t v) in ld2() argument 45 if (v >= 0x10000) { in ld2() 46 v >>= 16; in ld2() 49 if (v >= 0x100) { in ld2() 50 v >>= 8; in ld2() 53 if (v >= 0x10) { in ld2() 54 v >>= 4; in ld2() 57 if (v >= 4) { in ld2() 58 v >>= 2; in ld2() 61 if (v >= 2) in ld2() [all …]
|
D | aess.h | 46 u32 v; in aess_enable_autogating() local 49 v = 1 << AESS_AUTO_GATING_ENABLE_SHIFT; in aess_enable_autogating() 50 writel(v, base + AESS_AUTO_GATING_ENABLE_OFFSET); in aess_enable_autogating()
|
/include/linux/spi/ |
D | mxs-spi.h | 71 #define BF_SSP_TIMING_CLOCK_DIVIDE(v) \ argument 72 (((v) << 8) & BM_SSP_TIMING_CLOCK_DIVIDE) 75 #define BF_SSP_TIMING_CLOCK_RATE(v) \ argument 76 (((v) << 0) & BM_SSP_TIMING_CLOCK_RATE) 99 #define BF_SSP_CTRL1_WORD_LENGTH(v) \ argument 100 (((v) << 4) & BM_SSP_CTRL1_WORD_LENGTH) 106 #define BF_SSP_CTRL1_SSP_MODE(v) \ argument 107 (((v) << 0) & BM_SSP_CTRL1_SSP_MODE)
|
/include/video/ |
D | tgafb.h | 228 TGA_WRITE_REG(struct tga_par *par, u32 v, u32 r) in TGA_WRITE_REG() argument 230 writel(v, par->tga_regs_base +r); in TGA_WRITE_REG() 240 BT485_WRITE(struct tga_par *par, u8 v, u8 r) in BT485_WRITE() argument 243 TGA_WRITE_REG(par, v | (r << 8), TGA_RAMDAC_REG); in BT485_WRITE() 256 BT463_WRITE(struct tga_par *par, u32 m, u16 a, u8 v) in BT463_WRITE() argument 260 TGA_WRITE_REG(par, m << 10 | v, TGA_RAMDAC_REG); in BT463_WRITE() 273 BT459_WRITE(struct tga_par *par, u32 m, u16 a, u8 v) in BT459_WRITE() argument 277 TGA_WRITE_REG(par, v, TGA_RAMDAC_REG); in BT459_WRITE()
|
D | gbe.h | 85 #define GET(v, msb, lsb) \ argument 86 ( ((u32)(v) & MASK(msb,lsb)) >> (lsb) ) 87 #define SET(v, f, msb, lsb) \ argument 88 ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) ) 90 #define GET_GBE_FIELD(reg, field, v) \ argument 91 GET((v), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB) 92 #define SET_GBE_FIELD(reg, field, v, f) \ argument 93 SET((v), (f), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB)
|