Searched refs:SIZE_MAX (Results 1 - 25 of 76) sorted by relevance

1234

/linux-master/include/linux/
H A Dlimits.h9 #define SIZE_MAX (~(size_t)0) macro
10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
H A Dfortify-string.h62 size_t __ret = SIZE_MAX; \
64 if (__p_size != SIZE_MAX && \
208 if (__builtin_constant_p(maxlen) && p_len != SIZE_MAX) {
249 if (p_size == SIZE_MAX)
267 if (p_size == SIZE_MAX && q_size == SIZE_MAX)
278 if (__compiletime_lessthan(p_size, SIZE_MAX)) {
281 if (len < SIZE_MAX && __compiletime_lessthan(len, size)) {
349 if (p_size == SIZE_MAX && q_size == SIZE_MAX)
[all...]
H A Dgeneric-radix-tree.h215 iter->offset = SIZE_MAX;
216 iter->pos = SIZE_MAX;
236 iter->offset == SIZE_MAX) {
237 iter->offset = SIZE_MAX;
269 (SIZE_MAX / GENRADIX_NODE_SIZE * __genradix_objs_per_page(_radix) - 1)
H A Doverflow.h258 * size_mul() - Calculate size_t multiplication with saturation at SIZE_MAX
263 * with any overflow causing the return value to be SIZE_MAX. The
271 return SIZE_MAX;
277 * size_add() - Calculate size_t addition with saturation at SIZE_MAX
282 * with any overflow causing the return value to be SIZE_MAX. The
290 return SIZE_MAX;
296 * size_sub() - Calculate size_t subtraction with saturation at SIZE_MAX
301 * with any overflow causing the return value to be SIZE_MAX. For
303 * argument may be SIZE_MAX (or the result with be forced to SIZE_MAX)
[all...]
H A Dswiotlb.h235 return SIZE_MAX;
/linux-master/drivers/usb/gadget/
H A Du_f.h26 if (groupname##__next != SIZE_MAX) { \
33 groupname##__next = SIZE_MAX; \
44 if (groupname##__next != SIZE_MAX) { \
50 groupname##__next = SIZE_MAX; \
/linux-master/tools/include/nolibc/
H A Dstdint.h77 #define SIZE_MAX ((size_t)(__LONG_MAX__) * 2 + 1) macro
82 #define UINTPTR_MAX SIZE_MAX
95 #define UINT_FAST16_MAX SIZE_MAX
96 #define UINT_FAST32_MAX SIZE_MAX
/linux-master/tools/include/linux/
H A Doverflow.h79 * Returns: number of bytes needed to represent the array or SIZE_MAX on
87 return SIZE_MAX;
101 * Returns: number of bytes needed to represent the array or SIZE_MAX on
109 return SIZE_MAX;
111 return SIZE_MAX;
121 return SIZE_MAX;
123 return SIZE_MAX;
137 * Return: number of bytes needed or SIZE_MAX on overflow.
/linux-master/sound/soc/ti/
H A Dudma-pcm.c22 .buffer_bytes_max = SIZE_MAX,
/linux-master/drivers/md/dm-vdo/
H A Dmemory-alloc.h46 if ((size > 0) && (count > ((SIZE_MAX - extra) / size))) {
48 * This is kind of a hack: We rely on the fact that SIZE_MAX would cover the entire
51 * by asking for "merely" SIZE_MAX bytes.
53 total_size = SIZE_MAX;
/linux-master/lib/
H A Doverflow_kunit.c626 volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \
735 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1);
736 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3);
737 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3);
745 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1);
746 check_one_size_helper(SIZE_MAX, size_ad
[all...]
H A Dgeneric-radix-tree.c160 if (iter->offset == SIZE_MAX)
184 iter->offset = SIZE_MAX;
185 iter->pos = SIZE_MAX;
214 if (iter->offset == SIZE_MAX)
/linux-master/tools/virtio/ringtest/
H A Dptr_ring.c19 #define SIZE_MAX (~(size_t)0) macro
20 #define KMALLOC_MAX_SIZE SIZE_MAX
45 if (size != 0 && n > SIZE_MAX / size)
/linux-master/net/xdp/
H A Dxsk_queue.c38 /* size which is overflowing or close to SIZE_MAX will become 0 in
39 * PAGE_ALIGN(), checking SIZE_MAX is enough due to the previous
42 if (unlikely(size == SIZE_MAX)) {
/linux-master/tools/virtio/linux/
H A Ddma-mapping.h44 #define dma_max_mapping_size(...) SIZE_MAX
/linux-master/tools/testing/selftests/mm/
H A Dtranshuge-stress.c41 if (ram > SIZE_MAX / psize() / 4)
42 ram = SIZE_MAX / 4;
/linux-master/include/crypto/
H A Ddrbg.h180 * return SIZE_MAX - 1 to allow the verification of the enforcement
183 return (SIZE_MAX - 1);
/linux-master/drivers/base/regmap/
H A Dregmap-spi.c119 if (max_size != SIZE_MAX) {
/linux-master/drivers/s390/char/
H A Dhmcdrv_cache.c49 .fsize = SIZE_MAX,
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_drv.h100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size)
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_chain.c262 if (unlikely(size == SIZE_MAX))
277 if (unlikely(size == SIZE_MAX))
/linux-master/sound/soc/
H A Dsoc-generic-dmaengine-pcm.c129 hw.buffer_bytes_max = SIZE_MAX;
237 max_buffer_size = SIZE_MAX;
/linux-master/include/linux/sunrpc/
H A Dxdr.h782 if (U32_MAX >= SIZE_MAX / sizeof(*p) && len > SIZE_MAX / sizeof(*p))
/linux-master/io_uring/
H A Dregister.c97 if (size == SIZE_MAX)
179 if (size == SIZE_MAX)
/linux-master/include/linux/spi/
H A Dspi.h415 * a &spi_device; may be %NULL, so the default %SIZE_MAX will be used.
417 * a &spi_device; may be %NULL, so the default %SIZE_MAX will be used.
1287 return SIZE_MAX;
1295 size_t tr_max = SIZE_MAX;

Completed in 724 milliseconds

1234