Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 25 of 228) sorted by relevance

12345678910

/third_party/e2fsprogs/lib/e2p/
Diod.c33 int max_len = -1, len, ret = 0; in iterate_on_dir() local
36 max_len = pathconf(dir_name, _PC_NAME_MAX); in iterate_on_dir()
38 if (max_len == -1) { in iterate_on_dir()
40 max_len = _POSIX_NAME_MAX; in iterate_on_dir()
43 max_len = NAME_MAX; in iterate_on_dir()
45 max_len = 256; in iterate_on_dir()
49 max_len += sizeof(struct dirent); in iterate_on_dir()
51 de = malloc(max_len+1); in iterate_on_dir()
54 memset(de, 0, max_len+1); in iterate_on_dir()
64 if (len > max_len) in iterate_on_dir()
[all …]
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_knobs.h129 max_len = 0
131 global max_len
132 max_len = 0
134 if len(knob[0]) > max_len: max_len = len(knob[0])
135 max_len += len('KNOB_ ')
136 if max_len % 4: max_len += 4 - (max_len % 4)
140 return ' '*(max_len - knob_len)
150 def space_name(name, max_len):
152 return ' '*(max_len - name_len)
Dgen_knobs.cpp118 max_len = 0
120 global max_len
121 max_len = 0
123 if len(knob[0]) > max_len: max_len = len(knob[0])
124 max_len += len('KNOB_ ')
125 if max_len % 4: max_len += 4 - (max_len % 4)
129 return ' '*(max_len - knob_len)
139 def space_name(name, max_len):
141 return ' '*(max_len - name_len)
/third_party/FreeBSD/sys/dev/usb/
Dusb_util.c158 usb_make_str_desc(void *ptr, uint16_t max_len, const char *s) in usb_make_str_desc() argument
164 if (max_len < 2) { in usb_make_str_desc()
168 max_len = ((max_len / 2) - 1); in usb_make_str_desc()
178 if (max_len > j) { in usb_make_str_desc()
179 max_len = j; in usb_make_str_desc()
181 totlen = (max_len + 1) * 2; in usb_make_str_desc()
186 while (max_len--) { in usb_make_str_desc()
187 USETW2(p->bString[max_len], 0, s[max_len]); in usb_make_str_desc()
Dusb_handle_request.c433 uint16_t max_len; /* max fragment length */ in usb_handle_request() local
492 max_len = 0; in usb_handle_request()
586 &max_len, req, off, state); in usb_handle_request()
599 max_len = 0; in usb_handle_request()
610 err = (usb_temp_get_desc_p) (udev, &req, &src_zcopy, &max_len); in usb_handle_request()
620 max_len = 1; in usb_handle_request()
638 max_len = sizeof(temp.wStatus); in usb_handle_request()
702 max_len = sizeof(temp.wStatus); in usb_handle_request()
712 max_len -= off; in usb_handle_request()
716 if (max_len > xfer->max_data_length) { in usb_handle_request()
[all …]
/third_party/skia/third_party/externals/icu/fuzzers/
DBUILD.gn28 libfuzzer_options = [ "max_len=128" ]
34 libfuzzer_options = [ "max_len=10240" ]
40 libfuzzer_options = [ "max_len=10240" ]
46 libfuzzer_options = [ "max_len=10240" ]
52 libfuzzer_options = [ "max_len=10240" ]
58 libfuzzer_options = [ "max_len=10240" ]
64 libfuzzer_options = [ "max_len=10240" ]
70 libfuzzer_options = [ "max_len=10240" ]
/third_party/flutter/skia/third_party/externals/icu/fuzzers/
DBUILD.gn28 libfuzzer_options = [ "max_len=128" ]
34 libfuzzer_options = [ "max_len=10240" ]
40 libfuzzer_options = [ "max_len=10240" ]
46 libfuzzer_options = [ "max_len=10240" ]
52 libfuzzer_options = [ "max_len=10240" ]
58 libfuzzer_options = [ "max_len=10240" ]
64 libfuzzer_options = [ "max_len=10240" ]
/third_party/mindspore/tests/st/fl/albert/src/
Dtokenization.py76 …def __init__(self, vocab_file, do_lower_case=True, max_len=None, do_basic_tokenize=True, basic_onl… argument
100 self.max_len = max_len if max_len is not None else int(1e12)
157 max_len = 512
158 kwargs['max_len'] = min(kwargs.get('max_len', int(1e12)), max_len)
449 def __init__(self, vocab_file, do_lower_case=True, max_len=None, argument
464 super().__init__(vocab_file, do_lower_case, max_len, never_split)
471 self.max_len = max_len if max_len is not None else int(1e12)
490 max_len = 512
491 kwargs['max_len'] = min(kwargs.get('max_len', int(1e12)), max_len)
536 def __init__(self, vocab_file, do_lower_case=True, max_len=None, argument
[all …]
/third_party/openssl/crypto/rand/
Drand_lib.c131 int entropy, size_t min_len, size_t max_len, in rand_drbg_get_entropy() argument
151 pool = rand_pool_new(entropy, drbg->secure, min_len, max_len); in rand_drbg_get_entropy()
232 int entropy, size_t min_len, size_t max_len) in rand_drbg_get_nonce() argument
243 pool = rand_pool_new(0, 0, min_len, max_len); in rand_drbg_get_nonce()
433 size_t min_len, size_t max_len) in rand_pool_new() argument
448 pool->max_len = (max_len > RAND_POOL_MAX_LENGTH) ? in rand_pool_new()
449 RAND_POOL_MAX_LENGTH : max_len; in rand_pool_new()
451 if (pool->alloc_len > pool->max_len) in rand_pool_new()
452 pool->alloc_len = pool->max_len; in rand_pool_new()
500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach()
[all …]
/third_party/openssl/crypto/asn1/
Devp_asn1.c30 int ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, int max_len) in ASN1_TYPE_get_octetstring() argument
41 if (ret < max_len) in ASN1_TYPE_get_octetstring()
44 num = max_len; in ASN1_TYPE_get_octetstring()
84 unsigned char *data, int max_len) in ASN1_TYPE_get_int_octetstring() argument
102 if (max_len > ret) in ASN1_TYPE_get_int_octetstring()
105 n = max_len; in ASN1_TYPE_get_int_octetstring()
/third_party/boost/libs/mpl/preprocessed/
Dpp.py21 max_len = 79 variable
37 max_len = limits[1]
41 lambda t,w,max_len=max_len,s=s,sep=sep:
42 if_else(t[1] + len(w) < max_len
58 (nearest_ident_pos(match.group(1)),max_len)
67 if len(match.group(0)) < max_len:
76 (nearest_ident_pos(match.group(1))+ident,max_len)
86 (nearest_ident_pos(match.group(1))+ident,max_len-len(match.group(9)))
105 if len(match.group(0)) < max_len:
114 (nearest_ident_pos(match.group(1))+ident,max_len)
/third_party/glib/glib/
Dgutf8.c575 gssize max_len) in g_utf8_get_char_extended() argument
626 if (G_UNLIKELY (max_len >= 0 && len > max_len)) in g_utf8_get_char_extended()
628 for (i = 1; i < max_len; i++) in g_utf8_get_char_extended()
680 gssize max_len) in g_utf8_get_char_validated() argument
684 if (max_len == 0) in g_utf8_get_char_validated()
687 result = g_utf8_get_char_extended (p, max_len); in g_utf8_get_char_validated()
691 if (result == 0 && max_len > 0) in g_utf8_get_char_validated()
1565 gssize max_len) in fast_validate_len() argument
1570 g_assert (max_len >= 0); in fast_validate_len()
1572 for (p = str; ((p - str) < max_len) && *p; p++) in fast_validate_len()
[all …]
/third_party/libxml2/fuzz/
DMakefile.am58 -max_len=$(XML_MAX_LEN) \
76 -max_len=1000000 \
94 -max_len=200 \
111 -max_len=10000 \
129 -max_len=$(XML_MAX_LEN) \
147 -max_len=10000 \
/third_party/glib/glib/tests/
Dutf8-validate.c30 gint max_len; member
281 result = g_utf8_validate (test->text, test->max_len, &end); in do_test()
286 if (test->max_len < 0) in do_test()
295 result = g_utf8_validate_len (test->text, test->max_len, &end); in do_test()
309 gssize max_len; in test_utf8_get_char_validated() member
354 test_vectors[i].max_len); in test_utf8_get_char_validated()
/third_party/skia/third_party/externals/brotli/c/fuzz/
Drun_decode_fuzzer.c28 size_t max_len = 1 << 20; in main() local
29 unsigned char* tmp = (unsigned char*)malloc(max_len); in main()
30 size_t len = fread(tmp, 1, max_len, f); in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Duuid.c50 int uuid_bin2str(const u8 *bin, char *str, size_t max_len) in uuid_bin2str() argument
53 len = os_snprintf(str, max_len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-" in uuid_bin2str()
59 if (os_snprintf_error(max_len, len)) in uuid_bin2str()
Djson.c68 size_t max_len, buf_len; in json_parse_string() local
73 max_len = end - pos + 1; in json_parse_string()
74 buf_len = max_len > 10 ? 10 : max_len; in json_parse_string()
82 if (buf_len < max_len && s_end - spos < 3) { in json_parse_string()
88 if (buf_len > max_len) in json_parse_string()
89 buf_len = max_len; in json_parse_string()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Duuid.c50 int uuid_bin2str(const u8 *bin, char *str, size_t max_len) in uuid_bin2str() argument
53 len = os_snprintf(str, max_len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-" in uuid_bin2str()
59 if (os_snprintf_error(max_len, len)) in uuid_bin2str()
/third_party/openssl/include/crypto/
Drand.h47 int entropy, size_t min_len, size_t max_len,
53 int entropy, size_t min_len, size_t max_len);
65 size_t min_len, size_t max_len);
/third_party/eudev/src/scsi_id/
Dscsi_serial.c105 char *serial, char *serial_short, int max_len);
486 int max_len, char *wwn, in check_fill_0x83_id() argument
535 if (max_len < len) { in check_fill_0x83_id()
537 dev_scsi->kernel, max_len, len); in check_fill_0x83_id()
598 *id_search, char *serial, char *serial_short, int max_len) in check_fill_0x83_prespc3() argument
606 for (i = 0; (i < page_83[3]) && (j < max_len-3); ++i) { in check_fill_0x83_prespc3()
610 serial[max_len-1] = 0; in check_fill_0x83_prespc3()
611 strncpy(serial_short, serial, max_len-1); in check_fill_0x83_prespc3()
773 char *serial, char *serial_short, int max_len) in do_scsi_page80_inquiry() argument
792 if (max_len < len) { in do_scsi_page80_inquiry()
[all …]
/third_party/json/test/thirdparty/Fuzzer/test/
Dmerge.test31 # Check that we respect max_len during the merge and don't crash.
34 RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 -max_len=6 2>&1 | FileCheck %s…
44 # Check that we actually limit the size with max_len
45 RUN: LLVMFuzzer-FullCoverageSetTest -merge=1 %tmp/T1 %tmp/T2 -max_len=5 2>&1 | FileCheck %s --chec…
Dfuzzer-flags.test5 RUN: LLVMFuzzer-SimpleTest -runs=10 --max_len=100 2>&1 | FileCheck %s --check-prefix=DASH_DASH
6 DASH_DASH: WARNING: did you mean '-max_len=100' (single dash)?
/third_party/flatbuffers/tests/fuzzer/
Dreadme.md34 `./parser_fuzzer -only_ascii=1 -max_len=500 -dict=../parser_fbs.dict ../.corpus_parser/ ../.seed_p…
36 `./monster_fuzzer -only_ascii=1 -max_len=500 -dict=../monster_json.dict ../.corpus_monster/ ../.see…
38 `./scalar_fuzzer -use_value_profile=1 -max_len=500 -dict=../scalar_json.dict ../.corpus_scalar/ ../…
43 ….CP1251" ./scalar_fuzzer -reduce_depth=1 -use_value_profile=1 -shrink=1 -max_len=3000 -timeout=10 …
60 Example: `./scalar_fuzzer -max_len=3000`
/third_party/mbedtls/programs/ssl/
Dssl_context_info.c382 size_t read_next_b64_code( uint8_t **b64, size_t *max_len ) in read_next_b64_code() argument
431 if( len < *max_len ) in read_next_b64_code()
435 else if( *max_len < MAX_BASE64_LEN ) in read_next_b64_code()
439 size_t new_size = ( MAX_BASE64_LEN - 4096 > *max_len ) ? in read_next_b64_code()
440 *max_len + 4096 : MAX_BASE64_LEN; in read_next_b64_code()
449 *max_len = new_size; in read_next_b64_code()
470 else if( len > *max_len ) in read_next_b64_code()
473 len - *max_len ); in read_next_b64_code()
/third_party/boost/libs/geometry/test/algorithms/
Ddensify.cpp73 double max_len = 0.0; in greatest_length() local
78 max_len = (std::max)(max_len, len); in greatest_length()
80 return max_len; in greatest_length()

12345678910