Lines Matching refs:rkimage_hdr

110         RKIMAGE_HDR rkimage_hdr;  in RK_ota_set_partition()  local
111 if ( analyticImage(_url, &rkimage_hdr) != 0) { in RK_ota_set_partition()
119 for (int j = 0; j < rkimage_hdr.item_count; j++) { in RK_ota_set_partition()
120 if (strcmp(rkimage_hdr.item[j].name, update_cmd[i].name) == 0) { in RK_ota_set_partition()
122 if (rkimage_hdr.item[j].file[50] == 'H') { in RK_ota_set_partition()
123 update_cmd[i].offset = *((DWORD *)(&rkimage_hdr.item[j].file[51])); in RK_ota_set_partition()
125 update_cmd[i].offset += rkimage_hdr.item[j].offset; in RK_ota_set_partition()
128 update_cmd[i].offset = rkimage_hdr.item[j].offset; in RK_ota_set_partition()
131 if (rkimage_hdr.item[j].file[55] == 'H') { in RK_ota_set_partition()
132 update_cmd[i].size = *((DWORD *)(&rkimage_hdr.item[j].file[56])); in RK_ota_set_partition()
134 update_cmd[i].size += rkimage_hdr.item[j].size; in RK_ota_set_partition()
137 update_cmd[i].size = rkimage_hdr.item[j].size; in RK_ota_set_partition()
141 … update_cmd[i].flash_offset = (long long)rkimage_hdr.item[j].flash_offset * SECTOR_SIZE; in RK_ota_set_partition()
160 for (int j = 0; j < rkimage_hdr.item_count; j++) { in RK_ota_set_partition()
161 if (strcmp(rkimage_hdr.item[j].name, update_cmd[i].name) == 0) { in RK_ota_set_partition()
163 if (rkimage_hdr.item[j].file[50] == 'H') { in RK_ota_set_partition()
164 … update_cmd[i].offset = *((DWORD *)(&rkimage_hdr.item[j].file[51])); in RK_ota_set_partition()
166 update_cmd[i].offset += rkimage_hdr.item[j].offset; in RK_ota_set_partition()
169 update_cmd[i].offset = rkimage_hdr.item[j].offset; in RK_ota_set_partition()
172 if (rkimage_hdr.item[j].file[55] == 'H') { in RK_ota_set_partition()
173 … update_cmd[i].size = *((DWORD *)(&rkimage_hdr.item[j].file[56])); in RK_ota_set_partition()
175 update_cmd[i].size += rkimage_hdr.item[j].size; in RK_ota_set_partition()
178 update_cmd[i].size = rkimage_hdr.item[j].size; in RK_ota_set_partition()