Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 145) sorted by relevance

123456

/linux-2.6.39/lib/
Dts_kmp.c41 u8 * pattern; member
60 while (q > 0 && kmp->pattern[q] in kmp_find()
63 if (kmp->pattern[q] in kmp_find()
78 static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len, in compute_prefix_tbl() argument
85 while (k > 0 && (icase ? toupper(pattern[k]) : pattern[k]) in compute_prefix_tbl()
86 != (icase ? toupper(pattern[q]) : pattern[q])) in compute_prefix_tbl()
88 if ((icase ? toupper(pattern[k]) : pattern[k]) in compute_prefix_tbl()
89 == (icase ? toupper(pattern[q]) : pattern[q])) in compute_prefix_tbl()
95 static struct ts_config *kmp_init(const void *pattern, unsigned int len, in kmp_init() argument
111 compute_prefix_tbl(pattern, len, kmp->prefix_tbl, flags); in kmp_init()
[all …]
Dts_bm.c56 u8 * pattern; member
82 != bm->pattern[bm->patlen-1-i]) in bm_find()
100 static int subpattern(u8 *pattern, int i, int j, int g) in subpattern() argument
104 while(pattern[x--] == pattern[y--]) { in subpattern()
110 ret = pattern[i-1] != pattern[j-1]; in subpattern()
125 bm->bad_shift[bm->pattern[i]] = bm->patlen - 1 - i; in compute_prefix_tbl()
127 bm->bad_shift[tolower(bm->pattern[i])] in compute_prefix_tbl()
138 if (subpattern(bm->pattern, i, j, g)) { in compute_prefix_tbl()
145 static struct ts_config *bm_init(const void *pattern, unsigned int len, in bm_init() argument
161 bm->pattern = (u8 *) bm->good_shift + prefix_tbl_len; in bm_init()
[all …]
Dtextsearch.c260 struct ts_config *textsearch_prepare(const char *algo, const void *pattern, in textsearch_prepare() argument
286 conf = ops->init(pattern, len, gfp_mask, flags); in textsearch_prepare()
/linux-2.6.39/drivers/tc/
Dtc.c43 u8 pattern[4]; in tc_bus_add_devices() local
55 err |= tc_preadb(pattern + 0, module + offset + TC_PATTERN0); in tc_bus_add_devices()
56 err |= tc_preadb(pattern + 1, module + offset + TC_PATTERN1); in tc_bus_add_devices()
57 err |= tc_preadb(pattern + 2, module + offset + TC_PATTERN2); in tc_bus_add_devices()
58 err |= tc_preadb(pattern + 3, module + offset + TC_PATTERN3); in tc_bus_add_devices()
62 if (pattern[0] != 0x55 || pattern[1] != 0x00 || in tc_bus_add_devices()
63 pattern[2] != 0xaa || pattern[3] != 0xff) { in tc_bus_add_devices()
67 err |= tc_preadb(pattern + 0, in tc_bus_add_devices()
69 err |= tc_preadb(pattern + 1, in tc_bus_add_devices()
71 err |= tc_preadb(pattern + 2, in tc_bus_add_devices()
[all …]
/linux-2.6.39/arch/x86/mm/
Dmemtest.c31 static void __init reserve_bad_mem(u64 pattern, u64 start_bad, u64 end_bad) in reserve_bad_mem() argument
34 (unsigned long long) pattern, in reserve_bad_mem()
40 static void __init memtest(u64 pattern, u64 start_phys, u64 size) in memtest() argument
45 const size_t incr = sizeof(pattern); in memtest()
54 *p = pattern; in memtest()
57 if (*p == pattern) in memtest()
64 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
68 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
71 static void __init do_one_pass(u64 pattern, u64 start, u64 end) in do_one_pass() argument
87 (unsigned long long) cpu_to_be64(pattern)); in do_one_pass()
[all …]
/linux-2.6.39/security/tomoyo/
Dutil.c510 const char *pattern, in tomoyo_file_matches_pattern2() argument
513 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
515 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
516 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
521 pattern++; in tomoyo_file_matches_pattern2()
522 switch (*pattern) { in tomoyo_file_matches_pattern2()
560 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
562 pattern += 2; in tomoyo_file_matches_pattern2()
571 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
574 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
[all …]
Dfile.c352 return container_of(a, struct tomoyo_no_pattern, head)->pattern == in tomoyo_same_pattern()
353 container_of(b, struct tomoyo_no_pattern, head)->pattern; in tomoyo_same_pattern()
366 static int tomoyo_update_file_pattern_entry(const char *pattern, in tomoyo_update_file_pattern_entry() argument
372 if (!tomoyo_correct_word(pattern)) in tomoyo_update_file_pattern_entry()
374 e.pattern = tomoyo_get_name(pattern); in tomoyo_update_file_pattern_entry()
375 if (!e.pattern) in tomoyo_update_file_pattern_entry()
380 tomoyo_put_name(e.pattern); in tomoyo_update_file_pattern_entry()
396 const struct tomoyo_path_info *pattern = NULL; in tomoyo_pattern() local
402 if (!tomoyo_path_matches_pattern(filename, ptr->pattern)) in tomoyo_pattern()
404 pattern = ptr->pattern; in tomoyo_pattern()
[all …]
/linux-2.6.39/arch/x86/include/asm/
Dstring_32.h257 void *__constant_c_and_count_memset(void *s, unsigned long pattern, in __constant_c_and_count_memset() argument
264 *(unsigned char *)s = pattern & 0xff; in __constant_c_and_count_memset()
267 *(unsigned short *)s = pattern & 0xffff; in __constant_c_and_count_memset()
270 *(unsigned short *)s = pattern & 0xffff; in __constant_c_and_count_memset()
271 *((unsigned char *)s + 2) = pattern & 0xff; in __constant_c_and_count_memset()
274 *(unsigned long *)s = pattern; in __constant_c_and_count_memset()
289 register unsigned long eax asm("%eax") = pattern; in __constant_c_and_count_memset()
291 unsigned long eax = pattern; in __constant_c_and_count_memset()
/linux-2.6.39/drivers/regulator/
Dmax8997.c202 int *reg, int *mask, int *pattern) in max8997_get_enable_register() argument
210 *pattern = 0xC0; in max8997_get_enable_register()
215 *pattern = 0x01; in max8997_get_enable_register()
220 *pattern = 0x01; in max8997_get_enable_register()
225 *pattern = 0x01; in max8997_get_enable_register()
230 *pattern = 0x01; in max8997_get_enable_register()
235 *pattern = 0x01; in max8997_get_enable_register()
240 *pattern = 0x01; in max8997_get_enable_register()
245 *pattern = 0x01; in max8997_get_enable_register()
250 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register()
[all …]
/linux-2.6.39/drivers/isdn/mISDN/
Ddsp_tones.c235 static struct pattern { struct
240 } pattern[] = { argument
378 struct pattern *pat; in dsp_tone_copy()
388 pat = (struct pattern *)tone->pattern; in dsp_tone_copy()
464 struct pattern *pat = (struct pattern *)tone->pattern; in dsp_tone_timeout()
499 struct pattern *pat; in dsp_tone()
518 while (pattern[i].tone) { in dsp_tone()
519 if (pattern[i].tone == tone) { in dsp_tone()
520 pat = &pattern[i]; in dsp_tone()
533 tonet->pattern = pat; in dsp_tone()
/linux-2.6.39/net/netfilter/
Dnf_conntrack_ftp.c62 const char *pattern; member
71 .pattern = "PORT",
79 .pattern = "EPRT",
89 .pattern = "227 ",
97 .pattern = "229 ",
256 const char *pattern, size_t plen, in find_pattern() argument
266 pr_debug("find_pattern `%s': dlen = %Zu\n", pattern, dlen); in find_pattern()
272 if (strnicmp(data, pattern, dlen) == 0) in find_pattern()
277 if (strnicmp(data, pattern, plen) != 0) { in find_pattern()
285 pattern[i], pattern[i]); in find_pattern()
[all …]
/linux-2.6.39/scripts/kconfig/
Dnconf.c1011 char pattern[256]; member
1028 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1035 state->pattern[strlen(state->pattern)] = c; in do_match()
1036 state->pattern[strlen(state->pattern)] = '\0'; in do_match()
1038 *ans = get_mext_match(state->pattern, in do_match()
1042 *ans = get_mext_match(state->pattern, in do_match()
1046 *ans = get_mext_match(state->pattern, in do_match()
1049 state->pattern[strlen(state->pattern)-1] = '\0'; in do_match()
1056 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1077 .pattern = "", in conf()
[all …]
/linux-2.6.39/arch/x86/kernel/acpi/realmode/
Dwakemain.c39 static void send_morse(const char *pattern) in send_morse() argument
43 while ((s = *pattern++)) { in send_morse()
/linux-2.6.39/Documentation/devicetree/bindings/mtd/
Dfsl-upm-nand.txt6 - fsl,upm-addr-offset : UPM pattern offset for the address latch.
7 - fsl,upm-cmd-offset : UPM pattern offset for the command latch.
11 UPM pattern (0x1), after writing a data byte (0x2) or after
/linux-2.6.39/net/sched/
Dem_nbyte.c23 char pattern[0]; member
54 return !memcmp(ptr + nbyte->hdr.off, nbyte->pattern, nbyte->hdr.len); in em_nbyte_match()
/linux-2.6.39/drivers/mtd/nand/
Dnand_bbt.c75 ret = memcmp(buf, td->pattern, td->len); in check_pattern_no_oob()
113 if (p[i] != td->pattern[i]) in check_pattern()
134 if (p[i] != td->pattern[i]) in check_pattern()
167 if (p[td->offs + i] != td->pattern[i]) in check_short_pattern()
173 if (p[NAND_SMALL_BADBLOCK_POS + i] != td->pattern[i]) in check_short_pattern()
841 memcpy(buf, td->pattern, td->len); in write_bbt()
853 memcpy(&buf[ooboffs + td->offs], td->pattern, td->len); in write_bbt()
1283 .pattern = scan_ff_pattern
1290 .pattern = scan_ff_pattern
1299 .pattern = scan_agand_pattern
[all …]
/linux-2.6.39/drivers/dma/
Ddmatest.c156 static void dmatest_mismatch(u8 actual, u8 pattern, unsigned int index, in dmatest_mismatch() argument
159 u8 diff = actual ^ pattern; in dmatest_mismatch()
160 u8 expected = pattern | (~counter & PATTERN_COUNT_MASK); in dmatest_mismatch()
167 else if ((pattern & PATTERN_COPY) in dmatest_mismatch()
183 unsigned int end, unsigned int counter, u8 pattern, in dmatest_verify() argument
197 expected = pattern | (~counter & PATTERN_COUNT_MASK); in dmatest_verify()
200 dmatest_mismatch(actual, pattern, i, in dmatest_verify()
/linux-2.6.39/tools/perf/Documentation/
Dperf-probe.txt82 pattern, see FILTER PATTERN for detail.
109 3) Define event based on source file with lazy pattern
114 …rn' means that it probes function return. And ';PTN' means lazy matching pattern (see LAZY MATCHIN…
115 …e 'SRC' is the source file path, ':ALN' is the line number and ';PTN' is the lazy matching pattern.
143 …The lazy line matching is similar to glob matching but ignoring spaces in both of pattern and targ…
152 The filter pattern is a glob matching pattern(s) to filter variables.
/linux-2.6.39/drivers/usb/gadget/
Df_sourcesink.c69 static unsigned pattern; variable
70 module_param(pattern, uint, 0);
71 MODULE_PARM_DESC(pattern, "0 = all zeroes, 1 = mod63 ");
210 switch (pattern) { in check_read_data()
242 switch (pattern) { in reinit_write_data()
/linux-2.6.39/drivers/leds/
Dleds-lp5523.c155 static int lp5523_load_program(struct lp5523_engine *engine, u8 *pattern);
199 u8 pattern[][LP5523_PROGRAM_LENGTH] = { in lp5523_configure() local
224 ret |= lp5523_load_program(&chip->engines[0], pattern[0]); in lp5523_configure()
225 ret |= lp5523_load_program(&chip->engines[1], pattern[1]); in lp5523_configure()
226 ret |= lp5523_load_program(&chip->engines[2], pattern[2]); in lp5523_configure()
304 static int lp5523_load_program(struct lp5523_engine *engine, u8 *pattern) in lp5523_load_program() argument
316 LP5523_PROGRAM_LENGTH, pattern); in lp5523_load_program()
547 u8 pattern[LP5523_PROGRAM_LENGTH] = {0}; in lp5523_do_store_load() local
555 pattern[i] = (u8)cmd; in lp5523_do_store_load()
568 ret = lp5523_load_program(engine, pattern); in lp5523_do_store_load()
/linux-2.6.39/tools/usb/
Dffs-test.c388 enum pattern { PAT_ZERO, PAT_SEQ, PAT_PIPE }; enum
389 static enum pattern pattern; variable
399 switch (pattern) { in fill_in_buf()
426 switch (pattern) { in empty_out_buf()
/linux-2.6.39/arch/avr32/mach-at32ap/
Dextint.c190 u32 pattern; in eic_probe() local
219 pattern = eic_readl(eic, MODE); in eic_probe()
220 nr_of_irqs = fls(pattern); in eic_probe()
/linux-2.6.39/Documentation/leds/
Dleds-lp3944.txt20 The DIM modes are used to set _blink_ patterns for leds, the pattern is
25 Setting a led in DIM0 or DIM1 mode makes it blink according to the pattern.
/linux-2.6.39/drivers/mmc/host/
Dmmc_spi.c678 u32 pattern; in mmc_spi_writeblock() local
712 pattern = scratch->status[0] << 24; in mmc_spi_writeblock()
713 pattern |= scratch->status[1] << 16; in mmc_spi_writeblock()
714 pattern |= scratch->status[2] << 8; in mmc_spi_writeblock()
715 pattern |= scratch->status[3]; in mmc_spi_writeblock()
718 pattern |= 0xE0000000; in mmc_spi_writeblock()
721 while (pattern & 0x80000000) in mmc_spi_writeblock()
722 pattern <<= 1; in mmc_spi_writeblock()
724 pattern >>= 27; in mmc_spi_writeblock()
726 switch (pattern) { in mmc_spi_writeblock()
/linux-2.6.39/include/linux/netfilter/
Dxt_string.h18 char pattern[XT_STRING_MAX_PATTERN_SIZE]; member

123456