/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ptrn.c | 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() 108 pattern->index = index; in dr_ptrn_alloc_pattern() 109 pattern->num_of_actions = num_of_actions; in dr_ptrn_alloc_pattern() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | ctx_rewrite.c | 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() 394 char *pattern = pattern_origin; in print_match_error() local 399 while (*pattern || *text) { in print_match_error() 424 while (*pattern && *pattern != ';') { in print_match_error() 425 if (pattern == pattern_pos) in print_match_error() 427 fputc(*pattern, out); in print_match_error() 428 ++pattern; in print_match_error() 431 if (pattern == pattern_pos) in print_match_error() [all …]
|
/linux-6.12.1/lib/ |
D | ts_kmp.c | 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() 91 static struct ts_config *kmp_init(const void *pattern, unsigned int len, in kmp_init() argument 107 compute_prefix_tbl(pattern, len, kmp->prefix_tbl, flags); in kmp_init() [all …]
|
D | ts_bm.c | 52 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-6.12.1/Documentation/leds/ |
D | leds-qcom-lpg.rst | 11 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 …]
|
D | leds-lp55xx.rst | 63 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 …]
|
D | leds-mt6370-rgb.rst | 15 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
|
/linux-6.12.1/drivers/tc/ |
D | tc.c | 44 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-6.12.1/mm/ |
D | memtest.c | 32 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 84 &this_start, &this_end, cpu_to_be64(pattern)); in do_one_pass() [all …]
|
/linux-6.12.1/security/tomoyo/ |
D | util.c | 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() 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-6.12.1/drivers/leds/ |
D | leds-el15203000.c | 140 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() 156 static bool is_cascade(const struct led_pattern *pattern, u32 len, in is_cascade() argument 170 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade() 171 pattern[i].brightness != t) in is_cascade() 180 static bool is_bounce(const struct led_pattern *pattern, u32 len, bool inv) in is_bounce() argument 185 return is_cascade(pattern, EL_PATTERN_HALF_LEN, inv, false) && in is_bounce() 186 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce() 191 struct led_pattern *pattern, in el15203000_pattern_set_P() argument [all …]
|
D | leds-sc27xx-bltc.c | 172 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-6.12.1/tools/testing/selftests/bpf/ |
D | test_bpftool_synctypes.py | 42 def parse(self, pattern, end_marker): argument 54 capture = pattern.search(line) 55 if capture and pattern.groups >= 1: 83 pattern = re.compile('\[(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('^\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-6.12.1/Documentation/ABI/testing/ |
D | sysfs-class-led-trigger-pattern | 1 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,
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | net_helper.sh | 11 local pattern 14 pattern=":$(printf "%04X" "${port}") " 17 [ ${protocol} = "tcp" ] && pattern="${pattern}0A" 20 /proc/net/"${protocol}"* | grep -q "${pattern}"; then
|
/linux-6.12.1/mm/damon/ |
D | lru_sort.c | 149 struct damos_access_pattern *pattern, enum damos_action action) in damon_lru_sort_new_scheme() argument 158 pattern, in damon_lru_sort_new_scheme() 173 struct damos_access_pattern pattern = damon_lru_sort_stub_pattern; in damon_lru_sort_new_hot_scheme() local 175 pattern.min_nr_accesses = hot_thres; in damon_lru_sort_new_hot_scheme() 176 return damon_lru_sort_new_scheme(&pattern, DAMOS_LRU_PRIO); in damon_lru_sort_new_hot_scheme() 182 struct damos_access_pattern pattern = damon_lru_sort_stub_pattern; in damon_lru_sort_new_cold_scheme() local 184 pattern.max_nr_accesses = 0; in damon_lru_sort_new_cold_scheme() 185 pattern.min_age_region = cold_thres; in damon_lru_sort_new_cold_scheme() 186 return damon_lru_sort_new_scheme(&pattern, DAMOS_LRU_DEPRIO); in damon_lru_sort_new_cold_scheme()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/accessories/ |
D | link_dp_cts.c | 600 enum dpcd_phy_test_patterns pattern; in dp_set_test_pattern() local 687 pattern = PHY_TEST_PATTERN_NONE; in dp_set_test_pattern() 690 pattern = PHY_TEST_PATTERN_D10_2; in dp_set_test_pattern() 693 pattern = PHY_TEST_PATTERN_SYMBOL_ERROR; in dp_set_test_pattern() 696 pattern = PHY_TEST_PATTERN_PRBS7; in dp_set_test_pattern() 699 pattern = PHY_TEST_PATTERN_80BIT_CUSTOM; in dp_set_test_pattern() 702 pattern = PHY_TEST_PATTERN_CP2520_1; in dp_set_test_pattern() 705 pattern = PHY_TEST_PATTERN_CP2520_2; in dp_set_test_pattern() 708 pattern = PHY_TEST_PATTERN_CP2520_3; in dp_set_test_pattern() 711 pattern = PHY_TEST_PATTERN_128b_132b_TPS1; in dp_set_test_pattern() [all …]
|
/linux-6.12.1/drivers/leds/trigger/ |
D | ledtrig-timer.c | 80 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()
|
D | ledtrig-oneshot.c | 132 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
D | mlx5hws_pat_arg.c | 240 __be64 *pattern, size_t pattern_sz, in mlx5hws_pat_get_pattern() argument 252 pattern); in mlx5hws_pat_get_pattern() 260 (u8 *)pattern, in mlx5hws_pat_get_pattern() 270 pattern); in mlx5hws_pat_get_pattern() 479 hws_action_modify_check_field_limitation(u8 action_type, __be64 *pattern) in hws_action_modify_check_field_limitation() argument 488 hws_action_modify_get_target_fields(u8 action_type, __be64 *pattern, in hws_action_modify_get_target_fields() argument 494 *src_field = MLX5_GET(set_action_in, pattern, field); in hws_action_modify_get_target_fields() 498 *src_field = MLX5_GET(copy_action_in, pattern, src_field); in hws_action_modify_get_target_fields() 499 *dst_field = MLX5_GET(copy_action_in, pattern, dst_field); in hws_action_modify_get_target_fields() 506 bool mlx5hws_pat_verify_actions(struct mlx5hws_context *ctx, __be64 pattern[], size_t sz) in mlx5hws_pat_verify_actions() argument [all …]
|
/linux-6.12.1/drivers/leds/rgb/ |
D | leds-ncp5623.c | 79 struct led_pattern *pattern, in ncp5623_pattern_set() argument 95 if (pattern[0].delta_t > NCP5623_MAX_DIM_TIME_MS || in ncp5623_pattern_set() 96 (pattern[0].delta_t % NCP5623_DIM_STEP_MS) != 0) in ncp5623_pattern_set() 99 brightness_diff = pattern[0].brightness - ncp->current_brightness; in ncp5623_pattern_set() 104 if (pattern[0].delta_t) { in ncp5623_pattern_set() 114 min(pattern[0].brightness, NCP5623_MAX_BRIGHTNESS)); in ncp5623_pattern_set() 120 pattern[0].delta_t / NCP5623_DIM_STEP_MS); in ncp5623_pattern_set() 141 ncp->delay = msecs_to_jiffies(ncp->delay * pattern[0].delta_t) + jiffies; in ncp5623_pattern_set() 143 ncp->current_brightness = pattern[0].brightness; in ncp5623_pattern_set()
|
/linux-6.12.1/Documentation/devicetree/bindings/leds/ |
D | leds-trigger-pattern.txt | 1 * 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
|
D | leds-el15203000.txt | 10 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
|
/linux-6.12.1/net/bluetooth/ |
D | coredump.c | 25 u8 pattern; member 137 static bool hci_devcd_memset(struct hci_dev *hdev, u8 pattern, u32 len) in hci_devcd_memset() argument 142 memset(hdev->dump.tail, pattern, len); in hci_devcd_memset() 225 struct hci_devcoredump_skb_pattern *pattern; in hci_devcd_handle_pkt_pattern() local 232 if (skb->len != sizeof(*pattern)) { in hci_devcd_handle_pkt_pattern() 237 pattern = skb_pull_data(skb, sizeof(*pattern)); in hci_devcd_handle_pkt_pattern() 239 if (!hci_devcd_memset(hdev, pattern->pattern, pattern->len)) in hci_devcd_handle_pkt_pattern() 472 int hci_devcd_append_pattern(struct hci_dev *hdev, u8 pattern, u32 len) in hci_devcd_append_pattern() argument 484 p.pattern = pattern; in hci_devcd_append_pattern()
|
/linux-6.12.1/Documentation/sound/cards/ |
D | pcmtest.rst | 16 * 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'.
|