Lines Matching refs:tsd
33 tcache_event_hard(tsd_t *tsd, tcache_t *tcache) in tcache_event_hard() argument
44 tcache_bin_flush_small(tsd, tcache, tbin, binind, in tcache_event_hard()
48 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard()
74 tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, tcache_t *tcache, in tcache_alloc_small_hard() argument
89 tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, in tcache_bin_flush_small() argument
100 arena = arena_choose(tsd, NULL); in tcache_bin_flush_small()
169 tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, index_t binind, in tcache_bin_flush_large() argument
180 arena = arena_choose(tsd, NULL); in tcache_bin_flush_large()
297 tcache_get_hard(tsd_t *tsd) in tcache_get_hard() argument
302 if (tsd_nominal(tsd)) in tcache_get_hard()
306 arena = arena_choose(tsd, NULL); in tcache_get_hard()
309 return (tcache_create(tsd, arena)); in tcache_get_hard()
313 tcache_create(tsd_t *tsd, arena_t *arena) in tcache_create() argument
327 tcache = ipallocztm(tsd, size, CACHELINE, true, false, true, a0get()); in tcache_create()
345 tcache_destroy(tsd_t *tsd, tcache_t *tcache) in tcache_destroy() argument
350 arena = arena_choose(tsd, NULL); in tcache_destroy()
355 tcache_bin_flush_small(tsd, tcache, tbin, i, 0); in tcache_destroy()
367 tcache_bin_flush_large(tsd, tbin, i, 0, tcache); in tcache_destroy()
382 idalloctm(tsd, tcache, false, true); in tcache_destroy()
386 tcache_cleanup(tsd_t *tsd) in tcache_cleanup() argument
393 if ((tcache = tsd_tcache_get(tsd)) != NULL) { in tcache_cleanup()
394 tcache_destroy(tsd, tcache); in tcache_cleanup()
395 tsd_tcache_set(tsd, NULL); in tcache_cleanup()
400 tcache_enabled_cleanup(tsd_t *tsd) in tcache_enabled_cleanup() argument
434 tcaches_create(tsd_t *tsd, unsigned *r_ind) in tcaches_create() argument
448 tcache = tcache_create(tsd, a0get()); in tcaches_create()
468 tcaches_elm_flush(tsd_t *tsd, tcaches_t *elm) in tcaches_elm_flush() argument
473 tcache_destroy(tsd, elm->tcache); in tcaches_elm_flush()
478 tcaches_flush(tsd_t *tsd, unsigned ind) in tcaches_flush() argument
481 tcaches_elm_flush(tsd, &tcaches[ind]); in tcaches_flush()
485 tcaches_destroy(tsd_t *tsd, unsigned ind) in tcaches_destroy() argument
488 tcaches_elm_flush(tsd, elm); in tcaches_destroy()