/include/asm-mn10300/ |
D | atomic.h | 34 #define atomic_read(v) ((v)->counter) argument 44 #define atomic_set(v, i) (((v)->counter) = (i)) argument 56 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 62 temp = v->counter; in atomic_add_return() 64 v->counter = temp; in atomic_add_return() 78 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() argument 84 temp = v->counter; in atomic_sub_return() 86 v->counter = temp; in atomic_sub_return() 92 static inline int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative() argument 94 return atomic_add_return(i, v) < 0; in atomic_add_negative() [all …]
|
/include/asm-generic/ |
D | atomic.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 …]
|
D | topology.h | 74 #define node_to_cpumask_ptr(v, node) \ argument 75 cpumask_t _##v = node_to_cpumask(node); \ 76 const cpumask_t *v = &_##v 78 #define node_to_cpumask_ptr_next(v, node) \ argument 79 _##v = node_to_cpumask(node)
|
/include/asm-frv/ |
D | atomic.h | 39 #define atomic_read(v) ((v)->counter) argument 40 #define atomic_set(v, i) (((v)->counter) = (i)) argument 43 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 56 : "+U"(v->counter), "=&r"(val) in atomic_add_return() 64 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() argument 77 : "+U"(v->counter), "=&r"(val) in atomic_sub_return() 87 extern int atomic_add_return(int i, atomic_t *v); 88 extern int atomic_sub_return(int i, atomic_t *v); 92 static inline int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative() argument 94 return atomic_add_return(i, v) < 0; in atomic_add_negative() [all …]
|
D | bitops.h | 36 unsigned long atomic_test_and_ANDNOT_mask(unsigned long mask, volatile unsigned long *v) in atomic_test_and_ANDNOT_mask() argument 50 : "+U"(*v), "=&r"(old), "=r"(tmp) in atomic_test_and_ANDNOT_mask() 59 unsigned long atomic_test_and_OR_mask(unsigned long mask, volatile unsigned long *v) in atomic_test_and_OR_mask() argument 73 : "+U"(*v), "=&r"(old), "=r"(tmp) in atomic_test_and_OR_mask() 82 unsigned long atomic_test_and_XOR_mask(unsigned long mask, volatile unsigned long *v) in atomic_test_and_XOR_mask() argument 96 : "+U"(*v), "=&r"(old), "=r"(tmp) in atomic_test_and_XOR_mask() 106 extern unsigned long atomic_test_and_ANDNOT_mask(unsigned long mask, volatile unsigned long *v); 107 extern unsigned long atomic_test_and_OR_mask(unsigned long mask, volatile unsigned long *v); 108 extern unsigned long atomic_test_and_XOR_mask(unsigned long mask, volatile unsigned long *v); 112 #define atomic_clear_mask(mask, v) atomic_test_and_ANDNOT_mask((mask), (v)) argument [all …]
|
/include/asm-m32r/ |
D | atomic.h | 29 #define atomic_read(v) ((v)->counter) argument 38 #define atomic_set(v,i) (((v)->counter) = (i)) argument 47 static __inline__ int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 60 : "r" (&v->counter), "r" (i) in atomic_add_return() 78 static __inline__ int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() argument 91 : "r" (&v->counter), "r" (i) in atomic_sub_return() 109 #define atomic_add(i,v) ((void) atomic_add_return((i), (v))) argument 118 #define atomic_sub(i,v) ((void) atomic_sub_return((i), (v))) argument 129 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) argument 137 static __inline__ int atomic_inc_return(atomic_t *v) in atomic_inc_return() argument [all …]
|
/include/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 | reiserfs_fs_sb.h | 20 #define set_sb_block_count(sbp,v) ((sbp)->s_v1.s_block_count = cpu_to_le32(v)) argument 22 #define set_sb_free_blocks(sbp,v) ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v)) argument 24 #define set_sb_root_block(sbp,v) ((sbp)->s_v1.s_root_block = cpu_to_le32(v)) argument 28 #define set_sb_jp_journal_1st_block(sbp,v) \ argument 29 ((sbp)->s_v1.s_journal.jp_journal_1st_block = cpu_to_le32(v)) 32 #define set_sb_jp_journal_dev(sbp,v) \ argument 33 ((sbp)->s_v1.s_journal.jp_journal_dev = cpu_to_le32(v)) 36 #define set_sb_jp_journal_size(sbp,v) \ argument 37 ((sbp)->s_v1.s_journal.jp_journal_size = cpu_to_le32(v)) 40 #define set_sb_jp_journal_trans_max(sbp,v) \ argument [all …]
|
D | msdos_fs.h | 18 #define CF_LE_W(v) le16_to_cpu(v) argument 19 #define CF_LE_L(v) le32_to_cpu(v) argument 20 #define CT_LE_W(v) cpu_to_le16(v) argument 21 #define CT_LE_L(v) cpu_to_le32(v) argument
|
D | firewire-cdev.h | 383 #define FW_CDEV_ISO_PAYLOAD_LENGTH(v) (v) argument 387 #define FW_CDEV_ISO_TAG(v) ((v) << 18) argument 388 #define FW_CDEV_ISO_SY(v) ((v) << 20) argument 389 #define FW_CDEV_ISO_HEADER_LENGTH(v) ((v) << 24) argument
|
D | rcupdate.h | 193 #define rcu_assign_pointer(p, v) \ argument 195 if (!__builtin_constant_p(v) || \ 196 ((v) != NULL)) \ 198 (p) = (v); \
|
D | notifier.h | 138 unsigned long val, void *v); 140 unsigned long val, void *v, int nr_to_call, int *nr_calls); 142 unsigned long val, void *v); 144 unsigned long val, void *v, int nr_to_call, int *nr_calls); 146 unsigned long val, void *v); 148 unsigned long val, void *v, int nr_to_call, int *nr_calls); 150 unsigned long val, void *v); 152 unsigned long val, void *v, int nr_to_call, int *nr_calls);
|
D | virtio_config.h | 115 #define virtio_config_val(vdev, fbit, offset, v) \ argument 116 virtio_config_buf((vdev), (fbit), (offset), (v), sizeof(*v))
|
D | ipmi_smi.h | 144 #define ipmi_version_major(v) ((v)->ipmi_version & 0xf) argument 145 #define ipmi_version_minor(v) ((v)->ipmi_version >> 4) argument
|
D | seq_file.h | 31 void (*stop) (struct seq_file *m, void *v); 32 void * (*next) (struct seq_file *m, void *v, loff_t *pos); 33 int (*show) (struct seq_file *m, void *v); 95 extern struct list_head *seq_list_next(void *v, struct list_head *head,
|
D | reiserfs_fs.h | 383 __le64 v; member 388 __u8 type = le64_to_cpu(v2->v) >> 60; in offset_v2_k_type() 394 v2->v = in set_offset_v2_k_type() 395 (v2->v & cpu_to_le64(~0ULL >> 4)) | cpu_to_le64((__u64) type << 60); in set_offset_v2_k_type() 400 return le64_to_cpu(v2->v) & (~0ULL >> 4); in offset_v2_k_offset() 406 v2->v = (v2->v & cpu_to_le64(15ULL << 60)) | cpu_to_le64(offset); in set_offset_v2_k_offset() 530 #define put_block_num(p, i, v) put_unaligned_le32((v), (p) + (i)) argument 802 #define set_sd_v1_mode(sdp,v) ((sdp)->sd_mode = cpu_to_le16(v)) argument 804 #define set_sd_v1_nlink(sdp,v) ((sdp)->sd_nlink = cpu_to_le16(v)) argument 806 #define set_sd_v1_uid(sdp,v) ((sdp)->sd_uid = cpu_to_le16(v)) argument [all …]
|
D | coff.h | 49 #define COFF_LONG(v) COFF_LONG_L(v) argument 50 #define COFF_SHORT(v) COFF_SHORT_L(v) argument
|
D | memory.h | 75 static inline int memory_notify(unsigned long val, void *v) in memory_notify() argument 86 extern int memory_notify(unsigned long val, void *v);
|
/include/sound/ |
D | pcm_params.h | 39 static inline unsigned int ld2(u_int32_t v) in ld2() argument 43 if (v >= 0x10000) { in ld2() 44 v >>= 16; in ld2() 47 if (v >= 0x100) { in ld2() 48 v >>= 8; in ld2() 51 if (v >= 0x10) { in ld2() 52 v >>= 4; in ld2() 55 if (v >= 4) { in ld2() 56 v >>= 2; in ld2() 59 if (v >= 2) in ld2() [all …]
|
/include/asm-mn10300/unit-asb2303/ |
D | smc91111.h | 28 #define SMC_outb(v, a, r) outb(v, (unsigned long) ((a) + (r))) argument 33 #define SMC_outw(v, a, r) outw(v, (unsigned long) ((a) + (r))) argument 40 #define SMC_outl(v, a, r) outl(v, (unsigned long) ((a) + (r))) argument
|
/include/linux/mtd/ |
D | pmc551.h | 73 #define PMC551_DRAM_BLK_SET_COL_MUX(x,v) (((x) & ~0x00007000) | (((v) & 0x7) << 12)) argument 74 #define PMC551_DRAM_BLK_SET_ROW_MUX(x,v) (((x) & ~0x00000f00) | (((v) & 0xf) << 8)) argument
|
/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)
|
D | sgivw.h | 21 #define GET(v, msb, lsb) ( ((u32)(v) & MASK(msb,lsb)) >> (lsb) ) argument 22 #define SET(v, f, msb, lsb) ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)… argument 24 #define GET_DBE_FIELD(reg, field, v) GET((v), DBE_##reg##_##field##_MSB, DBE_##reg##_##field… argument 25 #define SET_DBE_FIELD(reg, field, v, f) SET((v), (f), DBE_##reg##_##field##_MSB, DBE_##reg##_##… argument
|
/include/net/ |
D | raw.h | 49 void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos); 50 void raw_seq_stop(struct seq_file *seq, void *v);
|