Lines Matching refs:udb_void
31 static void move_xl_segment(void* base, udb_base* udb, udb_void xl,
32 udb_void n, uint64_t sz, uint64_t startseg);
37 static udb_void
38 chunk_from_dataptr(udb_void data) in chunk_from_dataptr()
42 udb_void xl = data - sizeof(udb_xl_chunk_d); in chunk_from_dataptr()
48 udb_void chunk_from_dataptr_ext(udb_void data) { in chunk_from_dataptr_ext()
55 chunk_get_last(void* base, udb_void chunk, int exp) in chunk_get_last()
63 chunk_set_last(void* base, udb_void chunk, int exp, uint8_t value) in chunk_set_last()
380 chunk_hash_ptr(udb_void p) in chunk_hash_ptr()
389 int udb_ptr_is_on_bucket(udb_base* udb, udb_ptr* ptr, udb_void to) in udb_ptr_is_on_bucket()
475 udb_base_ram_ptr_edit(udb_base* udb, udb_void old, udb_void newd) in udb_base_ram_ptr_edit()
497 void udb_base_set_userdata(udb_base* udb, udb_void user) in udb_base_set_userdata()
689 static udb_void
690 regen_free(void* base, udb_void c, int exp, udb_alloc_d* regen)
709 static udb_void
710 regen_xl(void* base, udb_void c, udb_alloc_d* regen)
726 static udb_void
727 regen_data(void* base, udb_void c, int exp, udb_alloc_d* regen)
742 udb_void* a = (udb_void*)arg;
759 void* data, uint64_t dsz, udb_void rb_old, udb_void rb_new)
761 udb_void arg[2];
773 udb_void rb_old, udb_void rb_new)
775 udb_void at = alloc->udb->glob_data->hsize;
820 rb_mark_free_segs(void* base, udb_void s, uint64_t m)
822 udb_void q = s + m - UDB_ALLOC_CHUNK_SIZE;
835 fsck_rb_xl(void* base, udb_base* udb, udb_void rb_old, udb_void rb_new,
867 fsck_rb(void* base, udb_void rb_old, udb_void rb_new, uint64_t rb_size,
868 udb_void* make_free)
890 udb_void at = udb->glob_data->hsize;
891 udb_void rb_old = udb->glob_data->rb_old;
892 udb_void rb_new = udb->glob_data->rb_new;
893 udb_void rb_seg = udb->glob_data->rb_seg;
894 udb_void make_free = 0;
997 udb_alloc_unlink_fl(void* base, udb_alloc* alloc, udb_void chunk, int exp)
1016 static udb_void
1019 udb_void f = alloc->disk->free[exp-UDB_ALLOC_CHUNK_MINEXP];
1034 udb_alloc_push_fl(void* base, udb_alloc* alloc, udb_void f, int exp)
1051 udb_alloc_push_fl_noinit(void* base, udb_alloc* alloc, udb_void f, int exp)
1074 udb_void f = alloc->disk->nextgrow;
1075 udb_void fn = alloc->disk->nextgrow+fsz;
1085 static udb_void
1089 udb_void ret;
1173 static udb_void
1203 static udb_void
1206 udb_void ret;
1236 static udb_void
1260 static udb_void
1261 udb_alloc_subdivide(void* base, udb_alloc* alloc, udb_void big, int e2,
1294 udb_void udb_alloc_space(udb_alloc* alloc, size_t sz)
1304 udb_void ret;
1322 udb_void big, ret; /* udb_chunk_d */
1366 udb_void* data = (udb_void*)arg;
1367 udb_void r;
1386 chunk_fix_ptrs(void* base, udb_base* udb, udb_chunk_d* cp, udb_void data,
1387 uint64_t dsz, udb_void olddata)
1389 udb_void d[2];
1400 move_chunk(void* base, udb_alloc* alloc, udb_void f, int exp, uint64_t esz,
1403 udb_void res = udb_alloc_pop_fl(base, alloc, e2);
1429 free_xl_space(void* base, udb_alloc* alloc, udb_void s, uint64_t m)
1431 udb_void q = s + m - UDB_ALLOC_CHUNK_SIZE;
1444 move_xl_segment(void* base, udb_base* udb, udb_void xl, udb_void n,
1475 move_xl_list(void* base, udb_alloc* alloc, udb_void xl_start, uint64_t xl_sz,
1478 udb_void xl = xl_start;
1484 udb_void n = xl-amount;
1501 static udb_void
1502 coagulate_possible(void* base, udb_alloc* alloc, udb_void f, int exp,
1505 udb_void other = f^esz;
1539 static udb_void
1540 coagulate_and_push(void* base, udb_alloc* alloc, udb_void last, int exp,
1544 udb_void other;
1563 udb_void last;
1567 udb_void xl_start = 0;
1582 udb_void xl = at-xlsz;
1660 udb_void at = xl_start;
1663 udb_void chunk = at - UDB_ALLOC_CHUNK_SIZE;
1716 udb_free_xl(void* base, udb_alloc* alloc, udb_void f, udb_xl_chunk_d* fp,
1749 int udb_alloc_free(udb_alloc* alloc, udb_void r, size_t sz)
1753 udb_void f;
1757 udb_void other;
1834 udb_void udb_alloc_init(udb_alloc* alloc, void* d, size_t sz)
1837 udb_void r = udb_alloc_space(alloc, sz);
1843 udb_void udb_alloc_realloc(udb_alloc* alloc, udb_void r, size_t osz, size_t sz)
1846 udb_void c, n, newd;
1906 void udb_alloc_set_type(udb_alloc* alloc, udb_void r, udb_chunk_type tp)
1909 udb_void f = chunk_from_dataptr(r);
1917 int udb_valid_offset(udb_base* udb, udb_void to, size_t destsize)
1926 int udb_valid_dataptr(udb_base* udb, udb_void to)
1929 udb_void ch;
1967 int udb_valid_rptr(udb_base* udb, udb_void rptr, udb_void to)
1970 udb_void p;
2005 void udb_rel_ptr_link(void* base, udb_rel_ptr* ptr, udb_void to)
2016 void udb_rel_ptr_set(void* base, udb_rel_ptr* ptr, udb_void to)
2025 void udb_rel_ptr_edit(void* base, udb_void list, udb_void to)
2027 udb_void p = list;
2063 void udb_ptr_set(udb_ptr* ptr, udb_base* udb, udb_void newval)
2076 udb_void r;
2088 udb_void d = ptr->data;
2096 udb_void f;