Home
last modified time | relevance | path

Searched refs:_size (Results 1 – 25 of 67) sorted by relevance

123

/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dunpack.h6 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 Dcore_acl_flex_keys.h56 #define MLXSW_AFK_ELEMENT_INFO(_type, _element, _offset, _shift, _size) \ argument
63 .size = {.bits = _size}, \
68 #define MLXSW_AFK_ELEMENT_INFO_U32(_element, _offset, _shift, _size) \ argument
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}, \
103 #define MLXSW_AFK_ELEMENT_INST_U32(_element, _offset, _shift, _size) \ argument
105 _element, _offset, _shift, _size,
108 MLXSW_AFK_ELEMENT_INST_EXT_U32(_element,_offset,_shift,_size,_key_diff,_avoid_size_check) global() argument
114 MLXSW_AFK_ELEMENT_INST_BUF(_element,_offset,_size) global() argument
[all...]
/linux/include/linux/
H A Dslab.h807 #define DECL_BUCKET_PARAMS(_size, _b) size_t (_size), kmem_buckets *(_b) argument
808 #define PASS_BUCKET_PARAMS(_size, _b) (_size), (_b) argument
811 #define DECL_BUCKET_PARAMS(_size, _b) size_t (_size) argument
812 #define PASS_BUCKET_PARAMS(_size, _b) (_size) argument
913 #define kmem_buckets_alloc(_b, _size, _flags) \ argument
914 alloc_hooks(__kmalloc_node_noprof(PASS_BUCKET_PARAMS(_size, _
916 kmem_buckets_alloc_track_caller(_b,_size,_flags) global() argument
1024 kcalloc_node(_n,_size,_flags,_node) global() argument
1042 kzalloc_node(_size,_flags,_node) global() argument
1049 kvmalloc(_size,_flags) global() argument
1050 kvmalloc_noprof(_size,_flags) global() argument
1051 kvzalloc(_size,_flags) global() argument
1053 kvzalloc_node(_size,_flags,_node) global() argument
1054 kmem_buckets_valloc(_b,_size,_flags) global() argument
[all...]
H A Dioport.h157 #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), NUL
176 DEFINE_RES_MEM_NAMED(_start,_size,_name) global() argument
178 DEFINE_RES_MEM(_start,_size) global() argument
181 DEFINE_RES_REG_NAMED(_start,_size,_name) global() argument
183 DEFINE_RES_REG(_start,_size) global() argument
[all...]
H A Dsysfs.h336 #define __BIN_ATTR(_name, _mode, _read, _write, _size) { \ argument
340 .size = _size, \
343 #define __BIN_ATTR_RO(_name, _size) \ argument
344 __BIN_ATTR(_name, 0444, _name##_read, NULL, _size)
346 #define __BIN_ATTR_WO(_name, _size) \ argument
347 __BIN_ATTR(_name, 0200, NULL, _name##_write, _size)
349 #define __BIN_ATTR_RW(_name, _size) \ argument
350 __BIN_ATTR(_name, 0644, _name##_read, _name##_write, _size)
354 #define BIN_ATTR(_name, _mode, _read, _write, _size) \ argument
356 _write, _size)
358 BIN_ATTR_RO(_name,_size) global() argument
361 BIN_ATTR_WO(_name,_size) global() argument
364 BIN_ATTR_RW(_name,_size) global() argument
368 __BIN_ATTR_ADMIN_RO(_name,_size) global() argument
371 __BIN_ATTR_ADMIN_RW(_name,_size) global() argument
374 BIN_ATTR_ADMIN_RO(_name,_size) global() argument
377 BIN_ATTR_ADMIN_RW(_name,_size) global() argument
[all...]
H A Dmempool.h93 #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))
/linux/fs/bcachefs/
H A Deytzinger.h161 #define eytzinger1_for_each(_i, _size) \ argument
162 for (unsigned (_i) = eytzinger1_first((_size)); \
164 (_i) = eytzinger1_next((_i), (_size)))
232 #define eytzinger0_for_each(_i, _size) \ argument
233 for (unsigned (_i) = eytzinger0_first((_size)); \
235 (_i) = eytzinger0_next((_i), (_size)))
237 #define eytzinger0_for_each_prev(_i, _size) \ argument
238 for (unsigned (_i) = eytzinger0_last((_size)); \
240 (_i) = eytzinger0_prev((_i), (_size)))
283 size_t _size
[all...]
/linux/drivers/media/platform/qcom/iris/
H A Diris_vpu_buffer.c52 u32 _size = ALIGN(((max_t(u32, _size_yuv, ((BIN_BUFFER_THRESHOLD * 3) >> 1)) * in hfi_buffer_bin_vp9d() local
59 return _size * num_vpp_pipes; in hfi_buffer_bin_vp9d()
98 u32 _size; in hfi_buffer_comv_h265d() local
100 _size = ALIGN(((frame_width_in_mbs * frame_height_in_mbs) << 8), 512); in hfi_buffer_comv_h265d()
102 return (_size * (_comv_bufcount)) + 512; in hfi_buffer_comv_h265d()
115 u32 _size = ALIGN(((ALIGN(frame_width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) * in size_h265d_bse_cmd_buf() local
118 _size = min_t(u32, _size, H265D_MAX_SLICE + 1); in size_h265d_bse_cmd_buf()
119 _size = 2 * _size * SIZE_H265D_BSE_CMD_PER_BU in size_h265d_bse_cmd_buf()
182 u32 _size = ALIGN(((ALIGN(frame_width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) * size_h265d_vpp_cmd_buf() local
198 u32 _size = ALIGN(_size_bse, DMA_ALIGNMENT) + hfi_buffer_non_comv_h265d() local
307 u32 vpss_lb_size = 0, _size; hfi_buffer_line_h265d() local
[all...]
/linux/include/acpi/platform/
H A Daclinuxex.h53 #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 Dcommon.h87 * Check that the first @_size bytes of @_seen are all equal to @_expected.
91 #define ASSERT_MEM_EQ(_seen, _expected, _size) do { \ argument
92 for (int _i = 0; _i < (_size); _i++) { \
99 * Check that none of the first @_size bytes of @_seen are equal to @_expected.
103 #define ASSERT_MEM_NE(_seen, _expected, _size) do { \ argument
104 for (int _i = 0; _i < (_size); _i++) { \
/linux/drivers/staging/nvec/
H A Dnvec_kbd.c60 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 Da5xx_power.c171 #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/fs/smb/client/
H A Dfs_context.h34 #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/dpll/zl3073x/
H A Dregs.h41 * @_size: register byte size (1, 2, 4 or 6)
47 #define ZL_REG_IDX(_idx, _page, _offset, _size, _items, _stride) \ argument
51 FIELD_PREP_CONST(ZL_REG_SIZE_MASK, _size) | \
59 * @_size: register byte size (1, 2, 4 or 6)
63 #define ZL_REG(_page, _offset, _size) \ argument
64 ZL_REG_IDX(0, _page, _offset, _size, 1, 0)
/linux/include/drm/
H A Ddrm_format_helper.h36 #define __DRM_FORMAT_CONV_STATE_INIT(_mem, _size, _preallocated) { \ argument
39 .size = (_size), \
55 * @_size: The number of bytes in _mem
60 #define DRM_FORMAT_CONV_STATE_INIT_PREALLOCATED(_mem, _size) \ argument
61 __DRM_FORMAT_CONV_STATE_INIT(_mem, _size, true)
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dmemory.h91 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/rdma/
H A Duverbs_types.h204 #define UVERBS_TYPE_ALLOC_IDR_SZ(_size, _destroy_object) \ argument
208 .obj_size = (_size) + \
209 UVERBS_BUILD_BUG_ON((_size) < \
/linux/include/linux/usb/
H A Drenesas_usbhs.h104 #define RENESAS_USBHS_PIPE(_type, _size, _num, _double_buf) { \ argument
106 .bufsize = (_size), \
/linux/arch/riscv/include/asm/
H A Derrata_list.h107 #define ALT_CMO_OP(_op, _start, _size, _cachesize) \ argument
120 "r"((unsigned long)(_start) + (_size)) \
/linux/drivers/net/wireless/mediatek/mt76/
H A Dutil.h27 #define MT76_INCR(_var, _size) \ argument
28 (_var = (((_var) + 1) % (_size)))
/linux/drivers/md/bcache/
H A Dutil.h39 #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 Dcompiler.h117 size_t const _size = (size_t)(s); \
119 for (_pos=0; _pos<_size; _pos+=CACHELINE_SIZE) { \
/linux/include/linux/gpio/
H A Ddriver.h579 * @_size: Amount of GPIOs to check starting from @base.
583 #define for_each_hwgpio_in_range(_chip, _i, _base, _size, _label) \ argument
585 _i < _size; \
604 * @_size: amount of GPIOs to check starting from @base
607 #define for_each_requested_gpio_in_range(_chip, _i, _base, _size, _label) \ argument
608 for_each_hwgpio_in_range(_chip, _i, _base, _size, _label) \
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dtrx.h16 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 Drecordmcount.h56 #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()

123