| /linux/arch/x86/include/asm/ |
| H A D | uaccess.h | 373 #define __try_cmpxchg_user_asm(itype, ltype, _ptr, _pold, _new, label) ({ \ argument 375 __typeof__(_ptr) _old = (__typeof__(_ptr))(_pold); \ 376 __typeof__(*(_ptr)) __old = *_old; \ 377 __typeof__(*(_ptr)) __new = (_new); \ 382 [ptr] "+m" (*_ptr), \ 392 #define __try_cmpxchg64_user_asm(_ptr, _pold, _new, label) ({ \ argument 394 __typeof__(_ptr) _old = (__typeof__(_ptr))(_pold); \ 395 __typeof__(*(_ptr)) __old = *_old; \ 396 __typeof__(*(_ptr)) __new = (_new); \ 402 [ptr] "+m" (*_ptr) \ [all …]
|
| H A D | cmpxchg_32.h | 17 #define __arch_cmpxchg64(_ptr, _old, _new, _lock) \ argument 23 : [ptr] "+m" (*(_ptr)), \ 42 #define __arch_try_cmpxchg64(_ptr, _oldp, _new, _lock) \ argument 50 [ptr] "+m" (*(_ptr)), \ 88 #define __arch_cmpxchg64_emu(_ptr, _old, _new, _lock_loc, _lock) \ argument 99 [ptr] "S" (_ptr) \ 117 #define __arch_try_cmpxchg64_emu(_ptr, _oldp, _new, _lock_loc, _lock) \ argument 130 [ptr] "S" (_ptr) \
|
| H A D | cmpxchg.h | 158 #define __raw_try_cmpxchg(_ptr, _pold, _new, size, lock) \ argument 161 __typeof__(_ptr) _old = (__typeof__(_ptr))(_pold); \ 162 __typeof__(*(_ptr)) __old = *_old; \ 163 __typeof__(*(_ptr)) __new = (_new); \ 167 volatile u8 *__ptr = (volatile u8 *)(_ptr); \ 178 volatile u16 *__ptr = (volatile u16 *)(_ptr); \ 189 volatile u32 *__ptr = (volatile u32 *)(_ptr); \ 200 volatile u64 *__ptr = (volatile u64 *)(_ptr); \
|
| H A D | cmpxchg_64.h | 36 #define __arch_cmpxchg128(_ptr, _old, _new, _lock) \ argument 42 : [ptr] "+m" (*(_ptr)), \ 62 #define __arch_try_cmpxchg128(_ptr, _oldp, _new, _lock) \ argument 70 [ptr] "+m" (*(_ptr)), \
|
| H A D | pgtable-3level.h | 22 #define pxx_xchg64(_pxx, _ptr, _val) ({ \ argument 23 _pxx##val_t *_p = (_pxx##val_t *)_ptr; \
|
| H A D | percpu.h | 63 #define arch_raw_cpu_ptr(_ptr) \ argument 67 tcp_ptr__ += (__force unsigned long)(_ptr); \ 68 (TYPEOF_UNQUAL(*(_ptr)) __force __kernel *)tcp_ptr__; \ 71 #define arch_raw_cpu_ptr(_ptr) \ argument 74 (TYPEOF_UNQUAL(*(_ptr)) __force __kernel *)0; \
|
| H A D | insn.h | 172 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN) argument
|
| /linux/drivers/staging/rtl8723bs/include/ |
| H A D | basic_types.h | 47 #define READEF1BYTE(_ptr) \ argument 48 EF1BYTE(*((u8 *)(_ptr))) 50 #define READEF2BYTE(_ptr) \ argument 51 EF2BYTE(*(_ptr)) 52 #define READEF4BYTE(_ptr) \ argument 53 EF4BYTE(*(_ptr)) 56 #define WRITEEF1BYTE(_ptr, _val) \ argument 58 (*((u8 *)(_ptr))) = EF1BYTE(_val); \ 61 #define WRITEEF2BYTE(_ptr, _val) \ argument 63 (*((u16 *)(_ptr))) = EF2BYTE(_val); \ [all …]
|
| /linux/include/rdma/ |
| H A D | iba.h | 58 field_struct *_ptr = ptr; \ 59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \ 66 field_struct *_ptr = ptr; \ 67 (type *)((void *)_ptr + (field_offset)); \ 86 const field_struct *_ptr = ptr; \ 88 field_mask, _iba_get##num_bits((const void *)_ptr + \
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_common.h | 62 const field_type *_ptr = ptr; \ 63 *((__le32 *)_ptr + (field_h) / 32) |= cpu_to_le32( \ 72 const field_type *_ptr = ptr; \ 74 *((__le32 *)_ptr + (field_h) / 32) &= \ 99 const field_type *_ptr = ptr; \ 102 le32_to_cpu(*((__le32 *)_ptr + (field_h) / 32))); \
|
| /linux/drivers/net/ethernet/3com/ |
| H A D | typhoon.h | 365 do { struct cmd_desc *_ptr = (x); \ 366 memset(_ptr, 0, sizeof(struct cmd_desc)); \ 367 _ptr->flags = TYPHOON_CMD_DESC | TYPHOON_DESC_VALID; \ 368 _ptr->cmd = command; \ 373 do { struct cmd_desc *_ptr = (x); \ 374 memset(_ptr, 0, sizeof(struct cmd_desc)); \ 375 _ptr->flags = TYPHOON_CMD_RESPOND | TYPHOON_CMD_DESC; \ 376 _ptr->flags |= TYPHOON_DESC_VALID; \ 377 _ptr->cmd = command; \ 378 _ptr->seqNo = 1; \
|
| /linux/include/linux/atomic/ |
| H A D | atomic-arch-fallback.h | 189 #define raw_try_cmpxchg(_ptr, _oldp, _new) \ argument 191 typeof(*(_ptr)) *___op = (_oldp), ___o = *___op, ___r; \ 192 ___r = raw_cmpxchg((_ptr), ___o, (_new)); \ 207 #define raw_try_cmpxchg_acquire(_ptr, _oldp, _new) \ argument 209 typeof(*(_ptr)) *___op = (_oldp), ___o = *___op, ___r; \ 210 ___r = raw_cmpxchg_acquire((_ptr), ___o, (_new)); \ 225 #define raw_try_cmpxchg_release(_ptr, _oldp, _new) \ argument 227 typeof(*(_ptr)) *___op = (_oldp), ___o = *___op, ___r; \ 228 ___r = raw_cmpxchg_release((_ptr), ___o, (_new)); \ 240 #define raw_try_cmpxchg_relaxed(_ptr, _oldp, _new) \ argument [all …]
|
| /linux/drivers/infiniband/hw/efa/ |
| H A D | efa_common_defs.h | 18 typeof(ptr) _ptr = ptr; \ 19 *_ptr = (*_ptr & ~(mask##_MASK)) | \
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | netif_receive_skb.c | 55 static struct btf_ptr _ptr = { }; \ 62 _ptr.ptr = &_ptrdata; \ 63 _ptr.type_id = bpf_core_type_id_kernel(_type); \ 64 if (_ptr.type_id <= 0) { \ 69 &_ptr, sizeof(_ptr), _hflags); \
|
| /linux/arch/x86/include/asm/cpuid/ |
| H A D | api.h | 278 #define for_each_cpuid_0x2_desc(_regs, _ptr, _desc) \ argument 279 for (_ptr = &(_regs).desc[1]; \ 280 _ptr < &(_regs).desc[16] && (_desc = &cpuid_0x2_table[*_ptr]); \ 281 _ptr++)
|
| /linux/include/linux/ |
| H A D | cleanup.h | 343 #define __GUARD_IS_ERR(_ptr) \ argument 345 unsigned long _rc = (__force unsigned long)(_ptr); \ 352 void *_ptr = (void *)(__force unsigned long)*(_exp); \ 353 if (IS_ERR(_ptr)) { \ 354 _ptr = NULL; \ 356 return _ptr; \
|
| H A D | pm.h | 472 #define pm_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM), (_ptr)) argument 473 #define pm_sleep_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM_SLEEP), (_ptr)) argument
|
| /linux/drivers/scsi/fnic/ |
| H A D | fdls_fc.h | 84 #define FNIC_STD_SET_NPORT_NAME(_ptr, _wwpn) put_unaligned_be64(_wwpn, _ptr) argument 85 #define FNIC_STD_SET_NODE_NAME(_ptr, _wwnn) put_unaligned_be64(_wwnn, _ptr) argument
|
| /linux/drivers/md/dm-vdo/ |
| H A D | memory-alloc.h | 89 TYPE1 **_ptr = (PTR); \ 96 _ptr); \
|
| /linux/drivers/md/bcache/ |
| H A D | util.h | 263 typeof((array)->freelist) _ptr = ptr; \ 265 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \ 266 (array)->freelist = _ptr; \ 446 typeof(ptr) _ptr = ptr; \ 447 _ptr ? container_of(_ptr, type, member) : NULL; \
|
| /linux/lib/zstd/common/ |
| H A D | compiler.h | 116 const char* const _ptr = (const char*)(p); \ 120 PREFETCH_L2(_ptr + _pos); \
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mld.h | 300 #define CLEANUP_STRUCT(_ptr) \ argument 301 memset((void *)&(_ptr)->zeroed_on_hw_restart, 0, \ 302 sizeof((_ptr)->zeroed_on_hw_restart))
|
| /linux/scripts/atomic/ |
| H A D | gen-atomic-fallback.sh | 233 typeof(*(_ptr)) *___op = (_oldp), ___o = *___op, ___r; \\ 234 ___r = raw_${prefix}${cmpxchg}${suffix}((_ptr), ___o, (_new)); \\
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_dump.c | 383 void *_ptr = &_ptrdata; \ 386 _ptr, sizeof(_type), _str, \ 403 void *_ptr = &_ptrdata; \ 406 _ptr, _type_sz, _str, _expected); \ 413 void *_ptr = &_ptrdata; \ 416 _ptr, sizeof(_type), _str, \
|
| /linux/tools/arch/x86/include/asm/ |
| H A D | insn.h | 172 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN) argument
|