Lines Matching refs:tab

59 		cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i];  in ckh_bucket_search()
104 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + in ckh_try_bucket_insert()
146 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i]; in ckh_evict_reloc_insert()
250 ckhc_t *tab, *ttab; in ckh_grow() local
273 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, in ckh_grow()
275 if (tab == NULL) { in ckh_grow()
280 ttab = ckh->tab; in ckh_grow()
281 ckh->tab = tab; in ckh_grow()
282 tab = ttab; in ckh_grow()
285 if (!ckh_rebuild(ckh, tab)) { in ckh_grow()
286 idalloctm(tsd, tab, tcache_get(tsd, false), true, true); in ckh_grow()
291 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true, true); in ckh_grow()
292 ckh->tab = tab; in ckh_grow()
304 ckhc_t *tab, *ttab; in ckh_shrink() local
317 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, true, in ckh_shrink()
319 if (tab == NULL) { in ckh_shrink()
327 ttab = ckh->tab; in ckh_shrink()
328 ckh->tab = tab; in ckh_shrink()
329 tab = ttab; in ckh_shrink()
332 if (!ckh_rebuild(ckh, tab)) { in ckh_shrink()
333 idalloctm(tsd, tab, tcache_get(tsd, false), true, true); in ckh_shrink()
341 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true, true); in ckh_shrink()
342 ckh->tab = tab; in ckh_shrink()
394 ckh->tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, true, in ckh_new()
396 if (ckh->tab == NULL) { in ckh_new()
424 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true, true); in ckh_delete()
445 if (ckh->tab[i].key != NULL) { in ckh_iter()
447 *key = (void *)ckh->tab[i].key; in ckh_iter()
449 *data = (void *)ckh->tab[i].data; in ckh_iter()
493 *key = (void *)ckh->tab[cell].key; in ckh_remove()
495 *data = (void *)ckh->tab[cell].data; in ckh_remove()
496 ckh->tab[cell].key = NULL; in ckh_remove()
497 ckh->tab[cell].data = NULL; /* Not necessary. */ in ckh_remove()
524 *key = (void *)ckh->tab[cell].key; in ckh_search()
526 *data = (void *)ckh->tab[cell].data; in ckh_search()