Lines Matching refs:tab
68 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i]; in ckh_bucket_search()
114 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + in ckh_try_bucket_insert()
155 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i]; in ckh_evict_reloc_insert()
259 ckhc_t *tab, *ttab; in ckh_grow() local
283 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, in ckh_grow()
285 if (tab == NULL) { in ckh_grow()
290 ttab = ckh->tab; in ckh_grow()
291 ckh->tab = tab; in ckh_grow()
292 tab = ttab; in ckh_grow()
295 if (!ckh_rebuild(ckh, tab)) { 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()
302 ckh->tab = tab; in ckh_grow()
313 ckhc_t *tab, *ttab; in ckh_shrink() local
327 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, NULL, in ckh_shrink()
329 if (tab == NULL) { in ckh_shrink()
337 ttab = ckh->tab; in ckh_shrink()
338 ckh->tab = tab; in ckh_shrink()
339 tab = ttab; in ckh_shrink()
342 if (!ckh_rebuild(ckh, tab)) { 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()
352 ckh->tab = tab; in ckh_shrink()
404 ckh->tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, in ckh_new()
406 if (ckh->tab == NULL) { in ckh_new()
432 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_delete()
451 if (ckh->tab[i].key != NULL) { in ckh_iter()
453 *key = (void *)ckh->tab[i].key; in ckh_iter()
456 *data = (void *)ckh->tab[i].data; in ckh_iter()
499 *key = (void *)ckh->tab[cell].key; in ckh_remove()
502 *data = (void *)ckh->tab[cell].data; in ckh_remove()
504 ckh->tab[cell].key = NULL; in ckh_remove()
505 ckh->tab[cell].data = NULL; /* Not necessary. */ in ckh_remove()
531 *key = (void *)ckh->tab[cell].key; in ckh_search()
534 *data = (void *)ckh->tab[cell].data; in ckh_search()