| /Linux-v6.6/include/linux/ |
| D | fortify-string.h | 22 size_t __ret = SIZE_MAX; \ 24 if (__p_size != SIZE_MAX && \ 172 if (__builtin_constant_p(maxlen) && p_len != SIZE_MAX) { in strnlen() 213 if (p_size == SIZE_MAX) in __fortify_strlen() 248 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcpy() 300 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strscpy() 311 if (__compiletime_lessthan(p_size, SIZE_MAX)) { in strscpy() 314 if (len < SIZE_MAX && __compiletime_lessthan(len, size)) { in strscpy() 382 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcat() 464 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strncat() [all …]
|
| D | overflow.h | 192 return SIZE_MAX; in size_mul() 211 return SIZE_MAX; in size_add() 231 if (minuend == SIZE_MAX || subtrahend == SIZE_MAX || in size_sub() 233 return SIZE_MAX; in size_sub()
|
| D | limits.h | 9 #define SIZE_MAX (~(size_t)0) macro 10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
| D | swiotlb.h | 232 return SIZE_MAX; in swiotlb_max_mapping_size()
|
| /Linux-v6.6/tools/include/linux/ |
| D | overflow.h | 87 return SIZE_MAX; in array_size() 109 return SIZE_MAX; in array3_size() 111 return SIZE_MAX; in array3_size() 121 return SIZE_MAX; in __ab_c_size() 123 return SIZE_MAX; in __ab_c_size()
|
| /Linux-v6.6/lib/ |
| D | overflow_kunit.c | 566 volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \ 677 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test() 678 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test() 679 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test() 687 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test() 688 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test() 689 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test() 696 check_one_size_helper(SIZE_MAX, size_sub, 9, -3); in overflow_size_helpers_test() 697 check_one_size_helper(SIZE_MAX, size_sub, 0, 9); in overflow_size_helpers_test() 698 check_one_size_helper(SIZE_MAX, size_sub, 2, 3); in overflow_size_helpers_test() [all …]
|
| D | fortify_kunit.c | 34 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in known_sizes_test() 36 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in known_sizes_test() 63 KUNIT_EXPECT_EQ(test, want_minus_one(pick), SIZE_MAX); in control_flow_split_test() 97 KUNIT_EXPECT_BOS(test, p, SIZE_MAX, #alloc); \
|
| /Linux-v6.6/drivers/usb/gadget/ |
| D | u_f.h | 26 if (groupname##__next != SIZE_MAX) { \ 33 groupname##__next = SIZE_MAX; \ 44 if (groupname##__next != SIZE_MAX) { \ 50 groupname##__next = SIZE_MAX; \
|
| /Linux-v6.6/tools/include/nolibc/ |
| D | stdint.h | 77 #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-v6.6/tools/virtio/ringtest/ |
| D | ptr_ring.c | 19 #define SIZE_MAX (~(size_t)0) macro 20 #define KMALLOC_MAX_SIZE SIZE_MAX 45 if (size != 0 && n > SIZE_MAX / size) in kmalloc_array()
|
| /Linux-v6.6/tools/testing/selftests/mm/ |
| D | transhuge-stress.c | 38 if (ram > SIZE_MAX / psize() / 4) in main() 39 ram = SIZE_MAX / 4; in main()
|
| /Linux-v6.6/sound/soc/ti/ |
| D | udma-pcm.c | 22 .buffer_bytes_max = SIZE_MAX,
|
| /Linux-v6.6/net/xdp/ |
| D | xsk_queue.c | 42 if (unlikely(size == SIZE_MAX)) { in xskq_create()
|
| /Linux-v6.6/tools/virtio/linux/ |
| D | dma-mapping.h | 44 #define dma_max_mapping_size(...) SIZE_MAX
|
| /Linux-v6.6/drivers/net/ethernet/qlogic/qed/ |
| D | qed_chain.c | 262 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl() 277 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl()
|
| /Linux-v6.6/drivers/gpu/drm/etnaviv/ |
| D | etnaviv_drv.h | 100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
|
| /Linux-v6.6/include/crypto/ |
| D | drbg.h | 183 return (SIZE_MAX - 1); in drbg_max_addtl()
|
| /Linux-v6.6/drivers/s390/char/ |
| D | hmcdrv_cache.c | 49 .fsize = SIZE_MAX,
|
| /Linux-v6.6/tools/perf/tests/ |
| D | builtin-test-list.c | 130 if (files_num_tmp >= SIZE_MAX) { in append_script()
|
| /Linux-v6.6/sound/soc/ |
| D | soc-generic-dmaengine-pcm.c | 129 hw.buffer_bytes_max = SIZE_MAX; in dmaengine_pcm_set_runtime_hwparams() 237 max_buffer_size = SIZE_MAX; in dmaengine_pcm_new()
|
| /Linux-v6.6/drivers/gpu/drm/ |
| D | drm_scatter.c | 93 if (request->size > SIZE_MAX - PAGE_SIZE) in drm_legacy_sg_alloc()
|
| /Linux-v6.6/drivers/base/regmap/ |
| D | regmap-spi.c | 119 if (max_size != SIZE_MAX) { in regmap_get_spi_bus()
|
| /Linux-v6.6/include/linux/sunrpc/ |
| D | xdr.h | 782 if (U32_MAX >= SIZE_MAX / sizeof(*p) && len > SIZE_MAX / sizeof(*p)) in xdr_stream_decode_uint32_array()
|
| /Linux-v6.6/io_uring/ |
| D | io_uring.c | 2789 if (off == SIZE_MAX) in rings_size() 2790 return SIZE_MAX; in rings_size() 2793 return SIZE_MAX; in rings_size() 2799 return SIZE_MAX; in rings_size() 2804 *sq_offset = SIZE_MAX; in rings_size() 2812 if (sq_array_size == SIZE_MAX) in rings_size() 2813 return SIZE_MAX; in rings_size() 2816 return SIZE_MAX; in rings_size() 3767 if (size == SIZE_MAX) in io_allocate_scq_urings() 3790 if (size == SIZE_MAX) { in io_allocate_scq_urings() [all …]
|
| /Linux-v6.6/include/linux/spi/ |
| D | spi.h | 1235 return SIZE_MAX; in spi_max_message_size() 1243 size_t tr_max = SIZE_MAX; in spi_max_transfer_size()
|