| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_varlen.c | 9 #define MAX_LEN 256 macro 11 char buf_in1[MAX_LEN] = {}; 12 char buf_in2[MAX_LEN] = {}; 21 char payload1[MAX_LEN + MAX_LEN] = {}; 28 char payload2[MAX_LEN + MAX_LEN] = { 1 }; 33 char payload3[MAX_LEN + MAX_LEN] = { 1 }; 38 char payload4[MAX_LEN + MAX_LEN] = { 1 }; 53 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned() 59 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned() 83 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_signed() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sha256.c | 7 #define MAX_LEN 4096 macro 27 data = malloc(MAX_LEN); in test_sha256() 30 digests = malloc((MAX_LEN + 1) * SHA256_DIGEST_LENGTH); in test_sha256() 35 for (i = 0; i < MAX_LEN; i++) { in test_sha256() 41 for (i = 0; i <= MAX_LEN; i++) in test_sha256() 45 libbpf_sha256(digests, (MAX_LEN + 1) * SHA256_DIGEST_LENGTH, in test_sha256()
|
| /linux/tools/testing/selftests/powerpc/copyloops/ |
| H A D | exc_validate.c | 77 #define MAX_LEN 16 macro 103 q = p + page_size - MAX_LEN; in test_copy_exception() 105 for (src = 0; src < MAX_LEN; src++) { in test_copy_exception() 106 for (dst = 0; dst < MAX_LEN; dst++) { in test_copy_exception() 107 for (len = 0; len < MAX_LEN+1; len++) { in test_copy_exception()
|
| H A D | validate.c | 9 #define MAX_LEN 8192 macro 12 #define BUFLEN (MAX_LEN+MAX_OFFSET+2*MIN_REDZONE) 90 for (len = VMX_COPY_THRESHOLD + 1; len < MAX_LEN; len++) { 92 for (len = 1; len < MAX_LEN; len++) {
|
| /linux/scripts/kconfig/lxdialog/ |
| H A D | textbox.c | 57 static char line[MAX_LEN + 1]; in get_line() 64 } else if (i < MAX_LEN) in get_line() 67 /* Truncate lines longer than MAX_LEN characters */ in get_line() 68 if (i == MAX_LEN) in get_line() 73 if (i <= MAX_LEN) in get_line() 316 if (hscroll >= MAX_LEN) in dialog_textbox()
|
| H A D | inputbox.c | 11 char dialog_input_result[MAX_LEN + 1]; 188 if (len < MAX_LEN) { in dialog_inputbox()
|
| H A D | dialog.h | 25 #define MAX_LEN 2048 macro
|
| H A D | util.c | 346 char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0; in print_autowrap()
|
| /linux/drivers/platform/x86/dell/dell-wmi-sysman/ |
| H A D | string-attributes.c | 11 enum string_properties {MIN_LEN = 6, MAX_LEN}; enumerator 152 if (check_property_type(str, MAX_LEN, ACPI_TYPE_INTEGER)) in populate_str_data() 154 wmi_priv.str_data[instance_id].max_length = (uintptr_t) str_obj[MAX_LEN].string.pointer; in populate_str_data()
|
| /linux/drivers/rtc/ |
| H A D | rtc-bq32k.c | 38 #define MAX_LEN 10 /* Maximum number of consecutive macro 80 uint8_t buffer[MAX_LEN + 1]; in bq32k_write()
|
| /linux/rust/kernel/ |
| H A D | bitmap.rs | 26 /// This also matches [`BitmapVec::MAX_LEN`]. 181 /// * `nbits` is `<= MAX_LEN`. 188 /// Length of this bitmap. Must be `<= MAX_LEN`. in deref_mut() 259 pub const MAX_LEN: usize = i32::MAX as usize; in new() 277 /// includes the case when `nbits` is greater than `MAX_LEN`. 286 if nbits > Self::MAX_LEN { in fill_random() 290 // SAFETY: `MAX_INLINE_LEN < nbits` and `nbits <= MAX_LEN`. 228 pub const MAX_LEN: usize = i32::MAX as usize; global() constant
|
| H A D | id_pool.rs | 201 /// The capacity of an [`IdPool`] cannot be grown above [`MAX_LEN`]. in grow_request() 203 /// [`MAX_LEN`]: BitmapVec::MAX_LEN in grow_request() 207 if num_ids > BitmapVec::MAX_LEN { 323 // `self.id < pool.map.len() <= BitmapVec::MAX_LEN = i32::MAX`.
|
| /linux/rust/zerocopy/src/ |
| H A D | lib.rs | 916 const MAX_LEN: usize; in maximum_trailing_slice_len() 923 const MAX_LEN: usize = match T::LAYOUT.size_info { in maximum_trailing_slice_len() 936 T::MAX_LEN in maximum_trailing_slice_len() 918 const MAX_LEN: usize; maximum_trailing_slice_len() constant 925 const MAX_LEN: usize = match T::LAYOUT.size_info { maximum_trailing_slice_len() constant
|
| /linux/drivers/block/ |
| H A D | floppy.c | 3080 #define MAX_LEN (1UL << MAX_PAGE_ORDER << PAGE_SHIFT) macro 3106 if (ptr->length <= 0 || ptr->length > MAX_LEN) in raw_cmd_copyin()
|