| /include/linux/unaligned/ |
| A D | generic.h | 10 #define __get_unaligned_le(ptr) ((__force typeof(*(ptr)))({ \ argument 11 __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \ 12 __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_le16((ptr)), \ 13 __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_le32((ptr)), \ 14 __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_le64((ptr)), \ 18 #define __get_unaligned_be(ptr) ((__force typeof(*(ptr)))({ \ argument 19 __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \ 20 __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_be16((ptr)), \ 21 __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_be32((ptr)), \ 22 __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_be64((ptr)), \ [all …]
|
| /include/linux/ |
| A D | err.h | 28 static inline long PTR_ERR(const void *ptr) in PTR_ERR() argument 30 return ((long)ptr - CONFIG_ERR_PTR_OFFSET); in PTR_ERR() 33 static inline long IS_ERR(const void *ptr) in IS_ERR() argument 35 return IS_ERR_VALUE((unsigned long)PTR_ERR(ptr)); in IS_ERR() 38 static inline bool IS_ERR_OR_NULL(const void *ptr) in IS_ERR_OR_NULL() argument 40 return !ptr || IS_ERR_VALUE((unsigned long)PTR_ERR(ptr)); in IS_ERR_OR_NULL() 50 static inline void * __must_check ERR_CAST(__force const void *ptr) in ERR_CAST() argument 53 return (void *) ptr; in ERR_CAST()
|
| A D | compiler-intel.h | 17 #define barrier_data(ptr) barrier() argument 19 #define RELOC_HIDE(ptr, off) \ argument 21 __ptr = (unsigned long) (ptr); \ 22 (typeof(ptr)) (__ptr + (off)); })
|
| A D | rbtree.h | 38 #define rb_entry(ptr, type, member) container_of(ptr, type, member) argument 74 #define rb_entry_safe(ptr, type, member) \ argument 75 ({ typeof(ptr) ____ptr = (ptr); \
|
| A D | compiler-gcc.h | 34 #define barrier_data(ptr) __asm__ __volatile__("": :"r"(ptr) :"memory") argument 54 #define RELOC_HIDE(ptr, off) \ argument 57 __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ 58 (typeof(ptr)) (__ptr + (off)); \
|
| A D | list.h | 331 #define list_entry(ptr, type, member) \ argument 332 container_of(ptr, type, member) 342 #define list_first_entry(ptr, type, member) \ argument 343 list_entry((ptr)->next, type, member) 353 #define list_last_entry(ptr, type, member) \ argument 354 list_entry((ptr)->prev, type, member) 365 struct list_head *head__ = (ptr); \ 597 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL) argument 669 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument 678 #define hlist_entry_safe(ptr, type, member) \ argument [all …]
|
| A D | compiler.h | 87 # define barrier_data(ptr) barrier() argument 163 # define RELOC_HIDE(ptr, off) \ argument 165 __ptr = (unsigned long) (ptr); \ 166 (typeof(ptr)) (__ptr + (off)); })
|
| A D | kernel.h | 234 #define container_of(ptr, type, member) ({ \ argument 235 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
| /include/ |
| A D | mapmem.h | 27 static inline phys_addr_t map_to_sysmem(const void *ptr) in map_to_sysmem() argument 29 return (phys_addr_t)(uintptr_t)ptr; in map_to_sysmem() 44 static inline phys_addr_t nomap_to_sysmem(const void *ptr) in nomap_to_sysmem() argument 46 return (phys_addr_t)(uintptr_t)ptr; in nomap_to_sysmem()
|
| A D | iotrace.h | 68 u32 iotrace_readl(const void *ptr); 69 void iotrace_writel(ulong value, void *ptr); 70 u16 iotrace_readw(const void *ptr); 71 void iotrace_writew(ulong value, void *ptr); 72 u8 iotrace_readb(const void *ptr); 73 void iotrace_writeb(ulong value, void *ptr);
|
| A D | virtio.h | 646 (*ptr) = 1; \ 648 switch (sizeof(*ptr)) { \ 650 *(ptr) = virtio_cread8(vdev, \ 654 *(ptr) = virtio_cread16(vdev, \ 658 *(ptr) = virtio_cread32(vdev, \ 675 WARN_ON((*ptr) == 1); \ 677 switch (sizeof(*ptr)) { \ 681 *(ptr)); \ 686 *(ptr)); \ 691 *(ptr)); \ [all …]
|
| A D | bloblist.h | 242 u32 *ptr; in bloblist_check_magic() local 246 ptr = map_sysmem(addr, 0); in bloblist_check_magic() 247 if (*ptr != BLOBLIST_MAGIC) in bloblist_check_magic() 250 return ptr; in bloblist_check_magic()
|
| A D | slre.h | 73 const char *ptr; /* Pointer to the substring */ member
|
| A D | alist.h | 87 int alist_calc_index(const struct alist *lst, const void *ptr); 225 const void *alist_next_ptrd(const struct alist *lst, const void *ptr); 236 bool alist_chk_ptr(const struct alist *lst, const void *ptr);
|
| A D | os.h | 188 void os_free(void *ptr); 200 void *os_realloc(void *ptr, size_t length);
|
| A D | malloc.h | 889 static inline void free(void *ptr) {} in free() argument 892 void *realloc_simple(void *ptr, size_t size); 908 #define free(ptr) dlfree(ptr) argument
|
| A D | vsprintf.h | 349 void str_free_list(const char **ptr);
|
| A D | usbdevice.h | 138 #define _cv_(ptr) ((char*)(void*)(ptr)) argument 140 #define p2surround(type,memb,ptr) ((type*)(void*)(_cv_(ptr)-member_offset(type,memb))) argument
|
| A D | fdtdec.h | 515 u64 fdtdec_get_number(const fdt32_t *ptr, unsigned int cells);
|
| A D | efi.h | 597 void efi_free(struct efi_priv *priv, void *ptr);
|
| /include/asm-generic/ |
| A D | unaligned.h | 7 #define __get_unaligned_t(type, ptr) ({ \ argument 8 const struct { type x; } __packed * __pptr = (typeof(__pptr))(ptr); \ 12 #define __put_unaligned_t(type, val, ptr) do { \ argument 13 struct { type x; } __packed * __pptr = (typeof(__pptr))(ptr); \ 17 #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) argument 18 #define put_unaligned(val, ptr) __put_unaligned_t(typeof(*(ptr)), (val), (ptr)) argument
|
| /include/dm/ |
| A D | tag.h | 48 void *ptr; member 63 int dev_tag_set_ptr(struct udevice *dev, enum dm_tag_t tag, void *ptr);
|
| A D | devres.h | 205 void devm_kfree(struct udevice *dev, void *ptr); 278 static inline void devm_kfree(struct udevice *dev, void *ptr) in devm_kfree() argument 280 kfree(ptr); in devm_kfree()
|
| /include/usb/ |
| A D | xhci.h | 1114 __u32 *ptr = (__u32 *)regs; in xhci_readq() local 1115 u64 val_lo = readl(ptr); in xhci_readq() 1116 u64 val_hi = readl(ptr + 1); in xhci_readq() 1122 __u32 *ptr = (__u32 *)regs; in xhci_writeq() local 1126 writel(val_lo, ptr); in xhci_writeq() 1127 writel(val_hi, ptr + 1); in xhci_writeq()
|
| /include/mtd/ |
| A D | mtd-abi.h | 29 unsigned char __user *ptr; member
|