/include/asm-generic/ |
D | unaligned.h | 17 #define __put_unaligned_t(type, val, ptr) do { \ argument 19 __pptr->x = (val); \ 23 #define put_unaligned(val, ptr) __put_unaligned_t(typeof(*(ptr)), (val), (ptr)) argument 40 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument 42 __put_unaligned_t(__le16, cpu_to_le16(val), p); in put_unaligned_le16() 45 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument 47 __put_unaligned_t(__le32, cpu_to_le32(val), p); in put_unaligned_le32() 50 static inline void put_unaligned_le64(u64 val, void *p) in put_unaligned_le64() argument 52 __put_unaligned_t(__le64, cpu_to_le64(val), p); in put_unaligned_le64() 70 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument [all …]
|
D | percpu.h | 70 #define raw_cpu_generic_to_op(pcp, val, op) \ argument 72 *raw_cpu_ptr(&(pcp)) op val; \ 75 #define raw_cpu_generic_add_return(pcp, val) \ argument 79 *__p += val; \ 152 #define this_cpu_generic_to_op(pcp, val, op) \ argument 156 raw_cpu_generic_to_op(pcp, val, op); \ 161 #define this_cpu_generic_add_return(pcp, val) \ argument 166 __ret = raw_cpu_generic_add_return(pcp, val); \ 215 #define raw_cpu_write_1(pcp, val) raw_cpu_generic_to_op(pcp, val, =) argument 218 #define raw_cpu_write_2(pcp, val) raw_cpu_generic_to_op(pcp, val, =) argument [all …]
|
D | qspinlock.h | 57 return atomic_read(&lock->val); in queued_spin_is_locked() 73 return !lock.val.counter; in queued_spin_value_unlocked() 83 return atomic_read(&lock->val) & ~_Q_LOCKED_MASK; in queued_spin_is_contended() 92 int val = atomic_read(&lock->val); in queued_spin_trylock() local 94 if (unlikely(val)) in queued_spin_trylock() 97 return likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL)); in queued_spin_trylock() 100 extern void queued_spin_lock_slowpath(struct qspinlock *lock, u32 val); 109 int val = 0; in queued_spin_lock() local 111 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) in queued_spin_lock() 114 queued_spin_lock_slowpath(lock, val); in queued_spin_lock()
|
D | spinlock.h | 35 u32 val = atomic_fetch_add(1<<16, lock); in arch_spin_lock() local 36 u16 ticket = val >> 16; in arch_spin_lock() 38 if (ticket == (u16)val) in arch_spin_lock() 66 u32 val = atomic_read(lock); in arch_spin_unlock() local 68 smp_store_release(ptr, (u16)val + 1); in arch_spin_unlock() 73 u32 val = atomic_read(lock); in arch_spin_is_locked() local 75 return ((val >> 16) != (val & 0xffff)); in arch_spin_is_locked() 80 u32 val = atomic_read(lock); in arch_spin_is_contended() local 82 return (s16)((val >> 16) - (val & 0xffff)) > 1; in arch_spin_is_contended()
|
/include/linux/ |
D | virtio_byteorder.h | 16 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu() argument 19 return le16_to_cpu((__force __le16)val); in __virtio16_to_cpu() 21 return be16_to_cpu((__force __be16)val); in __virtio16_to_cpu() 24 static inline __virtio16 __cpu_to_virtio16(bool little_endian, u16 val) in __cpu_to_virtio16() argument 27 return (__force __virtio16)cpu_to_le16(val); in __cpu_to_virtio16() 29 return (__force __virtio16)cpu_to_be16(val); in __cpu_to_virtio16() 32 static inline u32 __virtio32_to_cpu(bool little_endian, __virtio32 val) in __virtio32_to_cpu() argument 35 return le32_to_cpu((__force __le32)val); in __virtio32_to_cpu() 37 return be32_to_cpu((__force __be32)val); in __virtio32_to_cpu() 40 static inline __virtio32 __cpu_to_virtio32(bool little_endian, u32 val) in __cpu_to_virtio32() argument [all …]
|
D | iopoll.h | 36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument 46 (val) = op(args); \ 51 (val) = op(args); \ 84 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument 97 (val) = op(args); \ 101 (val) = op(args); \ 134 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument 135 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr) 154 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument 155 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr) [all …]
|
D | hash.h | 16 #define hash_long(val, bits) hash_32(val, bits) argument 18 #define hash_long(val, bits) hash_64(val, bits) argument 60 static inline u32 __hash_32_generic(u32 val) in __hash_32_generic() argument 62 return val * GOLDEN_RATIO_32; in __hash_32_generic() 65 static inline u32 hash_32(u32 val, unsigned int bits) in hash_32() argument 68 return __hash_32(val) >> (32 - bits); in hash_32() 74 static __always_inline u32 hash_64_generic(u64 val, unsigned int bits) in hash_64_generic() argument 78 return val * GOLDEN_RATIO_64 >> (64 - bits); in hash_64_generic() 81 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic() 93 unsigned long val = (unsigned long)ptr; in hash32_ptr() local [all …]
|
D | litex.h | 14 static inline void _write_litex_subregister(u32 val, void __iomem *addr) in _write_litex_subregister() argument 16 writel((u32 __force)cpu_to_le32(val), addr); in _write_litex_subregister() 41 static inline void litex_write8(void __iomem *reg, u8 val) in litex_write8() argument 43 _write_litex_subregister(val, reg); in litex_write8() 46 static inline void litex_write16(void __iomem *reg, u16 val) in litex_write16() argument 48 _write_litex_subregister(val, reg); in litex_write16() 51 static inline void litex_write32(void __iomem *reg, u32 val) in litex_write32() argument 53 _write_litex_subregister(val, reg); in litex_write32() 56 static inline void litex_write64(void __iomem *reg, u64 val) in litex_write64() argument 58 _write_litex_subregister(val >> 32, reg); in litex_write64() [all …]
|
D | find.h | 58 unsigned long val; in find_next_bit() local 63 val = *addr & GENMASK(size - 1, offset); in find_next_bit() 64 return val ? __ffs(val) : size; in find_next_bit() 88 unsigned long val; in find_next_and_bit() local 93 val = *addr1 & *addr2 & GENMASK(size - 1, offset); in find_next_and_bit() 94 return val ? __ffs(val) : size; in find_next_and_bit() 119 unsigned long val; in find_next_andnot_bit() local 124 val = *addr1 & ~*addr2 & GENMASK(size - 1, offset); in find_next_andnot_bit() 125 return val ? __ffs(val) : size; in find_next_andnot_bit() 149 unsigned long val; in find_next_or_bit() local [all …]
|
D | minmax.h | 60 #define __clamp(val, lo, hi) \ argument 61 ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val))) 63 #define __clamp_once(val, lo, hi, unique_val, unique_lo, unique_hi) ({ \ argument 64 typeof(val) unique_val = (val); \ 70 static_assert(__types_ok(val, lo), "clamp() 'lo' signedness error"); \ 71 static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \ 74 #define __careful_clamp(val, lo, hi) ({ \ argument 75 __builtin_choose_expr(__is_constexpr((val) - (lo) + (hi)), \ 76 __clamp(val, lo, hi), \ 77 __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \ [all …]
|
/include/linux/rpmsg/ |
D | byteorder.h | 19 static inline u16 __rpmsg16_to_cpu(bool little_endian, __rpmsg16 val) in __rpmsg16_to_cpu() argument 22 return le16_to_cpu((__force __le16)val); in __rpmsg16_to_cpu() 24 return be16_to_cpu((__force __be16)val); in __rpmsg16_to_cpu() 27 static inline __rpmsg16 __cpu_to_rpmsg16(bool little_endian, u16 val) in __cpu_to_rpmsg16() argument 30 return (__force __rpmsg16)cpu_to_le16(val); in __cpu_to_rpmsg16() 32 return (__force __rpmsg16)cpu_to_be16(val); in __cpu_to_rpmsg16() 35 static inline u32 __rpmsg32_to_cpu(bool little_endian, __rpmsg32 val) in __rpmsg32_to_cpu() argument 38 return le32_to_cpu((__force __le32)val); in __rpmsg32_to_cpu() 40 return be32_to_cpu((__force __be32)val); in __rpmsg32_to_cpu() 43 static inline __rpmsg32 __cpu_to_rpmsg32(bool little_endian, u32 val) in __cpu_to_rpmsg32() argument [all …]
|
/include/trace/events/ |
D | intel-sst.h | 21 TP_PROTO(unsigned int val), 23 TP_ARGS(val), 26 __field( unsigned int, val ) 30 __entry->val = val; 33 TP_printk("0x%8.8x", (unsigned int)__entry->val) 38 TP_PROTO(unsigned int val), 40 TP_ARGS(val) 46 TP_PROTO(unsigned int val), 48 TP_ARGS(val) 54 TP_PROTO(unsigned int offset, unsigned int val), [all …]
|
D | asoc.h | 24 TP_PROTO(struct snd_soc_card *card, int val), 26 TP_ARGS(card, val), 30 __field( int, val ) 35 __entry->val = val; 38 TP_printk("card=%s val=%d", __get_str(name), (int)__entry->val) 43 TP_PROTO(struct snd_soc_card *card, int val), 45 TP_ARGS(card, val) 51 TP_PROTO(struct snd_soc_card *card, int val), 53 TP_ARGS(card, val) 92 TP_PROTO(struct snd_soc_dapm_widget *w, int val), [all …]
|
D | hwmon.h | 12 TP_PROTO(int index, const char *attr_name, long val), 14 TP_ARGS(index, attr_name, val), 19 __field(long, val) 25 __entry->val = val; 29 __entry->index, __get_str(attr_name), __entry->val) 34 TP_PROTO(int index, const char *attr_name, long val), 36 TP_ARGS(index, attr_name, val) 41 TP_PROTO(int index, const char *attr_name, long val), 43 TP_ARGS(index, attr_name, val)
|
D | rwmmio.h | 15 TP_PROTO(unsigned long caller, unsigned long caller0, u64 val, u8 width, 18 TP_ARGS(caller, caller0, val, width, addr), 24 __field(u64, val) 31 __entry->val = val; 38 __entry->val, __entry->addr) 42 TP_PROTO(unsigned long caller, unsigned long caller0, u64 val, u8 width, 44 TP_ARGS(caller, caller0, val, width, addr) 48 TP_PROTO(unsigned long caller, unsigned long caller0, u64 val, u8 width, 50 TP_ARGS(caller, caller0, val, width, addr) 80 TP_PROTO(unsigned long caller, unsigned long caller0, u64 val, u8 width, [all …]
|
/include/dt-bindings/pinctrl/ |
D | omap.h | 59 #define OMAP2420_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0030) (val) argument 60 #define OMAP2430_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) argument 61 #define OMAP3_CORE1_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) argument 62 #define OMAP3430_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val) argument 63 #define OMAP3630_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val) argument 64 #define OMAP3_WKUP_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val) argument 65 #define DM814X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) argument 66 #define DM816X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) argument 67 #define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) (0) argument 76 #define OMAP4_IOPAD(offset, val) OMAP_PADCONF_OFFSET((offset), 0x0040) (val) argument [all …]
|
/include/sound/ |
D | emu8000_reg.h | 108 #define EMU8000_CPF_WRITE(emu, chan, val) \ argument 109 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)), (val)) 110 #define EMU8000_PTRX_WRITE(emu, chan, val) \ argument 111 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)), (val)) 112 #define EMU8000_CVCF_WRITE(emu, chan, val) \ argument 113 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)), (val)) 114 #define EMU8000_VTFT_WRITE(emu, chan, val) \ argument 115 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)), (val)) 116 #define EMU8000_PSST_WRITE(emu, chan, val) \ argument 117 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)), (val)) [all …]
|
D | hda_regmap.h | 20 unsigned int *val); 22 unsigned int reg, unsigned int *val); 24 unsigned int val); 26 unsigned int mask, unsigned int val); 28 unsigned int mask, unsigned int val); 80 unsigned int verb, unsigned int val) in snd_hdac_regmap_write() argument 84 return snd_hdac_regmap_write_raw(codec, cmd, val); in snd_hdac_regmap_write() 99 unsigned int val) in snd_hdac_regmap_update() argument 103 return snd_hdac_regmap_update_raw(codec, cmd, mask, val); in snd_hdac_regmap_update() 116 unsigned int verb, unsigned int *val) in snd_hdac_regmap_read() argument [all …]
|
/include/linux/mfd/ |
D | ti_am335x_tscadc.h | 55 #define STEPCONFIG_MODE(val) FIELD_PREP(GENMASK(1, 0), (val)) argument 58 #define STEPCONFIG_AVG(val) FIELD_PREP(GENMASK(4, 2), (val)) argument 66 #define STEPCONFIG_RFP(val) FIELD_PREP(GENMASK(13, 12), (val)) argument 68 #define STEPCONFIG_INM(val) FIELD_PREP(GENMASK(18, 15), (val)) argument 70 #define STEPCONFIG_INP(val) FIELD_PREP(GENMASK(22, 19), (val)) argument 74 #define STEPCONFIG_RFM(val) FIELD_PREP(GENMASK(24, 23), (val)) argument 78 #define STEPDELAY_OPEN(val) FIELD_PREP(GENMASK(17, 0), (val)) argument 81 #define STEPDELAY_SAMPLE(val) FIELD_PREP(GENMASK(31, 24), (val)) argument 86 #define STEPCHARGE_RFP(val) FIELD_PREP(GENMASK(14, 12), (val)) argument 88 #define STEPCHARGE_INM(val) FIELD_PREP(GENMASK(18, 15), (val)) argument [all …]
|
D | tmio.h | 19 #define tmio_iowrite8(val, addr) writeb((val), (addr)) argument 20 #define tmio_iowrite16(val, addr) writew((val), (addr)) argument 22 #define tmio_iowrite32(val, addr) \ argument 24 writew((val), (addr)); \ 25 writew((val) >> 16, (addr) + 2); \ 28 #define sd_config_write8(base, shift, reg, val) \ argument 29 tmio_iowrite8((val), (base) + ((reg) << (shift))) 30 #define sd_config_write16(base, shift, reg, val) \ argument 31 tmio_iowrite16((val), (base) + ((reg) << (shift))) 32 #define sd_config_write32(base, shift, reg, val) \ argument [all …]
|
/include/uapi/linux/ |
D | lirc.h | 24 #define LIRC_SPACE(val) (((val) & LIRC_VALUE_MASK) | LIRC_MODE2_SPACE) argument 25 #define LIRC_PULSE(val) (((val) & LIRC_VALUE_MASK) | LIRC_MODE2_PULSE) argument 26 #define LIRC_FREQUENCY(val) (((val) & LIRC_VALUE_MASK) | LIRC_MODE2_FREQUENCY) argument 27 #define LIRC_TIMEOUT(val) (((val) & LIRC_VALUE_MASK) | LIRC_MODE2_TIMEOUT) argument 28 #define LIRC_OVERFLOW(val) (((val) & LIRC_VALUE_MASK) | LIRC_MODE2_OVERFLOW) argument 30 #define LIRC_VALUE(val) ((val)&LIRC_VALUE_MASK) argument 31 #define LIRC_MODE2(val) ((val)&LIRC_MODE2_MASK) argument 33 #define LIRC_IS_SPACE(val) (LIRC_MODE2(val) == LIRC_MODE2_SPACE) argument 34 #define LIRC_IS_PULSE(val) (LIRC_MODE2(val) == LIRC_MODE2_PULSE) argument 35 #define LIRC_IS_FREQUENCY(val) (LIRC_MODE2(val) == LIRC_MODE2_FREQUENCY) argument [all …]
|
/include/video/ |
D | vga.h | 209 static inline void vga_io_w (unsigned short port, unsigned char val) in vga_io_w() argument 211 outb_p(val, port); in vga_io_w() 215 unsigned char val) in vga_io_w_fast() argument 217 outw(VGA_OUT16VAL (val, reg), port); in vga_io_w_fast() 225 static inline void vga_mm_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_mm_w() argument 227 writeb (val, regbase + port); in vga_mm_w() 231 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument 233 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast() 244 static inline void vga_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_w() argument 247 vga_mm_w (regbase, port, val); in vga_w() [all …]
|
/include/linux/amba/ |
D | clcd.h | 146 u32 val, cpl; in clcdfb_decode() local 151 val = ((var->xres / 16) - 1) << 2; in clcdfb_decode() 152 val |= (var->hsync_len - 1) << 8; in clcdfb_decode() 153 val |= (var->right_margin - 1) << 16; in clcdfb_decode() 154 val |= (var->left_margin - 1) << 24; in clcdfb_decode() 155 regs->tim0 = val; in clcdfb_decode() 157 val = var->yres; in clcdfb_decode() 159 val /= 2; in clcdfb_decode() 160 val -= 1; in clcdfb_decode() 161 val |= (var->vsync_len - 1) << 10; in clcdfb_decode() [all …]
|
/include/linux/iio/imu/ |
D | adis.h | 161 unsigned int val, unsigned int size); 163 unsigned int *val, unsigned int size); 172 u8 val) in __adis_write_reg_8() argument 174 return __adis_write_reg(adis, reg, val, 1); in __adis_write_reg_8() 184 u16 val) in __adis_write_reg_16() argument 186 return __adis_write_reg(adis, reg, val, 2); in __adis_write_reg_16() 196 u32 val) in __adis_write_reg_32() argument 198 return __adis_write_reg(adis, reg, val, 4); in __adis_write_reg_32() 208 u16 *val) in __adis_read_reg_16() argument 215 *val = tmp; in __adis_read_reg_16() [all …]
|
/include/math-emu/ |
D | double.h | 74 #define FP_UNPACK_RAW_D(X,val) _FP_UNPACK_RAW_2(D,X,val) argument 75 #define FP_UNPACK_RAW_DP(X,val) _FP_UNPACK_RAW_2_P(D,X,val) argument 76 #define FP_PACK_RAW_D(val,X) _FP_PACK_RAW_2(D,val,X) argument 77 #define FP_PACK_RAW_DP(val,X) \ argument 80 _FP_PACK_RAW_2_P(D,val,X); \ 83 #define FP_UNPACK_D(X,val) \ argument 85 _FP_UNPACK_RAW_2(D,X,val); \ 89 #define FP_UNPACK_DP(X,val) \ argument 91 _FP_UNPACK_RAW_2_P(D,X,val); \ 95 #define FP_PACK_D(val,X) \ argument [all …]
|