Home
last modified time | relevance | path

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

12345678910>>...36

/Linux-v5.4/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 …]
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.4/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.4/security/tomoyo/
Dutil.c606 * tomoyo_const_part_length - Evaluate the initial length without a pattern in a token.
610 * Returns the initial length without a pattern in @filename.
666 * tomoyo_file_matches_pattern2 - Pattern matching without '/' character and "\-" pattern.
670 * @pattern: The start of pattern to compare.
671 * @pattern_end: The end of pattern to compare.
673 * Returns true if @filename matches @pattern, false otherwise.
677 const char *pattern, in tomoyo_file_matches_pattern2() argument
680 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2()
685 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
686 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2()
[all …]
/Linux-v5.4/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.4/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.4/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.4/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,
Dsysfs-class-led-driver-sc27xx5 Specify a hardware pattern for the SC27XX LED. For the SC27XX
7 hardware pattern, which is used to configure the rise time,
11 for the high stage. To be compatible with the hardware pattern
21 Thus the format of the hardware pattern values should be:
/Linux-v5.4/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.4/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.4/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
/Linux-v5.4/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.4/drivers/mtd/nand/onenand/
Donenand_bbt.c20 * check_short_pattern - [GENERIC] check if a pattern is in the buffer
24 * @param 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 * @param bd descriptor for the good/bad block search pattern
54 * for the given good/bad block identify pattern
126 * @param bd descriptor for the good/bad block search pattern
170 * @param bd descriptor for the good/bad block search pattern
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_link_encoder.c170 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_d102()
193 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_d102()
214 /* Write Training Pattern */ in dcn10_link_encoder_set_dp_phy_pattern_training_pattern()
222 /* Disable PHY Bypass mode to output Training Pattern */ in dcn10_link_encoder_set_dp_phy_pattern_training_pattern()
259 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_symbol_error()
265 /* A PRBS23 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_symbol_error()
275 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_symbol_error()
282 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_prbs7()
285 /* A PRBS7 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_prbs7()
295 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_prbs7()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce/
Ddce_link_encoder.c198 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_d102()
221 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_d102()
242 /* Write Training Pattern */ in dce110_link_encoder_set_dp_phy_pattern_training_pattern()
250 /* Disable PHY Bypass mode to output Training Pattern */ in dce110_link_encoder_set_dp_phy_pattern_training_pattern()
290 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_symbol_error()
296 /* A PRBS23 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_symbol_error()
306 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_symbol_error()
313 /* Disable PHY Bypass mode to setup the test pattern */ in set_dp_phy_pattern_prbs7()
316 /* A PRBS7 pattern is used for most DP electrical measurements. */ in set_dp_phy_pattern_prbs7()
326 /* Enable phy bypass mode to enable the test pattern */ in set_dp_phy_pattern_prbs7()
[all …]
/Linux-v5.4/drivers/leds/trigger/
Dledtrig-timer.c80 u32 *pattern; in pattern_init() local
83 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
84 if (!pattern) in pattern_init()
89 "Expected 2 but got %u values for delays pattern\n", in pattern_init()
94 led_cdev->blink_delay_on = pattern[0]; in pattern_init()
95 led_cdev->blink_delay_off = pattern[1]; in pattern_init()
99 kfree(pattern); in pattern_init()
Dledtrig-oneshot.c132 u32 *pattern; in pattern_init() local
135 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
136 if (!pattern) in pattern_init()
141 "Expected 2 but got %u values for delays pattern\n", in pattern_init()
146 led_cdev->blink_delay_on = pattern[0]; in pattern_init()
147 led_cdev->blink_delay_off = pattern[1]; in pattern_init()
148 kfree(pattern); in pattern_init()
153 kfree(pattern); in pattern_init()
Dledtrig-pattern.c4 * LED pattern trigger
132 /* At least 2 tuples for software pattern. */ in pattern_trig_start_pattern()
309 static DEVICE_ATTR_RW(pattern);
365 u32 *pattern; in pattern_init() local
368 pattern = led_get_default_pattern(led_cdev, &size); in pattern_init()
369 if (!pattern) in pattern_init()
373 dev_warn(led_cdev->dev, "Expected pattern of tuples\n"); in pattern_init()
377 err = pattern_trig_store_patterns(led_cdev, NULL, pattern, size, false); in pattern_init()
380 "Pattern initialization failed with error %d\n", err); in pattern_init()
383 kfree(pattern); in pattern_init()
[all …]
/Linux-v5.4/drivers/leds/
Dleds-sc27xx-bltc.c172 struct led_pattern *pattern, in sc27xx_led_pattern_set() argument
191 sc27xx_led_clamp_align_delta_t(&pattern[0].delta_t); in sc27xx_led_pattern_set()
194 pattern[0].delta_t / SC27XX_LEDS_STEP); in sc27xx_led_pattern_set()
198 sc27xx_led_clamp_align_delta_t(&pattern[1].delta_t); in sc27xx_led_pattern_set()
201 pattern[1].delta_t / SC27XX_LEDS_STEP); in sc27xx_led_pattern_set()
205 sc27xx_led_clamp_align_delta_t(&pattern[2].delta_t); in sc27xx_led_pattern_set()
208 (pattern[2].delta_t / SC27XX_LEDS_STEP) << in sc27xx_led_pattern_set()
213 sc27xx_led_clamp_align_delta_t(&pattern[3].delta_t); in sc27xx_led_pattern_set()
216 (pattern[3].delta_t / SC27XX_LEDS_STEP) << in sc27xx_led_pattern_set()
223 (pattern[1].brightness << SC27XX_DUTY_SHIFT) | in sc27xx_led_pattern_set()
[all …]
/Linux-v5.4/drivers/gpu/drm/meson/
Dmeson_dw_hdmi.h105 * 3'b010=Output PRBS data; 3'b100=Output shift pattern. Default 0.
106 * Bit 11: 9 RW shift_pttn_repeat: 0=New pattern every clk cycle; 1=New pattern
107 * every 2 clk cycles; ...; 7=New pattern every 8 clk cycles. Default 0.
108 * Bit 8 RW shift_pttn_en: 1= Enable shift pattern generator; 0=Disable.
111 * Bit 2: 1 RW prbs_pttn_width: 0=idle; 1=output 8-bit pattern;
112 * 2=Output 1-bit pattern; 3=output 10-bit pattern. Default 0.
140 * Bit 1 RW shift_tmds_clk_pttn:1=Enable shifting clk pattern,
/Linux-v5.4/drivers/media/platform/s5p-g2d/
Dg2d-regs.h25 #define DST_PAT_DIRECT_REG 0x0208 /* Dest and Pattern Direction reg */
46 /* Parameter Setting Registers (Pattern) */
47 #define PAT_BASE_ADDR_REG 0x0500 /* Pattern Image Base Address reg */
48 #define PAT_SIZE_REG 0x0504 /* Pattern Image Size reg */
49 #define PAT_COLOR_MODE_REG 0x0508 /* Pattern Image Color Mode reg */
50 #define PAT_OFFSET_REG 0x050C /* Pattern Left Top Coordinate reg */
51 #define PAT_STRIDE_REG 0x0510 /* Pattern Stride reg */

12345678910>>...36