Home
last modified time | relevance | path

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

12345678910>>...48

/Linux-v5.15/Documentation/devicetree/bindings/eeprom/
Dat24.yaml17 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
23 pattern: "^eeprom@[0-9a-f]{1,2}$"
36 … - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$"
37 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
40 pattern: c00$
42 pattern: c01$
44 pattern: cs01$
46 pattern: c02$
48 pattern: cs02$
50 pattern: mac402$
[all …]
/Linux-v5.15/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.c15 * match_one - Determines if a string matches a simple pattern
16 * @s: the string to examine for presence of the pattern
17 * @p: the string containing the pattern
21 * Description: Determines if the pattern @p is present in string @s. Can only
22 * match extremely simple token=arg style patterns. If the pattern is found,
97 * &struct match_token whose pattern is set to the NULL pointer.
110 for (p = table; !match_one(s, p->pattern, args) ; p++) in match_token()
271 * match_wildcard - parse if a string matches given wildcard pattern
272 * @pattern: wildcard pattern
276 * pattern @pattern. The pattern may contain two types of wildcards:
[all …]
Dtextsearch.c39 * the search parameters such as the pattern and algorithm name.
59 * the pattern to look for and flags. As a flag, you can set TS_IGNORECASE
70 * the position of the first occurrence of the pattern or UINT_MAX if
82 * const char *pattern = "chicken";
85 * conf = textsearch_prepare("kmp", pattern, strlen(pattern),
219 * textsearch_find_continuous - search a pattern in continuous/linear data
228 * Returns the position of first occurrence of the pattern or
248 * @pattern: pattern data
249 * @len: length of pattern
254 * configuration for the specified pattern.
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/security/tomoyo/
Dutil.c629 * tomoyo_const_part_length - Evaluate the initial length without a pattern in a token.
633 * Returns the initial length without a pattern in @filename.
689 * tomoyo_file_matches_pattern2 - Pattern matching without '/' character and "\-" pattern.
693 * @pattern: The start of pattern to compare.
694 * @pattern_end: The end of pattern to compare.
696 * Returns true if @filename matches @pattern, false otherwise.
700 const char *pattern, in tomoyo_file_matches_pattern2() argument
703 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
708 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
709 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/dma/
Drenesas,rcar-dmac.yaml57 - 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])$"
65 - pattern: "^ch([0-9]|1[0-5])$"
66 - pattern: "^ch([0-9]|1[0-5])$"
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
/Linux-v5.15/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 …]
Dleds-lm3556.rst77 Indicator pattern can be set through /sys/class/leds/indicator/pattern file,
80 According to N-lank, Pulse time and N Period values, different pattern wiill
86 Indicator pattern example:
88 pattern 0::
90 #echo 0 > /sys/class/leds/indicator/pattern
94 pattern 3::
96 #echo 3 > /sys/class/leds/indicator/pattern
/Linux-v5.15/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,
/Linux-v5.15/Documentation/devicetree/bindings/display/
Drenesas,du.yaml118 - pattern: '^dclkin\.[01]$'
119 - pattern: '^dclkin\.[01]$'
170 - pattern: '^dclkin\.[01]$'
171 - pattern: '^dclkin\.[01]$'
227 - pattern: '^dclkin\.[01]$'
228 - pattern: '^dclkin\.[01]$'
282 - pattern: '^dclkin\.[01]$'
283 - pattern: '^dclkin\.[01]$'
338 - pattern: '^dclkin\.[01]$'
339 - pattern: '^dclkin\.[01]$'
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/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
/Linux-v5.15/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
Dleds-el15203000.txt10 Doesn't have any hardware blinking pattern.
13 encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern.
18 - cascade pattern
19 - inversed cascade pattern
20 - bounce pattern
21 - inversed bounce pattern
/Linux-v5.15/include/linux/
Dtextsearch.h33 * @find: find the next occurrence of the pattern
35 * @get_pattern: return head of pattern
36 * @get_pattern_len: return length of pattern
94 * textsearch_next - continue searching for a pattern
98 * Continues a search looking for more occurrences of the pattern.
102 * Returns the position of the next occurrence of the pattern or
117 * textsearch_find - start searching for a pattern
121 * Returns the position of first occurrence of the pattern or
132 * textsearch_get_pattern - return head of the pattern
141 * textsearch_get_pattern_len - return length of the pattern
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_bpftool_synctypes.py34 def parse(self, pattern, end_marker): argument
38 @pattern: pattern used to identify the values to extract
46 capture = pattern.search(line)
47 if capture and pattern.groups >= 1:
75 pattern = re.compile('\[(BPF_\w*)\]\s*= "(.*)",?$')
81 capture = pattern.search(line)
90 def parse(self, pattern, end_marker): argument
94 @pattern: pattern used to identify the values to extract
102 entries.update(pattern.findall(line))
175 pattern = re.compile('^\s*(BPF_\w+),?$')
[all …]
/Linux-v5.15/drivers/mtd/nand/onenand/
Donenand_bbt.c20 * check_short_pattern - [GENERIC] check if a pattern is in the buffer
24 * @td: search pattern descriptor
26 * Check for a pattern at the given place. Used to search bad block
28 * no optional empty check and the pattern is expected to start
37 /* Compare the pattern */ in check_short_pattern()
39 if (p[i] != td->pattern[i]) in check_short_pattern()
49 * @bd: descriptor for the good/bad block search pattern
54 * for the given good/bad block identify pattern
126 * @bd: descriptor for the good/bad block search pattern
170 * @bd: descriptor for the good/bad block search pattern
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_link_encoder.c171 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_d102()
194 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_d102()
215 /* Write Training Pattern */ in dcn10_link_encoder_set_dp_phy_pattern_training_pattern()
223 /* Disable PHY Bypass mode to output Training Pattern */ in dcn10_link_encoder_set_dp_phy_pattern_training_pattern()
260 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_symbol_error()
266 /* A PRBS23 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_symbol_error()
276 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_symbol_error()
283 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_prbs7()
286 /* A PRBS7 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_prbs7()
296 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_prbs7()
[all …]
/Linux-v5.15/scripts/
Dparse-maintainers.pl31 usage: $P [options] <pattern matching regexes>
48 F: File and directory pattern
49 X: File and directory exclusion pattern
53 If <pattern match regexes> exist, then the sections that match the
126 foreach my $pattern (sort by_pattern split('\n', %$hashref{$key})) {
127 print $file ($pattern . "\n");
130 foreach my $pattern (split('\n', %$hashref{$key})) {
131 print $file ($pattern . "\n");
151 # Pattern line?
170 trim($lastline) eq "" or die ("Odd non-pattern line '$lastline' for '$case'");
/Linux-v5.15/drivers/leds/
Dleds-el15203000.c140 struct led_pattern *pattern, in el15203000_pattern_set_S() argument
146 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S()
147 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S()
156 static bool is_cascade(const struct led_pattern *pattern, u32 len, in is_cascade() argument
170 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
171 pattern[i].brightness != t) in is_cascade()
180 static bool is_bounce(const struct led_pattern *pattern, u32 len, bool inv) in is_bounce() argument
185 return is_cascade(pattern, EL_PATTERN_HALF_LEN, inv, false) && in is_bounce()
186 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce()
191 struct led_pattern *pattern, in el15203000_pattern_set_P() argument
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c200 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_d102()
223 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_d102()
282 /* Write Training Pattern */ in dce110_link_encoder_set_dp_phy_pattern_training_pattern()
290 /* Disable PHY Bypass mode to output Training Pattern */ in dce110_link_encoder_set_dp_phy_pattern_training_pattern()
330 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_symbol_error()
336 /* A PRBS23 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_symbol_error()
346 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_symbol_error()
353 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_prbs7()
356 /* A PRBS7 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_prbs7()
366 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_prbs7()
[all …]

12345678910>>...48