Lines Matching refs:last_ptr
2308 tdb_off_t last_ptr, i; in remove_from_freelist() local
2311 last_ptr = FREELIST_TOP; in remove_from_freelist()
2312 while (tdb_ofs_read(tdb, last_ptr, &i) != -1 && i != 0) { in remove_from_freelist()
2315 return tdb_ofs_write(tdb, last_ptr, &next); in remove_from_freelist()
2318 last_ptr = i; in remove_from_freelist()
2442 struct list_struct *rec, tdb_off_t last_ptr) in tdb_allocate_ofs() argument
2465 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) { in tdb_allocate_ofs()
2504 tdb_off_t rec_ptr, last_ptr, newrec_ptr; in tdb_allocate() local
2506 tdb_off_t rec_ptr, last_ptr; in tdb_allocate() member
2517 last_ptr = FREELIST_TOP; in tdb_allocate()
2524 bestfit.last_ptr = 0; in tdb_allocate()
2542 bestfit.last_ptr = last_ptr; in tdb_allocate()
2553 last_ptr = rec_ptr; in tdb_allocate()
2562 newrec_ptr = tdb_allocate_ofs(tdb, length, bestfit.rec_ptr, rec, bestfit.last_ptr); in tdb_allocate()
2600 tdb_off_t rec_ptr, last_ptr; in tdb_validate_freelist() local
2616 last_ptr = FREELIST_TOP; in tdb_validate_freelist()
2619 if (seen_insert(mem_tdb, last_ptr) == -1) { in tdb_validate_freelist()
2645 last_ptr = rec_ptr; in tdb_validate_freelist()
3288 tdb_off_t last_ptr, i; in tdb_do_delete() local
3304 for (last_ptr = 0; i != rec_ptr; last_ptr = i, i = lastrec.next) in tdb_do_delete()
3309 if (last_ptr == 0) in tdb_do_delete()
3310 last_ptr = TDB_HASH_TOP(rec->full_hash); in tdb_do_delete()
3311 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) in tdb_do_delete()