| /linux/arch/x86/include/asm/ |
| 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 | 11 #define pxx_xchg64(_pxx, _ptr, _val) ({ \ 12 _pxx##val_t *_p = (_pxx##val_t *)_ptr; \ 22 pxx_xchg64(_pxx,_ptr,_val) global() argument
|
| 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/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/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/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/arch/x86/include/asm/cpuid/ |
| H A D | api.h | 258 * @_ptr: u8 pointer, for macro internal use only 280 #define for_each_cpuid_0x2_desc(_regs, _ptr, _desc) \ 281 for (_ptr = &(_regs).desc[1]; \ 282 _ptr < &(_regs).desc[16] && (_desc = &cpuid_0x2_table[*_ptr]); \ 283 _ptr++) 301 #define __const_ptr(_ptr) \ 302 ((const __typeof__(*(_ptr)) *)(_ptr)) 279 for_each_cpuid_0x2_desc(_regs,_ptr,_desc) global() argument 300 __const_ptr(_ptr) global() argument
|
| /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/include/linux/ |
| H A D | cleanup.h | 357 #define __GUARD_IS_ERR(_ptr) \ argument 359 unsigned long _rc = (__force unsigned long)(_ptr); \ 366 void *_ptr = (void *)(__force unsigned long)*(_exp); \ 367 if (IS_ERR(_ptr)) { \ 368 _ptr = NULL; \ 370 return _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 | 319 #define CLEANUP_STRUCT(_ptr) \ 320 memset((void *)&(_ptr)->zeroed_on_hw_restart, 0, \ 321 sizeof((_ptr)->zeroed_on_hw_restart)) in iwl_cleanup_mld() 315 CLEANUP_STRUCT(_ptr) global() argument
|
| /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 | 702 void *_ptr = &_ptrdata; \ in test_btf_dump_struct_data() 705 _ptr, sizeof(_type), _str, \ in test_btf_dump_struct_data() 722 void *_ptr = &_ptrdata; \ in test_btf_dump_struct_data() 725 _ptr, _type_sz, _str, _expected); \ in test_btf_dump_struct_data() 732 void *_ptr = &_ptrdata; \ in test_btf_dump_struct_data() 735 _ptr, sizeof(_type), _str, \ in test_btf_dump_struct_data()
|
| /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
|
| /linux/arch/s390/include/asm/ |
| H A D | percpu.h | 16 #define arch_raw_cpu_ptr(_ptr) \ argument 20 tcp_ptr__ = (__force unsigned long)(_ptr); \ 30 (TYPEOF_UNQUAL(*(_ptr)) __force __kernel *)tcp_ptr__; \
|
| /linux/net/mptcp/ |
| H A D | protocol.h | 418 typeof(ptr) _ptr = (ptr); \ in mptcp_win_from_space() 419 WARN_ON(_ptr->sk_protocol != IPPROTO_TCP); \ in mptcp_win_from_space() 420 container_of_const(_ptr, struct tcp_sock, inet_conn.icsk_inet.sk); \ in mptcp_win_from_space() 423 typeof(ptr) _ptr = (ptr); \ in mptcp_space_from_win() 424 WARN_ON(_ptr->sk_protocol != IPPROTO_MPTCP); \ in mptcp_space_from_win() 425 container_of_const(_ptr, struct mptcp_sock, sk.icsk_inet.sk); \ in mptcp_space_from_win()
|
| /linux/include/net/bluetooth/ |
| H A D | hci_sync.h | 9 #define PTR_UINT(_ptr) ((uintptr_t)((void *)_ptr)) argument
|
| /linux/drivers/usb/dwc2/ |
| H A D | debugfs.c | 662 #define print_param(_seq, _ptr, _param) \ 663 seq_printf((_seq), "%-30s: %d\n", #_param, (_ptr)->_param) 665 #define print_param_hex(_seq, _ptr, _param) \ 666 seq_printf((_seq), "%-30s: 0x%x\n", #_param, (_ptr)->_param) 661 print_param(_seq,_ptr,_param) global() argument 664 print_param_hex(_seq,_ptr,_param) global() argument
|
| /linux/include/net/ |
| H A D | route.h | 80 #define dst_rtable(_ptr) container_of_const(_ptr, struct rtable, dst) argument
|
| H A D | ip6_fib.h | 238 #define dst_rt6_info(_ptr) container_of_const(_ptr, struct rt6_info, dst) argument
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | mcdi.h | 285 #define MCDI_FIELD(_ptr, _type, _field) \ argument 288 _MCDI_PTR(_ptr, MC_CMD_ ## _type ## _ ## _field ## _OFST & ~3),\
|
| /linux/include/scsi/ |
| H A D | iscsi_if.h | 742 #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) argument
|