Lines Matching refs:fw_image
26 struct fw_image_st *fw_image = NULL; in check_image_valid() local
30 fw_image = (struct fw_image_st *)buf; in check_image_valid()
32 if (fw_image->fw_magic != HINIC_MAGIC_NUM) { in check_image_valid()
34 fw_image->fw_magic); in check_image_valid()
38 if (fw_image->fw_info.fw_section_cnt > MAX_FW_TYPE_NUM) { in check_image_valid()
40 fw_image->fw_info.fw_section_cnt); in check_image_valid()
44 for (i = 0; i < fw_image->fw_info.fw_section_cnt; i++) { in check_image_valid()
45 len += fw_image->fw_section_info[i].fw_section_len; in check_image_valid()
46 host_image->image_section_info[i] = fw_image->fw_section_info[i]; in check_image_valid()
49 if (len != fw_image->fw_len || in check_image_valid()
50 (fw_image->fw_len + UPDATEFW_IMAGE_HEAD_SIZE) != image_size) { in check_image_valid()
55 host_image->image_info.up_total_len = fw_image->fw_len; in check_image_valid()
56 host_image->image_info.fw_version = fw_image->fw_version; in check_image_valid()
57 host_image->section_type_num = fw_image->fw_info.fw_section_cnt; in check_image_valid()
58 host_image->device_id = fw_image->device_id; in check_image_valid()