| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_bpf_ma.c | 25 #define DEFINE_ARRAY_WITH_KPTR(_size) \ argument 26 struct bin_data_##_size { \ 27 char data[_size - sizeof(void *)]; \ 30 struct bin_data_##_size *__bin_data_##_size; \ 31 struct map_value_##_size { \ 32 struct bin_data_##_size __kptr * data; \ 37 __type(value, struct map_value_##_size); \ 39 } array_##_size SEC(".maps") 41 #define DEFINE_ARRAY_WITH_PERCPU_KPTR(_size) \ argument 42 struct percpu_bin_data_##_size { \ [all …]
|
| /linux/drivers/gpu/drm/nouveau/include/nvif/ |
| H A D | unpack.h | 6 void **_data = (d); __u32 *_size = (s); int _ret = (r); \ 7 if (_ret == -ENOSYS && *_size == sizeof(m)) { \ 9 *_size = _ret = 0; \ 15 void **_data = (d); __u32 *_size = (s); \ 17 if (_ret == -ENOSYS && *_size >= sizeof(m) && \ 20 *_size = *_size - sizeof(m); \ 22 _ret = *_size ? -E2BIG : 0; \ 24 *_size = 0; \
|
| /linux/include/linux/ |
| H A D | ioport.h | 157 #define DEFINE_RES_NAMED_DESC(_start, _size, _name, _flags, _desc) \ argument 160 .end = (_start) + (_size) - 1, \ 166 #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \ argument 167 DEFINE_RES_NAMED_DESC(_start, _size, _name, _flags, IORES_DESC_NONE) 168 #define DEFINE_RES(_start, _size, _flags) \ argument 169 DEFINE_RES_NAMED(_start, _size, NULL, _flags) 171 #define DEFINE_RES_IO_NAMED(_start, _size, _name) \ argument 172 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_IO) 173 #define DEFINE_RES_IO(_start, _size) \ argument 174 DEFINE_RES_IO_NAMED((_start), (_size), NULL) [all …]
|
| H A D | sysfs.h | 339 #define __BIN_ATTR(_name, _mode, _read, _write, _size) { \ argument 343 .size = _size, \ 346 #define __BIN_ATTR_RO(_name, _size) \ argument 347 __BIN_ATTR(_name, 0444, _name##_read, NULL, _size) 349 #define __BIN_ATTR_WO(_name, _size) \ argument 350 __BIN_ATTR(_name, 0200, NULL, _name##_write, _size) 352 #define __BIN_ATTR_RW(_name, _size) \ argument 353 __BIN_ATTR(_name, 0644, _name##_read, _name##_write, _size) 357 #define BIN_ATTR(_name, _mode, _read, _write, _size) \ argument 359 _write, _size) [all …]
|
| H A D | slab.h | 859 #define DECL_BUCKET_PARAMS(_size, _b) size_t (_size), kmem_buckets *(_b) argument 860 #define PASS_BUCKET_PARAMS(_size, _b) (_size), (_b) argument 863 #define DECL_BUCKET_PARAMS(_size, _b) size_t (_size) argument 864 #define PASS_BUCKET_PARAMS(_size, _b) (_size) argument 968 #define kmem_buckets_alloc(_b, _size, _flags) \ argument 969 alloc_hooks(__kmalloc_node_noprof(PASS_BUCKET_PARAMS(_size, _b), _flags, NUMA_NO_NODE)) 971 #define kmem_buckets_alloc_track_caller(_b, _size, _flags) \ argument 972 …alloc_hooks(__kmalloc_node_track_caller_noprof(PASS_BUCKET_PARAMS(_size, _b), _flags, NUMA_NO_NODE… 1079 #define kcalloc_node(_n, _size, _flags, _node) \ argument 1080 kmalloc_array_node(_n, _size, (_flags) | __GFP_ZERO, _node) [all …]
|
| H A D | percpu.h | 139 #define __alloc_percpu_gfp(_size, _align, _gfp) \ argument 140 alloc_hooks(pcpu_alloc_noprof(_size, _align, false, _gfp)) 141 #define __alloc_percpu(_size, _align) \ argument 142 alloc_hooks(pcpu_alloc_noprof(_size, _align, false, GFP_KERNEL)) 143 #define __alloc_reserved_percpu(_size, _align) \ argument 144 alloc_hooks(pcpu_alloc_noprof(_size, _align, true, GFP_KERNEL))
|
| H A D | mempool.h | 98 #define mempool_init_kmalloc_pool(_pool, _min_nr, _size) \ argument 100 (void *)(unsigned long)(_size)) 101 #define mempool_create_kmalloc_pool(_min_nr, _size) \ argument 103 (void *)(unsigned long)(_size))
|
| /linux/include/acpi/platform/ |
| H A D | aclinuxex.h | 53 #define acpi_os_allocate(_size) \ argument 54 kmalloc(_size, irqs_disabled() ? GFP_ATOMIC : GFP_KERNEL) 56 #define acpi_os_allocate_zeroed(_size) \ argument 57 kzalloc(_size, irqs_disabled() ? GFP_ATOMIC : GFP_KERNEL)
|
| /linux/tools/testing/memblock/tests/ |
| H A D | common.h | 91 #define ASSERT_MEM_EQ(_seen, _expected, _size) do { \ argument 92 for (int _i = 0; _i < (_size); _i++) { \ 103 #define ASSERT_MEM_NE(_seen, _expected, _size) do { \ argument 104 for (int _i = 0; _i < (_size); _i++) { \
|
| /linux/fs/smb/client/ |
| H A D | fs_context.h | 34 #define CIFS_ALIGN_WSIZE(_fc, _size) cifs_io_align(_fc, "wsize", _size) argument 35 #define CIFS_ALIGN_RSIZE(_fc, _size) cifs_io_align(_fc, "rsize", _size) argument 36 #define CIFS_ALIGN_BSIZE(_fc, _size) cifs_io_align(_fc, "bsize", _size) argument
|
| /linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
| H A D | memory.h | 91 u32 _addr = (a), _size = (s) >> 2, *_data = (void *)(p); \ 92 while (_size--) { \ 99 u32 _addr = (a), _size = (s) >> 2, *_data = (void *)(p); \ 100 while (_size--) { \
|
| /linux/drivers/dpll/zl3073x/ |
| H A D | regs.h | 47 #define ZL_REG_IDX(_idx, _page, _offset, _size, _items, _stride) \ argument 51 FIELD_PREP_CONST(ZL_REG_SIZE_MASK, _size) | \ 63 #define ZL_REG(_page, _offset, _size) \ argument 64 ZL_REG_IDX(0, _page, _offset, _size, 1, 0)
|
| /linux/include/linux/usb/ |
| H A D | renesas_usbhs.h | 104 #define RENESAS_USBHS_PIPE(_type, _size, _num, _double_buf) { \ argument 106 .bufsize = (_size), \
|
| /linux/arch/riscv/include/asm/ |
| H A D | errata_list.h | 101 #define ALT_CMO_OP(_op, _start, _size, _cachesize) \ argument 114 "r"((unsigned long)(_start) + (_size)) \
|
| /linux/drivers/md/bcache/ |
| H A D | util.h | 39 #define init_heap(heap, _size, gfp) \ argument 43 (heap)->size = (_size); \ 139 #define init_fifo_exact(fifo, _size, gfp) \ argument 141 (fifo)->size = (_size); \ 145 #define init_fifo(fifo, _size, gfp) \ argument 147 (fifo)->size = (_size); \
|
| /linux/lib/zstd/common/ |
| H A D | compiler.h | 117 size_t const _size = (size_t)(s); \ 119 for (_pos=0; _pos<_size; _pos+=CACHELINE_SIZE) { \
|
| /linux/arch/riscv/errata/thead/ |
| H A D | errata.c | 74 #define THEAD_CMO_OP(_op, _start, _size, _cachesize) \ argument 85 "r"((unsigned long)(_start) + (_size)) \
|
| /linux/scripts/ |
| H A D | recordmcount.h | 56 #undef _size 95 # define _size 8 macro 133 # define _size 4 macro 316 mcsec.sh_addralign = _w(_size); in append_func() 317 mcsec.sh_entsize = _w(_size); in append_func() 331 mcsec.sh_addralign = _w(_size); in append_func()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
| H A D | trx.h | 16 static inline void clear_pci_tx_desc_content(__le32 *__pdesc, u32 _size) in clear_pci_tx_desc_content() argument 19 min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET)); in clear_pci_tx_desc_content()
|
| /linux/drivers/ufs/core/ |
| H A D | ufs-sysfs.c | 1100 #define UFS_DESC_PARAM(_name, _puname, _duname, _size) \ argument 1106 0, _duname##_DESC_PARAM##_puname, buf, _size); \ 1110 #define UFS_DEVICE_DESC_PARAM(_name, _uname, _size) \ argument 1111 UFS_DESC_PARAM(_name, _uname, DEVICE, _size) 1183 #define UFS_INTERCONNECT_DESC_PARAM(_name, _uname, _size) \ argument 1184 UFS_DESC_PARAM(_name, _uname, INTERCONNECT, _size) 1200 #define UFS_GEOMETRY_DESC_PARAM(_name, _uname, _size) \ argument 1201 UFS_DESC_PARAM(_name, _uname, GEOMETRY, _size) 1294 #define UFS_HEALTH_DESC_PARAM(_name, _uname, _size) \ argument 1295 UFS_DESC_PARAM(_name, _uname, HEALTH, _size) [all …]
|
| /linux/drivers/mfd/ |
| H A D | mt6360-core.c | 70 #define MT6360_ALLOC_READ_SIZE(_size) (_size + 3) argument 72 #define MT6360_ALLOC_WRITE_SIZE(_size) (_size + 4) argument
|
| /linux/kernel/trace/ |
| H A D | trace_probe.h | 190 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \ argument 192 .size = _size, \ 201 #define _ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \ argument 202 __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, 0, #_fmttype)
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
| H A D | trx.h | 328 static inline void clear_pci_tx_desc_content(__le32 *__pdesc, u32 _size) in clear_pci_tx_desc_content() argument 330 if (_size > TX_DESC_NEXT_DESC_OFFSET) in clear_pci_tx_desc_content() 333 memset(__pdesc, 0, _size); in clear_pci_tx_desc_content()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| H A D | def.h | 215 #define CLEAR_PCI_TX_DESC_CONTENT(__pdesc, _size) \ argument 216 memset(__pdesc, 0, min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET))
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_dma_mapping_test.c | 107 #define FIXTURE_VARIANT_ADD_IOMMU_MODE(_iommu_mode, _name, _size, _mmap_flags) \ argument 110 .size = (_size), \
|