| /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 | slab.h | 529 #define DECL_TOKEN_PARAMS(_size, _token) size_t (_size), kmalloc_token_t (_token) argument 530 #define PASS_TOKEN_PARAMS(_size, _token) (_size), (_token) argument 537 #define DECL_TOKEN_PARAMS(_size, _token) size_t (_size) argument 538 #define PASS_TOKEN_PARAMS(_size, _token) (_size) argument 942 #define DECL_BUCKET_PARAMS(_size, _b) size_t (_size), kmem_buckets *(_b) argument 943 #define PASS_BUCKET_PARAMS(_size, _b) (_size), (_b) argument 946 #define DECL_BUCKET_PARAMS(_size, _b) size_t (_size) argument 947 #define PASS_BUCKET_PARAMS(_size, _b) (_size) argument 951 #define DECL_KMALLOC_PARAMS(_size, _b, _token) DECL_BUCKET_PARAMS(_size, _b) \ argument 954 #define PASS_KMALLOC_PARAMS(_size, _b, _token) PASS_BUCKET_PARAMS(_size, _b) \ argument [all …]
|
| H A D | ioport.h | 158 #define DEFINE_RES_NAMED_DESC(_start, _size, _name, _flags, _desc) \ argument 161 .end = (_start) + (_size) - 1, \ 167 #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \ argument 168 DEFINE_RES_NAMED_DESC(_start, _size, _name, _flags, IORES_DESC_NONE) 171 #define __DEFINE_RES3(_start, _size, _flags) \ argument 172 DEFINE_RES_NAMED(_start, _size, NULL, _flags) 176 #define DEFINE_RES_IO_NAMED(_start, _size, _name) \ argument 177 DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_IO) 178 #define DEFINE_RES_IO(_start, _size) \ argument 179 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 …]
|
| /linux/tools/testing/selftests/vfio/lib/include/libvfio/ |
| H A D | assert.h | 49 #define malloc_assert(_size) ({ \ argument 50 size_t __size = (_size); \ 57 #define calloc_assert(_nmemb, _size) ({ \ argument 59 size_t __size = (_size); \ 72 #define snprintf_assert(_s, _size, _fmt, ...) do { \ argument 73 int __ret = snprintf(_s, _size, _fmt, ##__VA_ARGS__); \ 74 VFIO_ASSERT_LT(__ret, _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/android/binder/range_alloc/ |
| H A D | mod.rs | 138 Impl::Empty(_size) => 0, in count_buffers() 146 Impl::Empty(_size) => Ok(()), in debug_print() 229 Impl::Empty(_size) => Err(EINVAL), in reservation_abort() 247 Impl::Empty(_size) => Err(EINVAL), in reservation_commit() 258 Impl::Empty(_size) => Err(EINVAL), in reserve_existing() 269 Impl::Empty(_size) => {} in take_for_each()
|
| /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/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/dpll/zl3073x/ |
| H A D | regs.h | 61 #define ZL_REG_IDX(_idx, _page, _offset, _size, _items, _stride) \ argument 65 FIELD_PREP_CONST(ZL_REG_SIZE_MASK, _size) | \ 77 #define ZL_REG(_page, _offset, _size) \ argument 78 ZL_REG_IDX(0, _page, _offset, _size, 1, 0)
|
| /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/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/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/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 | 201 #define __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, str, _fmttype) \ argument 203 .size = _size, \ 212 #define _ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, _fmttype) \ argument 213 __ASSIGN_FETCH_TYPE(_name, ptype, ftype, _size, sign, 0, #_fmttype)
|
| /linux/fs/ext4/ |
| H A D | sysfs.c | 192 #define EXT4_ATTR_STRING(_name,_mode,_size,_struct,_elname) \ argument 196 .attr_size = _size, \ 212 #define EXT4_RO_ATTR_ES_STRING(_name,_elname,_size) \ argument 213 EXT4_ATTR_STRING(_name, 0444, _size, ext4_super_block, _elname)
|
| /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), \
|