| /freebsd/contrib/unbound/util/storage/ |
| H A D | lruhash.c | 67 struct lruhash* table = (struct lruhash*)calloc(1, in lruhash_create() local 69 if(!table) in lruhash_create() 71 lock_quick_init(&table->lock); in lruhash_create() 72 table->sizefunc = sizefunc; in lruhash_create() 73 table->compfunc = compfunc; in lruhash_create() 74 table->delkeyfunc = delkeyfunc; in lruhash_create() 75 table->deldatafunc = deldatafunc; in lruhash_create() 76 table->cb_arg = arg; in lruhash_create() 77 table->size = start_size; in lruhash_create() 78 table in lruhash_create() 99 bin_delete(struct lruhash * table,struct lruhash_bin * bin) bin_delete() argument 118 bin_split(struct lruhash * table,struct lruhash_bin * newa,int newmask) bin_split() argument 154 lruhash_delete(struct lruhash * table) lruhash_delete() argument 183 reclaim_space(struct lruhash * table,struct lruhash_entry ** list) reclaim_space() argument 219 bin_find_entry(struct lruhash * table,struct lruhash_bin * bin,hashvalue_type hash,void * key,size_t * collisions) bin_find_entry() argument 236 table_grow(struct lruhash * table) table_grow() argument 271 lru_front(struct lruhash * table,struct lruhash_entry * entry) lru_front() argument 282 lru_remove(struct lruhash * table,struct lruhash_entry * entry) lru_remove() argument 293 lru_touch(struct lruhash * table,struct lruhash_entry * entry) lru_touch() argument 305 lruhash_insert(struct lruhash * table,hashvalue_type hash,struct lruhash_entry * entry,void * data,void * cb_arg) lruhash_insert() argument 364 lruhash_lookup(struct lruhash * table,hashvalue_type hash,void * key,int wr) lruhash_lookup() argument 386 lruhash_remove(struct lruhash * table,hashvalue_type hash,void * key) lruhash_remove() argument 424 bin_clear(struct lruhash * table,struct lruhash_bin * bin) bin_clear() argument 446 lruhash_clear(struct lruhash * table) lruhash_clear() argument 467 lruhash_status(struct lruhash * table,const char * id,int extended) lruhash_status() argument 501 lruhash_get_mem(struct lruhash * table) lruhash_get_mem() argument 524 lruhash_setmarkdel(struct lruhash * table,lruhash_markdelfunc_type md) lruhash_setmarkdel() argument 532 lruhash_update_space_used(struct lruhash * table,void * cb_arg,int diff_size) lruhash_update_space_used() argument 595 lru_demote(struct lruhash * table,struct lruhash_entry * entry) lru_demote() argument 618 lruhash_insert_or_retrieve(struct lruhash * table,hashvalue_type hash,struct lruhash_entry * entry,void * data,void * cb_arg) lruhash_insert_or_retrieve() argument [all...] |
| H A D | slabhash.h | 39 * Hash table that consists of smaller hash tables. 52 * Hash table formed from several smaller ones. 53 * This results in a partitioned lruhash table, a 'slashtable'. 69 * Create new slabbed hash table. 73 * @param maxmem: maximum amount of memory this table is allowed to use. 74 * so every table gets maxmem/numtables to use for itself. 80 * @return: new hash table or NULL on malloc failure. 88 * Delete hash table. Entries are all deleted. 89 * @param table: to delete. 91 void slabhash_delete(struct slabhash* table); [all...] |
| H A D | lruhash.h | 41 * The hash table keeps a maximum memory size. Old entries are removed 48 * so that the next thread can access the lookup table. 145 * Hash table that keeps LRU list of entries. 150 /** the size function for entries in this table */ 152 /** the compare function for entries in this table. */ 175 /** the number of entries in the hash table. */ 179 /** the amount of space the hash table is maximally allowed to use. */ 199 * An entry into the hash table. 228 * Create new hash table. 230 * @param maxmem: maximum amount of memory this table i [all...] |
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRuntimeLibcallSignatures.cpp | 14 /// table providing type signatures for all runtime library functions that LLVM 93 std::vector<RuntimeLibcallSignature> Table; member 96 RuntimeLibcallSignatureTable() : Table(RTLIB::UNKNOWN_LIBCALL, unsupported) { in RuntimeLibcallSignatureTable() 98 Table[RTLIB::SHL_I16] = i16_func_i16_i16; in RuntimeLibcallSignatureTable() 99 Table[RTLIB::SHL_I32] = i32_func_i32_i32; in RuntimeLibcallSignatureTable() 100 Table[RTLIB::SHL_I64] = i64_func_i64_i64; in RuntimeLibcallSignatureTable() 101 Table[RTLIB::SHL_I128] = i64_i64_func_i64_i64_i32; in RuntimeLibcallSignatureTable() 102 Table[RTLIB::SRL_I16] = i16_func_i16_i16; in RuntimeLibcallSignatureTable() 103 Table[RTLIB::SRL_I32] = i32_func_i32_i32; in RuntimeLibcallSignatureTable() 104 Table[RTLIB::SRL_I64] = i64_func_i64_i64; in RuntimeLibcallSignatureTable() [all …]
|
| H A D | WebAssemblyInstrTable.td | 1 // WebAssemblyInstrTable.td - WebAssembly Table codegen support -*- tablegen -*- 10 /// WebAssembly Table operand code-gen constructs. 23 multiclass TABLE<WebAssemblyRegClass rc, string suffix> { 25 defm TABLE_GET_#rc : I<(outs rc:$res), (ins table32_op:$table, I32:$i), 26 (outs), (ins table32_op:$table), 27 …cast<Intrinsic>("int_wasm_table_get_" # suffix) (WebAssemblyWrapper tglobaladdr:$table), I32:$i))], 28 "table.get\t$res, $table, $i", 29 "table.get\t$table", 33 defm TABLE_SET_#rc : I<(outs), (ins table32_op:$table, I32:$i, rc:$val), 34 (outs), (ins table32_op:$table), [all …]
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | rtbl.c | 69 rtbl_set_flags (rtbl_t table, unsigned int flags) in rtbl_set_flags() argument 71 table->flags = flags; in rtbl_set_flags() 75 rtbl_get_flags (rtbl_t table) in rtbl_get_flags() argument 77 return table->flags; in rtbl_get_flags() 81 rtbl_get_column_by_id (rtbl_t table, unsigned int id) in rtbl_get_column_by_id() argument 84 for(i = 0; i < table->num_columns; i++) in rtbl_get_column_by_id() 85 if(table->columns[i]->column_id == id) in rtbl_get_column_by_id() 86 return table->columns[i]; in rtbl_get_column_by_id() 91 rtbl_get_column (rtbl_t table, const char *column) in rtbl_get_column() argument 94 for(i = 0; i < table->num_columns; i++) in rtbl_get_column() [all …]
|
| H A D | rtbl.3 | 57 .Fn rtbl_add_column "rtbl_t table" "const char *column_name" "unsigned int flags" 59 .Fn rtbl_add_column_by_id "rtbl_t table" "unsigned int column_id" "const char *column_header" "unsi… 61 .Fn rtbl_add_column_entry "rtbl_t table" "const char *column_name" "const char *cell_entry" 63 .Fn rtbl_add_column_entry_by_id "rtbl_t table" "unsigned int column_id" "const char *cell_entry" 67 .Fn rtbl_destroy "rtbl_t table" 69 .Fn rtbl_new_row "rtbl_t table" 71 .Fn rtbl_set_column_affix_by_id "rtbl_t table" "unsigned int column_id "const char *prefix" "const … 73 .Fn rtbl_set_column_prefix "rtbl_t table" "const char *column_name" "const char *prefix" 75 .Fn rtbl_get_flags "rtbl_t table" 77 .Fn rtbl_set_flags "rtbl_t table" "unsigned int flags" [all …]
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | basl.c | 97 basl_dump_table(const struct basl_table *const table, const bool mem) in basl_dump_table() argument 99 const ACPI_TABLE_HEADER *const header = table->data; in basl_dump_table() 103 data = table->data; in basl_dump_table() 105 data = vm_map_gpa(table->ctx, BHYVE_ACPI_BASE + table->off, in basl_dump_table() 106 table->len); in basl_dump_table() 113 BHYVE_ACPI_BASE + table->off, mem ? "Memory" : "FwCfg"); in basl_dump_table() 114 hexdump(data, table->len, NULL, 0); in basl_dump_table() 122 struct basl_table *table; in basl_dump() local 124 STAILQ_FOREACH(table, &basl_tables, chain) { in basl_dump() 125 BASL_EXEC(basl_dump_table(table, mem)); in basl_dump() [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-tsd.c | 26 * Thread specific data has implemented using a hash table, this avoids 31 * The majority of the entries in the hash table are for specific tsd 38 * By default the hash table is sized to 512 bins which is expected to 41 * The hash table contains two additional type of entries. They first 93 * tsd_hash_search - searches hash table for tsd_hash_entry 94 * @table: hash table 99 tsd_hash_search(tsd_hash_table_t *table, uint_t key, pid_t pid) in tsd_hash_search() argument 106 hash = hash_long((ulong_t)key * (ulong_t)pid, table->ht_bits); in tsd_hash_search() 107 bin = &table->ht_bins[hash]; in tsd_hash_search() 145 * tsd_hash_add - adds an entry to hash table [all …]
|
| /freebsd/contrib/kyua/utils/text/ |
| H A D | table_test.cpp | 29 #include "utils/text/table.hpp" 46 /// Because of the flattening of the formatted table into a string, we risk 48 /// a table. This should not happen, and not accounting for this little detail 51 /// \param expected Textual representation of the table, as a collection of 54 /// \param table The table to format. 58 const text::table& table) in table_formatter_check() argument 60 ATF_REQUIRE_EQ(expected, text::join(formatter.format(table), "\n") + "\n"); in table_formatter_check() 68 ATF_REQUIRE_EQ(5, text::table(5).ncolumns()); in ATF_TEST_CASE_BODY() 69 ATF_REQUIRE_EQ(10, text::table(10).ncolumns()); in ATF_TEST_CASE_BODY() 83 text::table table(2); in ATF_TEST_CASE_BODY() local [all …]
|
| /freebsd/sys/contrib/dev/acpica/common/ |
| H A D | ahtable.c | 3 * Module Name: ahtable - Table of known ACPI tables with descriptions 173 * DESCRIPTION: Find a match in the "help" table of supported ACPI tables 202 {ACPI_SIG_AEST, "Arm Error Source Table"}, 203 {ACPI_SIG_AGDI, "Arm Generic Diagnostic Dump and Reset Device Interface Table"}, 204 {ACPI_SIG_ASF, "Alert Standard Format Table"}, 205 {ACPI_SIG_ASPT, "AMD Secure Processor Table"}, 206 {ACPI_SIG_BDAT, "BIOS Data ACPI Table"}, 207 {ACPI_SIG_BERT, "Boot Error Record Table"}, 208 {ACPI_SIG_BGRT, "Boot Graphics Resource Table"}, 209 {ACPI_SIG_BOOT, "Simple Boot Flag Table"}, [all …]
|
| H A D | dmtbdump3.c | 167 * PARAMETERS: Table - A SLIC table 177 ACPI_TABLE_HEADER *Table) in AcpiDmDumpSlic() argument 180 (void) AcpiDmDumpTable (Table->Length, sizeof (ACPI_TABLE_HEADER), in AcpiDmDumpSlic() 181 (void *) ((UINT8 *)Table + sizeof (*Table)), in AcpiDmDumpSlic() 182 Table->Length - sizeof (*Table), AcpiDmTableInfoSlic); in AcpiDmDumpSlic() 190 * PARAMETERS: Table - An SLIT 200 ACPI_TABLE_HEADER *Table) in AcpiDmDumpSlit() argument 210 /* Main table */ in AcpiDmDumpSlit() 212 Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit); in AcpiDmDumpSlit() 220 Localities = (UINT32) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; in AcpiDmDumpSlit() [all …]
|
| H A D | dmtbdump2.c | 169 * PARAMETERS: Table - A IORT table 179 ACPI_TABLE_HEADER *Table) in AcpiDmDumpIort() argument 197 /* Main table */ in AcpiDmDumpIort() 199 Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIort); in AcpiDmDumpIort() 205 Revision = Table->Revision; in AcpiDmDumpIort() 216 Iort = ACPI_CAST_PTR (ACPI_TABLE_IORT, Table); in AcpiDmDumpIort() 223 Status = AcpiDmDumpTable (Table->Length, Offset, Table, in AcpiDmDumpIort() 232 while (Offset < Table->Length) in AcpiDmDumpIort() 236 IortNode = ACPI_ADD_PTR (ACPI_IORT_NODE, Table, Offset); in AcpiDmDumpIort() 242 Status = AcpiDmDumpTable (Table->Length, Offset, in AcpiDmDumpIort() [all …]
|
| /freebsd/contrib/wpa/src/utils/ |
| H A D | eloop.c | 72 struct eloop_sock *table; member 80 size_t count; /* sum of all table counts */ 126 static void eloop_trace_sock_add_ref(struct eloop_sock_table *table) in eloop_trace_sock_add_ref() argument 130 if (table == NULL || table->table == NULL) in eloop_trace_sock_add_ref() 132 for (i = 0; i < table->count; i++) { in eloop_trace_sock_add_ref() 133 wpa_trace_add_ref(&table->table[i], eloop, in eloop_trace_sock_add_ref() 134 table->table[i].eloop_data); in eloop_trace_sock_add_ref() 135 wpa_trace_add_ref(&table->table[i], user, in eloop_trace_sock_add_ref() 136 table->table[i].user_data); in eloop_trace_sock_add_ref() 141 static void eloop_trace_sock_remove_ref(struct eloop_sock_table *table) in eloop_trace_sock_remove_ref() argument [all …]
|
| /freebsd/sys/contrib/edk2/Include/IndustryStandard/ |
| H A D | Tpm20.h | 22 // Table 205 - Defines for SHA1 Hash Values 26 // Table 206 - Defines for SHA256 Hash Values 30 // Table 207 - Defines for SHA384 Hash Values 34 // Table 208 - Defines for SHA512 Hash Values 38 // Table 209 - Defines for SM3_256 Hash Values 42 // Table 210 - Defines for Architectural Limits Values 47 // Table 211 - Defines for Logic Values 53 // Table 215 - Defines for RSA Algorithm Constants 57 // Table 216 - Defines for ECC Algorithm Constants 61 // Table 217 - Defines for AES Algorithm Constants [all …]
|
| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_cache.c | 53 u16 table[0]; member 82 /* MODIFY only updates the GID table. Currently only used by 97 /* In RoCE, adding a GID to the table requires: 113 /* This lock protects the table entries from being 176 struct ib_gid_table *table, int ix, in write_gid() argument 181 __releases(&table->rwlock) __acquires(&table->rwlock) in write_gid() 192 table->data_vec[ix].props |= GID_TABLE_ENTRY_INVALID; in write_gid() 193 write_unlock_irq(&table->rwlock); in write_gid() 199 &table->data_vec[ix].context); in write_gid() 202 &table->data_vec[ix].context); in write_gid() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/ |
| H A D | dump.c | 120 struct iwl_umac_error_event_table table = {}; in iwl_fwrt_dump_umac_error_log() local 129 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() 132 fwrt->dump.umac_err_id = table.error_id; in iwl_fwrt_dump_umac_error_log() 141 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) { in iwl_fwrt_dump_umac_error_log() 144 fwrt->trans->status, table.valid); in iwl_fwrt_dump_umac_error_log() 147 if ((table.error_id & ~FW_SYSASSERT_CPU_MASK) == in iwl_fwrt_dump_umac_error_log() 154 IWL_ERR(fwrt, "0x%08X | %s\n", table.error_id, in iwl_fwrt_dump_umac_error_log() 155 iwl_fw_lookup_assert_desc(table.error_id)); in iwl_fwrt_dump_umac_error_log() 156 IWL_ERR(fwrt, "0x%08X | umac branchlink1\n", table.blink1); in iwl_fwrt_dump_umac_error_log() [all …]
|
| /freebsd/sys/dev/mlx4/mlx4_core/ |
| H A D | mlx4_icm.c | 250 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, in mlx4_table_get() argument 253 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get() 254 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get() 257 mutex_lock(&table->mutex); in mlx4_table_get() 259 if (table->icm[i]) { in mlx4_table_get() 260 ++table->icm[i]->refcount; in mlx4_table_get() 264 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get() 265 (table->lowmem ? gfp : GFP_HIGHUSER) | in mlx4_table_get() 266 __GFP_NOWARN, table->coherent); in mlx4_table_get() 267 if (!table->icm[i]) { in mlx4_table_get() [all …]
|
| /freebsd/sys/dev/vmware/vmci/ |
| H A D | vmci_hashtable.c | 21 static int hashtable_unlink_entry(struct vmci_hashtable *table, 23 static bool vmci_hashtable_entry_exists_locked(struct vmci_hashtable *table, 45 struct vmci_hashtable *table; in vmci_hashtable_create() local 47 table = vmci_alloc_kernel_mem(sizeof(*table), in vmci_hashtable_create() 49 if (table == NULL) in vmci_hashtable_create() 51 memset(table, 0, sizeof(*table)); in vmci_hashtable_create() 53 table->entries = vmci_alloc_kernel_mem(sizeof(*table->entries) * size, in vmci_hashtable_create() 55 if (table->entries == NULL) { 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() [all …]
|
| /freebsd/crypto/krb5/src/windows/leash/htmlhelp/html/ |
| H A D | Using_Leash_Menus.htm | 16 <table> 35 </table> 40 <p>The table below gives a quick explanation of each of the buttons. To jump to a detailed How To p… 41 <table> 49 </table> 59 <p>The table below gives a quick explanation of each of the View options. </p> 61 <table> 65 <table id="table-inner"><tr id="table-inner"><td id="table-inner"> 66 <img src="Images/checkbox.PNG" alt="checkbox image" width="20" height="20" /> </td> <td id="table… 67 </table> [all …]
|
| H A D | Options_Tab.htm | 18 <table> 33 </tbody></table> 48 <table> 58 <table id="table-inner"><tr id="table-inner"><td id="table-inner"> 59 <img src="Images/checkbox.PNG" alt="checkbox image" width="20" height="20" /> </td> <td id="table… 60 </table> 64 <table id="table-inner"><tr id="table-inner"><td id="table-inner"> 65 <img src="Images/checkbox.PNG" alt="checkbox image" width="20" height="20" /> </td> <td id="table… 66 </table> 79 <table id="table-inner"><tr id="table-inner"><td id="table-inner"> [all …]
|
| /freebsd/stand/common/ |
| H A D | part.c | 209 /* Check CRC only when buffer size is enough for table. */ in gpt_checktbl() 212 DPRINTF("GPT table's CRC doesn't match"); in gpt_checktbl() 228 ptable_gptread(struct ptable *table, void *dev, diskread_t dread) in ptable_gptread() argument 238 buf = malloc(table->sectorsize); in ptable_gptread() 241 tbl = malloc(table->sectorsize * MAXTBLSZ); in ptable_gptread() 248 ptable_close(table); in ptable_gptread() 249 table = NULL; in ptable_gptread() 254 phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1, in ptable_gptread() 255 table->sectorsize); in ptable_gptread() 257 /* Read the primary GPT table. */ in ptable_gptread() [all …]
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | st.c | 104 #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)(((void*)x),((void *)y)) == 0) argument 106 #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 116 Table of prime numbers 2^n+a, 2<=n<=30. 234 void st_free_table(st_table *table) in st_free_table() argument 239 for (i = 0; i < table->num_bins; i++) { in st_free_table() 240 ptr = table->bins[i]; in st_free_table() 247 free(table->bins); in st_free_table() 248 free(table); in st_free_table() 251 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument [all …]
|
| /freebsd/contrib/elftoolchain/libelftc/ |
| H A D | elftc_string_table_create.3 | 45 .Fn elftc_string_table_destroy "Elftc_String_Table *table" 50 .Fa "Elftc_String_Table *table" 55 .Fa "Elftc_String_Table *table" 60 .Fa "Elftc_String_Table *table" 65 .Fa "Elftc_String_Table *table" 70 .Fa "Elftc_String_Table *table" 79 creates a new, empty string table. 83 the table. 90 destroys the previously allocated string table specified by 92 .Ar table , [all …]
|
| /freebsd/sys/contrib/dev/acpica/components/tables/ |
| H A D | tbdata.c | 3 * Module Name: tbdata - Table manager data structure functions 178 * PARAMETERS: TableDesc - Table 1 descriptor to be compared 179 * TableIndex - Index of table 2 to be compared 183 * DESCRIPTION: This function compares a table with another table that has 184 * already been installed in the root table list. 195 ACPI_TABLE_HEADER *Table; in AcpiTbCompareTables() local 201 &Table, &TableLength, &TableFlags); in AcpiTbCompareTables() 208 * Check for a table match on the entire table length, in AcpiTbCompareTables() 212 memcmp (TableDesc->Pointer, Table, TableLength)) ? in AcpiTbCompareTables() 215 /* Release the acquired table */ in AcpiTbCompareTables() [all …]
|