Home
last modified time | relevance | path

Searched refs:newtbl (Results 1 – 3 of 3) sorted by relevance

/netbsd-src/sys/kern/
H A Dkern_fileassoc.c354 struct fileassoc_table *newtbl; in fileassoc_table_resize() local
361 newtbl = kmem_zalloc(sizeof(*newtbl), KM_SLEEP); in fileassoc_table_resize()
362 newtbl->tbl_nslots = (tbl->tbl_nslots * 2); in fileassoc_table_resize()
363 if (newtbl->tbl_nslots < tbl->tbl_nslots) in fileassoc_table_resize()
364 newtbl->tbl_nslots = tbl->tbl_nslots; in fileassoc_table_resize()
365 newtbl->tbl_hash = hashinit(newtbl->tbl_nslots, HASH_LIST, in fileassoc_table_resize()
366 true, &newtbl->tbl_mask); in fileassoc_table_resize()
367 newtbl->tbl_nused = 0; in fileassoc_table_resize()
368 specificdata_init(fileassoc_domain, &newtbl->tbl_data); in fileassoc_table_resize()
381 indx = FILEASSOC_HASH(newtbl, faf->faf_handle); in fileassoc_table_resize()
[all …]
/netbsd-src/external/bsd/flex/dist/src/
H A Dtables.c468 struct yytbl_data newtbl; in yytbl_data_compress() local
470 yytbl_data_init (&newtbl, tbl->td_id); in yytbl_data_compress()
471 newtbl.td_hilen = tbl->td_hilen; in yytbl_data_compress()
472 newtbl.td_lolen = tbl->td_lolen; in yytbl_data_compress()
473 newtbl.td_flags = tbl->td_flags; in yytbl_data_compress()
488 newtbl.td_data = calloc ((size_t) total_len, newsz); in yytbl_data_compress()
489 newtbl.td_flags = (flex_uint16_t) in yytbl_data_compress()
490 (TFLAGS_CLRDATA (newtbl.td_flags) | BYTES2TFLAG (newsz)); in yytbl_data_compress()
496 yytbl_data_seti (&newtbl, i, g); in yytbl_data_compress()
502 *tbl = newtbl; in yytbl_data_compress()
/netbsd-src/sys/dev/
H A Dmidictl.c675 uint64_t *newtbl, *oldtbl, mask; in store_rehash() local
684 newtbl = kmem_zalloc(sizeof(*newtbl) << newlgcap, KM_SLEEP); in store_rehash()
697 kmem_free(newtbl, sizeof(*newtbl) << newlgcap); in store_rehash()
709 nidx = store_idx(newlgcap, newtbl, in store_rehash()
711 newtbl[nidx] = s->table[oidx]; in store_rehash()
714 s->table = newtbl; in store_rehash()