Lines Matching defs:hdr_size
59 u32 val, nvm_size, hdr_size;
74 hdr_size = sw->generation < 3 ? SZ_8K : SZ_16K;
76 nvm_size = (nvm_size - hdr_size) / 2;
92 unsigned int image_size, hdr_size;
102 hdr_size = (*(u32 *)buf) & 0xffffff;
103 if (hdr_size + INTEL_NVM_DEVID + 2 >= image_size)
107 if (!IS_ALIGNED(hdr_size, SZ_4K))
114 ds_size = *(u16 *)(buf + hdr_size);
125 device_id = *(u16 *)(buf + hdr_size + INTEL_NVM_DEVID);
130 nvm->buf_data_start = buf + hdr_size;
131 nvm->buf_data_size = image_size - hdr_size;
226 unsigned int image_size, hdr_size;
236 hdr_size = (*(u32 *)buf) & 0xffffff;
237 if (hdr_size + INTEL_NVM_DEVID + 2 >= image_size)
241 if (!IS_ALIGNED(hdr_size, SZ_4K))
248 ds_size = *(u16 *)(buf + hdr_size);
256 device = *(u16 *)(buf + hdr_size + INTEL_NVM_DEVID);
261 nvm->buf_data_start = buf + hdr_size;
262 nvm->buf_data_size = image_size - hdr_size;