Home
last modified time | relevance | path

Searched refs:pattern_len (Results 1 – 7 of 7) sorted by relevance

/external/libnl/lib/route/cls/ematch/
Dtext.c77 t->cfg.pattern_len = len; in rtnl_ematch_text_set_pattern()
87 return ((struct text_data *) rtnl_ematch_data(e))->cfg.pattern_len; in rtnl_ematch_text_get_len()
113 if (t->cfg.pattern_len > plen) in text_parse()
116 if (t->cfg.pattern_len > 0) { in text_parse()
117 if (!(t->pattern = calloc(1, t->cfg.pattern_len))) in text_parse()
120 memcpy(t->pattern, (char *) data + hdrlen, t->cfg.pattern_len); in text_parse()
160 return nlmsg_append(msg, t->pattern, t->cfg.pattern_len, 0); in text_fill()
/external/pdfium/testing/fuzzers/
Dpdf_cfgas_stringformatter_fuzzer.cc40 size_t pattern_len = size / 2; in LLVMFuzzerTestOneInput() local
41 size_t value_len = size - pattern_len; in LLVMFuzzerTestOneInput()
43 WideString::FromLatin1(ByteStringView(data, pattern_len)); in LLVMFuzzerTestOneInput()
45 WideString::FromLatin1(ByteStringView(data + pattern_len, value_len)); in LLVMFuzzerTestOneInput()
/external/ltp/testcases/kernel/io/disktest/
Dsfunc.c354 void fill_buffer(void *buf, size_t len, void *pattern, size_t pattern_len, in fill_buffer() argument
373 for (j = 0; j < (sizeof(OFF_T) / pattern_len); j++) in fill_buffer()
374 for (i = 0; i < pattern_len; ++i) in fill_buffer()
378 (7 - ((j * pattern_len) + i))); in fill_buffer()
382 (((OFF_T) (ucharpattern[(8 - pattern_len) + i])) << 8 * in fill_buffer()
383 (7 - ((j * pattern_len) + i))); in fill_buffer()
389 (7 - ((j * pattern_len) + i))); in fill_buffer()
392 (((OFF_T) (ucharpattern[(8 - pattern_len) + i])) << 8 * in fill_buffer()
393 (7 - ((j * pattern_len) + i))); in fill_buffer()
407 for (i = 0; i < pattern_len; i++) in fill_buffer()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509v3/
Dv3_utl.c662 typedef int (*equal_fn) (const unsigned char *pattern, size_t pattern_len,
672 size_t pattern_len = *plen; in skip_prefix() local
683 while (pattern_len > subject_len && *pattern) { in skip_prefix()
688 --pattern_len; in skip_prefix()
692 if (pattern_len == subject_len) { in skip_prefix()
694 *plen = pattern_len; in skip_prefix()
699 static int equal_nocase(const unsigned char *pattern, size_t pattern_len, in equal_nocase() argument
703 skip_prefix(&pattern, &pattern_len, subject, subject_len, flags); in equal_nocase()
704 if (pattern_len != subject_len) in equal_nocase()
706 while (pattern_len) { in equal_nocase()
[all …]
/external/boringssl/src/crypto/x509v3/
Dv3_utl.c662 typedef int (*equal_fn) (const unsigned char *pattern, size_t pattern_len,
672 size_t pattern_len = *plen; in skip_prefix() local
683 while (pattern_len > subject_len && *pattern) { in skip_prefix()
688 --pattern_len; in skip_prefix()
692 if (pattern_len == subject_len) { in skip_prefix()
694 *plen = pattern_len; in skip_prefix()
699 static int equal_nocase(const unsigned char *pattern, size_t pattern_len, in equal_nocase() argument
703 skip_prefix(&pattern, &pattern_len, subject, subject_len, flags); in equal_nocase()
704 if (pattern_len != subject_len) in equal_nocase()
706 while (pattern_len) { in equal_nocase()
[all …]
/external/kernel-headers/original/uapi/linux/tc_ematch/
Dtc_em_text.h14 __u16 pattern_len; member
/external/ethtool/
Dethtool.c1880 size_t pattern_len = in get_feature_defs() local
1883 if (name_len < pattern_len) in get_feature_defs()
1885 name += name_len - pattern_len; in get_feature_defs()