| /freebsd-14-stable/contrib/unbound/util/storage/ |
| HD | 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->size_mask = (int)(start_size-1); in lruhash_create() [all …]
|
| HD | 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 …]
|
| HD | 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 is allowed to use. [all …]
|
| /freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| HD | 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 …]
|
| HD | 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-14-stable/crypto/heimdal/lib/roken/ |
| HD | 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 …]
|
| HD | 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-14-stable/usr.sbin/bhyve/ |
| HD | 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-14-stable/sys/contrib/openzfs/module/os/linux/spl/ |
| HD | spl-tsd.c | 25 * Thread specific data has implemented using a hash table, this avoids 30 * The majority of the entries in the hash table are for specific tsd 37 * By default the hash table is sized to 512 bins which is expected to 40 * The hash table contains two additional type of entries. They first 92 * tsd_hash_search - searches hash table for tsd_hash_entry 93 * @table: hash table 98 tsd_hash_search(tsd_hash_table_t *table, uint_t key, pid_t pid) in tsd_hash_search() argument 105 hash = hash_long((ulong_t)key * (ulong_t)pid, table->ht_bits); in tsd_hash_search() 106 bin = &table->ht_bins[hash]; in tsd_hash_search() 144 * tsd_hash_add - adds an entry to hash table [all …]
|
| /freebsd-14-stable/contrib/kyua/utils/text/ |
| HD | 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-14-stable/contrib/wpa/src/utils/ |
| HD | 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-14-stable/sys/ofed/drivers/infiniband/core/ |
| HD | 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-14-stable/sys/contrib/dev/iwlwifi/fw/ |
| HD | 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-14-stable/sys/contrib/dev/acpica/common/ |
| HD | 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_BDAT, "BIOS Data ACPI Table"}, 206 {ACPI_SIG_BERT, "Boot Error Record Table"}, 207 {ACPI_SIG_BGRT, "Boot Graphics Resource Table"}, 208 {ACPI_SIG_BOOT, "Simple Boot Flag Table"}, 209 {ACPI_SIG_CCEL, "CC-Event Log Table"}, [all …]
|
| HD | 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), Table, in AcpiDmDumpSlic() 181 Table->Length - sizeof (*Table), AcpiDmTableInfoSlic); in AcpiDmDumpSlic() 189 * PARAMETERS: Table - An SLIT 199 ACPI_TABLE_HEADER *Table) in AcpiDmDumpSlit() argument 209 /* Main table */ in AcpiDmDumpSlit() 211 Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit); in AcpiDmDumpSlit() 219 Localities = (UINT32) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; in AcpiDmDumpSlit() 221 Row = (UINT8 *) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->Entry; in AcpiDmDumpSlit() [all …]
|
| HD | 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 …]
|
| HD | dmtbdump1.c | 168 * PARAMETERS: Table - A AEST table 172 * DESCRIPTION: Format the contents of a AEST table 174 * NOTE: Assumes the following table structure: 181 * AEST - ARM Error Source table. Conforms to: 188 ACPI_TABLE_HEADER *Table) in AcpiDmDumpAest() argument 200 /* Very small, generic main table. AEST consists of mostly subtables */ in AcpiDmDumpAest() 202 while (Offset < Table->Length) in AcpiDmDumpAest() 204 NodeHeader = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); in AcpiDmDumpAest() 208 Status = AcpiDmDumpTable (Table->Length, Offset, NodeHeader, in AcpiDmDumpAest() 257 Subtable = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); in AcpiDmDumpAest() [all …]
|
| /freebsd-14-stable/sys/dev/mlx4/mlx4_core/ |
| HD | 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-14-stable/sys/dev/vmware/vmci/ |
| HD | 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-14-stable/stand/common/ |
| HD | 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-14-stable/contrib/ofed/opensm/opensm/ |
| HD | 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-14-stable/contrib/elftoolchain/libelftc/ |
| HD | 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-14-stable/sys/contrib/dev/acpica/components/tables/ |
| HD | 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 …]
|
| /freebsd-14-stable/contrib/ofed/opensm/include/opensm/ |
| HD | osm_mcast_tbl.h | 40 * This object represents a multicast forwarding table. 60 /****s* OpenSM: Forwarding Table/osm_mcast_tbl_t 65 * Multicast Forwarding Table structure. 88 * Maximum bit mask position for this table. This value 92 * Maximum block number supported in the table. This value 97 * Number of entries in the table (aka number of MLIDs supported). 101 * port mask table. 105 * table. 115 /****f* OpenSM: Forwarding Table/osm_mcast_tbl_init 120 * This function initializes a Multicast Forwarding Table object. [all …]
|
| /freebsd-14-stable/lib/libc/locale/ |
| HD | collate.c | 77 __collate_load_tables_l(const char *encoding, struct xlocale_collate *table); 82 struct xlocale_collate *table = t; in destruct_collate() local 83 if (table->map && (table->maplen > 0)) { in destruct_collate() 84 (void) munmap(table->map, table->maplen); in destruct_collate() 99 struct xlocale_collate *table = calloc(sizeof(struct xlocale_collate), in __collate_load() local 101 if (table == NULL) in __collate_load() 103 table->header.header.destructor = destruct_collate; in __collate_load() 109 if (__collate_load_tables_l(encoding, table) != _LDP_LOADED) { in __collate_load() 110 xlocale_release(table); in __collate_load() 113 return (table); in __collate_load() [all …]
|