Lines Matching refs:ihdr
641 if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) || in index_buf_check()
652 return index_hdr_check(&ib->ihdr, in index_buf_check()
653 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in index_buf_check()
881 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) || in indx_init()
882 !index_hdr_check(&root->ihdr, in indx_init()
883 t32 - offsetof(struct INDEX_ROOT, ihdr))) { in indx_init()
969 hdr = &index->ihdr; in indx_new()
988 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new()
1014 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr.used) > in indx_get_root()
1109 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) > in indx_read()
1169 e = hdr_find_e(indx, &root->ihdr, key, key_len, ctx, diff); in indx_find()
1188 e = hdr_find_e(indx, &node->index->ihdr, key, key_len, ctx, in indx_find()
1214 e = hdr_first_de(&root->ihdr); in indx_find_sort()
1225 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_sort()
1236 e = hdr_next_de(&n->index->ihdr, e); in indx_find_sort()
1264 e = hdr_first_de(&n->index->ihdr); in indx_find_sort()
1328 e = hdr_first_de(&root->ihdr); in indx_find_raw()
1355 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_raw()
1371 e = hdr_next_de(&n->index->ihdr, e2); in indx_find_raw()
1407 e = hdr_first_de(&n->index->ihdr); in indx_find_raw()
1417 *off = PtrOffset(&root->ihdr, e); in indx_find_raw()
1421 record_size + PtrOffset(&n->index->ihdr, e); in indx_find_raw()
1605 hdr = &root->ihdr; in indx_insert_into_root()
1688 cpu_to_le32(new_root_size - offsetof(struct INDEX_ROOT, ihdr)); in indx_insert_into_root()
1729 hdr = &n->index->ihdr; in indx_insert_into_root()
1797 struct INDEX_HDR *hdr1 = &n1->index->ihdr; in indx_insert_into_buffer()
1864 hdr2 = &n2->index->ihdr; in indx_insert_into_buffer()
2009 const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr; in indx_find_buffer()
2125 hdr = &n->index->ihdr; in indx_free_children()
2185 e = hdr_first_de(&n->index->ihdr); in indx_get_entry_to_replace()
2207 te = hdr_first_de(&n->index->ihdr); in indx_get_entry_to_replace()
2239 e = hdr_delete_de(&ib->ihdr, te); in indx_get_entry_to_replace()
2309 hdr = &ib->ihdr; in indx_delete_entry()
2311 hdr = &root->ihdr; in indx_delete_entry()
2404 hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr; in indx_delete_entry()
2453 hdr = &ib->ihdr; in indx_delete_entry()
2461 hdr = &root->ihdr; in indx_delete_entry()
2469 if (hdr != &root->ihdr || !de_is_last(e)) { in indx_delete_entry()
2533 if (hdr == &root->ihdr) { in indx_delete_entry()
2624 hdr = &root->ihdr; in indx_delete_entry()
2627 new_root_size - offsetof(struct INDEX_ROOT, ihdr)); in indx_delete_entry()