Home
last modified time | relevance | path

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

12345678910>>...15

/linux/drivers/video/fbdev/core/
H A Dfb_fillrect.h42 static unsigned long fb_pattern_get(struct fb_pattern *pattern) in fb_pattern_get() argument
44 return pattern->pixels; in fb_pattern_get()
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()
54 static void fb_pattern_static(struct fb_pattern *pattern) in fb_pattern_static() argument
60 static void fb_pattern_rotate(struct fb_pattern *pattern) in fb_pattern_rotate() argument
62 pattern->pixels = fb_left(pattern->pixels, pattern->left) in fb_pattern_rotate()
63 | fb_right(pattern->pixels, pattern->right); in fb_pattern_rotate()
79 unsigned long pattern; in pixel_to_pat() local
83 pattern = mulconst[bpp] * color; in pixel_to_pat()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ptrn.c80 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()
108 pattern->index = index; in dr_ptrn_alloc_pattern()
109 pattern->num_of_actions = num_of_actions; in dr_ptrn_alloc_pattern()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c29 * The disassembly of each program is then compared with the pattern
68 /* Sign extension on s390 changes the pattern */
290 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches)
294 char *type = pattern + matches[1].rm_so; in find_field_offset()
295 char *field = pattern + matches[2].rm_so; in find_field_offset()
301 PRINT_FAIL("Malformed pattern: type ident is too long: %d\n", type_sz); in find_field_offset()
306 PRINT_FAIL("Malformed pattern: field ident is too long: %d\n", field_sz); in find_field_offset()
385 * Can't match disassembly(left) with pattern(right):
395 char *pattern = pattern_origin; in print_match_error()
399 fprintf(out, "Can't match disassembly(left) with pattern(righ in print_match_error()
291 find_field_offset(struct btf * btf,char * pattern,regmatch_t * matches) find_field_offset() argument
396 char *pattern = pattern_origin; print_match_error() local
492 match_pattern(struct btf * btf,char * pattern,char * text,char * reg_map[][2]) match_pattern() argument
644 match_program(struct btf * btf,struct prog_info * pinfo,char * pattern,char * reg_map[][2],bool skip_first_insn) match_program() argument
779 char *pattern = test->write_stx ? test->write_stx : test->write; run_one_testcase() local
788 char *pattern = test->write_st ? test->write_st : test->write; run_one_testcase() local
[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-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
H 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/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/security/tomoyo/
H A Dutil.c700 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()
714 pattern++; in tomoyo_file_matches_pattern2()
715 switch (*pattern) { in tomoyo_file_matches_pattern2()
751 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2()
753 pattern += 2; in tomoyo_file_matches_pattern2()
762 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2()
765 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2()
[all …]
/linux/drivers/leds/
H A Dleds-el15203000.c139 struct led_pattern *pattern, in el15203000_pattern_set_S() argument
145 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S()
146 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S()
155 static bool is_cascade(const struct led_pattern *pattern, u32 len, in is_cascade() argument
169 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
170 pattern[i].brightness != t) in is_cascade()
179 static bool is_bounce(const struct led_pattern *pattern, u32 len, bool inv) in is_bounce() argument
184 return is_cascade(pattern, EL_PATTERN_HALF_LEN, inv, false) && in is_bounce()
185 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce()
190 struct led_pattern *pattern, in el15203000_pattern_set_P() argument
[all …]
H 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 …]
H A Dleds-cht-wcove.c289 struct led_pattern *pattern, in cht_wc_leds_pattern_set() argument
295 pattern[0].brightness != 0 || pattern[1].brightness != 1 || in cht_wc_leds_pattern_set()
296 pattern[0].delta_t != pattern[1].delta_t || in cht_wc_leds_pattern_set()
297 (pattern[0].delta_t != 250 && pattern[0].delta_t != 500 && in cht_wc_leds_pattern_set()
298 pattern[0].delta_t != 1000 && pattern[0].delta_t != 2000)) in cht_wc_leds_pattern_set()
301 delay_off = pattern[0].delta_t; in cht_wc_leds_pattern_set()
302 delay_on = pattern[1].delta_t; in cht_wc_leds_pattern_set()
/linux/tools/testing/selftests/bpf/
H A Dtest_bpftool_synctypes.py42 def parse(self, pattern, end_marker): argument
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
110 entries.update(pattern.findall(line))
181 pattern = re.compile(r'^\s*(BPF_\w+),?(\s+/\*.*\*/)?$')
185 return parser.parse(pattern, end_marker)
208 def __get_description_list(self, start_marker, pattern, end_marker): argument
[all …]
/linux/tools/testing/selftests/net/
H A Dnet_helper.sh
/linux/drivers/leds/trigger/
H 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()
H 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/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dpat_arg.c239 __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()
269 pattern); 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
494 *dst_field = MLX5_GET(set_action_in, pattern, field); in hws_action_modify_get_target_fields()
497 *src_field = MLX5_GET(copy_action_in, pattern, src_field); in hws_action_modify_get_target_fields()
498 *dst_field = MLX5_GET(copy_action_in, pattern, dst_field); in hws_action_modify_get_target_fields()
505 bool mlx5hws_pat_verify_actions(struct mlx5hws_context *ctx, __be64 pattern[], size_t sz) in mlx5hws_pat_verify_actions() argument
[all …]
H A Dfs_hws_pools.c244 struct mlx5hws_action_mh_pattern *pattern) in mlx5_fs_mh_bulk_action_create() argument
250 return mlx5hws_action_create_modify_header(ctx, 1, pattern, in mlx5_fs_mh_bulk_action_create()
257 struct mlx5hws_action_mh_pattern *pattern; in mlx5_fs_hws_mh_bulk_create() local
274 pattern = pool_ctx; in mlx5_fs_hws_mh_bulk_create()
290 mh_bulk->hws_action = mlx5_fs_mh_bulk_action_create(ctx, pattern); in mlx5_fs_hws_mh_bulk_create()
330 struct mlx5hws_action_mh_pattern *pattern) in mlx5_fs_hws_mh_pool_init() argument
337 pool_pattern->data = kmemdup(pattern->data, pattern->sz, GFP_KERNEL); in mlx5_fs_hws_mh_pool_init()
342 pool_pattern->sz = pattern->sz; in mlx5_fs_hws_mh_pool_init()
389 struct mlx5hws_action_mh_pattern *pattern) in mlx5_fs_hws_mh_pool_match() argument
398 if (pattern->sz != pool_pattern->sz) in mlx5_fs_hws_mh_pool_match()
[all …]
/linux/tools/perf/tests/shell/
H A Drecord+probe_libc_inet_pton.sh72 while read -r pattern <&4; do
73 echo "Pattern: $pattern"
74 [ -z "$pattern" ] && break
83 ! echo "$line" | grep -E -q "$pattern"
89 printf "FAIL: Didn't find the expected backtrace entry \"%s\"\n" "$pattern"
/linux/Documentation/gpu/
H A Dzynqmp.rst31 Custom test pattern value
59 pattern:
60 Test pattern. May be one of:
66 Symbol error measurement pattern
72 A custom 80-bit pattern
75 HBR2 compliance eye pattern
78 Link training symbol pattern TPS1 (/D10.2/)
81 Link training symbol pattern TPS2
84 Link training symbol pattern TPS3 (for HBR2)
117 pattern prbs7
[all …]
/linux/drivers/net/phy/
H A Das21xxx.c181 unsigned int pattern; member
193 .pattern = BIT(TRIGGER_NETDEV_LINK_10),
197 .pattern = BIT(TRIGGER_NETDEV_LINK_100),
201 .pattern = BIT(TRIGGER_NETDEV_LINK_1000),
205 .pattern = BIT(TRIGGER_NETDEV_LINK_2500),
209 .pattern = BIT(TRIGGER_NETDEV_LINK_5000),
213 .pattern = BIT(TRIGGER_NETDEV_LINK_10000),
217 .pattern = BIT(TRIGGER_NETDEV_LINK),
221 .pattern = BIT(TRIGGER_NETDEV_LINK_10) |
227 .pattern = BIT(TRIGGER_NETDEV_LINK_2500) |
[all …]
/linux/Documentation/devicetree/bindings/leds/
H 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
H 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/Documentation/sound/cards/
H A 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/drivers/comedi/drivers/ni_routing/tools/
H 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/net/bluetooth/
H A Dcoredump.c25 u8 pattern; member
136 static bool hci_devcd_memset(struct hci_dev *hdev, u8 pattern, u32 len) in hci_devcd_memset() argument
141 memset(hdev->dump.tail, pattern, len); in hci_devcd_memset()
224 struct hci_devcoredump_skb_pattern *pattern; in hci_devcd_handle_pkt_pattern() local
231 if (skb->len != sizeof(*pattern)) { in hci_devcd_handle_pkt_pattern()
236 pattern = skb_pull_data(skb, sizeof(*pattern)); in hci_devcd_handle_pkt_pattern()
238 if (!hci_devcd_memset(hdev, pattern->pattern, pattern->len)) in hci_devcd_handle_pkt_pattern()
488 int hci_devcd_append_pattern(struct hci_dev *hdev, u8 pattern, u32 len) in hci_devcd_append_pattern() argument
500 p.pattern = pattern; in hci_devcd_append_pattern()

12345678910>>...15