Home
last modified time | relevance | path

Searched refs:_ptr (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.6.21/arch/x86/include/asm/
Duaccess.h373 #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 …]
Dcmpxchg.h158 #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); \
179 volatile u16 *__ptr = (volatile u16 *)(_ptr); \
191 volatile u32 *__ptr = (volatile u32 *)(_ptr); \
203 volatile u64 *__ptr = (volatile u64 *)(_ptr); \
Dcmpxchg_64.h30 #define __arch_cmpxchg128(_ptr, _old, _new, _lock) \ argument
36 : [ptr] "+m" (*(_ptr)), \
56 #define __arch_try_cmpxchg128(_ptr, _oldp, _new, _lock) \ argument
Dpgtable-3level.h22 #define pxx_xchg64(_pxx, _ptr, _val) ({ \ argument
23 _pxx##val_t *_p = (_pxx##val_t *)_ptr; \
Dinsn.h153 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN) argument
/linux-6.6.21/drivers/staging/rtl8723bs/include/
Dbasic_types.h47 #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-6.6.21/include/rdma/
Diba.h58 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-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_common.h62 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-6.6.21/drivers/infiniband/hw/efa/
Defa_common_defs.h18 typeof(ptr) _ptr = ptr; \
19 *_ptr = (*_ptr & ~(mask##_MASK)) | \
/linux-6.6.21/drivers/net/ethernet/3com/
Dtyphoon.h365 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-6.6.21/include/linux/atomic/
Datomic-arch-fallback.h189 #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-6.6.21/tools/testing/selftests/bpf/progs/
Dnetif_receive_skb.c58 static struct btf_ptr _ptr = { }; \
65 _ptr.ptr = &_ptrdata; \
66 _ptr.type_id = bpf_core_type_id_kernel(_type); \
67 if (_ptr.type_id <= 0) { \
72 &_ptr, sizeof(_ptr), _hflags); \
/linux-6.6.21/lib/zstd/common/
Dcompiler.h99 const char* const _ptr = (const char*)(p); \
103 PREFETCH_L2(_ptr + _pos); \
/linux-6.6.21/drivers/md/bcache/
Dutil.h264 typeof((array)->freelist) _ptr = ptr; \
266 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \
267 (array)->freelist = _ptr; \
447 typeof(ptr) _ptr = ptr; \
448 _ptr ? container_of(_ptr, type, member) : NULL; \
/linux-6.6.21/include/linux/
Dpm.h475 #define pm_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM), (_ptr)) argument
476 #define pm_sleep_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM_SLEEP), (_ptr)) argument
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c313 void *_ptr = &_ptrdata; \
316 _ptr, sizeof(_type), _str, \
333 void *_ptr = &_ptrdata; \
336 _ptr, _type_sz, _str, _expected); \
343 void *_ptr = &_ptrdata; \
346 _ptr, sizeof(_type), _str, \
/linux-6.6.21/include/net/bluetooth/
Dhci_sync.h9 #define PTR_UINT(_ptr) ((uintptr_t)((void *)_ptr)) argument
/linux-6.6.21/tools/arch/x86/include/asm/
Dinsn.h153 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN) argument
/linux-6.6.21/scripts/atomic/
Dgen-atomic-fallback.sh232 typeof(*(_ptr)) *___op = (_oldp), ___o = *___op, ___r; \\
233 ___r = raw_${cmpxchg}${order}((_ptr), ___o, (_new)); \\
/linux-6.6.21/drivers/gpu/drm/
Ddrm_legacy.h48 #define drm_hash_entry(_ptr, _type, _member) container_of(_ptr, _type, _member) argument
/linux-6.6.21/drivers/usb/dwc2/
Ddebugfs.c661 #define print_param(_seq, _ptr, _param) \ argument
662 seq_printf((_seq), "%-30s: %d\n", #_param, (_ptr)->_param)
664 #define print_param_hex(_seq, _ptr, _param) \ argument
665 seq_printf((_seq), "%-30s: 0x%x\n", #_param, (_ptr)->_param)
/linux-6.6.21/tools/testing/selftests/iommu/
Diommufd_utils.h32 #define check_refs(_ptr, _length, _refs) \ argument
38 .uptr = (uintptr_t)(_ptr), \
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dmcdi.h285 #define MCDI_FIELD(_ptr, _type, _field) \ argument
288 _MCDI_PTR(_ptr, MC_CMD_ ## _type ## _ ## _field ## _OFST & ~3),\
/linux-6.6.21/include/scsi/
Discsi_if.h742 #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) argument
/linux-6.6.21/drivers/net/ethernet/sfc/
Dmcdi.h338 #define MCDI_FIELD(_ptr, _type, _field) \ argument
341 _MCDI_PTR(_ptr, MC_CMD_ ## _type ## _ ## _field ## _OFST & ~3),\

12