Home
last modified time | relevance | path

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

12345678910>>...60

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
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(sizeof(*pattern), GFP_KERNEL); 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-v6.6/Documentation/devicetree/bindings/eeprom/
Dat24.yaml20 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
26 pattern: "^eeprom@[0-9a-f]{1,2}$"
39 … - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$"
40 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
43 pattern: c00$
45 pattern: c01$
47 pattern: cs01$
49 pattern: c02$
51 pattern: cs02$
53 pattern: mac402$
[all …]
/Linux-v6.6/Documentation/leds/
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 …]
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-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-v6.6/tools/testing/selftests/bpf/prog_tests/
Dctx_rewrite.c28 * The disassembly of each program is then compared with the pattern
44 /* Pattern for BPF_LDX_MEM(field_sz, dst, ctx, field_offset) */
46 /* Pattern for BPF_STX_MEM(field_sz, ctx, src, field_offset) and
50 /* Pattern for BPF_ST_MEM(field_sz, ctx, src, field_offset),
54 /* Pattern for BPF_STX_MEM (field_sz, ctx, src, field_offset),
67 /* Sign extension on s390 changes the pattern */
288 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset() argument
292 char *type = pattern + matches[1].rm_so; in find_field_offset()
293 char *field = pattern + matches[2].rm_so; in find_field_offset()
299 PRINT_FAIL("Malformed pattern: type ident is too long: %d\n", type_sz); in find_field_offset()
[all …]
/Linux-v6.6/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
58 static unsigned int matchpat(const u8 *pattern, unsigned int patlen, in matchpat() argument
69 if (t != *(pattern-i)) in matchpat()
96 i = matchpat(&bm->pattern[bm->patlen-1], bm->patlen, in bm_find()
115 static int subpattern(u8 *pattern, int i, int j, int g) in subpattern() argument
119 while(pattern[x--] == pattern[y--]) { in subpattern()
125 ret = pattern[i-1] != pattern[j-1]; in subpattern()
140 bm->bad_shift[bm->pattern[i]] = bm->patlen - 1 - i; in compute_prefix_tbl()
142 bm->bad_shift[tolower(bm->pattern[i])] in compute_prefix_tbl()
153 if (subpattern(bm->pattern, i, j, g)) { in compute_prefix_tbl()
[all …]
Dparser.c24 * match_one - Determines if a string matches a simple pattern
25 * @s: the string to examine for presence of the pattern
26 * @p: the string containing the pattern
30 * Description: Determines if the pattern @p is present in string @s. Can only
31 * match extremely simple token=arg style patterns. If the pattern is found,
106 * &struct match_token whose pattern is set to the NULL pointer.
119 for (p = table; !match_one(s, p->pattern, args) ; p++) in match_token()
272 * match_wildcard - parse if a string matches given wildcard pattern
273 * @pattern: wildcard pattern
277 * pattern @pattern. The pattern may contain two types of wildcards:
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/thermal/
Dqcom-tsens.yaml123 - pattern: '^s[0-9]+_p1$'
124 - pattern: '^s[0-9]+_p2$'
125 - pattern: '^s[0-9]+_p1$'
126 - pattern: '^s[0-9]+_p2$'
127 - pattern: '^s[0-9]+_p1$'
128 - pattern: '^s[0-9]+_p2$'
129 - pattern: '^s[0-9]+_p1$'
130 - pattern: '^s[0-9]+_p2$'
131 - pattern: '^s[0-9]+_p1$'
132 - pattern: '^s[0-9]+_p2$'
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/drivers/gpu/drm/amd/display/dc/link/accessories/
Dlink_dp_cts.c143 // get audio test mode and test pattern parameters in dp_test_get_audio_test_data()
158 // read pattern periods for requested channels when sawTooth pattern is requested in dp_test_get_audio_test_data()
239 /* get phy test pattern and pattern parameters from DP receiver */ in dp_test_send_phy_test_pattern()
275 switch (dpcd_test_pattern.bits.PATTERN) { in dp_test_send_phy_test_pattern()
289 /* CP2520 pattern is unstable, temporarily use TPS4 instead */ in dp_test_send_phy_test_pattern()
295 /* CP2520 pattern is unstable, temporarily use TPS4 instead */ in dp_test_send_phy_test_pattern()
359 test_pattern_size = 1; // Square pattern data is 1 byte (DP spec) in dp_test_send_phy_test_pattern()
407 * PHY test pattern request is generated by equipment via HPD interrupt. in dp_test_send_phy_test_pattern()
506 DC_LOG_ERROR("%s: Color space must be defined for test pattern", __func__); in set_crtc_test_pattern()
622 /* get link test pattern and pattern parameters */ in dp_handle_automated_test()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/dma/
Drenesas,rcar-dmac.yaml61 - 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])$"
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])$"
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/mailbox/
Dnvidia,tegra186-hsp.yaml63 pattern: "^hsp@[0-9a-f]+$"
89 - pattern: "^shared[0-7]$"
90 - pattern: "^shared[0-7]$"
91 - pattern: "^shared[0-7]$"
92 - pattern: "^shared[0-7]$"
93 - pattern: "^shared[0-7]$"
94 - pattern: "^shared[0-7]$"
95 - pattern: "^shared[0-7]$"
96 - pattern: "^shared[0-7]$"
99 - pattern: "^shared[0-7]$"
[all …]
/Linux-v6.6/mm/
Dmemtest.c32 static void __init reserve_bad_mem(u64 pattern, phys_addr_t start_bad, phys_addr_t end_bad) in reserve_bad_mem() argument
35 cpu_to_be64(pattern), &start_bad, &end_bad); in reserve_bad_mem()
40 static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t 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()
73 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument
83 pr_info(" %pa - %pa pattern %016llx\n", in do_one_pass()
[all …]
/Linux-v6.6/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-v6.6/Documentation/devicetree/bindings/display/
Drenesas,du.yaml122 - pattern: '^dclkin\.[01]$'
123 - pattern: '^dclkin\.[01]$'
172 - pattern: '^dclkin\.[01]$'
173 - pattern: '^dclkin\.[01]$'
227 - pattern: '^dclkin\.[01]$'
228 - pattern: '^dclkin\.[01]$'
280 - pattern: '^dclkin\.[01]$'
281 - pattern: '^dclkin\.[01]$'
334 - pattern: '^dclkin\.[01]$'
335 - pattern: '^dclkin\.[01]$'
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/Documentation/sound/cards/
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-v6.6/tools/testing/selftests/bpf/
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('\[(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('^\s*(BPF_\w+),?(\s+/\*.*\*/)?$')
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/arm/
Dqcom-soc.yaml26 pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
34 - pattern: "^qcom,(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+(pro)?-.*$"
35 - pattern: "^qcom,(sa|sc)8[0-9]+[a-z][a-z]?-.*$"
39 - pattern: "^qcom,[ak]pss-wdt-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
40 - pattern: "^qcom,gcc-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
41 - pattern: "^qcom,mmcc-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
42 - pattern: "^qcom,pcie-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
43 - pattern: "^qcom,rpm-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
44 - pattern: "^qcom,scm-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$"
/Linux-v6.6/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-v6.6/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>>...60