Lines Matching refs:last_ptr
2294 tdb_off_t last_ptr, i; in remove_from_freelist() local
2297 last_ptr = FREELIST_TOP; in remove_from_freelist()
2298 while (tdb_ofs_read(tdb, last_ptr, &i) != -1 && i != 0) { in remove_from_freelist()
2301 return tdb_ofs_write(tdb, last_ptr, &next); in remove_from_freelist()
2304 last_ptr = i; in remove_from_freelist()
2428 struct list_struct *rec, tdb_off_t last_ptr) in tdb_allocate_ofs() argument
2451 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) { in tdb_allocate_ofs()
2490 tdb_off_t rec_ptr, last_ptr, newrec_ptr; in tdb_allocate() local
2492 tdb_off_t rec_ptr, last_ptr; in tdb_allocate() member
2503 last_ptr = FREELIST_TOP; in tdb_allocate()
2510 bestfit.last_ptr = 0; in tdb_allocate()
2528 bestfit.last_ptr = last_ptr; in tdb_allocate()
2539 last_ptr = rec_ptr; in tdb_allocate()
2548 newrec_ptr = tdb_allocate_ofs(tdb, length, bestfit.rec_ptr, rec, bestfit.last_ptr); in tdb_allocate()
2586 tdb_off_t rec_ptr, last_ptr; in tdb_validate_freelist() local
2602 last_ptr = FREELIST_TOP; in tdb_validate_freelist()
2605 if (seen_insert(mem_tdb, last_ptr) == -1) { in tdb_validate_freelist()
2631 last_ptr = rec_ptr; in tdb_validate_freelist()
3272 tdb_off_t last_ptr, i; in tdb_do_delete() local
3288 for (last_ptr = 0; i != rec_ptr; last_ptr = i, i = lastrec.next) in tdb_do_delete()
3293 if (last_ptr == 0) in tdb_do_delete()
3294 last_ptr = TDB_HASH_TOP(rec->full_hash); in tdb_do_delete()
3295 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) in tdb_do_delete()