Lines Matching refs:pattern_cmd

626 	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()
659 kfree(pattern_cmd); in iwl_mvm_send_patterns_v1()
668 struct iwl_wowlan_patterns_cmd *pattern_cmd; in iwl_mvm_send_patterns() local
680 cmd.len[0] = sizeof(*pattern_cmd) + in iwl_mvm_send_patterns()
683 pattern_cmd = kzalloc(cmd.len[0], GFP_KERNEL); in iwl_mvm_send_patterns()
684 if (!pattern_cmd) in iwl_mvm_send_patterns()
687 pattern_cmd->n_patterns = wowlan->n_patterns; in iwl_mvm_send_patterns()
689 pattern_cmd->sta_id = mvmvif->ap_sta_id; in iwl_mvm_send_patterns()
694 pattern_cmd->patterns[i].pattern_type = in iwl_mvm_send_patterns()
697 memcpy(&pattern_cmd->patterns[i].u.bitmask.mask, in iwl_mvm_send_patterns()
699 memcpy(&pattern_cmd->patterns[i].u.bitmask.pattern, in iwl_mvm_send_patterns()
702 pattern_cmd->patterns[i].u.bitmask.mask_size = mask_len; in iwl_mvm_send_patterns()
703 pattern_cmd->patterns[i].u.bitmask.pattern_size = in iwl_mvm_send_patterns()
707 cmd.data[0] = pattern_cmd; in iwl_mvm_send_patterns()
709 kfree(pattern_cmd); in iwl_mvm_send_patterns()