Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 1858) sorted by relevance

12345678910>>...75

/freebsd-14.2/contrib/unbound/util/storage/
H A Dlruhash.c91 bin_init(table->array, table->size); in lruhash_create()
92 lock_protect(&table->lock, table, sizeof(*table)); in lruhash_create()
93 lock_protect(&table->lock, table->array, in lruhash_create()
112 (*table->deldatafunc)(d, table->cb_arg); in bin_delete()
162 bin_delete(table, &table->array[i]); in lruhash_delete()
189 while(table->num > 1 && table->space_used > table->space_max) { in reclaim_space()
347 if(table->space_used > table->space_max) in lruhash_insert()
349 if(table->num >= table->size) in lruhash_insert()
457 bin_clear(table, &table->array[i]); in lruhash_clear()
474 (unsigned)(table->num? table->space_used/table->num : 0), in lruhash_status()
[all …]
/freebsd-14.2/sys/dev/vmware/vmci/
H A Dvmci_hashtable.c47 table = vmci_alloc_kernel_mem(sizeof(*table), in vmci_hashtable_create()
51 memset(table, 0, sizeof(*table)); in vmci_hashtable_create()
56 vmci_free_kernel_mem(table, sizeof(*table)); in vmci_hashtable_create()
59 memset(table->entries, 0, sizeof(*table->entries) * size); in vmci_hashtable_create()
64 vmci_free_kernel_mem(table, sizeof(*table)); in vmci_hashtable_create()
68 return (table); in vmci_hashtable_create()
94 ASSERT(table); in vmci_hashtable_destroy()
97 vmci_free_kernel_mem(table->entries, sizeof(*table->entries) * in vmci_hashtable_destroy()
102 vmci_free_kernel_mem(table, sizeof(*table)); in vmci_hashtable_destroy()
153 ASSERT(table); in vmci_hashtable_add_entry()
[all …]
/freebsd-14.2/crypto/heimdal/lib/roken/
H A Drtbl.c71 table->flags = flags; in rtbl_set_flags()
77 return table->flags; in rtbl_get_flags()
118 free (table->columns); in rtbl_destroy()
119 free (table); in rtbl_destroy()
128 tmp = realloc (table->columns, (table->num_columns + 1) * sizeof (*tmp)); in rtbl_add_column_by_id()
131 table->columns = tmp; in rtbl_add_column_by_id()
147 table->columns[table->num_columns++] = col; in rtbl_add_column_by_id()
368 column_compute_width (table, table->columns[i]); in rtbl_format()
433 rtbl_t table; in main() local
473 rtbl_new_row(table); in main()
[all …]
/freebsd-14.2/usr.sbin/bhyve/
H A Dbasl.c105 data = vm_map_gpa(table->ctx, BHYVE_ACPI_BASE + table->off, in basl_dump_table()
150 table->off = roundup2(*off, table->alignment); in basl_finish_install_guest_tables()
151 *off = table->off + table->len; in basl_finish_install_guest_tables()
154 table->len, table->off); in basl_finish_install_guest_tables()
160 qemu_fwcfg_add_file(table->fwcfg_name, table->len, table->data)); in basl_finish_install_guest_tables()
174 gva = vm_map_gpa(table->ctx, BHYVE_ACPI_BASE + table->off, table->len); in basl_finish_install_guest_tables()
181 memcpy(gva, table->data, table->len); in basl_finish_install_guest_tables()
313 gva = vm_map_gpa(table->ctx, gpa, table->len); in basl_finish_patch_pointers()
504 if (table->len + len <= table->len) { in basl_table_append_bytes()
510 table->data = reallocf(table->data, table->len + len); in basl_table_append_bytes()
[all …]
/freebsd-14.2/contrib/kyua/utils/text/
H A Dtable_test.cpp83 text::table table(2); in ATF_TEST_CASE_BODY() local
102 text::table table(2); in ATF_TEST_CASE_BODY() local
114 text::table table(2); in ATF_TEST_CASE_BODY() local
129 text::table table(1); in ATF_TEST_CASE_BODY() local
157 text::table table(3); in ATF_TEST_CASE_BODY() local
183 text::table table(1); in ATF_TEST_CASE_BODY() local
205 text::table table(1); in ATF_TEST_CASE_BODY() local
228 text::table table(1); in ATF_TEST_CASE_BODY() local
251 text::table table(3); in ATF_TEST_CASE_BODY() local
277 text::table table(3); in ATF_TEST_CASE_BODY() local
[all …]
/freebsd-14.2/sys/contrib/dev/iwlwifi/fw/
H A Ddump.c129 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log()
131 if (table.valid) in iwl_fwrt_dump_umac_error_log()
212 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_lmac_error_log()
214 if (table.valid) in iwl_fwrt_dump_lmac_error_log()
307 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_tcm_error_log()
309 if (table.valid) in iwl_fwrt_dump_tcm_error_log()
334 table.hw_status[i], i); in iwl_fwrt_dump_tcm_error_log()
337 table.sw_status[i], i); in iwl_fwrt_dump_tcm_error_log()
380 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_rcm_error_log()
382 if (table.valid) in iwl_fwrt_dump_rcm_error_log()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-tsd.c234 table->ht_key = 1; in tsd_hash_add_key()
242 tmp_entry = tsd_hash_search(table, table->ht_key, DTOR_PID); in tsd_hash_add_key()
336 if (table == NULL) in tsd_hash_table_init()
351 table->ht_bits = bits; in tsd_hash_table_init()
352 table->ht_key = 1; in tsd_hash_table_init()
354 return (table); in tsd_hash_table_init()
389 kmem_free(table->ht_bins, sizeof (tsd_hash_bin_t)*(1<<table->ht_bits)); in tsd_hash_table_fini()
409 table = tsd_hash_table; in tsd_remove_entry()
468 table = tsd_hash_table; in tsd_set()
596 table = tsd_hash_table; in tsd_destroy()
[all …]
/freebsd-14.2/contrib/wpa/src/utils/
H A Deloop.c130 if (table == NULL || table->table == NULL) in eloop_trace_sock_add_ref()
145 if (table == NULL || table->table == NULL) in eloop_trace_sock_remove_ref()
369 table->table = tmp; in eloop_sock_table_add_sock()
393 if (table == NULL || table->table == NULL || table->count == 0) in eloop_sock_table_remove_sock()
404 os_memmove(&table->table[i], &table->table[i + 1], in eloop_sock_table_remove_sock()
528 if (!table || !table->table) in eloop_sock_table_dispatch_table()
541 table->table[i].handler(table->table[i].sock, in eloop_sock_table_dispatch_table()
597 if (table == NULL || table->table == NULL) in eloop_sock_table_dispatch()
603 table->table[i].handler(table->table[i].sock, in eloop_sock_table_dispatch()
625 table->handler(table->sock, table->eloop_data, in eloop_sock_table_dispatch()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrTable.td28 "table.get\t$res, $table, $i",
29 "table.get\t$table",
36 "table.set\t$table, $i, $val",
37 "table.set\t$table",
43 "table.grow\t$sz, $table, $val, $n",
44 "table.grow\t$table",
50 "table.fill\t$table, $i, $val, $n",
51 "table.fill\t$table",
75 "table.size\t$sz, $table",
76 "table.size\t$table",
[all …]
/freebsd-14.2/sys/ofed/drivers/infiniband/core/
H A Dib_cache.c181 __releases(&table->rwlock) __acquires(&table->rwlock) in write_gid()
621 if (!table) in alloc_gid_table()
633 return table; in alloc_gid_table()
636 kfree(table); in alloc_gid_table()
642 if (table) { in release_gid_table()
654 if (!table) in cleanup_gid_table_port()
790 if (!table) { in _gid_table_setup_one()
824 kfree(table); in _gid_table_setup_one()
833 if (!table) in gid_table_release_one()
839 kfree(table); in gid_table_release_one()
[all …]
/freebsd-14.2/contrib/ofed/opensm/opensm/
H A Dst.c106 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)(((void*)key)) argument
107 #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) argument
240 ptr = table->bins[i]; in st_free_table()
247 free(table->bins); in st_free_table()
248 free(table); in st_free_table()
293 if (table->num_entries/(table->num_bins) > ST_DEFAULT_MAX_DENSITY) \
295 rehash(table);\
306 table->num_entries++;\
349 ptr = table->bins[i]; in rehash()
358 free(table->bins); in rehash()
[all …]
/freebsd-14.2/sys/dev/mlx4/mlx4_core/
H A Dmlx4_icm.c259 if (table->icm[i]) { in mlx4_table_get()
272 if (mlx4_MAP_ICM(dev, table->icm[i], table->virt + in mlx4_table_get()
274 mlx4_free_icm(dev, table->icm[i], table->coherent); in mlx4_table_get()
300 mlx4_free_icm(dev, table->icm[i], table->coherent); in mlx4_table_put()
316 if (!table->lowmem) in mlx4_table_find()
321 idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size; in mlx4_table_find()
400 table->icm = kcalloc(num_icm, sizeof *table->icm, GFP_KERNEL); in mlx4_init_icm_table()
401 if (!table->icm) in mlx4_init_icm_table()
446 kfree(table->icm); in mlx4_init_icm_table()
459 mlx4_free_icm(dev, table->icm[i], table->coherent); in mlx4_cleanup_icm_table()
[all …]
/freebsd-14.2/lib/libc/locale/
H A Dcollate.c83 if (table->map && (table->maplen > 0)) { in destruct_collate()
84 (void) munmap(table->map, table->maplen); in destruct_collate()
101 if (table == NULL) in __collate_load()
110 xlocale_release(table); in __collate_load()
113 return (table); in __collate_load()
176 strlcat(table->header.version, TMP, sizeof (table->header.version)); in __collate_load_tables_l()
202 if (table->map && (table->maplen > 0)) { in __collate_load_tables_l()
203 (void) munmap(table->map, table->maplen); in __collate_load_tables_l()
205 table->map = map; in __collate_load_tables_l()
206 table->maplen = sbuf.st_size; in __collate_load_tables_l()
[all …]
/freebsd-14.2/stand/common/
H A Dpart.c249 table = NULL; in ptable_gptread()
274 table->sectors - 1, table->sectorsize); in ptable_gptread()
475 table = NULL; in ptable_bsdread()
533 table = NULL; in ptable_iso9660read()
568 table = NULL; in ptable_open()
579 table = malloc(sizeof(*table)); in ptable_open()
609 table = ptable_gptread(table, dev, dread); in ptable_open()
639 table = ptable_gptread(table, dev, dread); in ptable_open()
674 table = ptable_ebrread(table, dev, dread); in ptable_open()
698 free(table); in ptable_close()
[all …]
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.lib_table.lua100 a = table.pack()
103 a = table.pack(table)
135 table.sort(a)
142 table.sort(t)
171 table.sort(a)
174 table.sort(a)
195 table.sort(A)
201 table.sort(a)
208 table.insert(a, 10); table.insert(a, 2, 20);
209 table.insert(a, 1, -1); table.insert(a, 40);
[all …]
/freebsd-14.2/sys/contrib/dev/rtw89/
H A Dfw.h538 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_CTRL_INFO_OPERATION()
550 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(9)); in SET_CMC_TBL_FORCE_TXOP()
648 le32p_replace_bits((__le32 *)(table) + 2, val, BIT(9)); in SET_CMC_TBL_AMPDU_TIME_SEL()
704 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(6)); in SET_CMC_TBL_DATA_TXCNT_LMT_SEL()
711 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(7)); in SET_CMC_TBL_MAX_AGG_NUM_SEL()
718 le32p_replace_bits((__le32 *)(table) + 3, val, BIT(8)); in SET_CMC_TBL_RTS_EN()
1109 static inline void SET_CMC_TBL_NC(void *table, u32 val) in SET_CMC_TBL_NC() argument
1116 static inline void SET_CMC_TBL_NR(void *table, u32 val) in SET_CMC_TBL_NR() argument
1123 static inline void SET_CMC_TBL_NG(void *table, u32 val) in SET_CMC_TBL_NG() argument
1130 static inline void SET_CMC_TBL_CB(void *table, u32 val) in SET_CMC_TBL_CB() argument
[all …]
/freebsd-14.2/contrib/ntp/libntp/lib/isc/
H A Dresult.c119 resulttable *table; in register_table() local
129 table = malloc(sizeof(*table)); in register_table()
130 if (table == NULL) in register_table()
132 table->base = base; in register_table()
134 table->text = txt; in register_table()
136 table->set = set; in register_table()
173 resulttable *table; in isc_result_totext() local
183 table != NULL; in isc_result_totext()
184 table = ISC_LIST_NEXT(table, link)) { in isc_result_totext()
185 if (result >= table->base && result <= table->last) { in isc_result_totext()
[all …]
/freebsd-14.2/lib/libsysdecode/
H A Dsupport.c38 for (; table->str != NULL; table++) in lookup_value()
39 if (table->val == val) in lookup_value()
40 return (table->str); in lookup_value()
57 for (; table->str != NULL; table++) { in print_mask_part()
58 if ((table->val & rem) == table->val) { in print_mask_part()
63 if (table->val == 0 && *valp != 0) in print_mask_part()
67 rem &= ~table->val; in print_mask_part()
89 print_mask_part(fp, table, &val, &printed); in print_mask_int()
108 return (print_mask_int(fp, table, val, rem)); in print_mask_0()
129 print_mask_part(fp, table, &val, &printed); in print_mask_0ul()
[all …]
/freebsd-14.2/sys/dev/mlx5/mlx5_core/
H A Dmlx5_rl.c49 entry = table->rl_entry + i; in find_rl_entry()
97 return (rate <= table->max_rate && rate >= table->min_rate && in mlx5_rl_is_in_range()
108 mutex_lock(&table->rl_lock); in mlx5_rl_add_rate()
112 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate()
120 table->max_size); in mlx5_rl_add_rate()
170 mutex_lock(&table->rl_lock); in mlx5_rl_remove_rate()
195 mutex_init(&table->rl_lock); in mlx5_init_rl_table()
197 table->max_size = 0; in mlx5_init_rl_table()
206 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_init_rl_table()
208 if (!table->rl_entry) in mlx5_init_rl_table()
[all …]
/freebsd-14.2/sys/geom/part/
H A Dg_part.c304 table = gp->softc; in g_part_get_physpath_done()
334 if (table->gpt_last < table->gpt_first) { in g_part_check_integrity()
336 (intmax_t)table->gpt_last, (intmax_t)table->gpt_first); in g_part_check_integrity()
682 table = gp->softc; in g_part_probe()
683 scheme = (table != NULL) ? table->gpt_scheme : NULL; in g_part_probe()
738 table = gp->softc; in g_part_ctl_add()
902 if ((table->gpt_smhead | table->gpt_smtail) != 0) { in g_part_ctl_commit()
1850 table = NULL; in g_part_ctlreq()
1853 if (table != NULL && table->gpt_corrupt && in g_part_ctlreq()
1861 if (table != NULL && !table->gpt_opened) { in g_part_ctlreq()
[all …]
H A Dg_part_apm.c240 KASSERT(table->self.ent_size >= table->self.ent_pmblkcnt, in g_part_apm_add()
276 table->self.ent_start = 1; in g_part_apm_create()
277 table->self.ent_size = table->self.ent_pmblkcnt; in g_part_apm_create()
401 table->tivo_series1 = 0; in g_part_apm_probe()
436 table->ddr.ddr_blkcount = in g_part_apm_probe()
438 table->tivo_series1 = 1; in g_part_apm_probe()
443 error = apm_read_ent(cp, 1, &table->self, table->tivo_series1); in g_part_apm_probe()
450 if (table->self.ent_pmblkcnt >= table->ddr.ddr_blkcount) in g_part_apm_probe()
535 if (table->tivo_series1) in g_part_apm_write()
559 bcopy(table->self.ent_name, buf + 16, sizeof(table->self.ent_name)); in g_part_apm_write()
[all …]
H A Dg_part_gpt.c434 table->bootcamp = 0; in gpt_update_bootcamp()
459 table->lba[elt] = 1; in gpt_read_hdr()
714 bcopy(GPT_HDR_SIG, table->hdr->hdr_sig, sizeof(table->hdr->hdr_sig)); in g_part_gpt_create()
733 g_free(table->hdr); in g_part_gpt_destroy()
734 table->hdr = NULL; in g_part_gpt_destroy()
1023 table->hdr = sechdr; in g_part_gpt_read()
1073 table->bootcamp = gpt_is_bootcamp(table, pp->name); in g_part_gpt_read()
1210 tblsz = howmany(table->hdr->hdr_entries * table->hdr->hdr_entsz, in g_part_gpt_write()
1214 if (table->bootcamp) in g_part_gpt_write()
1228 memcpy(buf, table->hdr->hdr_sig, sizeof(table->hdr->hdr_sig)); in g_part_gpt_write()
[all …]
/freebsd-14.2/contrib/less/
H A Dposition.c53 return (table[sindex]); in position()
67 table[i-1] = table[i]; in add_forw_pos()
68 table[sc_height - 1] = pos; in add_forw_pos()
82 table[i] = table[i-1]; in add_back_pos()
83 table[0] = pos; in add_back_pos()
94 table[i] = NULL_POSITION; in pos_clear()
110 if (table != NULL) in pos_init()
113 free((char*)table); in pos_init()
132 if (pos < table[0]) in onscreen()
135 if (pos < table[i]) in onscreen()
[all …]
/freebsd-14.2/sys/dev/mthca/
H A Dmthca_memfree.c243 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_table_get()
270 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_table_put()
289 idx = (obj & (table->num_obj - 1)) * table->obj_size; in mthca_table_find()
369 table = kmalloc(sizeof *table + num_icm * sizeof *table->icm, GFP_KERNEL); in mthca_alloc_icm_table()
370 if (!table) in mthca_alloc_icm_table()
396 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_alloc_icm_table()
408 return table; in mthca_alloc_icm_table()
415 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_alloc_icm_table()
418 kfree(table); in mthca_alloc_icm_table()
432 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_free_icm_table()
[all …]
/freebsd-14.2/contrib/netbsd-tests/ipf/regress/
H A Dip13 table role = ipf type = tree number = 1
5 table role = ipf type = tree number = 100
7 table role = nat type = tree number = 110
9 table role = auth type = tree number = 120
11 table role = count type = tree number = 130
14 table role = ipf type = hash number = 2
16 table role = ipf type = hash number = 200
18 table role = nat type = hash number = 210
20 table role = auth type = hash number = 220
22 table role = count type = hash number = 230
[all …]

12345678910>>...75