Lines Matching refs:ihdr

641 	if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) ||
652 return index_hdr_check(&ib->ihdr,
653 bytes - offsetof(struct INDEX_BUFFER, ihdr));
881 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) ||
882 !index_hdr_check(&root->ihdr,
883 t32 - offsetof(struct INDEX_ROOT, ihdr))) {
969 hdr = &index->ihdr;
988 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr));
1014 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr.used) >
1109 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) >
1169 e = hdr_find_e(indx, &root->ihdr, key, key_len, ctx, diff);
1188 e = hdr_find_e(indx, &node->index->ihdr, key, key_len, ctx,
1214 e = hdr_first_de(&root->ihdr);
1225 e = hdr_next_de(&root->ihdr, fnd->root_de);
1236 e = hdr_next_de(&n->index->ihdr, e);
1264 e = hdr_first_de(&n->index->ihdr);
1328 e = hdr_first_de(&root->ihdr);
1355 e = hdr_next_de(&root->ihdr, fnd->root_de);
1371 e = hdr_next_de(&n->index->ihdr, e2);
1407 e = hdr_first_de(&n->index->ihdr);
1417 *off = PtrOffset(&root->ihdr, e);
1421 record_size + PtrOffset(&n->index->ihdr, e);
1598 hdr = &root->ihdr;
1681 cpu_to_le32(new_root_size - offsetof(struct INDEX_ROOT, ihdr));
1722 hdr = &n->index->ihdr;
1790 struct INDEX_HDR *hdr1 = &n1->index->ihdr;
1857 hdr2 = &n2->index->ihdr;
2002 const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr;
2118 hdr = &n->index->ihdr;
2178 e = hdr_first_de(&n->index->ihdr);
2200 te = hdr_first_de(&n->index->ihdr);
2232 e = hdr_delete_de(&ib->ihdr, te);
2302 hdr = &ib->ihdr;
2304 hdr = &root->ihdr;
2397 hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr;
2446 hdr = &ib->ihdr;
2454 hdr = &root->ihdr;
2462 if (hdr != &root->ihdr || !de_is_last(e)) {
2526 if (hdr == &root->ihdr) {
2617 hdr = &root->ihdr;
2620 new_root_size - offsetof(struct INDEX_ROOT, ihdr));