Lines Matching refs:ihdr
898 hdr = &index->ihdr; in indx_new()
917 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new()
1056 hdr = &root->ihdr; in indx_find()
1091 e = hdr_find_e(indx, &node->index->ihdr, key, key_len, ctx, in indx_find()
1118 e = hdr_first_de(&root->ihdr); in indx_find_sort()
1129 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_sort()
1140 e = hdr_next_de(&n->index->ihdr, e); in indx_find_sort()
1168 e = hdr_first_de(&n->index->ihdr); in indx_find_sort()
1232 e = hdr_first_de(&root->ihdr); in indx_find_raw()
1259 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_raw()
1275 e = hdr_next_de(&n->index->ihdr, e2); in indx_find_raw()
1311 e = hdr_first_de(&n->index->ihdr); in indx_find_raw()
1321 *off = PtrOffset(&root->ihdr, e); in indx_find_raw()
1325 record_size + PtrOffset(&n->index->ihdr, e); in indx_find_raw()
1499 hdr = &root->ihdr; in indx_insert_into_root()
1582 cpu_to_le32(new_root_size - offsetof(struct INDEX_ROOT, ihdr)); in indx_insert_into_root()
1623 hdr = &n->index->ihdr; in indx_insert_into_root()
1691 struct INDEX_HDR *hdr1 = &n1->index->ihdr; in indx_insert_into_buffer()
1750 hdr2 = &n2->index->ihdr; in indx_insert_into_buffer()
1893 const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr; in indx_find_buffer()
2006 hdr = &n->index->ihdr; in indx_free_children()
2066 e = hdr_first_de(&n->index->ihdr); in indx_get_entry_to_replace()
2088 te = hdr_first_de(&n->index->ihdr); in indx_get_entry_to_replace()
2120 e = hdr_delete_de(&ib->ihdr, te); in indx_get_entry_to_replace()
2189 hdr = &ib->ihdr; in indx_delete_entry()
2191 hdr = &root->ihdr; in indx_delete_entry()
2284 hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr; in indx_delete_entry()
2333 hdr = &ib->ihdr; in indx_delete_entry()
2341 hdr = &root->ihdr; in indx_delete_entry()
2349 if (hdr != &root->ihdr || !de_is_last(e)) { in indx_delete_entry()
2413 if (hdr == &root->ihdr) { in indx_delete_entry()
2501 hdr = &root->ihdr; in indx_delete_entry()
2504 new_root_size - offsetof(struct INDEX_ROOT, ihdr)); in indx_delete_entry()