Lines Matching full:tsd
53 static bool ckh_grow(tsd_t *tsd, ckh_t *ckh);
54 static void ckh_shrink(tsd_t *tsd, ckh_t *ckh);
257 ckh_grow(tsd_t *tsd, ckh_t *ckh) { in ckh_grow() argument
283 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, in ckh_grow()
284 true, NULL, true, arena_ichoose(tsd, NULL)); in ckh_grow()
296 idalloctm(tsd_tsdn(tsd), tab, NULL, NULL, true, true); in ckh_grow()
301 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_grow()
312 ckh_shrink(tsd_t *tsd, ckh_t *ckh) { in ckh_shrink() argument
327 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, NULL, in ckh_shrink()
328 true, arena_ichoose(tsd, NULL)); in ckh_shrink()
343 idalloctm(tsd_tsdn(tsd), tab, NULL, NULL, true, true); in ckh_shrink()
351 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_shrink()
360 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, in ckh_new() argument
404 ckh->tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, in ckh_new()
405 NULL, true, arena_ichoose(tsd, NULL)); in ckh_new()
417 ckh_delete(tsd_t *tsd, ckh_t *ckh) { in ckh_delete() argument
432 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_delete()
467 ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data) { in ckh_insert() argument
478 if (ckh_grow(tsd, ckh)) { in ckh_insert()
490 ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key, in ckh_remove() argument
513 ckh_shrink(tsd, ckh); in ckh_remove()