Lines Matching defs:blk
34 const struct blk *blk;
113 p->blks[i].blk = &bset->blks[i];
139 * Returns the blk or NULL if no matching block was found.
141 static const struct blk *
202 if (fhash != ent->blk->chksum_short ||
203 (size_t)osz != ent->blk->len)
208 path, (intmax_t)st->offs, ent->blk->idx,
209 (intmax_t)ent->blk->offs, ent->blk->len);
216 if (memcmp(md, ent->blk->chksum_long, blks->csum))
220 return ent->blk;
255 const struct blk *blk;
278 blk = blk_find(sess, st, blks, path, i == 0);
279 if (blk == NULL)
287 blk->len, blk->idx);
288 tok = -(blk->idx + 1);
290 hash_file_buf(&st->ctx, st->map + last, sz + blk->len);
302 st->total += blk->len;
303 st->offs += blk->len;
304 st->hint = blk->idx + 1;
360 struct blk *b;
397 s->blks = calloc(s->blksz, sizeof(struct blk));