Lines Matching refs:last_ptr
2296 tdb_off_t last_ptr, i; in remove_from_freelist() local
2299 last_ptr = FREELIST_TOP; in remove_from_freelist()
2300 while (tdb_ofs_read(tdb, last_ptr, &i) != -1 && i != 0) { in remove_from_freelist()
2303 return tdb_ofs_write(tdb, last_ptr, &next); in remove_from_freelist()
2306 last_ptr = i; in remove_from_freelist()
2430 struct list_struct *rec, tdb_off_t last_ptr) in tdb_allocate_ofs() argument
2453 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) { in tdb_allocate_ofs()
2492 tdb_off_t rec_ptr, last_ptr, newrec_ptr; in tdb_allocate() local
2494 tdb_off_t rec_ptr, last_ptr; in tdb_allocate() member
2505 last_ptr = FREELIST_TOP; in tdb_allocate()
2512 bestfit.last_ptr = 0; in tdb_allocate()
2530 bestfit.last_ptr = last_ptr; in tdb_allocate()
2541 last_ptr = rec_ptr; in tdb_allocate()
2550 newrec_ptr = tdb_allocate_ofs(tdb, length, bestfit.rec_ptr, rec, bestfit.last_ptr); in tdb_allocate()
2588 tdb_off_t rec_ptr, last_ptr; in tdb_validate_freelist() local
2604 last_ptr = FREELIST_TOP; in tdb_validate_freelist()
2607 if (seen_insert(mem_tdb, last_ptr) == -1) { in tdb_validate_freelist()
2633 last_ptr = rec_ptr; in tdb_validate_freelist()
3274 tdb_off_t last_ptr, i; in tdb_do_delete() local
3290 for (last_ptr = 0; i != rec_ptr; last_ptr = i, i = lastrec.next) in tdb_do_delete()
3295 if (last_ptr == 0) in tdb_do_delete()
3296 last_ptr = TDB_HASH_TOP(rec->full_hash); in tdb_do_delete()
3297 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) in tdb_do_delete()