Lines Matching defs:vh
700 ldm_xvblk_handle(struct ldm_db *db, struct ldm_vblkhdr *vh, const u_char *p)
707 if (blk->group == vh->group)
711 blk->group = vh->group;
712 blk->size = size * vh->count + 16;
714 blk->map = 0xFF << vh->count;
717 if ((blk->map & (1 << vh->index)) != 0) {
722 memcpy(blk->data + size * vh->index + 16, p + 16, size);
723 blk->map |= 1 << vh->index;
1012 struct ldm_vblkhdr vh;
1043 vh.seq = be32dec(p + LDM_VBLK_SEQ_OFF);
1044 vh.group = be32dec(p + LDM_VBLK_GROUP_OFF);
1046 if (vh.seq == 0 || vh.group == 0)
1048 vh.index = be16dec(p + LDM_VBLK_INDEX_OFF);
1049 vh.count = be16dec(p + LDM_VBLK_COUNT_OFF);
1050 if (vh.count == 0 || vh.count > 4 ||
1051 vh.seq > db->dh.last_seq) {
1057 if (vh.count > 1) {
1058 error = ldm_xvblk_handle(db, &vh, p);