Lines Matching refs:tsd
43 static bool ckh_grow(tsd_t *tsd, ckh_t *ckh);
44 static void ckh_shrink(tsd_t *tsd, ckh_t *ckh);
248 ckh_grow(tsd_t *tsd, ckh_t *ckh) in ckh_grow() argument
274 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, in ckh_grow()
275 true, NULL, true, arena_ichoose(tsd, NULL)); in ckh_grow()
287 idalloctm(tsd_tsdn(tsd), iealloc(tsd_tsdn(tsd), tab), in ckh_grow()
293 idalloctm(tsd_tsdn(tsd), iealloc(tsd_tsdn(tsd), ckh->tab), in ckh_grow()
305 ckh_shrink(tsd_t *tsd, ckh_t *ckh) in ckh_shrink() argument
320 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, NULL, in ckh_shrink()
321 true, arena_ichoose(tsd, NULL)); in ckh_shrink()
336 idalloctm(tsd_tsdn(tsd), iealloc(tsd_tsdn(tsd), tab), tab, NULL, in ckh_shrink()
345 idalloctm(tsd_tsdn(tsd), iealloc(tsd_tsdn(tsd), ckh->tab), ckh->tab, in ckh_shrink()
355 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, in ckh_new() argument
399 ckh->tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, in ckh_new()
400 NULL, true, arena_ichoose(tsd, NULL)); in ckh_new()
412 ckh_delete(tsd_t *tsd, ckh_t *ckh) in ckh_delete() argument
428 idalloctm(tsd_tsdn(tsd), iealloc(tsd_tsdn(tsd), ckh->tab), ckh->tab, in ckh_delete()
463 ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data) in ckh_insert() argument
475 if (ckh_grow(tsd, ckh)) { in ckh_insert()
487 ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key, in ckh_remove() argument
509 ckh_shrink(tsd, ckh); in ckh_remove()