Home
last modified time | relevance | path

Searched refs:SIZE_MAX (Results 1 – 25 of 66) sorted by relevance

123

/linux-6.1.9/lib/
Doverflow_kunit.c566 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 …]
Dfortify_kunit.c31 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in known_sizes_test()
33 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in known_sizes_test()
60 KUNIT_EXPECT_EQ(test, want_minus_one(pick), SIZE_MAX); in control_flow_split_test()
/linux-6.1.9/include/linux/
Dfortify-string.h22 size_t __ret = SIZE_MAX; \
24 if (__p_size != SIZE_MAX && \
152 if (p_size == SIZE_MAX) in strcat()
167 if (__builtin_constant_p(maxlen) && p_len != SIZE_MAX) { in strnlen()
195 if (p_size == SIZE_MAX) in __fortify_strlen()
212 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcpy()
240 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strscpy()
285 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strncat()
330 if (p_size != SIZE_MAX && p_size < size) in fortify_memset_chk()
429 if ((p_size != SIZE_MAX && p_size < size) || in fortify_memcpy_chk()
[all …]
Doverflow.h145 return SIZE_MAX; in size_mul()
164 return SIZE_MAX; in size_add()
184 if (minuend == SIZE_MAX || subtrahend == SIZE_MAX || in size_sub()
186 return SIZE_MAX; in size_sub()
Dlimits.h9 #define SIZE_MAX (~(size_t)0) macro
10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
Dswiotlb.h149 return SIZE_MAX; in swiotlb_max_mapping_size()
/linux-6.1.9/tools/include/linux/
Doverflow.h87 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-6.1.9/drivers/usb/gadget/
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-6.1.9/tools/virtio/ringtest/
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) in kmalloc_array()
/linux-6.1.9/tools/testing/selftests/vm/
Dtranshuge-stress.c37 if (ram > SIZE_MAX / sysconf(_SC_PAGESIZE) / 4) in main()
38 ram = SIZE_MAX / 4; in main()
/linux-6.1.9/sound/soc/ti/
Dudma-pcm.c22 .buffer_bytes_max = SIZE_MAX,
/linux-6.1.9/tools/virtio/linux/
Ddma-mapping.h32 #define dma_max_mapping_size(...) SIZE_MAX
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c262 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl()
277 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl()
/linux-6.1.9/drivers/gpu/drm/etnaviv/
Detnaviv_drv.h94 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
/linux-6.1.9/include/crypto/
Ddrbg.h183 return (SIZE_MAX - 1); in drbg_max_addtl()
/linux-6.1.9/drivers/s390/char/
Dhmcdrv_cache.c49 .fsize = SIZE_MAX,
/linux-6.1.9/tools/perf/tests/
Dbuiltin-test-list.c130 if (files_num_tmp >= SIZE_MAX) { in append_script()
/linux-6.1.9/sound/soc/
Dsoc-generic-dmaengine-pcm.c129 hw.buffer_bytes_max = SIZE_MAX; in dmaengine_pcm_set_runtime_hwparams()
237 max_buffer_size = SIZE_MAX; in dmaengine_pcm_new()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_scatter.c93 if (request->size > SIZE_MAX - PAGE_SIZE) in drm_legacy_sg_alloc()
/linux-6.1.9/drivers/base/regmap/
Dregmap-spi.c119 if (max_size != SIZE_MAX) { in regmap_get_spi_bus()
/linux-6.1.9/io_uring/
Dio_uring.c2465 if (off == SIZE_MAX) in rings_size()
2466 return SIZE_MAX; in rings_size()
2469 return SIZE_MAX; in rings_size()
2475 return SIZE_MAX; in rings_size()
2482 if (sq_array_size == SIZE_MAX) in rings_size()
2483 return SIZE_MAX; in rings_size()
2486 return SIZE_MAX; in rings_size()
3299 if (size == SIZE_MAX) in io_allocate_scq_urings()
3317 if (size == SIZE_MAX) { in io_allocate_scq_urings()
3598 if (size == SIZE_MAX) in io_probe()
[all …]
/linux-6.1.9/mm/
Dslob.c573 if (unlikely(size == SIZE_MAX)) in kmalloc_size_roundup()
574 return SIZE_MAX; in kmalloc_size_roundup()
/linux-6.1.9/include/linux/spi/
Dspi.h1151 return SIZE_MAX; in spi_max_message_size()
1159 size_t tr_max = SIZE_MAX; in spi_max_transfer_size()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bo_list.c74 if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list)) in amdgpu_bo_list_create()
/linux-6.1.9/kernel/dma/
Dmapping.c789 size_t size = SIZE_MAX; in dma_max_mapping_size()
803 size_t size = SIZE_MAX; in dma_opt_mapping_size()

123