Home
last modified time | relevance | path

Searched full:pattern (Results 1 – 25 of 1855) sorted by relevance

12345678910>>...75

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/eeprom/
Dat24.yaml17 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
23 pattern: "^eeprom@[0-9a-f]{1,2}$"
37 … - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$"
38 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
41 pattern: c00$
43 pattern: c01$
45 pattern: cs01$
47 pattern: c02$
49 pattern: cs02$
51 pattern: mac402$
[all …]
/kernel/linux/linux-5.10/lib/
Dts_kmp.c13 * auxiliary function PI[1..m], for m being length(pattern),
14 * precomputed from the pattern in time O(m). The array PI allows
37 u8 * pattern; member
56 while (q > 0 && kmp->pattern[q] in kmp_find()
59 if (kmp->pattern[q] in kmp_find()
74 static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len, in compute_prefix_tbl() argument
81 while (k > 0 && (icase ? toupper(pattern[k]) : pattern[k]) in compute_prefix_tbl()
82 != (icase ? toupper(pattern[q]) : pattern[q])) in compute_prefix_tbl()
84 if ((icase ? toupper(pattern[k]) : pattern[k]) in compute_prefix_tbl()
85 == (icase ? toupper(pattern[q]) : pattern[q])) in compute_prefix_tbl()
[all …]
Dts_bm.c52 u8 * pattern; member
78 != bm->pattern[bm->patlen-1-i]) in bm_find()
96 static int subpattern(u8 *pattern, int i, int j, int g) in subpattern() argument
100 while(pattern[x--] == pattern[y--]) { in subpattern()
106 ret = pattern[i-1] != pattern[j-1]; in subpattern()
121 bm->bad_shift[bm->pattern[i]] = bm->patlen - 1 - i; in compute_prefix_tbl()
123 bm->bad_shift[tolower(bm->pattern[i])] in compute_prefix_tbl()
134 if (subpattern(bm->pattern, i, j, g)) { in compute_prefix_tbl()
141 static struct ts_config *bm_init(const void *pattern, unsigned int len, in bm_init() argument
157 bm->pattern = (u8 *) bm->good_shift + prefix_tbl_len; in bm_init()
[all …]
Dparser.c14 * match_one: - Determines if a string matches a simple pattern
15 * @s: the string to examine for presence of the pattern
16 * @p: the string containing the pattern
20 * Description: Determines if the pattern @p is present in string @s. Can only
21 * match extremely simple token=arg style patterns. If the pattern is found,
96 * &struct match_token whose pattern is set to the NULL pointer.
109 for (p = table; !match_one(s, p->pattern, args) ; p++) in match_token()
239 * match_wildcard: - parse if a string matches given wildcard pattern
240 * @pattern: wildcard pattern
244 * pattern @pattern. The pattern may contain two type wildcardes:
[all …]
/kernel/linux/linux-4.19/lib/
Dts_kmp.c17 * auxiliary function PI[1..m], for m being length(pattern),
18 * precomputed from the pattern in time O(m). The array PI allows
41 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()
[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 …]
Dparser.c16 * match_one: - Determines if a string matches a simple pattern
17 * @s: the string to examine for presence of the pattern
18 * @p: the string containing the pattern
22 * Description: Determines if the pattern @p is present in string @s. Can only
23 * match extremely simple token=arg style patterns. If the pattern is found,
98 * &struct match_token whose pattern is set to the NULL pointer.
111 for (p = table; !match_one(s, p->pattern, args) ; p++) in match_token()
247 * match_wildcard: - parse if a string matches given wildcard pattern
248 * @pattern: wildcard pattern
252 * pattern @pattern. The pattern may contain two type wildcardes:
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dreg_wow.h31 * bit 31:24 pattern 0 length
32 * bit 23:16 pattern 1 length
33 * bit 15:8 pattern 2 length
34 * bit 7:0 pattern 3 length
37 * bit 31:24 pattern 4 length
38 * bit 23:16 pattern 5 length
39 * bit 15:8 pattern 6 length
40 * bit 7:0 pattern 7 length
43 * bit 31:24 pattern 8 length
44 * bit 23:16 pattern 9 length
[all …]
/kernel/linux/linux-4.19/drivers/net/wireless/ath/ath9k/
Dreg_wow.h31 * bit 31:24 pattern 0 length
32 * bit 23:16 pattern 1 length
33 * bit 15:8 pattern 2 length
34 * bit 7:0 pattern 3 length
37 * bit 31:24 pattern 4 length
38 * bit 23:16 pattern 5 length
39 * bit 15:8 pattern 6 length
40 * bit 7:0 pattern 7 length
43 * bit 31:24 pattern 8 length
44 * bit 23:16 pattern 9 length
[all …]
/kernel/linux/linux-5.10/security/tomoyo/
Dutil.c624 * tomoyo_const_part_length - Evaluate the initial length without a pattern in a token.
628 * Returns the initial length without a pattern in @filename.
684 * tomoyo_file_matches_pattern2 - Pattern matching without '/' character and "\-" pattern.
688 * @pattern: The start of pattern to compare.
689 * @pattern_end: The end of pattern to compare.
691 * Returns true if @filename matches @pattern, false otherwise.
695 const char *pattern, in tomoyo_file_matches_pattern2() argument
698 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
703 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
704 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
[all …]
/kernel/linux/linux-4.19/security/tomoyo/
Dutil.c595 * tomoyo_const_part_length - Evaluate the initial length without a pattern in a token.
599 * Returns the initial length without a pattern in @filename.
655 * tomoyo_file_matches_pattern2 - Pattern matching without '/' character and "\-" pattern.
659 * @pattern: The start of pattern to compare.
660 * @pattern_end: The end of pattern to compare.
662 * Returns true if @filename matches @pattern, false otherwise.
666 const char *pattern, in tomoyo_file_matches_pattern2() argument
669 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
671 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
672 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/dma/
Drenesas,rcar-dmac.yaml55 - pattern: "^ch([0-9]|1[0-5])$"
56 - pattern: "^ch([0-9]|1[0-5])$"
57 - pattern: "^ch([0-9]|1[0-5])$"
58 - pattern: "^ch([0-9]|1[0-5])$"
59 - pattern: "^ch([0-9]|1[0-5])$"
60 - pattern: "^ch([0-9]|1[0-5])$"
61 - pattern: "^ch([0-9]|1[0-5])$"
62 - pattern: "^ch([0-9]|1[0-5])$"
63 - pattern: "^ch([0-9]|1[0-5])$"
64 - pattern: "^ch([0-9]|1[0-5])$"
[all …]
/kernel/linux/linux-5.10/mm/
Dmemtest.c28 static void __init reserve_bad_mem(u64 pattern, phys_addr_t start_bad, phys_addr_t end_bad) in reserve_bad_mem() argument
31 cpu_to_be64(pattern), &start_bad, &end_bad); in reserve_bad_mem()
35 static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t size) in memtest() argument
40 const size_t incr = sizeof(pattern); in memtest()
49 *p = pattern; in memtest()
52 if (*p == pattern) in memtest()
59 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
63 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
66 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument
76 pr_info(" %pa - %pa pattern %016llx\n", in do_one_pass()
[all …]
/kernel/linux/linux-4.19/mm/
Dmemtest.c28 static void __init reserve_bad_mem(u64 pattern, phys_addr_t start_bad, phys_addr_t end_bad) in reserve_bad_mem() argument
31 cpu_to_be64(pattern), &start_bad, &end_bad); in reserve_bad_mem()
35 static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t size) in memtest() argument
40 const size_t incr = sizeof(pattern); in memtest()
49 *p = pattern; in memtest()
52 if (*p == pattern) in memtest()
59 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
63 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
66 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument
76 pr_info(" %pa - %pa pattern %016llx\n", in do_one_pass()
[all …]
/kernel/linux/linux-4.19/drivers/tc/
Dtc.c44 u8 pattern[4]; in tc_bus_add_devices() local
56 err |= tc_preadb(pattern + 0, module + offset + TC_PATTERN0); in tc_bus_add_devices()
57 err |= tc_preadb(pattern + 1, module + offset + TC_PATTERN1); in tc_bus_add_devices()
58 err |= tc_preadb(pattern + 2, module + offset + TC_PATTERN2); in tc_bus_add_devices()
59 err |= tc_preadb(pattern + 3, module + offset + TC_PATTERN3); in tc_bus_add_devices()
63 if (pattern[0] != 0x55 || pattern[1] != 0x00 || in tc_bus_add_devices()
64 pattern[2] != 0xaa || pattern[3] != 0xff) { in tc_bus_add_devices()
68 err |= tc_preadb(pattern + 0, in tc_bus_add_devices()
70 err |= tc_preadb(pattern + 1, in tc_bus_add_devices()
72 err |= tc_preadb(pattern + 2, in tc_bus_add_devices()
[all …]
/kernel/linux/linux-4.19/Documentation/leds/
Dleds-lp55xx.txt60 This pattern data is saved as a file in the user-land or
65 To load and run the pattern, the programming sequence is following.
68 (3) Write pattern data into selected area
80 For example, run blinking pattern in engine #1 of LP5521
87 For example, run blinking pattern in engine #3 of LP55231
88 Two LEDs are configured as pattern output channels.
118 To run programmed pattern, 'run_engine' attribute should be enabled.
120 The pattern sequence of LP8501 is similar to LP5523.
121 However pattern data is specific.
152 ( Predefined pattern data )
[all …]
Dleds-lm3556.txt46 Indicator pattern can be set through sys/class/leds/indicator/pattern file,
48 According to N-lank, Pulse time and N Period values, different pattern wiill
53 Indicator pattern example:
54 pattern 0: #echo 0 > sys/class/leds/indicator/pattern
56 pattern 3: #echo 3 > sys/class/leds/indicator/pattern
/kernel/linux/linux-5.10/drivers/tc/
Dtc.c44 u8 pattern[4]; in tc_bus_add_devices() local
56 err |= tc_preadb(pattern + 0, module + offset + TC_PATTERN0); in tc_bus_add_devices()
57 err |= tc_preadb(pattern + 1, module + offset + TC_PATTERN1); in tc_bus_add_devices()
58 err |= tc_preadb(pattern + 2, module + offset + TC_PATTERN2); in tc_bus_add_devices()
59 err |= tc_preadb(pattern + 3, module + offset + TC_PATTERN3); in tc_bus_add_devices()
63 if (pattern[0] != 0x55 || pattern[1] != 0x00 || in tc_bus_add_devices()
64 pattern[2] != 0xaa || pattern[3] != 0xff) { in tc_bus_add_devices()
68 err |= tc_preadb(pattern + 0, in tc_bus_add_devices()
70 err |= tc_preadb(pattern + 1, in tc_bus_add_devices()
72 err |= tc_preadb(pattern + 2, in tc_bus_add_devices()
[all …]
/kernel/linux/linux-5.10/Documentation/leds/
Dleds-lp55xx.rst63 This pattern data is saved as a file in the user-land or
70 To load and run the pattern, the programming sequence is following.
74 (3) Write pattern data into selected area
90 For example, run blinking pattern in engine #1 of LP5521::
98 For example, run blinking pattern in engine #3 of LP55231
100 Two LEDs are configured as pattern output channels::
134 To run programmed pattern, 'run_engine' attribute should be enabled.
136 The pattern sequence of LP8501 is similar to LP5523.
138 However pattern data is specific.
179 ( Predefined pattern data )
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-led-trigger-pattern1 What: /sys/class/leds/<led>/pattern
5 Specify a software pattern for the LED, that supports altering
9 The pattern is given by a series of tuples, of brightness and
13 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
19 Specify a hardware pattern for the LED, for LED hardware that
22 software pattern.
33 Specify a pattern repeat number. -1 means repeat indefinitely,
/kernel/linux/linux-4.19/include/linux/mtd/
Dbbm.h38 * @offs: offset of the pattern in the oob area of the page
41 * @len: length of the pattern, if 0 no pattern check is performed
45 * @reserved_block_code: if non-0, this pattern denotes a reserved (rather than
47 * @pattern: pattern to identify bad block table or factory marked good /
51 * pattern which identifies good and bad blocks. The assumption is made
52 * that the pattern and the version count are always located in the oob area
64 uint8_t *pattern; member
96 /* Search good / bad pattern on the first and the second page */
98 /* Search good / bad pattern on the last page of the eraseblock */
147 * @badblock_pattern: [REPLACEABLE] bad block scan pattern used for
/kernel/linux/linux-5.10/drivers/media/platform/xilinx/
Dxilinx-tpg.c3 * Xilinx Test Pattern Generator
71 * struct xtpg_device - Xilinx Test Pattern Generator device structure
83 * @pattern: test pattern control
103 struct v4l2_ctrl *pattern; member
132 bool passthrough, bool pattern) in __xtpg_update_pattern_control() argument
134 u32 pattern_mask = (1 << (xtpg->pattern->maximum + 1)) - 1; in __xtpg_update_pattern_control()
147 /* If test pattern mode is allowed unmask all other bits. */ in __xtpg_update_pattern_control()
148 if (pattern) in __xtpg_update_pattern_control()
151 __v4l2_ctrl_modify_range(xtpg->pattern, 0, xtpg->pattern->maximum, in __xtpg_update_pattern_control()
152 pattern_mask, pattern ? 9 : 0); in __xtpg_update_pattern_control()
[all …]
/kernel/linux/linux-4.19/drivers/media/platform/xilinx/
Dxilinx-tpg.c2 * Xilinx Test Pattern Generator
74 * struct xtpg_device - Xilinx Test Pattern Generator device structure
86 * @pattern: test pattern control
106 struct v4l2_ctrl *pattern; member
135 bool passthrough, bool pattern) in __xtpg_update_pattern_control() argument
137 u32 pattern_mask = (1 << (xtpg->pattern->maximum + 1)) - 1; in __xtpg_update_pattern_control()
150 /* If test pattern mode is allowed unmask all other bits. */ in __xtpg_update_pattern_control()
151 if (pattern) in __xtpg_update_pattern_control()
154 __v4l2_ctrl_modify_range(xtpg->pattern, 0, xtpg->pattern->maximum, in __xtpg_update_pattern_control()
155 pattern_mask, pattern ? 9 : 0); in __xtpg_update_pattern_control()
[all …]
/kernel/linux/linux-5.10/include/linux/mtd/
Dbbm.h24 * @offs: offset of the pattern in the oob area of the page
27 * @len: length of the pattern, if 0 no pattern check is performed
31 * @reserved_block_code: if non-0, this pattern denotes a reserved (rather than
33 * @pattern: pattern to identify bad block table or factory marked good /
37 * pattern which identifies good and bad blocks. The assumption is made
38 * that the pattern and the version count are always located in the oob area
50 uint8_t *pattern; member
122 * @badblock_pattern: [REPLACEABLE] bad block scan pattern used for
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-trigger-pattern.txt1 * Pattern format for LED pattern trigger
3 The pattern is given by a series of tuples, of brightness and duration (ms).
6 new value, and writing malformed pattern deactivates any active one.
13 The gradual dimming format of the software pattern values should be:
17 echo 0 1000 255 2000 > pattern
37 echo 0 1000 0 0 255 2000 255 0 > pattern

12345678910>>...75