/drivers/leds/trigger/ |
D | ledtrig-pattern.c | 26 struct led_pattern patterns[MAX_PATTERNS]; member 42 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns() 45 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns() 46 data->next = data->patterns; in pattern_trig_update_patterns() 128 return led_cdev->pattern_set(led_cdev, data->patterns, in pattern_trig_start_pattern() 137 data->curr = data->patterns; in pattern_trig_start_pattern() 138 data->next = data->patterns + 1; in pattern_trig_start_pattern() 212 data->patterns[i].brightness, in pattern_trig_show_patterns() 213 data->patterns[i].delta_t); in pattern_trig_show_patterns() 231 &data->patterns[data->npatterns].brightness, in pattern_trig_store_patterns_string() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
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()
|
/drivers/net/ethernet/intel/i40e/ |
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()
|
/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 271 const struct cfg80211_pkt_pattern *patterns = wowlan->patterns; in ath10k_vif_wow_set_wakeups() local 328 struct cfg80211_pkt_pattern old_pattern = patterns[i]; in ath10k_vif_wow_set_wakeups() 333 if (patterns[i].pattern_len > WOW_MAX_PATTERN_SIZE) in ath10k_vif_wow_set_wakeups() 336 for (j = 0; j < patterns[i].pattern_len; j++) in ath10k_vif_wow_set_wakeups() 337 if (patterns[i].mask[j / 8] & BIT(j % 8)) in ath10k_vif_wow_set_wakeups() 342 if (patterns[i].pkt_offset < ETH_HLEN) { in ath10k_vif_wow_set_wakeups()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | lib.c | 1012 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwlagn_send_patterns() 1021 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwlagn_send_patterns() 1023 memcpy(&pattern_cmd->patterns[i].mask, in iwlagn_send_patterns() 1024 wowlan->patterns[i].mask, mask_len); in iwlagn_send_patterns() 1025 memcpy(&pattern_cmd->patterns[i].pattern, in iwlagn_send_patterns() 1026 wowlan->patterns[i].pattern, in iwlagn_send_patterns() 1027 wowlan->patterns[i].pattern_len); in iwlagn_send_patterns() 1028 pattern_cmd->patterns[i].mask_size = mask_len; in iwlagn_send_patterns() 1029 pattern_cmd->patterns[i].pattern_size = in iwlagn_send_patterns() 1030 wowlan->patterns[i].pattern_len; in iwlagn_send_patterns()
|
D | commands.h | 3715 struct iwlagn_wowlan_pattern patterns[]; member
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | d3.c | 638 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1() 647 int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); in iwl_mvm_send_patterns_v1() 649 memcpy(&pattern_cmd->patterns[i].mask, in iwl_mvm_send_patterns_v1() 650 wowlan->patterns[i].mask, mask_len); in iwl_mvm_send_patterns_v1() 651 memcpy(&pattern_cmd->patterns[i].pattern, in iwl_mvm_send_patterns_v1() 652 wowlan->patterns[i].pattern, in iwl_mvm_send_patterns_v1() 653 wowlan->patterns[i].pattern_len); in iwl_mvm_send_patterns_v1() 654 pattern_cmd->patterns[i].mask_size = mask_len; in iwl_mvm_send_patterns_v1() 655 pattern_cmd->patterns[i].pattern_size = in iwl_mvm_send_patterns_v1() 656 wowlan->patterns[i].pattern_len; in iwl_mvm_send_patterns_v1() [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
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()
|
D | main.h | 1013 struct rtw_wow_pattern patterns[RTW_MAX_PATTERN_NUM]; member
|
/drivers/mtd/ubi/ |
D | io.c | 352 static uint8_t patterns[] = {0xa5, 0x5a, 0x0}; variable 368 patt_count = ARRAY_SIZE(patterns); in torture_peb() 391 memset(ubi->peb_buf, patterns[i], ubi->peb_size); in torture_peb() 396 memset(ubi->peb_buf, ~patterns[i], ubi->peb_size); in torture_peb() 401 err = ubi_check_pattern(ubi->peb_buf, patterns[i], in torture_peb() 405 patterns[i], pnum); in torture_peb()
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | core.c | 424 struct cfg80211_pkt_pattern *patterns = wow->patterns; in _rtl_add_wowlan_patterns() local 438 if (patterns[i].pattern_len < 0 || in _rtl_add_wowlan_patterns() 439 patterns[i].pattern_len > MAX_WOL_PATTERN_SIZE) { in _rtl_add_wowlan_patterns() 444 pattern_os = patterns[i].pattern; in _rtl_add_wowlan_patterns() 445 mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); in _rtl_add_wowlan_patterns() 446 mask_os = patterns[i].mask; in _rtl_add_wowlan_patterns() 449 patterns[i].pattern_len); in _rtl_add_wowlan_patterns() 509 for (j = 12; j < patterns[i].pattern_len; j++) { in _rtl_add_wowlan_patterns()
|
/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | d3.h | 207 struct iwl_wowlan_pattern_v1 patterns[]; member 337 struct iwl_wowlan_pattern_v2 patterns[]; member
|
/drivers/leds/ |
D | leds-lp5562.c | 366 ptn = chip->pdata->patterns + (mode - 1); in lp5562_run_predef_led_pattern() 411 struct lp55xx_predef_pattern *ptn = chip->pdata->patterns; in lp5562_store_pattern()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl_tcam.c | 113 const struct mlxsw_sp_acl_tcam_pattern *patterns; member 255 const struct mlxsw_sp_acl_tcam_pattern *patterns, in mlxsw_sp_acl_tcam_vgroup_add() argument 264 vgroup->patterns = patterns; in mlxsw_sp_acl_tcam_vgroup_add() 555 pattern = &vgroup->patterns[i]; in mlxsw_sp_acl_tcam_vgroup_use_patterns()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | Kconfig | 90 patterns (e.g. incoming arp requests).
|
/drivers/char/pcmcia/ |
D | synclink_cs.c | 3709 static unsigned char patterns[] = in register_test() local 3711 static unsigned int count = ARRAY_SIZE(patterns); in register_test() 3720 write_reg(info, XAD1, patterns[i]); in register_test() 3721 write_reg(info, XAD2, patterns[(i + 1) % count]); in register_test() 3722 if ((read_reg(info, XAD1) != patterns[i]) || in register_test() 3723 (read_reg(info, XAD2) != patterns[(i + 1) % count])) { in register_test()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | cfg80211.c | 3326 if (!mwifiex_is_pattern_supported(&wowlan->patterns[i], in mwifiex_set_wowlan_mef_entry() 3334 if (!wowlan->patterns[i].pkt_offset) { in mwifiex_set_wowlan_mef_entry() 3352 wowlan->patterns[i].pkt_offset; in mwifiex_set_wowlan_mef_entry() 3648 if (!mwifiex_is_pattern_supported(&crule->patterns[i], in mwifiex_fill_coalesce_rule_info() 3656 if (!crule->patterns[i].pkt_offset) { in mwifiex_fill_coalesce_rule_info() 3678 param->offset = crule->patterns[i].pkt_offset; in mwifiex_fill_coalesce_rule_info()
|
/drivers/tty/ |
D | synclink_gt.c | 4862 static unsigned short patterns[] = in register_test() local 4864 static unsigned int count = ARRAY_SIZE(patterns); in register_test() 4869 wr_reg16(info, TIR, patterns[i]); in register_test() 4870 wr_reg16(info, BDR, patterns[(i+1)%count]); in register_test() 4871 if ((rd_reg16(info, TIR) != patterns[i]) || in register_test() 4872 (rd_reg16(info, BDR) != patterns[(i+1)%count])) { in register_test()
|
/drivers/net/wireless/ath/ath6kl/ |
D | cfg80211.c | 1923 for (pos = 0; pos < wow->patterns[i].pattern_len; pos++) { in ath6kl_wow_usr() 1924 if (wow->patterns[i].mask[pos / 8] & (0x1 << (pos % 8))) in ath6kl_wow_usr() 1935 wow->patterns[i].pattern_len, in ath6kl_wow_usr() 1937 wow->patterns[i].pattern, mask); in ath6kl_wow_usr()
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | commands.c | 2686 if (wowl->n_patterns && wowl->patterns) { in qtnf_cmd_send_wowlan_set() 2691 wowl->patterns[count].pattern, in qtnf_cmd_send_wowlan_set() 2692 wowl->patterns[count].pattern_len); in qtnf_cmd_send_wowlan_set()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 379 static const u32 patterns[] = { in ice_reg_pattern_test() local 387 for (i = 0; i < ARRAY_SIZE(patterns); ++i) { in ice_reg_pattern_test() 388 u32 pattern = patterns[i] & mask; in ice_reg_pattern_test()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | cfg80211.c | 3876 if ((wowl->patterns) && (wowl->n_patterns)) { in brcmf_configure_wowl() 3880 (u8 *)wowl->patterns[i].pattern, in brcmf_configure_wowl() 3881 wowl->patterns[i].pattern_len, in brcmf_configure_wowl() 3882 (u8 *)wowl->patterns[i].mask, in brcmf_configure_wowl() 3883 wowl->patterns[i].pkt_offset); in brcmf_configure_wowl()
|
/drivers/mtd/nand/raw/ |
D | nand_base.c | 2404 pattern = &parser->patterns[i]; in nand_op_parser_exec_op() 2425 pattern = &parser->patterns[best_pattern]; in nand_op_parser_exec_op()
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76_connac_mcu.c | 2227 &wowlan->patterns[i]); in mt76_connac_mcu_set_suspend_iter()
|
/drivers/net/wireless/ti/wlcore/ |
D | main.c | 1583 ret = wl1271_validate_wowlan_pattern(&wow->patterns[i]); in wl1271_configure_wowlan() 1603 p = &wow->patterns[i]; in wl1271_configure_wowlan()
|