/kernel/linux/linux-5.10/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 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/mm/ |
D | memtest.c | 28 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 …]
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | util.c | 695 const char *pattern, in tomoyo_file_matches_pattern2() argument 698 while (filename < filename_end && pattern < pattern_end) { in tomoyo_file_matches_pattern2() 703 if (*pattern != '\\') { in tomoyo_file_matches_pattern2() 704 if (*filename++ != *pattern++) in tomoyo_file_matches_pattern2() 709 pattern++; in tomoyo_file_matches_pattern2() 710 switch (*pattern) { in tomoyo_file_matches_pattern2() 746 && strncmp(filename + 1, pattern, 3) == 0) { in tomoyo_file_matches_pattern2() 748 pattern += 2; in tomoyo_file_matches_pattern2() 757 pattern + 1, pattern_end)) in tomoyo_file_matches_pattern2() 760 if (c == '.' && *pattern == '@') in tomoyo_file_matches_pattern2() [all …]
|
/kernel/linux/linux-5.10/drivers/leds/ |
D | leds-el15203000.c | 139 struct led_pattern *pattern, in el15203000_pattern_set_S() argument 147 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S() 148 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S() 157 static bool is_cascade(const struct led_pattern *pattern, u32 len, in is_cascade() argument 171 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade() 172 pattern[i].brightness != t) in is_cascade() 181 static bool is_bounce(const struct led_pattern *pattern, u32 len, bool inv) in is_bounce() argument 186 return is_cascade(pattern, EL_PATTERN_HALF_LEN, inv, false) && in is_bounce() 187 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce() 192 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 …]
|
/kernel/linux/linux-5.10/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 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,
|
/kernel/linux/linux-5.10/Documentation/leds/ |
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-lm3556.rst | 77 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
|
D | leds-sc27xx.rst | 10 Specify a hardware pattern for the SC27XX LED. For the SC27XX 12 hardware pattern, which is used to configure the rise time, 16 for the high stage. To be compatible with the hardware pattern 26 Thus the format of the hardware pattern values should be:
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_dmabuf.c | 85 u32 pattern[] = { 0, 0xaa, 0xcc, 0x55, 0xff }; in igt_dmabuf_import() local 128 for (i = 0; i < ARRAY_SIZE(pattern); i++) { in igt_dmabuf_import() 129 memset(dma_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import() 130 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import() 132 pr_err("imported vmap not all set to %x!\n", pattern[i]); in igt_dmabuf_import() 138 for (i = 0; i < ARRAY_SIZE(pattern); i++) { in igt_dmabuf_import() 139 memset(obj_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import() 140 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import() 142 pr_err("exported vmap not all set to %x!\n", pattern[i]); in igt_dmabuf_import()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ni_routing/tools/ |
D | csv_collection.py | 15 def __init__(self, pattern, skip_commented_lines=True, strip_lines=True): argument 17 self.pattern = pattern 27 for fname in glob.glob(pattern):
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | max8997-regulator.c | 169 int *reg, int *mask, int *pattern) in max8997_get_enable_register() argument 177 *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() 217 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register() [all …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/regex/ |
D | regex_func_test.c | 76 int TestRegex(int flag, const char *pattern, const char *buf, const int expectedStatus, const char … in TestRegex() argument 83 regcomp(®, pattern, flag); in TestRegex() 103 int TestRegcomp(int flag, const char *pattern, const int expectedStatus) in TestRegcomp() argument 106 int status = regcomp(®, pattern, flag); in TestRegcomp() 107 LOG("pattern : %s ,real status : %d \n", pattern, status); in TestRegcomp()
|
/kernel/linux/linux-5.10/tools/perf/tests/shell/ |
D | record+probe_libc_inet_pton.sh | 64 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"
|
/kernel/linux/linux-5.10/drivers/isdn/mISDN/ |
D | dsp_tones.c | 235 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | dp.c | 456 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 511 if (link->train.pattern != DP_TRAINING_PATTERN_DISABLE) in drm_dp_link_apply_training() 512 pattern |= DP_LINK_SCRAMBLING_DISABLE; in drm_dp_link_apply_training() 514 pattern |= link->train.pattern; in drm_dp_link_apply_training() 516 err = drm_dp_dpcd_writeb(aux, DP_TRAINING_PATTERN_SET, 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() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-gpio.c | 107 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | sorgm107.c | 27 gm107_sor_dp_pattern(struct nvkm_ior *sor, int pattern) in gm107_sor_dp_pattern() argument 31 const u32 data = 0x01010101 * pattern; in gm107_sor_dp_pattern() 50 .pattern = gm107_sor_dp_pattern,
|
/kernel/linux/linux-5.10/drivers/input/mouse/ |
D | elan_i2c.h | 78 int (*get_version)(struct i2c_client *client, u8 pattern, bool iap, 80 int (*get_sm_version)(struct i2c_client *client, u8 pattern, 103 int (*get_report_features)(struct i2c_client *client, u8 pattern, 110 int (*get_pattern)(struct i2c_client *client, u8 *pattern);
|