Lines Matching refs:header
343 const struct wmfw_header *header; in wm_adsp_load() local
371 pos = sizeof(*header) + sizeof(*adsp1_sizes) + sizeof(*footer); in wm_adsp_load()
378 header = (void*)&firmware->data[0]; in wm_adsp_load()
380 if (memcmp(&header->magic[0], "WMFW", 4) != 0) { in wm_adsp_load()
385 if (header->ver != 0) { in wm_adsp_load()
387 file, header->ver); in wm_adsp_load()
391 if (header->core != dsp->type) { in wm_adsp_load()
393 file, header->core, dsp->type); in wm_adsp_load()
399 pos = sizeof(*header) + sizeof(*adsp1_sizes) + sizeof(*footer); in wm_adsp_load()
400 adsp1_sizes = (void *)&(header[1]); in wm_adsp_load()
411 pos = sizeof(*header) + sizeof(*adsp2_sizes) + sizeof(*footer); in wm_adsp_load()
412 adsp2_sizes = (void *)&(header[1]); in wm_adsp_load()
428 if (le32_to_cpu(header->len) != sizeof(*header) + in wm_adsp_load()
431 file, le32_to_cpu(header->len)); in wm_adsp_load()