Lines Matching refs:header
1057 const struct wmfw_header *header; in wm_adsp_load() local
1085 pos = sizeof(*header) + sizeof(*adsp1_sizes) + sizeof(*footer); in wm_adsp_load()
1092 header = (void*)&firmware->data[0]; in wm_adsp_load()
1094 if (memcmp(&header->magic[0], "WMFW", 4) != 0) { in wm_adsp_load()
1099 switch (header->ver) { in wm_adsp_load()
1102 file, header->ver); in wm_adsp_load()
1109 file, header->ver); in wm_adsp_load()
1113 adsp_info(dsp, "Firmware version: %d\n", header->ver); in wm_adsp_load()
1114 dsp->fw_ver = header->ver; in wm_adsp_load()
1116 if (header->core != dsp->type) { in wm_adsp_load()
1118 file, header->core, dsp->type); in wm_adsp_load()
1124 pos = sizeof(*header) + sizeof(*adsp1_sizes) + sizeof(*footer); in wm_adsp_load()
1125 adsp1_sizes = (void *)&(header[1]); in wm_adsp_load()
1136 pos = sizeof(*header) + sizeof(*adsp2_sizes) + sizeof(*footer); in wm_adsp_load()
1137 adsp2_sizes = (void *)&(header[1]); in wm_adsp_load()
1153 if (le32_to_cpu(header->len) != sizeof(*header) + in wm_adsp_load()
1156 file, le32_to_cpu(header->len)); in wm_adsp_load()