| /include/linux/ |
| A D | unaligned.h | 14 #define put_unaligned(val, ptr) __put_unaligned_t(typeof(*(ptr)), (val), (ptr)) argument 98 *p++ = (val >> 16) & 0xff; in __put_unaligned_be24() 99 *p++ = (val >> 8) & 0xff; in __put_unaligned_be24() 100 *p++ = val & 0xff; in __put_unaligned_be24() 110 *p++ = val & 0xff; in __put_unaligned_le24() 111 *p++ = (val >> 8) & 0xff; in __put_unaligned_le24() 112 *p++ = (val >> 16) & 0xff; in __put_unaligned_le24() 122 *p++ = (val >> 40) & 0xff; in __put_unaligned_be48() 123 *p++ = (val >> 32) & 0xff; in __put_unaligned_be48() 126 *p++ = (val >> 8) & 0xff; in __put_unaligned_be48() [all …]
|
| A D | virtio_byteorder.h | 19 return le16_to_cpu((__force __le16)val); in __virtio16_to_cpu() 21 return be16_to_cpu((__force __be16)val); in __virtio16_to_cpu() 27 return (__force __virtio16)cpu_to_le16(val); in __cpu_to_virtio16() 29 return (__force __virtio16)cpu_to_be16(val); in __cpu_to_virtio16() 35 return le32_to_cpu((__force __le32)val); in __virtio32_to_cpu() 37 return be32_to_cpu((__force __be32)val); in __virtio32_to_cpu() 43 return (__force __virtio32)cpu_to_le32(val); in __cpu_to_virtio32() 45 return (__force __virtio32)cpu_to_be32(val); in __cpu_to_virtio32() 51 return le64_to_cpu((__force __le64)val); in __virtio64_to_cpu() 53 return be64_to_cpu((__force __be64)val); in __virtio64_to_cpu() [all …]
|
| A D | iopoll.h | 36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument 46 (val) = op(args); \ 51 (val) = op(args); \ 97 (val) = op(args); \ 101 (val) = op(args); \ 157 #define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 158 readx_poll_timeout(readb, addr, val, cond, delay_us, timeout_us) 163 #define readw_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 164 readx_poll_timeout(readw, addr, val, cond, delay_us, timeout_us) 170 readx_poll_timeout(readl, addr, val, cond, delay_us, timeout_us) [all …]
|
| A 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() 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 96 val ^= (val >> 32); in hash32_ptr() [all …]
|
| A 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 …]
|
| A D | find.h | 70 return val ? __ffs(val) : size; in find_next_bit() 100 return val ? __ffs(val) : size; in find_next_and_bit() 131 return val ? __ffs(val) : size; in find_next_andnot_bit() 161 return val ? __ffs(val) : size; in find_next_or_bit() 211 return val ? __ffs(val) : size; in find_first_bit() 240 return val ? fns(val, n) : size; in find_nth_bit() 266 return val ? fns(val, n) : size; in find_nth_and_bit() 320 return val ? __ffs(val) : size; in find_first_and_bit() 344 return val ? __ffs(val) : size; in find_first_andnot_bit() 369 return val ? __ffs(val) : size; in find_first_and_and_bit() [all …]
|
| /include/linux/rpmsg/ |
| A D | byteorder.h | 22 return le16_to_cpu((__force __le16)val); in __rpmsg16_to_cpu() 24 return be16_to_cpu((__force __be16)val); in __rpmsg16_to_cpu() 30 return (__force __rpmsg16)cpu_to_le16(val); in __cpu_to_rpmsg16() 32 return (__force __rpmsg16)cpu_to_be16(val); in __cpu_to_rpmsg16() 38 return le32_to_cpu((__force __le32)val); in __rpmsg32_to_cpu() 40 return be32_to_cpu((__force __be32)val); in __rpmsg32_to_cpu() 46 return (__force __rpmsg32)cpu_to_le32(val); in __cpu_to_rpmsg32() 48 return (__force __rpmsg32)cpu_to_be32(val); in __cpu_to_rpmsg32() 54 return le64_to_cpu((__force __le64)val); in __rpmsg64_to_cpu() 56 return be64_to_cpu((__force __be64)val); in __rpmsg64_to_cpu() [all …]
|
| /include/trace/events/ |
| A D | intel-sst.h | 21 TP_PROTO(unsigned int val), 23 TP_ARGS(val), 30 __entry->val = val; 40 TP_ARGS(val) 48 TP_ARGS(val) 56 TP_ARGS(offset, val), 65 __entry->val = val; 76 TP_ARGS(offset, val) 84 TP_ARGS(offset, val) 92 TP_ARGS(offset, val) [all …]
|
| A D | asoc.h | 27 TP_ARGS(dapm, val), 38 __entry->val = val; 49 TP_ARGS(dapm, val) 57 TP_ARGS(dapm, val) 100 TP_ARGS(w, val), 109 __entry->val = val; 120 TP_ARGS(w, val) 128 TP_ARGS(w, val) 136 TP_ARGS(w, val) 251 __entry->val = val; [all …]
|
| A D | memcg.h | 16 TP_ARGS(memcg, item, val), 21 __field(int, val) 27 __entry->val = val; 31 __entry->id, __entry->item, __entry->val) 38 TP_ARGS(memcg, item, val) 45 TP_ARGS(memcg, item, val) 52 TP_ARGS(memcg, item, val), 57 __field(unsigned long, val) 63 __entry->val = val; 67 __entry->id, __entry->item, __entry->val) [all …]
|
| A 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)
|
| A 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) 44 TP_ARGS(caller, caller0, val, width, addr) 50 TP_ARGS(caller, caller0, val, width, addr) 83 TP_ARGS(caller, caller0, val, width, addr), 89 __field(u64, val) 96 __entry->val = val; [all …]
|
| /include/asm-generic/ |
| A D | ticket_spinlock.h | 35 u32 val = atomic_fetch_add(1<<16, &lock->val); in ticket_spin_lock() local 36 u16 ticket = val >> 16; in ticket_spin_lock() 38 if (ticket == (u16)val) in ticket_spin_lock() 55 u32 old = atomic_read(&lock->val); in ticket_spin_trylock() 66 u32 val = atomic_read(&lock->val); in ticket_spin_unlock() local 68 smp_store_release(ptr, (u16)val + 1); in ticket_spin_unlock() 73 u32 val = lock.val.counter; in ticket_spin_value_unlocked() local 75 return ((val >> 16) == (val & 0xffff)); in ticket_spin_value_unlocked() 80 arch_spinlock_t val = READ_ONCE(*lock); in ticket_spin_is_locked() local 87 u32 val = atomic_read(&lock->val); in ticket_spin_is_contended() local [all …]
|
| A D | percpu.h | 228 #define raw_cpu_write_1(pcp, val) raw_cpu_generic_to_op(pcp, val, =) argument 231 #define raw_cpu_write_2(pcp, val) raw_cpu_generic_to_op(pcp, val, =) argument 234 #define raw_cpu_write_4(pcp, val) raw_cpu_generic_to_op(pcp, val, =) argument 237 #define raw_cpu_write_8(pcp, val) raw_cpu_generic_to_op(pcp, val, =) argument 241 #define raw_cpu_add_1(pcp, val) raw_cpu_generic_to_op(pcp, val, +=) argument 244 #define raw_cpu_add_2(pcp, val) raw_cpu_generic_to_op(pcp, val, +=) argument 247 #define raw_cpu_add_4(pcp, val) raw_cpu_generic_to_op(pcp, val, +=) argument 267 #define raw_cpu_or_1(pcp, val) raw_cpu_generic_to_op(pcp, val, |=) argument 270 #define raw_cpu_or_2(pcp, val) raw_cpu_generic_to_op(pcp, val, |=) argument 273 #define raw_cpu_or_4(pcp, val) raw_cpu_generic_to_op(pcp, val, |=) argument [all …]
|
| A 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()
|
| /include/sound/ |
| A D | emu8000_reg.h | 122 #define EMU8000_HWCF4_WRITE(emu, val) \ argument 124 #define EMU8000_HWCF5_WRITE(emu, val) \ argument 126 #define EMU8000_HWCF6_WRITE(emu, val) \ argument 129 #define EMU8000_HWCF7_WRITE(emu, val) \ argument 131 #define EMU8000_SMALR_WRITE(emu, val) \ argument 133 #define EMU8000_SMARR_WRITE(emu, val) \ argument 135 #define EMU8000_SMALW_WRITE(emu, val) \ argument 137 #define EMU8000_SMARW_WRITE(emu, val) \ argument 139 #define EMU8000_SMLD_WRITE(emu, val) \ argument 141 #define EMU8000_SMRD_WRITE(emu, val) \ argument [all …]
|
| A D | hda_regmap.h | 20 unsigned int *val); 22 unsigned int reg, unsigned int *val); 24 unsigned int val); 28 unsigned int mask, unsigned int val); 80 unsigned int verb, unsigned int val) in snd_hdac_regmap_write() argument 99 unsigned int val) in snd_hdac_regmap_update() argument 140 int err, val; in snd_hdac_regmap_get_amp() local 143 return err < 0 ? err : val; in snd_hdac_regmap_get_amp() 185 int err, val; in snd_hdac_regmap_get_amp_stereo() local 188 return err < 0 ? err : val; in snd_hdac_regmap_get_amp_stereo() [all …]
|
| /include/dt-bindings/pinctrl/ |
| A 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/linux/mfd/ |
| A 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 86 #define STEPCHARGE_RFP(val) FIELD_PREP(GENMASK(14, 12), (val)) argument 88 #define STEPCHARGE_INM(val) FIELD_PREP(GENMASK(18, 15), (val)) argument 90 #define STEPCHARGE_INP(val) FIELD_PREP(GENMASK(22, 19), (val)) argument [all …]
|
| /include/video/ |
| A D | vga.h | 207 writeb (val, regbase + port); in vga_mm_w() 228 outb_p(val, port); in vga_io_w() 232 unsigned char val) in vga_io_w_fast() argument 248 vga_mm_w (regbase, port, val); in vga_w() 250 vga_io_w (port, val); in vga_w() 260 vga_io_w_fast (port, reg, val); in vga_w_fast() 270 vga_mm_w (regbase, port, val); in vga_w() 314 vga_io_w (VGA_CRT_DC, val); in vga_io_wcrt() 369 vga_io_w (VGA_SEQ_D, val); in vga_io_wseq() 423 vga_io_w (VGA_GFX_D, val); in vga_io_wgfx() [all …]
|
| /include/uapi/linux/ |
| A 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 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 36 #define LIRC_IS_TIMEOUT(val) (LIRC_MODE2(val) == LIRC_MODE2_TIMEOUT) argument [all …]
|
| /include/net/ |
| A D | proto_memory.h | 55 int val = this_cpu_xchg(*proto->per_cpu_fw_alloc, 0); in proto_memory_pcpu_drain() local 57 if (val) in proto_memory_pcpu_drain() 58 atomic_long_add(val, proto->memory_allocated); in proto_memory_pcpu_drain() 62 sk_memory_allocated_add(const struct sock *sk, int val) in sk_memory_allocated_add() argument 66 val = this_cpu_add_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_add() 68 if (unlikely(val >= READ_ONCE(net_hotdata.sysctl_mem_pcpu_rsv))) in sk_memory_allocated_add() 73 sk_memory_allocated_sub(const struct sock *sk, int val) in sk_memory_allocated_sub() argument 77 val = this_cpu_sub_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_sub() 79 if (unlikely(val <= -READ_ONCE(net_hotdata.sysctl_mem_pcpu_rsv))) in sk_memory_allocated_sub()
|
| /include/linux/iio/imu/ |
| A D | adis.h | 189 u8 val) in __adis_write_reg_8() argument 232 *val = tmp; in __adis_read_reg_16() 251 *val = tmp; in __adis_read_reg_32() 291 u8 val) in adis_write_reg_8() argument 303 u16 val) in adis_write_reg_16() argument 334 *val = tmp; in adis_read_reg_16() 353 *val = tmp; in adis_read_reg_32() 389 BUILD_BUG_ON(sizeof(val) != 2 && sizeof(val) != 4); \ 390 adis_update_bits_base(adis, reg, mask, val, sizeof(val)); \ 405 BUILD_BUG_ON(sizeof(val) != 2 && sizeof(val) != 4); \ [all …]
|
| /include/math-emu/ |
| A 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 83 #define FP_UNPACK_D(X,val) \ argument 95 #define FP_PACK_D(val,X) \ argument 101 #define FP_PACK_DP(val,X) \ argument 146 #define FP_UNPACK_RAW_D(X,val) _FP_UNPACK_RAW_1(D,X,val) argument 147 #define FP_UNPACK_RAW_DP(X,val) _FP_UNPACK_RAW_1_P(D,X,val) argument 148 #define FP_PACK_RAW_D(val,X) _FP_PACK_RAW_1(D,val,X) argument 167 #define FP_PACK_D(val,X) \ argument [all …]
|
| A D | quad.h | 80 #define FP_UNPACK_RAW_Q(X,val) _FP_UNPACK_RAW_4(Q,X,val) argument 81 #define FP_UNPACK_RAW_QP(X,val) _FP_UNPACK_RAW_4_P(Q,X,val) argument 82 #define FP_PACK_RAW_Q(val,X) _FP_PACK_RAW_4(Q,val,X) argument 89 #define FP_UNPACK_Q(X,val) \ argument 101 #define FP_PACK_Q(val,X) \ argument 107 #define FP_PACK_QP(val,X) \ argument 153 #define FP_UNPACK_RAW_Q(X,val) _FP_UNPACK_RAW_2(Q,X,val) argument 154 #define FP_UNPACK_RAW_QP(X,val) _FP_UNPACK_RAW_2_P(Q,X,val) argument 155 #define FP_PACK_RAW_Q(val,X) _FP_PACK_RAW_2(Q,val,X) argument 174 #define FP_PACK_Q(val,X) \ argument [all …]
|