Home | History | Annotate | Download | only in updater

Lines Matching defs:BLOCKSIZE

38 #define BLOCKSIZE 4096
167 rss->p_remain = (rss->tgt->pos[rss->p_block*2+1] - rss->tgt->pos[rss->p_block*2]) * BLOCKSIZE;
168 check_lseek(rss->fd, (off64_t)rss->tgt->pos[rss->p_block*2] * BLOCKSIZE, SEEK_SET);
270 allocate(src->size * BLOCKSIZE, buffer, buffer_alloc);
274 check_lseek(fd, (off64_t)src->pos[i*2] * BLOCKSIZE, SEEK_SET);
275 size_t sz = (src->pos[i*2+1] - src->pos[i*2]) * BLOCKSIZE;
294 memmove(dest + (locs->pos[i*2] * BLOCKSIZE), source + (start * BLOCKSIZE),
295 blocks * BLOCKSIZE);
331 allocate(*src_blocks * BLOCKSIZE, buffer, buffer_alloc);
342 check_lseek(fd, (off64_t)src->pos[i*2] * BLOCKSIZE, SEEK_SET);
343 size_t sz = (src->pos[i*2+1] - src->pos[i*2]) * BLOCKSIZE;
584 check_lseek(fd, (off64_t)tgt->pos[i*2] * BLOCKSIZE, SEEK_SET);
585 size_t sz = (tgt->pos[i*2+1] - tgt->pos[i*2]) * BLOCKSIZE;
615 allocate(BLOCKSIZE, &buffer, &buffer_alloc);
616 memset(buffer, 0, BLOCKSIZE);
618 check_lseek(fd, (off64_t)tgt->pos[i*2] * BLOCKSIZE, SEEK_SET);
620 writeblock(fd, buffer, BLOCKSIZE);
642 rss.p_remain = (tgt->pos[1] - tgt->pos[0]) * BLOCKSIZE;
643 check_lseek(fd, (off64_t)tgt->pos[0] * BLOCKSIZE, SEEK_SET);
687 rss.p_remain = (tgt->pos[1] - tgt->pos[0]) * BLOCKSIZE;
688 check_lseek(fd, (off64_t)tgt->pos[0] * BLOCKSIZE, SEEK_SET);
691 ApplyImagePatch(buffer, src_blocks * BLOCKSIZE,
695 ApplyBSDiffPatch(buffer, src_blocks * BLOCKSIZE,
721 range[0] = tgt->pos[i*2] * (uint64_t)BLOCKSIZE;
723 range[1] = (tgt->pos[i*2+1] - tgt->pos[i*2]) * (uint64_t)BLOCKSIZE;
780 uint8_t buffer[BLOCKSIZE];
787 check_lseek(fd, (off64_t)rs->pos[i*2] * BLOCKSIZE, SEEK_SET);
789 readblock(fd, buffer, BLOCKSIZE);
790 SHA_update(&ctx, buffer, BLOCKSIZE);