Lines Matching refs:pattern_cmd

640 	struct iwl_wowlan_patterns_cmd_v1 *pattern_cmd;  in iwl_mvm_send_patterns_v1()  local
650 cmd.len[0] = struct_size(pattern_cmd, patterns, wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
652 pattern_cmd = kmalloc(cmd.len[0], GFP_KERNEL); in iwl_mvm_send_patterns_v1()
653 if (!pattern_cmd) in iwl_mvm_send_patterns_v1()
656 pattern_cmd->n_patterns = cpu_to_le32(wowlan->n_patterns); in iwl_mvm_send_patterns_v1()
661 memcpy(&pattern_cmd->patterns[i].mask, in iwl_mvm_send_patterns_v1()
663 memcpy(&pattern_cmd->patterns[i].pattern, 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()
671 cmd.data[0] = pattern_cmd; in iwl_mvm_send_patterns_v1()
673 kfree(pattern_cmd); in iwl_mvm_send_patterns_v1()
681 struct iwl_wowlan_patterns_cmd *pattern_cmd; in iwl_mvm_send_patterns() local
693 cmd.len[0] = sizeof(*pattern_cmd) + in iwl_mvm_send_patterns()
696 pattern_cmd = kzalloc(cmd.len[0], GFP_KERNEL); in iwl_mvm_send_patterns()
697 if (!pattern_cmd) in iwl_mvm_send_patterns()
700 pattern_cmd->n_patterns = wowlan->n_patterns; in iwl_mvm_send_patterns()
702 pattern_cmd->sta_id = mvm_link->ap_sta_id; in iwl_mvm_send_patterns()
707 pattern_cmd->patterns[i].pattern_type = in iwl_mvm_send_patterns()
710 memcpy(&pattern_cmd->patterns[i].u.bitmask.mask, in iwl_mvm_send_patterns()
712 memcpy(&pattern_cmd->patterns[i].u.bitmask.pattern, in iwl_mvm_send_patterns()
715 pattern_cmd->patterns[i].u.bitmask.mask_size = mask_len; in iwl_mvm_send_patterns()
716 pattern_cmd->patterns[i].u.bitmask.pattern_size = in iwl_mvm_send_patterns()
720 cmd.data[0] = pattern_cmd; in iwl_mvm_send_patterns()
722 kfree(pattern_cmd); in iwl_mvm_send_patterns()