Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 9 of 9) sorted by relevance

/bootable/recovery/applypatch/
Dimgpatch.c44 ssize_t pos = 12; in ApplyImagePatch() local
64 if (pos + 4 > patch->size) { in ApplyImagePatch()
68 int type = Read4(patch->data + pos); in ApplyImagePatch()
69 pos += 4; in ApplyImagePatch()
72 char* normal_header = patch->data + pos; in ApplyImagePatch()
73 pos += 24; in ApplyImagePatch()
74 if (pos > patch->size) { in ApplyImagePatch()
86 char* raw_header = patch->data + pos; in ApplyImagePatch()
87 pos += 4; in ApplyImagePatch()
88 if (pos > patch->size) { in ApplyImagePatch()
[all …]
Dimgdiff.c301 int pos = 0; in ReadZip() local
304 while (pos < st.st_size) { in ReadZip()
305 if (nextentry < entrycount && pos == temp_entries[nextentry].data_offset) { in ReadZip()
307 curr->start = pos; in ReadZip()
309 curr->deflate_data = img + pos; in ReadZip()
337 pos += curr->deflate_len; in ReadZip()
348 curr->start = pos; in ReadZip()
350 curr->len = temp_entries[nextentry].data_offset - pos; in ReadZip()
352 curr->len = st.st_size - pos; in ReadZip()
354 curr->data = img + pos; in ReadZip()
[all …]
Dbsdiff.c170 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) in search() argument
179 *pos=I[st]; in search()
182 *pos=I[en]; in search()
189 return search(I,old,oldsize,new,newsize,x,en,pos); in search()
191 return search(I,old,oldsize,new,newsize,st,x,pos); in search()
229 off_t scan,pos,len; in bsdiff() local
288 0,oldsize,&pos); in bsdiff()
314 for(i=1;(scan>=lastscan+i)&&(pos>=i);i++) { in bsdiff()
315 if(old[pos-i]==new[scan-i]) s++; in bsdiff()
327 old[pos-lenb+i]) s--; in bsdiff()
[all …]
Dapplypatch.c644 ssize_t pos; member
649 if (msi->size - msi->pos < len) { in MemorySink()
652 memcpy(msi->buffer + msi->pos, data, len); in MemorySink()
653 msi->pos += len; in MemorySink()
936 msi.pos = 0; in GenerateTarget()
1016 if (WriteToPartition(msi.buffer, msi.pos, target_filename) != 0) { in GenerateTarget()
/bootable/recovery/mtdutils/
Dmtdutils.c290 loff_t pos = TEMP_FAILURE_RETRY(lseek64(fd, 0, SEEK_CUR)); in read_block() local
291 if (pos == -1) { in read_block()
299 while (pos + size <= (int) partition->size) { in read_block()
300 if (TEMP_FAILURE_RETRY(lseek64(fd, pos, SEEK_SET)) != pos || in read_block()
303 pos, strerror(errno)); in read_block()
310 after.failed - before.failed, pos); in read_block()
313 } else if ((mgbb = ioctl(fd, MEMGETBADBLOCK, &pos))) { in read_block()
316 mgbb, pos, strerror(errno)); in read_block()
321 pos += partition->erase_size; in read_block()
397 static void add_bad_block_offset(MtdWriteContext *ctx, off_t pos) { in add_bad_block_offset() argument
[all …]
/bootable/recovery/tools/ota/
Dadd-property-tag.c46 char *pos = strstr(line, tag); in remove_tag() local
47 if (pos == NULL) return 0; in remove_tag()
50 int num = strtoul(pos + strlen(tag), &end, 10); in remove_tag()
51 strcpy(pos, end); in remove_tag()
/bootable/recovery/updater/
Dblockimg.c61 int pos[0]; member
79 out->pos[i] = strtol(strtok_r(NULL, ",", &save), NULL, 0); in parse_range()
81 out->size += out->pos[i]; in parse_range()
83 out->size -= out->pos[i]; in parse_range()
98 r1_0 = r1->pos[i * 2]; in range_overlaps()
99 r1_1 = r1->pos[i * 2 + 1]; in range_overlaps()
102 r2_0 = r2->pos[j * 2]; in range_overlaps()
103 r2_1 = r2->pos[j * 2 + 1]; in range_overlaps()
206 rss->p_remain = (rss->tgt->pos[rss->p_block * 2 + 1] - in RangeSinkWrite()
207 rss->tgt->pos[rss->p_block * 2]) * BLOCKSIZE; in RangeSinkWrite()
[all …]
/bootable/recovery/
Dscreen_ui.cpp154 int pos = (int) (p * width); in draw_progress_locked() local
158 if (pos > 0) { in draw_progress_locked()
159 gr_blit(progressBarFill, width-pos, 0, pos, height, dx+width-pos, dy); in draw_progress_locked()
161 if (pos < width-1) { in draw_progress_locked()
162 gr_blit(progressBarEmpty, 0, 0, width-pos, height, dx, dy); in draw_progress_locked()
166 if (pos > 0) { in draw_progress_locked()
167 gr_blit(progressBarFill, 0, 0, pos, height, dx, dy); in draw_progress_locked()
169 if (pos < width-1) { in draw_progress_locked()
170 gr_blit(progressBarEmpty, pos, 0, width-pos, height, dx+pos, dy); in draw_progress_locked()
/bootable/recovery/uncrypt/
Duncrypt.cpp219 size_t pos = 0; in produce_block_map() local
237 while (pos < sb.st_size) { in produce_block_map()
239 int progress = static_cast<int>(100 * (double(pos) / double(sb.st_size))); in produce_block_map()
267 while (so_far < sb.st_blksize && pos < sb.st_size) { in produce_block_map()
275 pos += this_read; in produce_block_map()
281 pos += sb.st_blksize; in produce_block_map()