Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 609) sorted by relevance

12345678910>>...25

/linux/Documentation/devicetree/bindings/eeprom/
A Dat24.yaml40 pattern: c00$
42 pattern: c01$
44 pattern: cs01$
46 pattern: c02$
48 pattern: cs02$
54 pattern: c04$
56 pattern: cs04$
58 pattern: c08$
62 pattern: c16$
66 pattern: c32$
[all …]
/linux/lib/
A Dts_kmp.c37 u8 * pattern; member
56 while (q > 0 && kmp->pattern[q] in kmp_find()
59 if (kmp->pattern[q] in kmp_find()
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()
108 kmp->pattern = (u8 *) kmp->prefix_tbl + prefix_tbl_len; in kmp_init()
111 kmp->pattern[i] = toupper(((u8 *)pattern)[i]); in kmp_init()
113 memcpy(kmp->pattern, pattern, len); in kmp_init()
[all …]
A Dts_bm.c52 u8 * pattern; member
78 != bm->pattern[bm->patlen-1-i]) in bm_find()
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()
157 bm->pattern = (u8 *) bm->good_shift + prefix_tbl_len; in bm_init()
160 bm->pattern[i] = toupper(((u8 *)pattern)[i]); in bm_init()
162 memcpy(bm->pattern, pattern, len); in bm_init()
[all …]
/linux/drivers/tc/
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()
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()
74 err |= tc_preadb(pattern + 3, in tc_bus_add_devices()
80 if (pattern[0] != 0x55 || pattern[1] != 0x00 || in tc_bus_add_devices()
[all …]
/linux/mm/
A 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
77 &this_start, &this_end, cpu_to_be64(pattern)); in do_one_pass()
[all …]
/linux/security/tomoyo/
A Dutil.c708 if (*pattern != '\\') { in tomoyo_file_matches_pattern2()
714 pattern++; in tomoyo_file_matches_pattern2()
715 switch (*pattern) { in tomoyo_file_matches_pattern2()
753 pattern += 2; in tomoyo_file_matches_pattern2()
779 c = *pattern; in tomoyo_file_matches_pattern2()
799 pattern++; in tomoyo_file_matches_pattern2()
802 (*(pattern + 1) == '*' || *(pattern + 1) == '@')) in tomoyo_file_matches_pattern2()
803 pattern += 2; in tomoyo_file_matches_pattern2()
819 const char *pattern, in tomoyo_file_matches_pattern() argument
828 if (*pattern++ != '\\' || *pattern++ != '-') in tomoyo_file_matches_pattern()
[all …]
/linux/Documentation/devicetree/bindings/dma/
A 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/drivers/leds/
A 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()
170 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
171 pattern[i].brightness != t) in is_cascade()
186 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce()
191 struct led_pattern *pattern, in el15203000_pattern_set_P() argument
200 if (is_cascade(pattern, len, false, false)) { in el15203000_pattern_set_P()
205 } else if (is_cascade(pattern, len, true, false)) { in el15203000_pattern_set_P()
210 } else if (is_bounce(pattern, len, false)) { in el15203000_pattern_set_P()
[all …]
A 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/tools/testing/selftests/bpf/
A Dtest_bpftool_synctypes.py34 def parse(self, pattern, end_marker): argument
46 capture = pattern.search(line)
47 if capture and pattern.groups >= 1:
81 capture = pattern.search(line)
90 def parse(self, pattern, end_marker): argument
102 entries.update(pattern.findall(line))
175 pattern = re.compile('^\s*(BPF_\w+),?$')
179 return parser.parse(pattern, end_marker)
184 return parser.parse(pattern, end_marker)
203 pattern = re.compile('\*\*([\w/-]+)\*\*')
[all …]
/linux/Documentation/leds/
A Dleds-lp55xx.rst63 This pattern data is saved as a file in the user-land or
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::
136 The pattern sequence of LP8501 is similar to LP5523.
138 However pattern data is specific.
179 ( Predefined pattern data )
182 loading a LED pattern. That is 'predefined' pattern.
190 Example of predefined pattern data::
[all …]
A 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/Documentation/ABI/testing/
A 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/Documentation/devicetree/bindings/display/
A Drenesas,du.yaml119 - pattern: '^dclkin\.[01]$'
120 - pattern: '^dclkin\.[01]$'
171 - pattern: '^dclkin\.[01]$'
172 - pattern: '^dclkin\.[01]$'
228 - pattern: '^dclkin\.[01]$'
229 - pattern: '^dclkin\.[01]$'
283 - pattern: '^dclkin\.[01]$'
284 - pattern: '^dclkin\.[01]$'
339 - pattern: '^dclkin\.[01]$'
340 - pattern: '^dclkin\.[01]$'
[all …]
/linux/drivers/leds/trigger/
A 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()
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()
A 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()
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()
/linux/drivers/regulator/
A Dmax8997-regulator.c177 *pattern = 0xC0; in max8997_get_enable_register()
182 *pattern = 0x01; in max8997_get_enable_register()
187 *pattern = 0x01; in max8997_get_enable_register()
192 *pattern = 0x01; in max8997_get_enable_register()
197 *pattern = 0x01; in max8997_get_enable_register()
202 *pattern = 0x01; in max8997_get_enable_register()
207 *pattern = 0x01; in max8997_get_enable_register()
212 *pattern = 0x01; in max8997_get_enable_register()
222 *pattern = 0x80; in max8997_get_enable_register()
232 *pattern = 0x40; in max8997_get_enable_register()
[all …]
/linux/Documentation/devicetree/bindings/leds/
A 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
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/drivers/isdn/mISDN/
A Ddsp_tones.c235 static struct pattern { struct
240 } pattern[] = { argument
378 struct pattern *pat; in dsp_tone_copy()
388 pat = (struct pattern *)tone->pattern; in dsp_tone_copy()
464 struct pattern *pat = (struct pattern *)tone->pattern; in dsp_tone_timeout()
498 struct pattern *pat; in dsp_tone()
517 while (pattern[i].tone) { in dsp_tone()
518 if (pattern[i].tone == tone) { in dsp_tone()
519 pat = &pattern[i]; in dsp_tone()
532 tonet->pattern = pat; in dsp_tone()
/linux/drivers/gpu/drm/tegra/
A Ddp.c456 train->pattern = DP_TRAINING_PATTERN_DISABLE; in drm_dp_link_train_init()
471 u8 values[4], pattern = 0; in drm_dp_link_apply_training() local
512 pattern |= DP_LINK_SCRAMBLING_DISABLE; in drm_dp_link_apply_training()
514 pattern |= link->train.pattern; in drm_dp_link_apply_training()
529 switch (link->train.pattern) { in drm_dp_link_train_wait()
617 link->train.pattern = DP_TRAINING_PATTERN_1; in drm_dp_link_clock_recovery()
674 link->train.pattern = DP_TRAINING_PATTERN_3; in drm_dp_link_channel_equalization()
676 link->train.pattern = DP_TRAINING_PATTERN_2; in drm_dp_link_channel_equalization()
795 link->train.pattern = DP_TRAINING_PATTERN_1; in drm_dp_link_train_fast()
805 link->train.pattern = DP_TRAINING_PATTERN_3; in drm_dp_link_train_fast()
[all …]
/linux/drivers/comedi/drivers/ni_routing/tools/
A Dcsv_collection.py14 def __init__(self, pattern, skip_commented_lines=True, strip_lines=True): argument
16 self.pattern = pattern
26 for fname in glob.glob(pattern):
/linux/Documentation/devicetree/bindings/serial/
A Dsamsung_uart.yaml50 - pattern: '^clk_uart_baud[0-3]$'
51 - pattern: '^clk_uart_baud[0-3]$'
52 - pattern: '^clk_uart_baud[0-3]$'
53 - pattern: '^clk_uart_baud[0-3]$'
104 - pattern: '^clk_uart_baud[0-1]$'
105 - pattern: '^clk_uart_baud[0-1]$'
/linux/tools/perf/tests/shell/
A Drecord+probe_libc_inet_pton.sh64 while read line <&3 && read -r pattern <&4; do
65 [ -z "$pattern" ] && break
67 echo "$line" | egrep -q "$pattern"
69 printf "FAIL: expected backtrace entry \"%s\" got \"%s\"\n" "$pattern" "$line"
/linux/drivers/i2c/busses/
A Di2c-gpio.c107 u32 pattern, u8 pattern_size) in i2c_gpio_incomplete_transfer() argument
122 setsda(bit_data, (pattern >> i) & 1); in i2c_gpio_incomplete_transfer()
134 u32 pattern; in fops_incomplete_addr_phase_set() local
140 pattern = (addr << 2) | 3; in fops_incomplete_addr_phase_set()
142 i2c_gpio_incomplete_transfer(priv, pattern, 9); in fops_incomplete_addr_phase_set()
151 u32 pattern; in fops_incomplete_write_byte_set() local
157 pattern = (addr << 2) | 1; in fops_incomplete_write_byte_set()
159 pattern = (pattern << 9) | 1; in fops_incomplete_write_byte_set()
161 i2c_gpio_incomplete_transfer(priv, pattern, 18); in fops_incomplete_write_byte_set()

Completed in 45 milliseconds

12345678910>>...25