Lines Matching refs:header
39 struct code_header header; in hpi_dsp_code_open() local
53 if (firmware->size < sizeof(header)) { in hpi_dsp_code_open()
57 memcpy(&header, firmware->data, sizeof(header)); in hpi_dsp_code_open()
59 if ((header.type != 0x45444F43) || /* "CODE" */ in hpi_dsp_code_open()
60 (header.adapter != adapter) in hpi_dsp_code_open()
61 || (header.size != firmware->size)) { in hpi_dsp_code_open()
64 header.size, firmware->size); in hpi_dsp_code_open()
68 if (HPI_VER_MAJOR(header.version) != HPI_VER_MAJOR(HPI_VER)) { in hpi_dsp_code_open()
72 header.version, HPI_VER); in hpi_dsp_code_open()
76 if (header.version != HPI_VER) { in hpi_dsp_code_open()
79 header.version, HPI_VER); in hpi_dsp_code_open()
91 dsp_code->header = header; in hpi_dsp_code_open()
92 dsp_code->block_length = header.size / sizeof(u32); in hpi_dsp_code_open()
93 dsp_code->word_count = sizeof(header) / sizeof(u32); in hpi_dsp_code_open()