Home
last modified time | relevance | path

Searched full:patterns (Results 1 – 25 of 263) sorted by relevance

1234567891011

/linux/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c19 struct pattern_buf patterns[CH_NUM]; variable
45 fscanf(fpl, "%u", &patterns[i].len); in read_patterns()
52 fread(patterns[i].buf, 1, patterns[i].len, fp); in read_patterns()
134 SKIP(return, "Can't read patterns. Probably, module isn't loaded"); in FIXTURE_SETUP()
190 it[i] = patterns[cur_ch].buf[pos_in_ch % patterns[cur_ch].len]; in TEST_F()
232 ASSERT_EQ(it[i], patterns[cur_ch].buf[pos_in_ch % patterns[cur_ch].len]); in TEST_F()
266 ASSERT_EQ(chan_samples[i][j], patterns[i].buf[j % patterns[i].len]); in TEST_F()
293 chan_samples[i][j] = patterns[i].buf[j % patterns[i].len]; in TEST_F()
/linux/drivers/leds/trigger/
H A Dledtrig-pattern.c33 struct led_pattern patterns[MAX_PATTERNS]; member
50 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns()
53 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns()
54 data->next = data->patterns; in pattern_trig_update_patterns()
178 return led_cdev->pattern_set(led_cdev, data->patterns, in pattern_trig_start_pattern()
187 data->curr = data->patterns; in pattern_trig_start_pattern()
188 data->next = data->patterns + 1; in pattern_trig_start_pattern()
261 data->patterns[i].brightness, in pattern_trig_show_patterns()
262 data->patterns[i].delta_t); in pattern_trig_show_patterns()
280 &data->patterns[data->npatterns].brightness, in pattern_trig_store_patterns_string()
[all …]
/linux/lib/tests/
H A Dffs_kunit.c32 /* Single bit patterns - powers of 2 */
50 /* Multiple bit patterns */
58 /* Sparse patterns */
72 /* Single bit patterns */
88 /* Cross 32-bit boundary patterns */
94 /* Mixed patterns */
324 /* Cross-boundary patterns */ in ffs64_edge_cases_test()
362 /* Multiple zero patterns */
372 /* Complex patterns */
445 /* Multiple patterns */ in ffz_mathematical_relationships_test()
[all …]
/linux/Documentation/leds/
H A Dleds-lp55xx.rst15 Program memory for running LED patterns
55 - Program memory address access for running patterns
61 various LED patterns.
109 To start blinking patterns in engine #2 and #3 simultaneously::
187 To use the predefined pattern concept, 'patterns' and 'num_patterns' should be
213 .patterns = board_led_patterns,
H A Dleds-lm3556.rst78 and 4 patterns are pre-defined in indicator_pattern array.
81 be generated.If you want new patterns for your own device, change
/linux/mm/
H A Dmemtest.c11 static u64 patterns[] __initdata = { variable
102 memtest_pattern = ARRAY_SIZE(patterns); in parse_memtest()
119 idx = i % ARRAY_SIZE(patterns); in early_memtest()
120 do_one_pass(patterns[idx], start, end); in early_memtest()
H A DKconfig.debug29 fill the pages with poison patterns after free_pages() and verify
30 the patterns before alloc_pages(). Additionally, this option cannot
150 Fill the pages with poison patterns after free_pages() and verify
151 the patterns before alloc_pages. The filling of the memory helps
/linux/tools/testing/selftests/x86/bugs/
H A Dits_permutations.py54 # Define patterns and their corresponding colors
55 patterns = {
66 # Apply colors based on patterns
67 for pattern, color in patterns.items():
/linux/Documentation/devicetree/bindings/w1/
H A Dw1-uart.yaml14 to create the 1-Wire timing patterns.
17 mode. The timing patterns are generated by a specific combination of
24 to generate the 1-Wire timing patterns.
/linux/tools/perf/tests/shell/base_probe/
H A Dtest_line_semantics.sh2 # perf_probe :: Check patterns for line semantics (exclusive)
33 # testing acceptance of valid patterns for the '--line' option
46 # testing handling of invalid patterns for the '--line' option
/linux/include/linux/platform_data/
H A Dleds-lp55xx.h62 * @patterns : Predefined pattern data for RGB channels
63 * @num_patterns : Number of patterns
83 struct lp55xx_predef_pattern *patterns; member
/linux/Documentation/w1/masters/
H A Dw1-uart.rst14 Serial Device Bus to create the 1-Wire timing patterns as described in
20 open-drain mode. The timing patterns are generated by a specific
39 to generate the 1-Wire timing patterns.
/linux/tools/lib/python/abi/
H A Dabi_regex.py45 # Temporarily change [0-9]+ type of patterns
48 # Temporarily change [\d+-\d+] type of patterns
53 # Temporarily change [0-9] type of patterns
56 # Handle multiple option patterns
72 # Recover [0-9] type of patterns
/linux/scripts/mod/
H A Dmodpost.c717 * Check whether the 'string' argument matches one of the 'patterns',
718 * an array of shell wildcard patterns (glob).
722 static bool match(const char *string, const char *const patterns[]) in match() argument
726 while ((pattern = *patterns++)) { in match()
734 /* useful to pass patterns to match() directly */
735 #define PATTERNS(...) \ macro
737 static const char *const patterns[] = {__VA_ARGS__, NULL}; \
738 patterns; \
951 if (match(tosec, PATTERNS(ALL_INIT_DATA_SECTIONS)) && in secref_whitelist()
952 match(fromsec, PATTERNS(DATA_SECTIONS)) && in secref_whitelist()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_diag.c16 static const u32 patterns[] = { in i40e_diag_reg_pattern_test() local
23 for (i = 0; i < ARRAY_SIZE(patterns); i++) { in i40e_diag_reg_pattern_test()
24 pat = patterns[i]; in i40e_diag_reg_pattern_test()
/linux/tools/testing/selftests/bpf/
H A Dtest_loader.c123 if (msgs->patterns[i].is_regex) in free_msgs()
124 regfree(&msgs->patterns[i].regex); in free_msgs()
125 free(msgs->patterns); in free_msgs()
126 msgs->patterns = NULL; in free_msgs()
217 tmp = realloc(msgs->patterns, in __push_msg()
223 msgs->patterns = tmp; in __push_msg()
224 msg = &msgs->patterns[msgs->cnt]; in __push_msg()
245 msg = &from->patterns[i]; in clone_msgs()
834 struct expect_msg *msg = &msgs->patterns[i]; in is_unpriv_capable_map()
863 struct expect_msg *msg = &msgs->patterns[ in do_prog_test_run()
72 struct expect_msg *patterns; global() member
[all...]
/linux/drivers/net/wireless/ath/ath10k/
H A Dwow.c272 const struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath10k_vif_wow_set_wakeups() local
329 struct cfg80211_pkt_pattern old_pattern = patterns[i]; in ath10k_vif_wow_set_wakeups()
334 if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE) in ath10k_vif_wow_set_wakeups()
337 for (j = 0; j < patterns[i].pattern_len; j++) in ath10k_vif_wow_set_wakeups()
338 if (patterns[i].mask[j / 8] & BIT(j % 8)) in ath10k_vif_wow_set_wakeups()
343 if (patterns[i].pkt_offset < ETH_HLEN) { in ath10k_vif_wow_set_wakeups()
/linux/drivers/gpu/nova-core/gsp/
H A Dfw.rs209 // SAFETY: This struct only contains integer types for which all bit patterns
471 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
499 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
532 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
550 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
574 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
676 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
693 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
719 // SAFETY: This struct only contains integer types for which all bit patterns
922 // SAFETY: This struct only contains integer types for which all bit patterns
[all …]
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-el15203000.txt6 The board manages 3 LEDs and supports predefined blinking patterns
17 Supports next patterns:
/linux/drivers/net/wireless/ath/ath11k/
H A Dwow.c352 const struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath11k_vif_wow_set_wakeups() local
411 if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE) in ath11k_vif_wow_set_wakeups()
416 if (patterns[i].pkt_offset < ETH_HLEN) { in ath11k_vif_wow_set_wakeups()
418 &patterns[i]); in ath11k_vif_wow_set_wakeups()
422 new_pattern = patterns[i]; in ath11k_vif_wow_set_wakeups()
426 for (j = 0; j < patterns[i].pattern_len; j++) in ath11k_vif_wow_set_wakeups()
427 if (patterns[i].mask[j / 8] & BIT(j % 8)) in ath11k_vif_wow_set_wakeups()
/linux/Documentation/admin-guide/mm/damon/
H A Dstart.rst37 Snapshot Data Access Patterns
89 Recording Data Access Patterns
92 The commands below record the memory access patterns of a program and save the
105 Visualizing Recorded Patterns
/linux/include/linux/mtd/
H A Drawnand.h146 * patterns.
959 * Controller drivers should declare as many patterns as they support and pass
960 * this list of patterns (created with the help of the following macro) to
979 * @patterns: array of supported patterns
980 * @npatterns: length of the @patterns array
982 * The parser descriptor is just an array of supported patterns which will be
986 * It is worth mentioning that patterns will be tested in their declaration
987 * order, and the first match will be taken, so it's important to order patterns
988 * appropriately so that simple/inefficient patterns are placed at the end of
989 * the list. Usually, this is where you put single instruction patterns.
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dlib.c1007 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwlagn_send_patterns()
1016 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwlagn_send_patterns()
1018 memcpy(&pattern_cmd->patterns[i].mask, in iwlagn_send_patterns()
1019 wowlan->patterns[i].mask, mask_len); in iwlagn_send_patterns()
1020 memcpy(&pattern_cmd->patterns[i].pattern, in iwlagn_send_patterns()
1021 wowlan->patterns[i].pattern, in iwlagn_send_patterns()
1022 wowlan->patterns[i].pattern_len); in iwlagn_send_patterns()
1023 pattern_cmd->patterns[i].mask_size = mask_len; in iwlagn_send_patterns()
1024 pattern_cmd->patterns[i].pattern_size = in iwlagn_send_patterns()
1025 wowlan->patterns[i].pattern_len; in iwlagn_send_patterns()
/linux/drivers/net/wireless/realtek/rtw88/
H A Dwow.c256 struct rtw_wow_pattern *rtw_pattern = rtw_wow->patterns; in rtw_wow_pattern_write()
270 memset(rtw_wow->patterns, 0, sizeof(rtw_wow->patterns)); in rtw_wow_pattern_clear()
807 struct rtw_wow_pattern *rtw_patterns = rtw_wow->patterns; in rtw_wow_set_wakeups()
826 if (wowlan->n_patterns && wowlan->patterns) { in rtw_wow_set_wakeups()
830 wowlan->patterns + i, in rtw_wow_set_wakeups()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dd3.c640 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
649 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns_v1()
651 memcpy(&pattern_cmd->patterns[i].mask, in iwl_mvm_send_patterns_v1()
652 wowlan->patterns[i].mask, mask_len); in iwl_mvm_send_patterns_v1()
653 memcpy(&pattern_cmd->patterns[i].pattern, in iwl_mvm_send_patterns_v1()
654 wowlan->patterns[i].pattern, in iwl_mvm_send_patterns_v1()
655 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns_v1()
656 pattern_cmd->patterns[i].mask_size = mask_len; in iwl_mvm_send_patterns_v1()
657 pattern_cmd->patterns[i].pattern_size = in iwl_mvm_send_patterns_v1()
658 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns_v1()
[all …]

1234567891011