• Home
  • Raw
  • Download

Lines Matching refs:ihdr

640 	if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) ||  in index_buf_check()
651 return index_hdr_check(&ib->ihdr, in index_buf_check()
652 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in index_buf_check()
882 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) || in indx_init()
883 !index_hdr_check(&root->ihdr, in indx_init()
884 t32 - offsetof(struct INDEX_ROOT, ihdr))) { in indx_init()
970 hdr = &index->ihdr; in indx_new()
989 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new()
1100 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) > in indx_read()
1160 e = hdr_find_e(indx, &root->ihdr, key, key_len, ctx, diff); in indx_find()
1177 e = hdr_find_e(indx, &node->index->ihdr, key, key_len, ctx, in indx_find()
1203 e = hdr_first_de(&root->ihdr); in indx_find_sort()
1214 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_sort()
1225 e = hdr_next_de(&n->index->ihdr, e); in indx_find_sort()
1253 e = hdr_first_de(&n->index->ihdr); in indx_find_sort()
1317 e = hdr_first_de(&root->ihdr); in indx_find_raw()
1344 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_raw()
1360 e = hdr_next_de(&n->index->ihdr, e2); in indx_find_raw()
1396 e = hdr_first_de(&n->index->ihdr); in indx_find_raw()
1406 *off = PtrOffset(&root->ihdr, e); in indx_find_raw()
1410 record_size + PtrOffset(&n->index->ihdr, e); in indx_find_raw()
1584 hdr = &root->ihdr; in indx_insert_into_root()
1667 cpu_to_le32(new_root_size - offsetof(struct INDEX_ROOT, ihdr)); in indx_insert_into_root()
1708 hdr = &n->index->ihdr; in indx_insert_into_root()
1776 struct INDEX_HDR *hdr1 = &n1->index->ihdr; in indx_insert_into_buffer()
1835 hdr2 = &n2->index->ihdr; in indx_insert_into_buffer()
1978 const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr; in indx_find_buffer()
2091 hdr = &n->index->ihdr; in indx_free_children()
2151 e = hdr_first_de(&n->index->ihdr); in indx_get_entry_to_replace()
2173 te = hdr_first_de(&n->index->ihdr); in indx_get_entry_to_replace()
2205 e = hdr_delete_de(&ib->ihdr, te); in indx_get_entry_to_replace()
2274 hdr = &ib->ihdr; in indx_delete_entry()
2276 hdr = &root->ihdr; in indx_delete_entry()
2369 hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr; in indx_delete_entry()
2418 hdr = &ib->ihdr; in indx_delete_entry()
2426 hdr = &root->ihdr; in indx_delete_entry()
2434 if (hdr != &root->ihdr || !de_is_last(e)) { in indx_delete_entry()
2498 if (hdr == &root->ihdr) { in indx_delete_entry()
2586 hdr = &root->ihdr; in indx_delete_entry()
2589 new_root_size - offsetof(struct INDEX_ROOT, ihdr)); in indx_delete_entry()