Home
last modified time | relevance | path

Searched refs:MAX_LEN (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_varlen.c9 #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 …]
/openbmc/linux/lib/
H A Dchecksum_kunit.c9 #define MAX_LEN 512 macro
11 #define TEST_BUFLEN (MAX_LEN + MAX_ALIGN)
234 CHECK_EQ(sizeof(random_buf) / sizeof(random_buf[0]), MAX_LEN); in assert_setup_correct()
236 MAX_LEN); in assert_setup_correct()
239 MAX_LEN); in assert_setup_correct()
254 min(MAX_LEN, TEST_BUFLEN - align)); in test_csum_fixed_random_inputs()
255 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_fixed_random_inputs()
280 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_all_carry_inputs()
320 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_no_carry_inputs()
/openbmc/linux/tools/testing/selftests/powerpc/copyloops/
H A Dexc_validate.c77 #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 Dvalidate.c9 #define MAX_LEN 8192 macro
12 #define BUFLEN (MAX_LEN+MAX_OFFSET+2*MIN_REDZONE)
85 for (len = 1; len < MAX_LEN; len++) { in test_copy_loop()
/openbmc/linux/scripts/kconfig/lxdialog/
H A Dtextbox.c57 static char line[MAX_LEN + 1]; in get_line()
64 } else if (i < MAX_LEN) in get_line()
68 if (i == MAX_LEN) in get_line()
73 if (i <= MAX_LEN) in get_line()
318 if (hscroll >= MAX_LEN) in dialog_textbox()
H A Dinputbox.c11 char dialog_input_result[MAX_LEN + 1];
186 if (len < MAX_LEN) { in dialog_inputbox()
H A Ddialog.h25 #define MAX_LEN 2048 macro
H A Dutil.c373 char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0; in print_autowrap()
/openbmc/u-boot/scripts/kconfig/lxdialog/
H A Dtextbox.c218 if (hscroll >= MAX_LEN) in dialog_textbox()
359 static char line[MAX_LEN + 1]; in get_line()
366 } else if (i < MAX_LEN) in get_line()
370 if (i == MAX_LEN) in get_line()
375 if (i <= MAX_LEN) in get_line()
H A Dinputbox.c11 char dialog_input_result[MAX_LEN + 1];
185 if (len < MAX_LEN) { in dialog_inputbox()
H A Ddialog.h47 #define MAX_LEN 2048 macro
H A Dutil.c373 char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0; in print_autowrap()
/openbmc/slpd-lite/
H A Dmain.cpp30 if (recvBuff.size() > slp::MAX_LEN) in requestHandler()
33 << " / " << slp::MAX_LEN << std::endl; in requestHandler()
H A Dslp_message_handler.cpp120 if (totalLength > slp::MAX_LEN) in processSrvTypeRequest()
123 << totalLength << " / " << slp::MAX_LEN << std::endl; in processSrvTypeRequest()
235 if (totalLength > slp::MAX_LEN) in processSrvRequest()
238 << totalLength << " / " << slp::MAX_LEN << std::endl; in processSrvRequest()
H A Dslp_meta.hpp16 constexpr size_t MAX_LEN = 255; variable
/openbmc/linux/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dstring-attributes.c11 enum string_properties {MIN_LEN = 6, MAX_LEN}; enumerator
151 if (check_property_type(str, MAX_LEN, ACPI_TYPE_INTEGER)) in populate_str_data()
153 wmi_priv.str_data[instance_id].max_length = (uintptr_t) str_obj[MAX_LEN].string.pointer; in populate_str_data()
/openbmc/u-boot/net/
H A Dtftp.c122 #define MAX_LEN 128 macro
124 #define MAX_LEN CONFIG_TFTP_FILE_NAME_MAX_LEN macro
127 static char tftp_filename[MAX_LEN];
660 if (!net_parse_bootfile(&tftp_remote_ip, tftp_filename, MAX_LEN)) { in tftp_start()
/openbmc/linux/drivers/rtc/
H A Drtc-bq32k.c37 #define MAX_LEN 10 /* Maximum number of consecutive macro
79 uint8_t buffer[MAX_LEN + 1]; in bq32k_write()
/openbmc/linux/drivers/spi/
H A Dspi-microchip-core.c23 #define MAX_LEN (0xffff) macro
/openbmc/linux/drivers/block/
H A Dfloppy.c3082 #define MAX_LEN (1UL << MAX_ORDER << PAGE_SHIFT) macro
3111 if (ptr->length <= 0 || ptr->length > MAX_LEN) in raw_cmd_copyin()