Home
last modified time | relevance | path

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

12345678910>>...75

/openbsd/usr.sbin/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 …]
/openbsd/sbin/unwind/libunbound/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 …]
/openbsd/usr.sbin/unbound/testcode/
H A Dunitlruhash.c168 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
170 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
178 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
201 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
282 unit_assert( table->num <= table->size); in check_table()
283 unit_assert( table->size_mask == (int)table->size-1 ); in check_table()
284 unit_assert( (table->lru_start && table->lru_end) || in check_table()
285 (!table->lru_start && !table->lru_end) ); in check_table()
286 unit_assert( table->space_used <= table->space_max ); in check_table()
470 t[i].table = table; in test_threaded_table()
[all …]
H A Dunitslabhash.c156 unit_assert( table->num <= table->size); in check_lru_table()
157 unit_assert( table->size_mask == (int)table->size-1 ); in check_lru_table()
158 unit_assert( (table->lru_start && table->lru_end) || in check_lru_table()
159 (!table->lru_start && !table->lru_end) ); in check_lru_table()
160 unit_assert( table->space_used <= table->space_max ); in check_lru_table()
162 if(table->lru_start) in check_lru_table()
164 if(table->lru_end) in check_lru_table()
166 p = table->lru_start; in check_lru_table()
274 check_table(table); in test_long_table()
295 check_table(table); in test_long_table()
[all …]
/openbsd/gnu/usr.bin/binutils/bfd/
H A Dhash.c320 table->table = ((struct bfd_hash_entry **)
322 if (table->table == NULL)
327 memset ((PTR) table->table, 0, alloc);
384 for (hashp = table->table[index];
415 hashp->next = table->table[index];
416 table->table[index] = hashp;
433 for (pph = &table->table[index];
490 for (p = table->table[i]; p != NULL; p = p->next)
601 return table; in _bfd_stringtab_init()
625 bfd_hash_table_free (&table->table);
[all …]
/openbsd/sys/dev/pci/drm/i915/gt/
H A Dintel_mocs.c500 table->table = mtl_mocs_table; in get_mocs_settings()
506 table->table = pvc_mocs_table; in get_mocs_settings()
513 table->table = dg2_mocs_table; in get_mocs_settings()
525 table->table = dg1_mocs_table; in get_mocs_settings()
533 table->table = tgl_mocs_table; in get_mocs_settings()
544 table->table = icl_mocs_table; in get_mocs_settings()
549 table->table = skl_mocs_table; in get_mocs_settings()
594 if (index < table->size && table->table[index].used) in get_entry_control()
596 return table->table[table->unused_entries_index].control_value; in get_entry_control()
646 if (index < table->size && table->table[index].used) in get_entry_l3cc()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/bfd/
H A Dhash.c324 table->table = objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n()
325 if (table->table == NULL) in bfd_hash_table_init_n()
330 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n()
387 for (hashp = table->table[index]; in bfd_hash_lookup()
399 hashp = (*table->newfunc) (NULL, table, string); in bfd_hash_lookup()
417 hashp->next = table->table[index]; in bfd_hash_lookup()
418 table->table[index] = hashp; in bfd_hash_lookup()
434 for (pph = &table->table[index]; in bfd_hash_replace()
487 for (p = table->table[i]; p != NULL; p = p->next) in bfd_hash_traverse()
610 return table; in _bfd_stringtab_init()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dhashtable.c83 hash_table *table; local
94 return table;
100 ht_destroy (table) in ht_destroy() argument
105 free (table);
135 table->searches++;
161 node = (*table->alloc_node) (table);
171 if (++table->nelements * 4 >= table->nslots * 3)
181 ht_expand (table) in ht_expand() argument
191 p = table->entries;
230 p = table->entries;
[all …]
/openbsd/gnu/gcc/libcpp/
H A Dsymtab.c57 hash_table *table; in ht_create() local
71 return table; in ht_create()
82 free (table); in ht_destroy()
113 table->searches++; in ht_lookup_with_hash()
158 node = (*table->alloc_node) (table); in ht_lookup_with_hash()
169 if (++table->nelements * 4 >= table->nslots * 3) in ht_lookup_with_hash()
171 ht_expand (table); in ht_lookup_with_hash()
188 p = table->entries; in ht_expand()
225 p = table->entries; in ht_forall()
268 p = table->entries; in ht_dump_statistics()
[all …]
/openbsd/usr.bin/tmux/
H A Dkey-bindings.c110 return (table); in key_bindings_get_table()
112 table = xmalloc(sizeof *table); in key_bindings_get_table()
120 return (table); in key_bindings_get_table()
154 free(table); in key_bindings_unref_table()
191 struct key_table *table; in key_bindings_add() local
232 struct key_table *table; in key_bindings_remove() local
236 if (table == NULL) in key_bindings_remove()
259 struct key_table *table; in key_bindings_reset() local
263 if (table == NULL) in key_bindings_reset()
295 if (table != NULL) { in key_bindings_remove_table()
[all …]
/openbsd/gnu/llvm/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 …]
/openbsd/usr.sbin/smtpd/
H A Dtable_static.c188 table_static_add(struct table *table, const char *key, const char *val) in table_static_add() argument
194 if (*table->t_config) in table_static_add()
197 if (table->t_type == T_NONE) in table_static_add()
207 priv = table->t_handle; in table_static_add()
217 table_static_dump(struct table *table) in table_static_dump() argument
234 table_static_update(struct table *table) in table_static_update() argument
246 table_static_open(struct table *table) in table_static_open() argument
248 if (table->t_handle == NULL) in table_static_open()
254 table_static_close(struct table *table) in table_static_close() argument
260 table->t_handle = NULL; in table_static_close()
[all …]
H A Dtable_proc.c46 table_proc_nextid(struct table *table) in table_proc_nextid() argument
59 table_proc_send(struct table *table, const char *type, int service, in table_proc_send() argument
68 table->t_name, type); in table_proc_send()
83 table_proc_recv(struct table *table, const char *type) in table_proc_recv() argument
123 table_proc_open(struct table *table) in table_proc_open() argument
133 fd = fork_proc_backend("table", table->t_config, table->t_name, 1); in table_proc_open()
176 table->t_handle = priv; in table_proc_open()
182 table_proc_update(struct table *table) in table_proc_update() argument
205 table_proc_close(struct table *table) in table_proc_close() argument
216 table->t_handle = NULL; in table_proc_close()
[all …]
H A Dtable_db.c76 table_db_config(struct table *table) in table_db_config() argument
89 table_db_update(struct table *table) in table_db_update() argument
98 table->t_handle = handle; in table_db_update()
103 table_db_open(struct table *table) in table_db_open() argument
105 table->t_handle = table_db_open2(table); in table_db_open()
112 table_db_close(struct table *table) in table_db_close() argument
115 table->t_handle = NULL; in table_db_close()
119 table_db_open2(struct table *table) in table_db_open2() argument
155 table_db_lookup(struct table *table, enum table_service service, const char *key, in table_db_lookup() argument
171 table_db_update(table); in table_db_lookup()
[all …]
H A Druleset.c30 struct table *table; in ruleset_match_tag() local
39 table = table_find(env, r->table_tag); in ruleset_match_tag()
51 struct table *table; in ruleset_match_from() local
85 table = table_find(env, r->table_from); in ruleset_match_from()
86 ret = table_match(table, service, key); in ruleset_match_from()
95 struct table *table; in ruleset_match_to() local
104 table = table_find(env, r->table_for); in ruleset_match_to()
114 struct table *table; in ruleset_match_smtp_helo() local
143 struct table *table; in ruleset_match_smtp_auth() local
172 struct table *table; in ruleset_match_smtp_mail_from() local
[all …]
/openbsd/sys/dev/pci/drm/include/linux/
H A Dhashtable.h27 __hash_init(struct hlist_head *table, u_int size) in __hash_init() argument
32 INIT_HLIST_HEAD(&table[i]); in __hash_init()
36 __hash_empty(struct hlist_head *table, u_int size) in __hash_empty() argument
41 if (!hlist_empty(&table[i])) in __hash_empty()
48 #define __hash(table, key) &table[key % (nitems(table) - 1)] argument
50 #define hash_init(table) __hash_init(table, nitems(table)) argument
51 #define hash_add(table, node, key) \ argument
52 hlist_add_head(node, __hash(table, key))
54 #define hash_empty(table) __hash_empty(table, nitems(table)) argument
56 hlist_for_each_entry(obj, __hash(table, key), member)
[all …]
/openbsd/gnu/usr.bin/binutils/gas/
H A Dhash.c58 struct hash_entry **table; member
111 free (table); in hash_die()
142 ++table->lookups; in hash_lookup()
161 list = table->table + index; in hash_lookup()
215 ++table->insertions; in hash_insert()
252 ++table->insertions; in hash_jam()
282 ++table->replacements; in hash_replace()
324 ++table->deletions; in hash_delete()
349 for (p = table->table[i]; p != NULL; p = p->next) in hash_traverse()
381 if (table->table[i] == NULL) in hash_print_statistics()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/gas/
H A Dhash.c54 struct hash_entry **table; member
141 free (table); in hash_die()
166 ++table->lookups; in hash_lookup()
183 list = table->table + index; in hash_lookup()
237 ++table->insertions; in hash_insert()
274 ++table->insertions; in hash_jam()
304 ++table->replacements; in hash_replace()
361 ++table->deletions; in hash_delete()
386 for (p = table->table[i]; p != NULL; p = p->next) in hash_traverse()
418 if (table->table[i] == NULL) in hash_print_statistics()
[all …]
/openbsd/usr.bin/dig/lib/isc/
H A Dresult.c111 resulttable *table; in register_table() local
121 table = malloc(sizeof(*table)); in register_table()
122 if (table == NULL) in register_table()
124 table->base = base; in register_table()
126 table->text = text; in register_table()
127 table->set = set; in register_table()
128 ISC_LINK_INIT(table, link); in register_table()
159 resulttable *table; in isc_result_totext() local
167 table != NULL; in isc_result_totext()
168 table = ISC_LIST_NEXT(table, link)) { in isc_result_totext()
[all …]
/openbsd/sys/dev/pci/drm/amd/pm/powerplay/smumgr/
H A Dvegam_smumgr.c464 table->Smio[level] |= in vegam_populate_smc_mvdd_table()
1208 table->VceBootLevel = 0; in vegam_populate_smc_vce_level()
1321 table->UvdBootLevel = 0; in vegam_populate_smc_uvd_level()
1940 table->SystemFlags = 0; in vegam_init_smc_table()
2029 table->MemoryInterval = 1; in vegam_init_smc_table()
2037 table->PCIeBootLinkLevel = in vegam_init_smc_table()
2040 table->VRConfig = 0; in vegam_init_smc_table()
2046 table->ThermGpio = 17; in vegam_init_smc_table()
2053 table->VRHotLevel = in vegam_init_smc_table()
2111 table->Ulv.BifSclkDfs = in vegam_init_smc_table()
[all …]
H A Dpolaris10_smumgr.c680 table->Smio[level] |= in polaris10_populate_smc_mvdd_table()
1379 table->VceBootLevel = 0; in polaris10_populate_smc_vce_level()
1429 table->SamuBootLevel = 0; in polaris10_populate_smc_samu_level()
1534 table->UvdBootLevel = 0; in polaris10_populate_smc_uvd_level()
1584 table->MemoryBootLevel = 0; in polaris10_populate_smc_boot_level()
1932 table->SystemFlags = 0; in polaris10_init_smc_table()
2026 table->MemoryInterval = 1; in polaris10_init_smc_table()
2032 table->VRConfig = 0; in polaris10_init_smc_table()
2038 table->ThermGpio = 17; in polaris10_init_smc_table()
2087 table->ThermOutGpio = 17; in polaris10_init_smc_table()
[all …]
/openbsd/usr.sbin/relayd/
H A Dhce.c80 struct table *table; in hce_setup_events() local
105 struct table *table; in hce_disable_events() local
132 struct table *table; in hce_launch_checks() local
156 if (table->conf.skip_cnt) { in hce_launch_checks()
157 if (table->skipped++ > table->conf.skip_cnt) in hce_launch_checks()
158 table->skipped = 0; in hce_launch_checks()
159 if (table->skipped != 1) in hce_launch_checks()
181 host->cte.table = table; in hce_launch_checks()
196 struct table *table; in hce_notify_done() local
289 struct table *table; in hce_dispatch_pfe() local
[all …]
/openbsd/usr.bin/less/
H A Dposition.c52 return (table[where]); in position()
67 table[i-1] = table[i]; in add_forw_pos()
83 table[i] = table[i-1]; in add_back_pos()
84 table[0] = pos; in add_back_pos()
96 table[i] = -1; in pos_clear()
113 if (table != NULL) { in pos_init()
115 free(table); in pos_init()
136 if (pos < table[0]) in onscreen()
139 if (pos < table[i]) in onscreen()
159 if (table[i] != -1 && table[i] != 0) in empty_lines()
[all …]
/openbsd/sys/netinet/
H A Din_pcb.c185 &table->inpt_mask); in in_pcbinit()
188 table->inpt_count = 0; in in_pcbinit()
190 arc4random_buf(&table->inpt_key, sizeof(table->inpt_key)); in in_pcbinit()
191 arc4random_buf(&table->inpt_lkey, sizeof(table->inpt_lkey)); in in_pcbinit()
264 if (table->inpt_count++ > INPCBHASH_LOADFACTOR(table->inpt_size)) in in_pcballoc()
265 (void)in_pcbresize(table, table->inpt_size * 2); in in_pcballoc()
617 table->inpt_count--; in in_pcbdetach()
845 head = &table->inpt_lhashtbl[lhash & table->inpt_lmask]; in in_pcblookup_local_lock()
1022 head = &table->inpt_lhashtbl[lhash & table->inpt_lmask]; in in_pcbhash_insert()
1034 head = &table->inpt_hashtbl[hash & table->inpt_mask]; in in_pcbhash_insert()
[all …]
/openbsd/regress/sys/net/pf_table/
H A DMakefile8 table-ref.conf \
9 table-pgone.out \
10 table-persist.out \
11 table-ref.out \
12 table-refgone.out
60 table-pgone.out:
68 table-persist.out:
76 table-ref.out:
84 table-refgone.out:
87 flags: pf-instab.conf pf-reftab.conf table-pgone.out table-persist.out \
[all …]

12345678910>>...75