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);
246 ckh_grow(tsd_t *tsd, ckh_t *ckh) in ckh_grow() argument
273 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, in ckh_grow()
286 idalloctm(tsd, tab, tcache_get(tsd, false), true); in ckh_grow()
291 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true); in ckh_grow()
302 ckh_shrink(tsd_t *tsd, ckh_t *ckh) in ckh_shrink() argument
317 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, true, in ckh_shrink()
333 idalloctm(tsd, tab, tcache_get(tsd, false), true); in ckh_shrink()
341 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true); in ckh_shrink()
350 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, in ckh_new() argument
394 ckh->tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, true, in ckh_new()
407 ckh_delete(tsd_t *tsd, ckh_t *ckh) in ckh_delete() argument
424 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true); in ckh_delete()
459 ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data) in ckh_insert() argument
471 if (ckh_grow(tsd, ckh)) { in ckh_insert()
483 ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key, in ckh_remove() argument
505 ckh_shrink(tsd, ckh); in ckh_remove()