| /dflybsd-src/contrib/grep/lib/ |
| H A D | hash.c | 150 hash_get_n_buckets (const Hash_table *table) in hash_get_n_buckets() argument 152 return table->n_buckets; in hash_get_n_buckets() 158 hash_get_n_buckets_used (const Hash_table *table) in hash_get_n_buckets_used() argument 160 return table->n_buckets_used; in hash_get_n_buckets_used() 166 hash_get_n_entries (const Hash_table *table) in hash_get_n_entries() argument 168 return table->n_entries; in hash_get_n_entries() 174 hash_get_max_bucket_length (const Hash_table *table) in hash_get_max_bucket_length() argument 179 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_get_max_bucket_length() 201 hash_table_ok (const Hash_table *table) in hash_table_ok() argument 207 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_table_ok() [all …]
|
| /dflybsd-src/sys/dev/drm/amd/lib/ |
| H A D | chash.c | 40 int chash_table_alloc(struct chash_table *table, u8 bits, u8 key_size, in chash_table_alloc() argument 49 table->data = kcalloc(__CHASH_DATA_SIZE(bits, key_size, value_size), in chash_table_alloc() 51 if (!table->data) in chash_table_alloc() 54 __CHASH_TABLE_INIT(table->table, table->data, in chash_table_alloc() 65 void chash_table_free(struct chash_table *table) in chash_table_free() argument 67 kfree(table->data); in chash_table_free() 91 void __chash_table_dump_stats(struct __chash_table *table) in __chash_table_dump_stats() argument 93 struct chash_iter iter = CHASH_ITER_INIT(table, 0); in __chash_table_dump_stats() 109 table->key_size, table->value_size); in __chash_table_dump_stats() 111 1 << table->bits, filled, empty, tombstones); in __chash_table_dump_stats() [all …]
|
| /dflybsd-src/contrib/binutils-2.27/bfd/ |
| H A D | hash.c | 368 bfd_hash_table_init_n (struct bfd_hash_table *table, in bfd_hash_table_init_n() argument 385 table->memory = (void *) objalloc_create (); in bfd_hash_table_init_n() 386 if (table->memory == NULL) in bfd_hash_table_init_n() 391 table->table = (struct bfd_hash_entry **) in bfd_hash_table_init_n() 392 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n() 393 if (table->table == NULL) in bfd_hash_table_init_n() 395 bfd_hash_table_free (table); in bfd_hash_table_init_n() 399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n() 400 table->size = size; in bfd_hash_table_init_n() 401 table->entsize = entsize; in bfd_hash_table_init_n() [all …]
|
| /dflybsd-src/contrib/binutils-2.34/bfd/ |
| H A D | hash.c | 368 bfd_hash_table_init_n (struct bfd_hash_table *table, in bfd_hash_table_init_n() argument 385 table->memory = (void *) objalloc_create (); in bfd_hash_table_init_n() 386 if (table->memory == NULL) in bfd_hash_table_init_n() 391 table->table = (struct bfd_hash_entry **) in bfd_hash_table_init_n() 392 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n() 393 if (table->table == NULL) in bfd_hash_table_init_n() 395 bfd_hash_table_free (table); in bfd_hash_table_init_n() 399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n() 400 table->size = size; in bfd_hash_table_init_n() 401 table->entsize = entsize; in bfd_hash_table_init_n() [all …]
|
| /dflybsd-src/contrib/gdb-7/bfd/ |
| H A D | hash.c | 369 bfd_hash_table_init_n (struct bfd_hash_table *table, in bfd_hash_table_init_n() argument 386 table->memory = (void *) objalloc_create (); in bfd_hash_table_init_n() 387 if (table->memory == NULL) in bfd_hash_table_init_n() 392 table->table = (struct bfd_hash_entry **) in bfd_hash_table_init_n() 393 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n() 394 if (table->table == NULL) in bfd_hash_table_init_n() 399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n() 400 table->size = size; in bfd_hash_table_init_n() 401 table->entsize = entsize; in bfd_hash_table_init_n() 402 table->count = 0; in bfd_hash_table_init_n() [all …]
|
| /dflybsd-src/contrib/gcc-8.0/libcpp/ |
| H A D | symtab.c | 59 cpp_hash_table *table; in ht_create() local 61 table = XCNEW (cpp_hash_table); in ht_create() 64 obstack_specify_allocation (&table->stack, 0, 0, xmalloc, free); in ht_create() 66 obstack_alignment_mask (&table->stack) = 0; in ht_create() 68 table->entries = XCNEWVEC (hashnode, nslots); in ht_create() 69 table->entries_owned = true; in ht_create() 70 table->nslots = nslots; in ht_create() 71 return table; in ht_create() 77 ht_destroy (cpp_hash_table *table) in ht_destroy() argument 79 obstack_free (&table->stack, NULL); in ht_destroy() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/libcpp/ |
| H A D | symtab.c | 60 hash_table *table; in ht_create() local 62 table = XCNEW (hash_table); in ht_create() 65 _obstack_begin (&table->stack, 0, 0, in ht_create() 69 obstack_alignment_mask (&table->stack) = 0; in ht_create() 71 table->entries = XCNEWVEC (hashnode, nslots); in ht_create() 72 table->entries_owned = true; in ht_create() 73 table->nslots = nslots; in ht_create() 74 return table; in ht_create() 80 ht_destroy (hash_table *table) in ht_destroy() argument 82 obstack_free (&table->stack, NULL); in ht_destroy() [all …]
|
| /dflybsd-src/contrib/wpa_supplicant/src/utils/ |
| H A D | eloop.c | 72 struct eloop_sock *table; member 126 static void eloop_trace_sock_add_ref(struct eloop_sock_table *table) in eloop_trace_sock_add_ref() argument 129 if (table == NULL || table->table == NULL) in eloop_trace_sock_add_ref() 131 for (i = 0; i < table->count; i++) { in eloop_trace_sock_add_ref() 132 wpa_trace_add_ref(&table->table[i], eloop, in eloop_trace_sock_add_ref() 133 table->table[i].eloop_data); in eloop_trace_sock_add_ref() 134 wpa_trace_add_ref(&table->table[i], user, in eloop_trace_sock_add_ref() 135 table->table[i].user_data); in eloop_trace_sock_add_ref() 140 static void eloop_trace_sock_remove_ref(struct eloop_sock_table *table) in eloop_trace_sock_remove_ref() argument 143 if (table == NULL || table->table == NULL) in eloop_trace_sock_remove_ref() [all …]
|
| /dflybsd-src/sys/dev/drm/amd/include/linux/ |
| H A D | chash.h | 71 struct __chash_table table; \ 84 struct __chash_table table; member 110 #define DECLARE_CHASH_TABLE(table, bts, key_sz, val_sz) \ argument 111 STRUCT_CHASH_TABLE(bts, key_sz, val_sz) table 153 .table = { \ 167 __CHASH_TABLE_INIT(((tbl).table), (tbl).data, bts, key_sz, val_sz) 169 int chash_table_alloc(struct chash_table *table, u8 bits, u8 key_size, 171 void chash_table_free(struct chash_table *table); 182 #define chash_table_dump_stats(tbl) __chash_table_dump_stats(&(*tbl).table) 184 void __chash_table_dump_stats(struct __chash_table *table); [all …]
|
| /dflybsd-src/sys/dev/drm/i915/ |
| H A D | intel_mocs.c | 35 const struct drm_i915_mocs_entry *table; member 177 struct drm_i915_mocs_table *table) in get_mocs_settings() argument 182 table->size = ARRAY_SIZE(skylake_mocs_table); in get_mocs_settings() 183 table->table = skylake_mocs_table; in get_mocs_settings() 186 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings() 187 table->table = broxton_mocs_table; in get_mocs_settings() 198 for (i = 0; i < table->size; i++) in get_mocs_settings() 199 if (WARN_ON(table->table[i].l3cc_value & in get_mocs_settings() 238 struct drm_i915_mocs_table table; in intel_mocs_init_engine() local 241 if (!get_mocs_settings(dev_priv, &table)) in intel_mocs_init_engine() [all …]
|
| /dflybsd-src/contrib/binutils-2.27/gas/ |
| H A D | hash.c | 52 struct hash_entry **table; member 93 ret->table = (struct hash_entry **) obstack_alloc (&ret->memory, alloc); in hash_new_sized() 94 memset (ret->table, 0, alloc); in hash_new_sized() 118 hash_die (struct hash_control *table) in hash_die() argument 120 obstack_free (&table->memory, 0); in hash_die() 121 free (table); in hash_die() 134 hash_lookup (struct hash_control *table, const char *key, size_t len, in hash_lookup() argument 146 ++table->lookups; in hash_lookup() 162 hindex = hash % table->size; in hash_lookup() 163 list = table->table + hindex; in hash_lookup() [all …]
|
| /dflybsd-src/contrib/binutils-2.34/gas/ |
| H A D | hash.c | 52 struct hash_entry **table; member 93 ret->table = (struct hash_entry **) obstack_alloc (&ret->memory, alloc); in hash_new_sized() 94 memset (ret->table, 0, alloc); in hash_new_sized() 118 hash_die (struct hash_control *table) in hash_die() argument 120 obstack_free (&table->memory, 0); in hash_die() 121 free (table); in hash_die() 134 hash_lookup (struct hash_control *table, const char *key, size_t len, in hash_lookup() argument 146 ++table->lookups; in hash_lookup() 162 hindex = hash % table->size; in hash_lookup() 163 list = table->table + hindex; in hash_lookup() [all …]
|
| /dflybsd-src/lib/libc/locale/ |
| H A D | collate.c | 66 __collate_load_tables_l(const char *encoding, struct xlocale_collate *table); 71 struct xlocale_collate *table = t; in destruct_collate() local 72 if (table->map && (table->maplen > 0)) { in destruct_collate() 73 (void) munmap(table->map, table->maplen); in destruct_collate() 84 struct xlocale_collate *table = calloc(sizeof(struct xlocale_collate), 1); in __collate_load() local 85 table->header.header.destructor = destruct_collate; in __collate_load() 88 if (__collate_load_tables_l(encoding, table) != _LDP_LOADED) { in __collate_load() 89 xlocale_release(table); in __collate_load() 92 return table; in __collate_load() 105 __collate_load_tables_l(const char *encoding, struct xlocale_collate *table) in __collate_load_tables_l() argument [all …]
|
| /dflybsd-src/sys/dev/drm/amd/powerplay/smumgr/ |
| H A D | vegam_smumgr.c | 449 SMU75_Discrete_DpmTable *table) in vegam_populate_smc_mvdd_table() argument 459 table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_mvdd_table() 462 table->SmioTable2.Pattern[level].Smio = in vegam_populate_smc_mvdd_table() 464 table->Smio[level] |= in vegam_populate_smc_mvdd_table() 467 table->SmioMask2 = data->mvdd_voltage_table.mask_low; in vegam_populate_smc_mvdd_table() 469 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in vegam_populate_smc_mvdd_table() 476 struct SMU75_Discrete_DpmTable *table) in vegam_populate_smc_vddci_table() argument 487 table->SmioTable1.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_vddci_table() 489 table->SmioTable1.Pattern[level].Smio = (uint8_t) level; in vegam_populate_smc_vddci_table() 491 table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low; in vegam_populate_smc_vddci_table() [all …]
|
| H A D | ci_smumgr.c | 840 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument 846 table->VddcLevelCount = data->vddc_voltage_table.count; in ci_populate_smc_vddc_table() 847 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table() 850 &(table->VddcLevel[count])); in ci_populate_smc_vddc_table() 855 table->VddcLevel[count].Smio = (uint8_t) count; in ci_populate_smc_vddc_table() 856 table->Smio[count] |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table() 857 table->SmioMaskVddcVid |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table() 859 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table() 863 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in ci_populate_smc_vddc_table() 869 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vdd_ci_table() argument [all …]
|
| H A D | tonga_smumgr.c | 293 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vddc_table() argument 299 table->VddcLevelCount = data->vddc_voltage_table.count; in tonga_populate_smc_vddc_table() 300 for (count = 0; count < table->VddcLevelCount; count++) { in tonga_populate_smc_vddc_table() 301 table->VddcTable[count] = in tonga_populate_smc_vddc_table() 304 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in tonga_populate_smc_vddc_table() 310 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vdd_gfx_table() argument 316 table->VddGfxLevelCount = data->vddgfx_voltage_table.count; in tonga_populate_smc_vdd_gfx_table() 318 table->VddGfxTable[count] = in tonga_populate_smc_vdd_gfx_table() 321 CONVERT_FROM_HOST_TO_SMC_UL(table->VddGfxLevelCount); in tonga_populate_smc_vdd_gfx_table() 327 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vdd_ci_table() argument [all …]
|
| H A D | polaris10_smumgr.c | 428 SMU74_Discrete_DpmTable *table = &(smu_data->smc_state_table); in polaris10_populate_bapm_parameters_in_dpm_table() local 438 table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table() 439 table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table() 445 table->TemperatureLimitEdge = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 447 table->TemperatureLimitHotspot = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 449 table->FanGainEdge = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 451 table->FanGainHotspot = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 460 table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*pdef1); in polaris10_populate_bapm_parameters_in_dpm_table() 461 table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*pdef2); in polaris10_populate_bapm_parameters_in_dpm_table() 646 SMU74_Discrete_DpmTable *table) in polaris10_populate_smc_mvdd_table() argument [all …]
|
| H A D | iceland_smumgr.c | 618 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vddc_table() argument 624 table->VddcLevelCount = data->vddc_voltage_table.count; in iceland_populate_smc_vddc_table() 625 for (count = 0; count < table->VddcLevelCount; count++) { in iceland_populate_smc_vddc_table() 628 &(table->VddcLevel[count])); in iceland_populate_smc_vddc_table() 633 table->VddcLevel[count].Smio |= data->vddc_voltage_table.entries[count].smio_low; in iceland_populate_smc_vddc_table() 635 table->VddcLevel[count].Smio = 0; in iceland_populate_smc_vddc_table() 638 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in iceland_populate_smc_vddc_table() 644 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vdd_ci_table() argument 650 table->VddciLevelCount = data->vddci_voltage_table.count; in iceland_populate_smc_vdd_ci_table() 652 for (count = 0; count < table->VddciLevelCount; count++) { in iceland_populate_smc_vdd_ci_table() [all …]
|
| H A D | fiji_smumgr.c | 767 struct SMU73_Discrete_DpmTable *table) in fiji_populate_cac_table() argument 785 table->BapmVddcVidLoSidd[count] = in fiji_populate_cac_table() 787 table->BapmVddcVidHiSidd[count] = in fiji_populate_cac_table() 795 struct SMU73_Discrete_DpmTable *table) in fiji_populate_smc_voltage_tables() argument 799 result = fiji_populate_cac_table(hwmgr, table); in fiji_populate_smc_voltage_tables() 833 struct SMU73_Discrete_DpmTable *table) in fiji_populate_ulv_state() argument 835 return fiji_populate_ulv_level(hwmgr, &table->Ulv); in fiji_populate_ulv_state() 839 struct SMU73_Discrete_DpmTable *table) in fiji_populate_smc_link_level() argument 849 table->LinkLevel[i].PcieGenSpeed = in fiji_populate_smc_link_level() 851 table->LinkLevel[i].PcieLaneCount = (uint8_t)encode_pcie_lane_width( in fiji_populate_smc_link_level() [all …]
|
| /dflybsd-src/contrib/file/magic/Magdir/ |
| H A D | gpt | 5 # GPT Partition table patterns. 11 # partition table code (aka MBR). 15 # First, detect the MBR partition table 17 # (the other MBR detection code will then just print the MBR partition table) 36 >>>>>>>>>>>>>(454.l*8192) string EFI\ PART GPT partition table 38 >>>>>>>>>>>>>>&-8 use gpt-table 41 >>>>>>>>>>>>>>(454.l*4096) string EFI\ PART GPT partition table 43 >>>>>>>>>>>>>>>&-8 use gpt-table 46 >>>>>>>>>>>>>>>(454.l*2048) string EFI\ PART GPT partition table 48 >>>>>>>>>>>>>>>>&-8 use gpt-table [all …]
|
| /dflybsd-src/usr.bin/indent/ |
| H A D | lexi.c | 129 static char const *table[] = { variable 201 if (i >= nitems(table) || table[i] == NULL || in lexi() 202 table[i][s - 'A'] == ' ') { in lexi() 203 s = table[0][s - 'A']; in lexi() 206 s = table[i][s - 'A']; in lexi() 589 table['-'] = table['+']; in init_constant_tt() 590 table['8'] = table['9']; in init_constant_tt() 591 table['2'] = table['3'] = table['4'] = table['5'] = table['6'] = table['7']; in init_constant_tt() 592 table['A'] = table['C'] = table['D'] = table['c'] = table['d'] = table['a']; in init_constant_tt() 593 table['B'] = table['b']; in init_constant_tt() [all …]
|
| /dflybsd-src/sys/dev/drm/radeon/ |
| H A D | rv730_dpm.c | 230 RV770_SMC_STATETABLE *table) in rv730_populate_smc_acpi_state() argument 242 table->ACPIState = table->initialState; in rv730_populate_smc_acpi_state() 243 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in rv730_populate_smc_acpi_state() 247 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state() 248 table->ACPIState.levels[0].gen2PCIE = pi->pcie_gen2 ? in rv730_populate_smc_acpi_state() 250 table->ACPIState.levels[0].gen2XSP = in rv730_populate_smc_acpi_state() 254 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state() 255 table->ACPIState.levels[0].gen2PCIE = 0; in rv730_populate_smc_acpi_state() 297 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_smc_acpi_state() 298 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL2 = cpu_to_be32(mpll_func_cntl_2); in rv730_populate_smc_acpi_state() [all …]
|
| /dflybsd-src/contrib/less/ |
| H A D | position.c | 24 static POSITION *table = NULL; /* The position table */ variable 53 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() 116 table = (POSITION *) ecalloc((size_t) sc_height, sizeof(POSITION)); /*{{type-issue}}*/ in pos_init() [all …]
|
| /dflybsd-src/contrib/gdb-7/gdb/ |
| H A D | ui-out.c | 109 struct ui_out_table table; member 283 if (uiout->table.flag) in ui_out_table_begin() 288 uiout->table.flag = 1; in ui_out_table_begin() 289 uiout->table.body_flag = 0; in ui_out_table_begin() 290 uiout->table.entry_level = uiout->level + 1; in ui_out_table_begin() 291 uiout->table.columns = nbrofcols; in ui_out_table_begin() 293 uiout->table.id = xstrdup (tblid); in ui_out_table_begin() 295 uiout->table.id = NULL; in ui_out_table_begin() 298 uo_table_begin (uiout, nbrofcols, nr_rows, uiout->table.id); in ui_out_table_begin() 304 if (!uiout->table.flag) in ui_out_table_body() [all …]
|
| /dflybsd-src/usr.sbin/nscd/ |
| H A D | hashtable.h | 69 #define HASHTABLE_ENTRIES_COUNT(table) ((table)->entries_size) argument 75 #define HASHTABLE_INIT(table, type, field, _entries_size) \ argument 78 (table)->entries = (void *)calloc(1, \ 79 sizeof(*(table)->entries) * (_entries_size)); \ 80 (table)->entries_size = (_entries_size); \ 81 for (var = 0; var < HASHTABLE_ENTRIES_COUNT(table); ++var) {\ 82 (table)->entries[var].field.capacity = \ 84 (table)->entries[var].field.size = 0; \ 85 (table)->entries[var].field.values = (type *)malloc(\ 88 assert((table)->entries[var].field.values != NULL);\ [all …]
|