Lines Matching refs:dump_data
673 struct ath10k_dump_file_data *dump_data; in ath10k_build_dump_file() local
675 int hdr_len = sizeof(*dump_data); in ath10k_build_dump_file()
699 dump_data = (struct ath10k_dump_file_data *)(buf); in ath10k_build_dump_file()
700 strlcpy(dump_data->df_magic, "ATH10K-FW-DUMP", in ath10k_build_dump_file()
701 sizeof(dump_data->df_magic)); in ath10k_build_dump_file()
702 dump_data->len = cpu_to_le32(len); in ath10k_build_dump_file()
704 dump_data->version = cpu_to_le32(ATH10K_FW_CRASH_DUMP_VERSION); in ath10k_build_dump_file()
706 memcpy(dump_data->uuid, &crash_data->uuid, sizeof(dump_data->uuid)); in ath10k_build_dump_file()
707 dump_data->chip_id = cpu_to_le32(ar->chip_id); in ath10k_build_dump_file()
708 dump_data->bus_type = cpu_to_le32(0); in ath10k_build_dump_file()
709 dump_data->target_version = cpu_to_le32(ar->target_version); in ath10k_build_dump_file()
710 dump_data->fw_version_major = cpu_to_le32(ar->fw_version_major); in ath10k_build_dump_file()
711 dump_data->fw_version_minor = cpu_to_le32(ar->fw_version_minor); in ath10k_build_dump_file()
712 dump_data->fw_version_release = cpu_to_le32(ar->fw_version_release); in ath10k_build_dump_file()
713 dump_data->fw_version_build = cpu_to_le32(ar->fw_version_build); in ath10k_build_dump_file()
714 dump_data->phy_capability = cpu_to_le32(ar->phy_capability); in ath10k_build_dump_file()
715 dump_data->hw_min_tx_power = cpu_to_le32(ar->hw_min_tx_power); in ath10k_build_dump_file()
716 dump_data->hw_max_tx_power = cpu_to_le32(ar->hw_max_tx_power); in ath10k_build_dump_file()
717 dump_data->ht_cap_info = cpu_to_le32(ar->ht_cap_info); in ath10k_build_dump_file()
718 dump_data->vht_cap_info = cpu_to_le32(ar->vht_cap_info); in ath10k_build_dump_file()
719 dump_data->num_rf_chains = cpu_to_le32(ar->num_rf_chains); in ath10k_build_dump_file()
721 strlcpy(dump_data->fw_ver, ar->hw->wiphy->fw_version, in ath10k_build_dump_file()
722 sizeof(dump_data->fw_ver)); in ath10k_build_dump_file()
724 dump_data->kernel_ver_code = 0; in ath10k_build_dump_file()
725 strlcpy(dump_data->kernel_ver, init_utsname()->release, in ath10k_build_dump_file()
726 sizeof(dump_data->kernel_ver)); in ath10k_build_dump_file()
728 dump_data->tv_sec = cpu_to_le64(crash_data->timestamp.tv_sec); in ath10k_build_dump_file()
729 dump_data->tv_nsec = cpu_to_le64(crash_data->timestamp.tv_nsec); in ath10k_build_dump_file()
743 return dump_data; in ath10k_build_dump_file()