Home
last modified time | relevance | path

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

12345678910>>...44

/linux/drivers/video/fbdev/core/
H A Dfb_fillrect.h34 /* state for pattern generator and whether swapping is necessary */
41 /* used to get the pattern in native order */
42 static unsigned long fb_pattern_get(struct fb_pattern *pattern) in fb_pattern_get() argument
44 return pattern->pixels; in fb_pattern_get()
47 /* used to get the pattern in reverse order */
48 static unsigned long fb_pattern_get_reverse(struct fb_pattern *pattern) in fb_pattern_get_reverse() argument
50 return swab_long(pattern->pixels); in fb_pattern_get_reverse()
53 /* next static pattern */
54 static void fb_pattern_static(struct fb_pattern *pattern) in fb_pattern_static() argument
59 /* next rotating pattern */
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ptrn.c20 struct mutex modify_hdr_mutex; /* protect the pattern cache */
64 /* Put this pattern in the head of the list, in dr_ptrn_find_cached_pattern()
80 struct mlx5dr_ptrn_obj *pattern; in dr_ptrn_alloc_pattern() local
97 pattern = kzalloc_obj(*pattern); in dr_ptrn_alloc_pattern()
98 if (!pattern) in dr_ptrn_alloc_pattern()
101 pattern->data = kzalloc(num_of_actions * DR_MODIFY_ACTION_SIZE * in dr_ptrn_alloc_pattern()
102 sizeof(*pattern->data), GFP_KERNEL); in dr_ptrn_alloc_pattern()
103 if (!pattern->data) in dr_ptrn_alloc_pattern()
106 memcpy(pattern->data, data, num_of_actions * DR_MODIFY_ACTION_SIZE); in dr_ptrn_alloc_pattern()
107 pattern->chunk = chunk; in dr_ptrn_alloc_pattern()
[all …]
/linux/Documentation/devicetree/bindings/mailbox/
H A Dnvidia,tegra186-hsp.yaml87 - pattern: "^shared([0-9]|1[0-5])$"
88 - pattern: "^shared([0-9]|1[0-5])$"
89 - pattern: "^shared([0-9]|1[0-5])$"
90 - pattern: "^shared([0-9]|1[0-5])$"
91 - pattern: "^shared([0-9]|1[0-5])$"
92 - pattern: "^shared([0-9]|1[0-5])$"
93 - pattern: "^shared([0-9]|1[0-5])$"
94 - pattern: "^shared([0-9]|1[0-5])$"
95 - pattern: "^shared([0-9]|1[0-5])$"
96 - pattern: "^shared([0-9]|1[0-5])$"
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c29 * The disassembly of each program is then compared with the pattern
45 /* Pattern for BPF_LDX_MEM(field_sz, dst, ctx, field_offset) */
47 /* Pattern for BPF_STX_MEM(field_sz, ctx, src, field_offset) and
51 /* Pattern for BPF_ST_MEM(field_sz, ctx, src, field_offset),
55 /* Pattern for BPF_STX_MEM (field_sz, ctx, src, field_offset),
68 /* Sign extension on s390 changes the pattern */
290 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches)
294 char *type = pattern + matches[1].rm_so; in find_field_offset()
295 char *field = pattern + matches[2].rm_so; in find_field_offset()
301 PRINT_FAIL("Malformed pattern in find_field_offset()
291 find_field_offset(struct btf * btf,char * pattern,regmatch_t * matches) find_field_offset() argument
396 char *pattern = pattern_origin; print_match_error() local
492 match_pattern(struct btf * btf,char * pattern,char * text,char * reg_map[][2]) match_pattern() argument
644 match_program(struct btf * btf,struct prog_info * pinfo,char * pattern,char * reg_map[][2],bool skip_first_insn) match_program() argument
779 char *pattern = test->write_stx ? test->write_stx : test->write; run_one_testcase() local
788 char *pattern = test->write_st ? test->write_st : test->write; run_one_testcase() local
[all...]
/linux/Documentation/leds/
H A Dleds-qcom-lpg.rst11 number of PWM channels, a programmable pattern lookup table and a RGB LED
23 deeper idle states the LPG provides pattern support. This consists of a shared
25 range within the table to use, the rate and if the pattern should repeat.
27 The pattern for a channel can be programmed using the "pattern" trigger, using
33 Specify a hardware pattern for a Qualcomm LPG LED.
35 The pattern is a series of brightness and hold-time pairs, with the hold-time
36 expressed in milliseconds. The hold time is a property of the pattern and must
37 therefore be identical for each element in the pattern (except for the pauses
39 transitions expected by the leds-trigger-pattern format, each entry in the
40 pattern must be followed a zero-length entry of the same brightness.
[all …]
H A Dleds-mt6370-rgb.rst15 PWM Dimming mode, breath pattern mode, and constant current mode. The device
18 The breath pattern for a channel can be programmed using the "pattern" trigger,
24 Specify a hardware breath pattern for a MT6370 RGB LED.
26 The breath pattern is a series of timing pairs, with the hold-time expressed in
28 '/sys/class/leds/<led>/brightness'. The pattern doesn't include the brightness
29 setting. Hardware pattern only controls the timing for each pattern stage
32 Pattern diagram::
60 Pattern example::
/linux/drivers/net/wireless/ath/ath9k/
H A 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/security/tomoyo/
H A 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/Documentation/devicetree/bindings/dma/
H A Drenesas,rcar-dmac.yaml62 - 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])$"
67 - pattern: "^ch([0-9]|1[0-5])$"
68 - pattern: "^ch([0-9]|1[0-5])$"
69 - pattern: "^ch([0-9]|1[0-5])$"
70 - pattern: "^ch([0-9]|1[0-5])$"
71 - pattern: "^ch([0-9]|1[0-5])$"
[all …]
/linux/drivers/tc/
H A 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/drivers/hwtracing/coresight/
H A Dcoresight-tpdm.h16 /* CMB subunit timestamp pattern registers */
18 /* CMB subunit timestamp pattern mask registers */
20 /* CMB subunit trigger pattern registers */
22 /* CMB subunit trigger pattern mask registers */
35 /* Timestamp control for pattern match */
48 /* MAX lanes in the output pattern for MCMB configurations*/
76 /* Enable bit for DSB subunit pattern timestamp */
80 /* Bit for DSB subunit pattern type */
138 /* MAX number of DSB pattern */
234 * @patt_val: Save value for pattern
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-coresight-devices-tpdm117 (RW) Set/Get the value of the trigger pattern for the DSB
125 (RW) Set/Get the mask of the trigger pattern for the DSB
133 (RW) Set/Get the value of the pattern for the DSB subunit TPDM.
140 (RW) Set/Get the mask of the pattern for the DSB subunit TPDM.
147 (Write) Set the pattern timestamp of DSB tpdm. Read
148 the pattern timestamp of DSB tpdm.
151 0 : Disable DSB pattern timestamp.
152 1 : Enable DSB pattern timestamp.
159 (Write) Set the pattern type of DSB tpdm. Read
160 the pattern type of DSB tpdm.
[all …]
/linux/Documentation/sound/cards/
H A Dpcmtest.rst16 * Generate random or pattern-based capturing data
23 Also, this driver can check the playback stream for containing the predefined pattern,
44 means random data generation, the second (1 in the fill_mode) - pattern-based
47 First of all, you may want to specify the pattern for data generation. You can do it
48 by writing the pattern to the debugfs file. There are pattern buffer debugfs entries
49 for each channel, as well as entries which contain the pattern buffer length.
54 To set the pattern for the channel 0 you can execute the following command:
63 The pattern itself can be up to 4096 bytes long.
105 buffer for containing the looped pattern (which is specified in the fill_pattern
107 pattern, 'pc_test' debugfs entry is set into '1'. Otherwise, the driver sets it to '0'.
/linux/Documentation/gpu/
H A Dzynqmp.rst31 Custom test pattern value
59 pattern:
60 Test pattern. May be one of:
66 Symbol error measurement pattern
72 A custom 80-bit pattern
75 HBR2 compliance eye pattern
78 Link training symbol pattern TPS1 (/D10.2/)
81 Link training symbol pattern TPS2
84 Link training symbol pattern TPS3 (for HBR2)
117 pattern prbs7
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dpat_arg.c223 mlx5hws_err(ctx, "Failed to find cached pattern with provided ID\n"); in mlx5hws_pat_put_pattern()
224 pr_warn("HWS: pattern ID %d is not found\n", ptrn_id); in mlx5hws_pat_put_pattern()
239 __be64 *pattern, size_t pattern_sz, in mlx5hws_pat_get_pattern() argument
251 pattern); in mlx5hws_pat_get_pattern()
259 (u8 *)pattern, in mlx5hws_pat_get_pattern()
262 mlx5hws_err(ctx, "Failed to create pattern FW object\n"); in mlx5hws_pat_get_pattern()
269 pattern); in mlx5hws_pat_get_pattern()
271 mlx5hws_err(ctx, "Failed to add pattern to cache\n"); in mlx5hws_pat_get_pattern()
478 hws_action_modify_check_field_limitation(u8 action_type, __be64 *pattern) in hws_action_modify_check_field_limitation() argument
487 hws_action_modify_get_target_fields(u8 action_type, __be64 *pattern, in hws_action_modify_get_target_fields() argument
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dxt_string.sh29 pattern="foo bar baz"
40 --string "$pattern" --algo "$1" --from "$2" --to "$3"
48 countrule() { # (pattern)
55 echo -n "$pattern"
95 echo "FAIL: only kmp with proper --to should match pattern spanning fragments"
103 echo "FAIL: two rules should match pattern at start of second fragment"
111 echo "FAIL: two rules should match pattern at end of largest --to"
119 echo "FAIL: no rules should match pattern extending largest --to"
127 echo "FAIL: no rule should match pattern past largest --to"
/linux/tools/testing/selftests/bpf/
H A Dtest_bpftool_synctypes.py42 def parse(self, pattern, end_marker): argument
46 @pattern: pattern used to identify the values to extract
54 capture = pattern.search(line)
55 if capture and pattern.groups >= 1:
83 pattern = re.compile(r'\[(BPF_\w*)\]\s*= (true|false),?$')
89 capture = pattern.search(line)
98 def parse(self, pattern, end_marker): argument
102 @pattern: pattern used to identify the values to extract
110 entries.update(pattern.findall(line))
181 pattern = re.compile(r'^\s*(BPF_\w+),?(\s+/\*.*\*/)?$')
[all …]
/linux/include/linux/mtd/
H A 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/Documentation/devicetree/bindings/leds/
H A 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
/linux/include/linux/
H A 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
95 * textsearch_next - continue searching for a pattern
99 * Continues a search looking for more occurrences of the pattern.
103 * Returns the position of the next occurrence of the pattern or
118 * textsearch_find - start searching for a pattern
122 * Returns the position of first occurrence of the pattern or
133 * textsearch_get_pattern - return head of the pattern
142 * textsearch_get_pattern_len - return length of the pattern
/linux/lib/
H A 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/rust/syn/
H A Dscan_expr.rs42 (Keyword("let"), SetState(&PATTERN)),
135 (Otherwise, SetState(&PATTERN)),
151 static PATTERN: [(Input, Action); 15] = [ constant
152 (ConsumeDelimiter, SetState(&PATTERN)),
153 (Keyword("box"), SetState(&PATTERN)),
155 (Keyword("mut"), SetState(&PATTERN)),
156 (Keyword("ref"), SetState(&PATTERN)),
157 (Keyword("_"), SetState(&PATTERN)),
158 (Punct("!"), SetState(&PATTERN)),
159 (Punct("&"), SetState(&PATTERN)),
[all …]
H A Dpat.rs18 /// A pattern in a local binding, function signature, match expression, or
32 /// A pattern that binds a new variable: `ref mut binding @ SUBPATTERN`.
35 /// A literal pattern: `0`.
38 /// A macro in pattern position.
41 /// A pattern that matches any one of a set of cases.
44 /// A parenthesized pattern: `(A | B)`.
47 /// A path pattern like `Color::Red`, optionally qualified with a
56 /// A range pattern: `1..=2`.
59 /// A reference pattern: `&mut var`.
62 /// The dots in a tuple or slice pattern: `[0, 1, ..]`.
[all …]
/linux/drivers/mtd/nand/onenand/
H A 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/scripts/
H A 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'");

12345678910>>...44