Home
last modified time | relevance | path

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

12345678910>>...93

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
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(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 …]
/openbmc/qemu/tests/qemu-iotests/
H A D021.out5 -1 is not a valid pattern byte
8 -1 is not a valid pattern byte
11 -1 is not a valid pattern byte
14 -1 is not a valid pattern byte
17 -1 is not a valid pattern byte
20 -1 is not a valid pattern byte
23 300 is not a valid pattern byte
26 300 is not a valid pattern byte
29 300 is not a valid pattern byte
32 300 is not a valid pattern byte
[all …]
H A D271.out8 write -q -P PATTERN 0 1k
10 write -q -P PATTERN 3k 512
12 write -q -P PATTERN 5k 1k
14 write -q -P PATTERN 6k 2k
16 write -q -P PATTERN 8k 6k
18 write -q -P PATTERN 15k 4k
20 write -q -P PATTERN 32k 1k
22 write -q -P PATTERN 63k 4k
29 write -q -P PATTERN 0 64k
35 write -q -P PATTERN 3k 512
[all …]
H A D024.out5 === IO: pattern 0x11
25 === IO: pattern 0x22
37 === IO: pattern 0x33
40 === IO: pattern 0x33
45 === IO: pattern 0x33
48 === IO: pattern 0x33
51 === IO: pattern 0x33
54 === IO: pattern 0x33
57 === IO: pattern 0x11
60 === IO: pattern 0x00
[all …]
H A D149.out8 # Write test pattern 0xa7
14 # Write test pattern 0x13
22 # Read test pattern 0xa7
27 # Read test pattern 0x13
32 # Write test pattern 0x91
37 # Write test pattern 0x5e
44 # Read test pattern 0x91
50 # Read test pattern 0x5e
66 # Write test pattern 0xa7
72 # Write test pattern 0x13
[all …]
/openbmc/linux/Documentation/devicetree/bindings/eeprom/
H A 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 …]
/openbmc/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-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 …]
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::
/openbmc/linux/lib/
H A 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 …]
H A 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 …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/
H A D05_wildcard_matching.patch10 pattern `131.155.72.0/255.255.254.0\' matches every address in the
47 +/* Returns true if the given string matches the pattern (which may contain
50 +int match_pattern_ylo(const char *s, const char *pattern)
54 + /* If at end of pattern, accept if also at end of string. */
55 + if (!*pattern)
59 + if (*pattern == '*')
62 + pattern++;
64 + /* If at end of pattern, accept immediately. */
65 + if (!*pattern)
68 + /* If next character in pattern is known, optimize. */
[all …]
/openbmc/linux/Documentation/devicetree/bindings/thermal/
H A 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 …]
/openbmc/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 …]
/openbmc/u-boot/drivers/ddr/marvell/axp/
H A Dddr3_sdram.c91 static void compare_pattern_v1(u32 uj, u32 *pup, u32 *pattern, in compare_pattern_v1() argument
100 if (((sdram_data[uj]) != (pattern[uj])) && (*pup != 0xFF)) { in compare_pattern_v1()
104 var2 = ((pattern[uj] >> val) & CMP_BYTE_MASK); in compare_pattern_v1()
129 static void compare_pattern_v2(u32 uj, u32 *pup, u32 *pattern) in compare_pattern_v2() argument
136 if (((sdram_data[uj]) != (pattern[uj])) && (*pup != 0x3)) { in compare_pattern_v2()
141 var2 = (pattern[uj] >> val) & CMP_BYTE_MASK; in compare_pattern_v2()
153 * pattern Pattern to compare
154 * pattern_len Length of pattern (in bytes)
157 * mask compare pattern with mask;
158 * mask_pattern Mask to compare pattern
[all …]
/openbmc/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 …]
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/
H A DFileContent.pm38 # &B_blank_file ($filename,$pattern) blanks the file $filename, unless the
39 # pattern $pattern is present in the file. This lets us completely redo
53 my ($filename,$pattern) = @_;
67 if ($line =~ $pattern) {
92 # &B_insert_line_after ($filename,$pattern,$line_to_insert,$line_to_follow)
94 # in the file matches $pattern. The $line_to_insert will be placed
110 my ($filename,$pattern,$line_to_insert,$line_to_follow) = @_;
120 # Read through the file looking for a match both on the $pattern
126 if ($line =~ $pattern) {
166 # &B_insert_line_before ($filename,$pattern,$line_to_insert,$line_to_preceed)
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/accessories/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/mailbox/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/dma/
H A 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 …]
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dddr3_training_bist.c20 int ddr3_tip_bist_activate(u32 dev_num, enum hws_pattern pattern, in ddr3_tip_bist_activate() argument
44 ddr3_tip_load_pattern_to_odpg(0, access_type, 0, pattern, offset); in ddr3_tip_bist_activate()
48 pattern_table[pattern].tx_burst_size : 0; in ddr3_tip_bist_activate()
52 pattern_table[pattern].num_of_phases_tx, tx_burst_size, in ddr3_tip_bist_activate()
53 pattern_table[pattern].num_of_phases_rx, in ddr3_tip_bist_activate()
118 int hws_ddr3_run_bist(u32 dev_num, enum hws_pattern pattern, u32 *result, in hws_ddr3_run_bist() argument
130 ret = ddr3_tip_bist_activate(dev_num, pattern, in hws_ddr3_run_bist()
141 ret = ddr3_tip_bist_activate(dev_num, pattern, in hws_ddr3_run_bist()
224 static int mv_ddr_tip_bist(enum hws_dir dir, u32 val, enum hws_pattern pattern, u32 cs, u32 *result) in mv_ddr_tip_bist() argument
234 TIP_ITERATION_NUM, pattern, EDGE_FP, CS_SINGLE, cs, &training_result); in mv_ddr_tip_bist()
[all …]
/openbmc/linux/mm/
H A 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 WRITE_ONCE(*p, pattern); in memtest()
57 if (READ_ONCE(*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 …]
/openbmc/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 …]
/openbmc/u-boot/include/linux/mtd/
H A Dbbm.h29 * @offs: offset of the pattern in the oob area of the page
32 * @len: length of the pattern, if 0 no pattern check is performed
36 * @reserved_block_code: if non-0, this pattern denotes a reserved (rather than
38 * @pattern: pattern to identify bad block table or factory marked good /
42 * pattern which identifies good and bad blocks. The assumption is made
43 * that the pattern and the version count are always located in the oob area
55 uint8_t *pattern; member
87 /* Search good / bad pattern on the first and the second page */
89 /* Search good / bad pattern on the last page of the eraseblock */
138 * @badblock_pattern: [REPLACEABLE] bad block scan pattern used for

12345678910>>...93