Home
last modified time | relevance | path

Searched refs:pattern_cmd (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dlib.c997 struct iwlagn_wowlan_patterns_cmd *pattern_cmd; in iwlagn_send_patterns() local
1007 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwlagn_send_patterns()
1009 pattern_cmd = kmalloc(cmd.len[0], GFP_KERNEL); in iwlagn_send_patterns()
1010 if (!pattern_cmd) in iwlagn_send_patterns()
1013 pattern_cmd->n_patterns = cpu_to_le32(wowlan->n_patterns); in iwlagn_send_patterns()
1018 memcpy(&pattern_cmd->patterns[i].mask, in iwlagn_send_patterns()
1020 memcpy(&pattern_cmd->patterns[i].pattern, 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()
1028 cmd.data[0] = pattern_cmd; in iwlagn_send_patterns()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c626 struct iwl_wowlan_patterns_cmd_v1 *pattern_cmd; in iwl_mvm_send_patterns_v1() local
636 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
638 pattern_cmd = kmalloc(cmd.len[0], GFP_KERNEL); in iwl_mvm_send_patterns_v1()
639 if (!pattern_cmd) in iwl_mvm_send_patterns_v1()
642 pattern_cmd->n_patterns = cpu_to_le32(wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
647 memcpy(&pattern_cmd->patterns[i].mask, in iwl_mvm_send_patterns_v1()
649 memcpy(&pattern_cmd->patterns[i].pattern, in iwl_mvm_send_patterns_v1()
652 pattern_cmd->patterns[i].mask_size = mask_len; in iwl_mvm_send_patterns_v1()
653 pattern_cmd->patterns[i].pattern_size = in iwl_mvm_send_patterns_v1()
657 cmd.data[0] = pattern_cmd; in iwl_mvm_send_patterns_v1()
[all …]