/linux/tools/testing/selftests/alsa/ |
H A D | test-pcmtest-driver.c | 19 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() 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/net/wireless/ath/ath9k/ |
H A D | wow.c | 142 struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath9k_wow_add_pattern() local 149 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); in ath9k_wow_add_pattern() 152 memcpy(wow_pattern, patterns[i].pattern, patterns[i].pattern_len); in ath9k_wow_add_pattern() 153 memcpy(wow_mask, patterns[i].mask, mask_len); in ath9k_wow_add_pattern() 159 patterns[i].pattern_len); in ath9k_wow_add_pattern()
|
/linux/mm/ |
H A D | memtest.c | 11 static u64 patterns[] __initdata = { variable 100 memtest_pattern = ARRAY_SIZE(patterns); in parse_memtest() 117 idx = i % ARRAY_SIZE(patterns); in early_memtest() 118 do_one_pass(patterns[idx], start, end); in early_memtest()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_diag.c | 16 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 D | test_loader.c | 66 struct expect_msg *patterns; 119 if (msgs->patterns[i].is_regex) in free_msgs() 120 regfree(&msgs->patterns[i].regex); in free_msgs() 121 free(msgs->patterns); in free_msgs() 122 msgs->patterns = NULL; in free_msgs() 208 tmp = realloc(msgs->patterns, in __push_msg() 214 msgs->patterns = tmp; in __push_msg() 215 msg = &msgs->patterns[msgs->cnt]; in __push_msg() 235 msg = &from->patterns[i]; in clone_msgs() 709 struct expect_msg *msg = &msgs->patterns[ in validate_msgs() 65 struct expect_msg *patterns; global() member [all...] |
/linux/Documentation/w1/masters/ |
H A D | w1-uart.rst | 14 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/Documentation/leds/ |
H A D | leds-lp55xx.rst | 15 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 D | leds-lp5521.rst | 22 LP5521 has the internal program memory for running various LED patterns. 23 There are two ways to run LED patterns.
|
H A D | leds-lp5523.rst | 35 LP5523 has the internal program memory for running various LED patterns. 36 There are two ways to run LED patterns.
|
H A D | leds-lm3556.rst | 78 and 4 patterns are pre-defined in indicator_pattern array. 81 be generated.If you want new patterns for your own device, change
|
H A D | leds-lp5562.rst | 16 LP5562 has the internal program memory for running various LED patterns. 67 How to load the predefined patterns
|
H A D | leds-el15203000.rst | 12 The LEDs board supports only predefined patterns by firmware
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wow.c | 272 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/net/wireless/intel/iwlwifi/dvm/ |
H A D | lib.c | 1007 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/Documentation/devicetree/bindings/leds/ |
H A D | leds-el15203000.txt | 6 The board manages 3 LEDs and supports predefined blinking patterns 17 Supports next patterns:
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | wow.c | 256 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/Documentation/driver-api/driver-model/ |
H A D | index.rst | 10 design-patterns
|
H A D | design-patterns.rst | 5 This document describes a few common design patterns found in device drivers. 7 conform to these design patterns.
|
/linux/Documentation/admin-guide/mm/damon/ |
H A D | index.rst | 8 Using DAMON, users can analyze the memory access patterns of their systems and
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | wow.c | 985 struct rtw89_wow_cam_info *rtw_pattern = rtw_wow->patterns; in rtw89_wow_parse_patterns() 989 if (!wowlan->n_patterns || !wowlan->patterns) in rtw89_wow_parse_patterns() 993 rtw_pattern = &rtw_wow->patterns[i]; in rtw89_wow_parse_patterns() 995 &wowlan->patterns[i], in rtw89_wow_parse_patterns() 1017 struct rtw89_wow_cam_info *rtw_pattern = rtw_wow->patterns; in rtw89_wow_pattern_clear_cam() 1021 rtw_pattern = &rtw_wow->patterns[i]; in rtw89_wow_pattern_clear_cam() 1030 struct rtw89_wow_cam_info *rtw_pattern = rtw_wow->patterns; in rtw89_wow_pattern_write() 1044 memset(rtw_wow->patterns, 0, sizeof(rtw_wow->patterns)); in rtw89_wow_pattern_clear() 1084 if (wowlan->n_patterns && wowlan->patterns) in rtw89_wow_set_wakeups()
|
/linux/include/linux/platform_data/ |
H A D | leds-lp55xx.h | 83 struct lp55xx_predef_pattern *patterns; member
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | d3.c | 650 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1() 659 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns_v1() 661 memcpy(&pattern_cmd->patterns[i].mask, in iwl_mvm_send_patterns_v1() 662 wowlan->patterns[i].mask, mask_len); in iwl_mvm_send_patterns_v1() 663 memcpy(&pattern_cmd->patterns[i].pattern, in iwl_mvm_send_patterns_v1() 664 wowlan->patterns[i].pattern, in iwl_mvm_send_patterns_v1() 665 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns_v1() 666 pattern_cmd->patterns[i].mask_size = mask_len; in iwl_mvm_send_patterns_v1() 667 pattern_cmd->patterns[i].pattern_size = in iwl_mvm_send_patterns_v1() 668 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns_v1() [all …]
|
/linux/drivers/mtd/ubi/ |
H A D | io.c | 364 static uint8_t patterns[] = {0xa5, 0x5a, 0x0}; variable 380 patt_count = ARRAY_SIZE(patterns); in torture_peb() 403 memset(ubi->peb_buf, patterns[i], ubi->peb_size); in torture_peb() 408 memset(ubi->peb_buf, ~patterns[i], ubi->peb_size); in torture_peb() 413 err = ubi_check_pattern(ubi->peb_buf, patterns[i], in torture_peb() 417 patterns[i], pnum); in torture_peb()
|
/linux/drivers/leds/ |
H A D | leds-lp5562.c | 239 ptn = chip->pdata->patterns + (mode - 1); in lp5562_run_predef_led_pattern() 284 struct lp55xx_predef_pattern *ptn = chip->pdata->patterns; in lp5562_store_pattern()
|
/linux/tools/perf/tests/shell/common/ |
H A D | init.sh | 15 . ../common/patterns.sh
|