Home
last modified time | relevance | path

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

12345678910>>...71

/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 */
291 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset() argument
295 char *type = pattern + matches[1].rm_so; in find_field_offset()
296 char *field = pattern + matches[2].rm_so; in find_field_offset()
302 PRINT_FAIL("Malformed pattern: type ident is too long: %d\n", type_sz); in find_field_offset()
[all …]
/linux/Documentation/devicetree/bindings/thermal/
H A Dqcom-tsens.yaml143 - pattern: '^s[0-9]+_p1$'
144 - pattern: '^s[0-9]+_p2$'
145 - pattern: '^s[0-9]+_p1$'
146 - pattern: '^s[0-9]+_p2$'
147 - pattern: '^s[0-9]+_p1$'
148 - pattern: '^s[0-9]+_p2$'
149 - pattern: '^s[0-9]+_p1$'
150 - pattern: '^s[0-9]+_p2$'
151 - pattern: '^s[0-9]+_p1$'
152 - pattern: '^s[0-9]+_p2$'
[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-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::
/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 …]
/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/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/Documentation/devicetree/bindings/soc/renesas/
H A Drenesas-soc.yaml28 pattern: "^renesas,.+-.+$"
39 …- pattern: "^renesas,(emev2|r(7s|8a|9a)[a-z0-9]+|rcar|rmobile|rz[a-z0-9]*|sh(7[a-z0-9]+)?|mobile)-…
40 …- pattern: "^renesas,(condor|falcon|gr-peach|gray-hawk|salvator|sk-rz|smar(c(2)?)?|spider|white-ha…
45 …- pattern: "^renesas,(can|cpg|dmac|du|(g)?ether(avb)?|gpio|hscif|(r)?i[i2]c|imr|intc|ipmmu|irqc|jp…
46 - pattern: "^renesas,(d|s)?bsc(3)?-(r8a73a4|r8a7740|sh73a0)$"
47 - pattern: "^renesas,em-(gio|sti|uart)$"
48 - pattern: "^renesas,fsi2-(r8a7740|sh73a0)$"
49 - pattern: "^renesas,hspi-r8a777[89]$"
50 - pattern: "^renesas,sysc-(r8a73a4|r8a7740|rmobile|sh73a0)$"
62 # Do not fail compatibles not matching the select pattern
[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/Documentation/ABI/testing/
H 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
18 Specify a software pattern for the LED, that supports altering
22 Unlike the /sys/class/leds/<led>/pattern, this attribute runs
23 a pattern on high-resolution timer (hrtimer).
29 Specify a hardware pattern for the LED, for LED hardware that
32 software pattern.
43 Specify a pattern repeat number. -1 means repeat indefinitely,
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/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/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()
56 WRITE_ONCE(*p, pattern); in memtest()
59 if (READ_ONCE(*p) == pattern) in memtest()
66 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
70 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
75 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument
85 pr_info(" %pa - %pa pattern %016llx\n", in do_one_pass()
[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/devicetree/bindings/arm/
H A Dqcom-soc.yaml27 - pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sar|sc|sd[amx]|sm|x1[ep])[0-9]+.*$"
28 - pattern: "^qcom,.*(glymur|milos).*$"
36 - pattern: "^qcom,(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1[ep])[0-9]+(pro)?-.*$"
37 - pattern: "^qcom,sar[0-9]+[a-z]?-.*$"
38 - pattern: "^qcom,(sa|sc)8[0-9]+[a-z][a-z]?-.*$"
39 - pattern: "^qcom,(glymur|milos)-.*$"
43 - pattern: "^qcom,[ak]pss-wdt-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$"
44 - pattern: "^qcom,gcc-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$"
45 - pattern: "^qcom,mmcc-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$"
46 - pattern: "^qcom,pcie-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1[ep])[0-9]+.*$"
[all …]
/linux/drivers/media/platform/xilinx/
H A Dxilinx-tpg.c3 * Xilinx Test Pattern Generator
72 * struct xtpg_device - Xilinx Test Pattern Generator device structure
84 * @pattern: test pattern control
104 struct v4l2_ctrl *pattern; member
133 bool passthrough, bool pattern) in __xtpg_update_pattern_control() argument
135 u32 pattern_mask = (1 << (xtpg->pattern->maximum + 1)) - 1; in __xtpg_update_pattern_control()
148 /* If test pattern mode is allowed unmask all other bits. */ in __xtpg_update_pattern_control()
149 if (pattern) in __xtpg_update_pattern_control()
152 __v4l2_ctrl_modify_range(xtpg->pattern, 0, xtpg->pattern->maximum, in __xtpg_update_pattern_control()
153 pattern_mask, pattern ? 9 : 0); in __xtpg_update_pattern_control()
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Ddlg,da7280.yaml40 - 1 # Register triggered waveform memory(RTWM) mode, the pattern
45 # the pattern is assigned to the GPI(N)_SEQUENCE_ID below
85 The PS_SEQ_ID(pattern ID in waveform memory inside chip)
101 the GPI0_SEQUENCE_ID, pattern to play when gpi0 is triggered
108 the GPI1_SEQUENCE_ID, pattern to play when gpi1 is triggered
115 the GPI2_SEQUENCE_ID, pattern to play when gpi2 is triggered
119 - Single-pattern
120 - Multi-pattern
122 Pattern mode for gpi0
126 - Single-pattern
[all …]
/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/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/Documentation/devicetree/bindings/display/
H A Drenesas,du.yaml137 - pattern: '^dclkin\.[01]$'
138 - pattern: '^dclkin\.[01]$'
187 - pattern: '^dclkin\.[01]$'
188 - pattern: '^dclkin\.[01]$'
243 - pattern: '^dclkin\.[01]$'
244 - pattern: '^dclkin\.[01]$'
297 - pattern: '^dclkin\.[01]$'
298 - pattern: '^dclkin\.[01]$'
352 - pattern: '^dclkin\.[01]$'
353 - pattern: '^dclkin\.[01]$'
[all …]

12345678910>>...71