/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_bpf_ma.c | 29 #define DEFINE_ARRAY_WITH_KPTR(_size) \ argument 30 struct bin_data_##_size { \ 31 char data[_size - sizeof(void *)]; \ 34 struct bin_data_##_size *__bin_data_##_size; \ 35 struct map_value_##_size { \ 43 } array_##_size SEC(".maps") 46 struct percpu_bin_data_##_size { \ 47 char data[_size]; \ 49 struct percpu_bin_data_##_size *__percpu_bin_data_##_size; \ 50 struct map_value_percpu_##_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/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_acl_flex_keys.h | 63 .size = {.bits = _size}, \ 70 _element, _offset, _shift, _size) 72 #define MLXSW_AFK_ELEMENT_INFO_BUF(_element, _offset, _size) \ argument 74 _element, _offset, 0, _size) 89 _shift, _size, _u32_key_diff, _avoid_size_check) \ argument 96 .size = {.bits = _size}, \ 105 _element, _offset, _shift, _size, 0, false) 108 _shift, _size, _key_diff, \ argument 111 _element, _offset, _shift, _size, \ 114 #define MLXSW_AFK_ELEMENT_INST_BUF(_element, _offset, _size) \ argument [all …]
|
/linux/include/linux/ |
H A D | sysfs.h | 325 .size = _size, \ 328 #define __BIN_ATTR_RO(_name, _size) { \ argument 331 .size = _size, \ 334 #define __BIN_ATTR_WO(_name, _size) { \ argument 337 .size = _size, \ 340 #define __BIN_ATTR_RW(_name, _size) \ argument 347 _write, _size) 349 #define BIN_ATTR_RO(_name, _size) \ argument 352 #define BIN_ATTR_WO(_name, _size) \ argument 355 #define BIN_ATTR_RW(_name, _size) \ argument [all …]
|
H A D | ioport.h | 157 #define DEFINE_RES_NAMED(_start, _size, _name, _flags) \ argument 160 .end = (_start) + (_size) - 1, \ 166 #define DEFINE_RES_IO_NAMED(_start, _size, _name) \ argument 168 #define DEFINE_RES_IO(_start, _size) \ argument 169 DEFINE_RES_IO_NAMED((_start), (_size), NULL) 171 #define DEFINE_RES_MEM_NAMED(_start, _size, _name) \ argument 173 #define DEFINE_RES_MEM(_start, _size) \ argument 174 DEFINE_RES_MEM_NAMED((_start), (_size), NULL) 176 #define DEFINE_RES_REG_NAMED(_start, _size, _name) \ argument 178 #define DEFINE_RES_REG(_start, _size) \ argument [all …]
|
H A D | percpu.h | 141 #define __alloc_percpu_gfp(_size, _align, _gfp) \ argument 142 alloc_hooks(pcpu_alloc_noprof(_size, _align, false, _gfp)) 143 #define __alloc_percpu(_size, _align) \ argument 144 alloc_hooks(pcpu_alloc_noprof(_size, _align, false, GFP_KERNEL)) 145 #define __alloc_reserved_percpu(_size, _align) \ argument 146 alloc_hooks(pcpu_alloc_noprof(_size, _align, true, GFP_KERNEL))
|
H A D | slab.h | 763 #define kcalloc_node(_n, _size, _flags, _node) \ argument 764 kmalloc_array_node(_n, _size, (_flags) | __GFP_ZERO, _node) 781 #define kzalloc_node(_size, _flags, _node) kmalloc_node(_size, (_flags)|__GFP_ZERO, _node) argument 786 #define kvmalloc(_size, _flags) kvmalloc_node(_size, _flags, NUMA_NO_NODE) argument 787 #define kvmalloc_noprof(_size, _flags) kvmalloc_node_noprof(_size, _flags, NUMA_NO_NODE) argument 788 #define kvzalloc(_size, _flags) kvmalloc(_size, (_flags)|__GFP_ZERO) argument 790 #define kvzalloc_node(_size, _flags, _node) kvmalloc_node(_size, (_flags)|__GFP_ZERO, _node) argument
|
H A D | mempool.h | 93 #define mempool_init_kmalloc_pool(_pool, _min_nr, _size) \ argument 95 (void *)(unsigned long)(_size)) 96 #define mempool_create_kmalloc_pool(_min_nr, _size) \ argument 98 (void *)(unsigned long)(_size))
|
H A D | hid_bpf.h | 155 #define call_hid_bpf_rdesc_fixup(_hdev, _rdesc, _size) \ argument 156 ((u8 *)kmemdup(_rdesc, *(_size), GFP_KERNEL))
|
/linux/fs/bcachefs/ |
H A D | eytzinger.h | 168 #define eytzinger1_for_each(_i, _size) \ argument 169 for (unsigned (_i) = eytzinger1_first((_size)); \ 171 (_i) = eytzinger1_next((_i), (_size))) 239 #define eytzinger0_for_each(_i, _size) \ argument 240 for (unsigned (_i) = eytzinger0_first((_size)); \ 242 (_i) = eytzinger0_next((_i), (_size))) 292 size_t _size = (size); \ 297 (_res = _cmp(_search, _base + _i * _size))) \
|
/linux/include/acpi/platform/ |
H A D | aclinuxex.h | 50 #define acpi_os_allocate(_size) \ argument 51 kmalloc(_size, irqs_disabled() ? GFP_ATOMIC : GFP_KERNEL) 53 #define acpi_os_allocate_zeroed(_size) \ argument 54 kzalloc(_size, irqs_disabled() ? GFP_ATOMIC : GFP_KERNEL)
|
/linux/tools/testing/memblock/tests/ |
H A D | common.h | 87 #define ASSERT_MEM_EQ(_seen, _expected, _size) do { \ argument 88 for (int _i = 0; _i < (_size); _i++) { \ 99 #define ASSERT_MEM_NE(_seen, _expected, _size) do { \ argument 100 for (int _i = 0; _i < (_size); _i++) { \
|
/linux/drivers/staging/nvec/ |
H A D | nvec_kbd.c | 60 int _size = (msg[0] & (3 << 5)) >> 5; in nvec_keys_notifier() local 63 if (_size == NVEC_VAR_SIZE) in nvec_keys_notifier() 66 if (_size == NVEC_3BYTES) in nvec_keys_notifier() 72 if (code_tabs[_size][code] == KEY_CAPSLOCK && state) in nvec_keys_notifier() 75 input_report_key(keys_dev.input, code_tabs[_size][code], in nvec_keys_notifier()
|
/linux/drivers/gpu/drm/msm/adreno/ |
H A D | a5xx_power.c | 171 #define PAYLOAD_SIZE(_size) ((_size) * sizeof(u32)) argument 375 uint32_t _size = cmds_size > TYPE4_MAX_PAYLOAD ? in a5xx_gpmu_ucode_init() local 379 _size); in a5xx_gpmu_ucode_init() 381 for (i = 0; i < _size; i++) in a5xx_gpmu_ucode_init() 384 offset += _size; in a5xx_gpmu_ucode_init() 385 cmds_size -= _size; in a5xx_gpmu_ucode_init()
|
/linux/include/drm/ |
H A D | drm_format_helper.h | 36 #define __DRM_FORMAT_CONV_STATE_INIT(_mem, _size, _preallocated) { \ argument 39 .size = (_size), \ 60 #define DRM_FORMAT_CONV_STATE_INIT_PREALLOCATED(_mem, _size) \ argument 61 __DRM_FORMAT_CONV_STATE_INIT(_mem, _size, true)
|
/linux/include/rdma/ |
H A D | uverbs_types.h | 171 #define UVERBS_TYPE_ALLOC_IDR_SZ(_size, _destroy_object) \ argument 175 .obj_size = (_size) + \ 176 UVERBS_BUILD_BUG_ON((_size) < \
|
/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 | 106 #define ALT_CMO_OP(_op, _start, _size, _cachesize) \ argument 119 "r"((unsigned long)(_start) + (_size)) \
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | util.h | 27 #define MT76_INCR(_var, _size) \ argument 28 (_var = (((_var) + 1) % (_size)))
|
/linux/lib/zstd/common/ |
H A D | compiler.h | 100 size_t const _size = (size_t)(s); \ 102 for (_pos=0; _pos<_size; _pos+=CACHELINE_SIZE) { \
|
/linux/drivers/ufs/core/ |
H A D | ufs-sysfs.c | 887 0, _duname##_DESC_PARAM##_puname, buf, _size); \ 891 #define UFS_DEVICE_DESC_PARAM(_name, _uname, _size) \ argument 892 UFS_DESC_PARAM(_name, _uname, DEVICE, _size) 965 UFS_DESC_PARAM(_name, _uname, INTERCONNECT, _size) 981 #define UFS_GEOMETRY_DESC_PARAM(_name, _uname, _size) \ argument 982 UFS_DESC_PARAM(_name, _uname, GEOMETRY, _size) 1075 #define UFS_HEALTH_DESC_PARAM(_name, _uname, _size) \ argument 1076 UFS_DESC_PARAM(_name, _uname, HEALTH, _size) 1457 lun, _duname##_DESC_PARAM##_puname, buf, _size); \ 1461 #define UFS_UNIT_DESC_PARAM(_name, _uname, _size) \ argument [all …]
|
/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/arch/riscv/errata/thead/ |
H A D | errata.c | 72 #define THEAD_CMO_OP(_op, _start, _size, _cachesize) \ argument 83 "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()
|