/dragonfly/sys/dev/drm/amd/powerplay/smumgr/ |
H A D | fiji_smumgr.c | 1443 table->VceBootLevel = 0; in fiji_populate_smc_vce_level() 1482 table->AcpBootLevel = 0; in fiji_populate_smc_acp_level() 1579 table->UvdBootLevel = 0; in fiji_populate_smc_uvd_level() 1621 table->MemoryBootLevel = 0; in fiji_populate_smc_boot_level() 1844 table->VRConfig |= config; in fiji_populate_vr_config() 1948 table->SystemFlags = 0; in fiji_init_smc_table() 2037 table->MemoryInterval = 1; in fiji_init_smc_table() 2043 table->VRConfig = 0; in fiji_init_smc_table() 2049 table->ThermGpio = 17; in fiji_init_smc_table() 2099 table->ThermOutGpio = 17; in fiji_init_smc_table() [all …]
|
H A D | vega10_smumgr.c | 37 uint8_t *table, int16_t table_id) in vega10_copy_table_from_smc() argument 57 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc() 64 uint8_t *table, int16_t table_id) in vega10_copy_table_to_smc() argument 75 memcpy(priv->smu_tables.entry[table_id].table, table, in vega10_copy_table_to_smc() 187 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_init() 202 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_init() 218 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_init() 273 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_init() 277 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_init() 291 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_fini() [all …]
|
H A D | vega12_smumgr.c | 41 uint8_t *table, int16_t table_id) in vega12_copy_table_from_smc() argument 67 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc() 79 uint8_t *table, int16_t table_id) in vega12_copy_table_to_smc() argument 91 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc() 223 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_init() 297 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].table) in vega12_smu_init() 300 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_init() 304 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_init() 308 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_init() 323 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_fini() [all …]
|
/dragonfly/lib/libkiconv/ |
H A D | xlat16_iconv.c | 149 uint32_t table[0x80]; in kiconv_xlat16_open() local 202 table[us] = 0; in kiconv_xlat16_open() 206 if (table[us]) in kiconv_xlat16_open() 207 xt.idx[ls] = table; in kiconv_xlat16_open() 219 table[us] = 0; in kiconv_xlat16_open() 233 table[us] = 0; in kiconv_xlat16_open() 244 table[us] = ud; in kiconv_xlat16_open() 274 if (table[us] == 0) in kiconv_xlat16_open() 280 xt.idx[ls] = table; in kiconv_xlat16_open() 283 memcpy(p, table, sizeof(table)); in kiconv_xlat16_open() [all …]
|
/dragonfly/sys/contrib/dev/acpica/source/compiler/ |
H A D | new_table.txt | 1 How to add a new ACPI table to ACPICA and the iASL compiler. 5 new ACPI table: 6 1) Create a full definition of the table and any subtables 8 2) Add disassembler support for the new table 9 3) Add iASL table compiler support for the new table 23 Use ACPI_TABLE_HEADER for the common ACPI table header. 29 the table came from. 30 Use other table definitions for additional guidance. 37 Add table access macro(s) of the form ACPI_xxxx_OFFSET 48 similar table can often be ported for the new table. [all …]
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | frame-base.c | 73 struct frame_base_table *table in frame_base_init() local 76 table->tail = &table->head; in frame_base_init() 77 table->default_base = &default_frame_base; in frame_base_init() 78 return table; in frame_base_init() 85 struct frame_base_table *table = gdbarch_data (gdbarch, frame_base_data); in frame_base_append_sniffer() local 87 (*table->tail) in frame_base_append_sniffer() 89 (*table->tail)->sniffer = sniffer; in frame_base_append_sniffer() 90 table->tail = &(*table->tail)->next; in frame_base_append_sniffer() 99 table->default_base = default_base; in frame_base_set_default() 109 for (entry = table->head; entry != NULL; entry = entry->next) in frame_base_find_by_frame() [all …]
|
H A D | typeprint.c | 82 htab_t table; member 118 if (table == NULL) in recursively_update_typedef_hash() 126 slot = htab_find_slot (table->table, tdef, INSERT); in recursively_update_typedef_hash() 146 if (table == NULL) in add_template_parameters() 162 slot = htab_find_slot (table->table, tf, INSERT); in add_template_parameters() 188 if (table != NULL) in free_typedef_hash() 190 htab_delete (table->table); in free_typedef_hash() 192 xfree (table); in free_typedef_hash() 234 if (table == NULL) in copy_typedef_hash() 238 htab_traverse_noresize (table->table, copy_typedef_hash_element, in copy_typedef_hash() [all …]
|
H A D | frame-unwind.c | 49 struct frame_unwind_table *table in frame_unwind_init() local 54 table->list = OBSTACK_ZALLOC (obstack, struct frame_unwind_table_entry); in frame_unwind_init() 55 table->list->unwinder = &dummy_frame_unwind; in frame_unwind_init() 56 table->list->next = OBSTACK_ZALLOC (obstack, in frame_unwind_init() 58 table->list->next->unwinder = &inline_frame_unwind; in frame_unwind_init() 60 table->osabi_head = &table->list->next->next; in frame_unwind_init() 61 return table; in frame_unwind_init() 74 entry->next = (*table->osabi_head); in frame_unwind_prepend_unwinder() 75 (*table->osabi_head) = entry; in frame_unwind_prepend_unwinder() 86 for (ip = table->osabi_head; (*ip) != NULL; ip = &(*ip)->next); in frame_unwind_append_unwinder() [all …]
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | ci_dpm.c | 3710 table->SystemFlags = cpu_to_be32(table->SystemFlags); in ci_init_smc_table() 3715 table->SclkStepSize = cpu_to_be32(table->SclkStepSize); in ci_init_smc_table() 4374 for (i = 0, j = table->last; i < table->last; i++) { in ci_set_mc_special_registers() 4664 if (!table) in ci_initialize_mc_reg_table() 5022 if (table) { in ci_patch_clock_voltage_dependency_table_with_vddc_leakage() 5033 if (table) { in ci_patch_clock_voltage_dependency_table_with_vddci_leakage() 5044 if (table) { in ci_patch_vce_clock_voltage_dependency_table_with_vddc_leakage() 5055 if (table) { in ci_patch_uvd_clock_voltage_dependency_table_with_vddc_leakage() 5066 if (table) { in ci_patch_vddc_phase_shed_limit_table_with_vddc_leakage() 5075 if (table) { in ci_patch_clock_voltage_limits_with_vddc_leakage() [all …]
|
H A D | btc_dpm.c | 1176 if ((table == NULL) || (table->count == 0)) { in btc_get_max_clock_from_voltage_dependency_table() 1193 if ((table == NULL) || (table->count == 0)) in btc_apply_voltage_dependency_rules() 1302 return table->entries[table->count - 1].value; in btc_find_voltage() 1410 table->ULVState.levels[1] = table->ULVState.levels[0]; in btc_populate_ulv_state() 1411 table->ULVState.levels[2] = table->ULVState.levels[0]; in btc_populate_ulv_state() 1679 table->driverState = table->initialState; in btc_init_smc_table() 1683 (u8 *)table, in btc_init_smc_table() 1920 for (i = 0, j = table->last; i < table->last; i++) { in btc_set_mc_special_registers() 1970 table->last = j; in btc_set_mc_special_registers() 2023 if (!table) in btc_initialize_mc_reg_table() [all …]
|
H A D | cypress_dpm.c | 417 if (i == table->count) in cypress_populate_voltage_value() 1322 table->initialState.levels[1] = table->initialState.levels[0]; in cypress_populate_smc_initial_state() 1323 table->initialState.levels[2] = table->initialState.levels[0]; in cypress_populate_smc_initial_state() 1354 table->ACPIState = table->initialState; in cypress_populate_smc_acpi_state() 1461 table->ACPIState.levels[1] = table->ACPIState.levels[0]; in cypress_populate_smc_acpi_state() 1462 table->ACPIState.levels[2] = table->ACPIState.levels[0]; in cypress_populate_smc_acpi_state() 1518 table->highSMIO[i] = 0; in cypress_populate_smc_voltage_table() 1524 RV770_SMC_STATETABLE *table) in cypress_populate_smc_voltage_tables() argument 1533 table); in cypress_populate_smc_voltage_tables() 1551 table); in cypress_populate_smc_voltage_tables() [all …]
|
H A D | rv740_dpm.c | 316 RV770_SMC_STATETABLE *table) in rv740_populate_smc_acpi_state() argument 329 table->ACPIState = table->initialState; in rv740_populate_smc_acpi_state() 331 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in rv740_populate_smc_acpi_state() 335 &table->ACPIState.levels[0].vddc); in rv740_populate_smc_acpi_state() 336 table->ACPIState.levels[0].gen2PCIE = in rv740_populate_smc_acpi_state() 339 table->ACPIState.levels[0].gen2XSP = in rv740_populate_smc_acpi_state() 343 &table->ACPIState.levels[0].vddc); in rv740_populate_smc_acpi_state() 344 table->ACPIState.levels[0].gen2PCIE = 0; in rv740_populate_smc_acpi_state() 387 table->ACPIState.levels[0].sclk.sclk_value = 0; in rv740_populate_smc_acpi_state() 389 table->ACPIState.levels[1] = table->ACPIState.levels[0]; in rv740_populate_smc_acpi_state() [all …]
|
H A D | kv_dpm.c | 718 if (table && table->count) { in kv_program_bootup_state() 823 if (table == NULL || table->count == 0) in kv_populate_uvd_table() 894 if (table == NULL || table->count == 0) in kv_populate_vce_table() 957 if (table == NULL || table->count == 0) in kv_populate_samu_table() 1023 if (table == NULL || table->count == 0) in kv_populate_acp_table() 1079 if (table && table->count) { in kv_calculate_dfs_bypass_settings() 1711 if (table && table->count) { in kv_set_valid_clock_range() 1970 table->sclk = in kv_construct_max_power_limits_table() 2107 if (table && table->count) { in kv_get_high_voltage_limit() 2189 if (table && table->count) { in kv_apply_state_adjust_rules() [all …]
|
/dragonfly/sys/dev/drm/amd/powerplay/hwmgr/ |
H A D | processpptables.c | 312 const ATOM_PowerTune_Table *table, in get_cac_tdp_table() argument 385 * table->ucNumEntries; in get_clock_voltage_dependency_table() 1116 table->numEntries; in get_uvd_clock_voltage_limit_table() 1122 uvd_table->count = table->numEntries; in get_uvd_clock_voltage_limit_table() 1149 * table->numEntries; in get_vce_clock_voltage_limit_table() 1155 vce_table->count = table->numEntries; in get_vce_clock_voltage_limit_table() 1180 table->numEntries; in get_samu_clock_voltage_limit_table() 1208 table->numEntries; in get_acp_clock_voltage_limit_table() 1263 table, array); in init_clock_voltage_dependency() 1549 table = kzalloc(size, GFP_KERNEL); in init_phase_shedding_table() [all …]
|
H A D | smu_helper.c | 169 if (NULL == table) in phm_trim_voltage_table() 179 for (j = 0; j < table->count; j++) { in phm_trim_voltage_table() 187 table->entries[table->count].value = vvalue; in phm_trim_voltage_table() 188 table->entries[table->count].smio_low = in phm_trim_voltage_table() 190 table->count++; in phm_trim_voltage_table() 195 kfree(table); in phm_trim_voltage_table() 196 table = NULL; in phm_trim_voltage_table() 314 void *table, in phm_setup_pcie_table_entry() argument 395 int phm_find_boot_level(void *table, in phm_find_boot_level() argument 496 if (!table || table->count <= 0 in phm_apply_dal_min_voltage_request() [all …]
|
H A D | smu8_hwmgr.c | 561 if (NULL == table || table->count <= 0) in smu8_init_sclk_limit() 572 clock = table->entries[table->count - 1].clk; in smu8_init_sclk_limit() 587 if (NULL == table || table->count <= 0) in smu8_init_uvd_limit() 599 clock = table->entries[table->count - 1].vclk; in smu8_init_uvd_limit() 614 if (NULL == table || table->count <= 0) in smu8_init_vce_limit() 626 clock = table->entries[table->count - 1].ecclk; in smu8_init_vce_limit() 641 if (NULL == table || table->count <= 0) in smu8_init_acp_limit() 653 clock = table->entries[table->count - 1].acpclk; in smu8_init_acp_limit() 1144 if (NULL == table || table->count <= 0) in smu8_phm_unforce_dpm_levels() 1157 clock = table->entries[table->count - 1].clk; in smu8_phm_unforce_dpm_levels() [all …]
|
/dragonfly/crypto/libressl/crypto/engine/ |
H A D | eng_table.c | 142 if (!(*table)) in engine_table_register() 144 if (!int_table_check(table, 1)) in engine_table_register() 212 if (int_table_check(table, 0)) in IMPLEMENT_LHASH_DOALL_ARG_FN() 213 lh_ENGINE_PILE_doall_arg(&(*table)->piles, in IMPLEMENT_LHASH_DOALL_ARG_FN() 229 engine_table_cleanup(ENGINE_TABLE **table) in IMPLEMENT_LHASH_DOALL_FN() 232 if (*table) { in IMPLEMENT_LHASH_DOALL_FN() 233 lh_ENGINE_PILE_doall(&(*table)->piles, in IMPLEMENT_LHASH_DOALL_FN() 235 lh_ENGINE_PILE_free(&(*table)->piles); in IMPLEMENT_LHASH_DOALL_FN() 236 *table = NULL; in IMPLEMENT_LHASH_DOALL_FN() 254 if (!(*table)) { in engine_table_select() [all …]
|
/dragonfly/sys/dev/drm/ |
H A D | drm_hashtab.c | 46 ht->table = NULL; in drm_ht_create() 48 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create() 50 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create() 51 if (!ht->table) { in drm_ht_create() 68 h_list = &ht->table[hashed_key]; in drm_ht_verbose_list() 81 h_list = &ht->table[hashed_key]; in drm_ht_find_key() 99 h_list = &ht->table[hashed_key]; in drm_ht_find_key_rcu() 200 if (ht->table) { in drm_ht_remove() 202 kfree(ht->table); in drm_ht_remove() 204 kfree(ht->table); in drm_ht_remove() [all …]
|
H A D | linux_scatterlist.c | 56 __sg_alloc_table(struct sg_table *table, unsigned int nents, in __sg_alloc_table() argument 62 memset(table, 0, sizeof(*table)); in __sg_alloc_table() 88 table->nents = ++table->orig_nents; in __sg_alloc_table() 94 table->nents = table->orig_nents += sg_size; in __sg_alloc_table() 103 table->sgl = sg; in __sg_alloc_table() 122 if (unlikely(!table->sgl)) in __sg_free_table() 125 sgl = table->sgl; in __sg_free_table() 126 while (table->orig_nents) { in __sg_free_table() 127 unsigned int alloc_size = table->orig_nents; in __sg_free_table() 145 table->orig_nents -= sg_size; in __sg_free_table() [all …]
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | elf-strtab.c | 50 struct bfd_hash_table table; member 102 if (table == NULL) in _bfd_elf_strtab_init() 105 if (!bfd_hash_table_init (&table->table, elf_strtab_hash_newfunc, in _bfd_elf_strtab_init() 108 free (table); in _bfd_elf_strtab_init() 112 table->sec_size = 0; in _bfd_elf_strtab_init() 113 table->size = 1; in _bfd_elf_strtab_init() 114 table->alloced = 64; in _bfd_elf_strtab_init() 118 if (table->array == NULL) in _bfd_elf_strtab_init() 120 free (table); in _bfd_elf_strtab_init() 124 table->array[0] = NULL; in _bfd_elf_strtab_init() [all …]
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | elf-strtab.c | 49 struct bfd_hash_table table; member 101 if (table == NULL) in _bfd_elf_strtab_init() 104 if (!bfd_hash_table_init (&table->table, elf_strtab_hash_newfunc, in _bfd_elf_strtab_init() 107 free (table); in _bfd_elf_strtab_init() 111 table->sec_size = 0; in _bfd_elf_strtab_init() 112 table->size = 1; in _bfd_elf_strtab_init() 113 table->alloced = 64; in _bfd_elf_strtab_init() 117 if (table->array == NULL) in _bfd_elf_strtab_init() 119 free (table); in _bfd_elf_strtab_init() 123 table->array[0] = NULL; in _bfd_elf_strtab_init() [all …]
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | elf-strtab.c | 49 struct bfd_hash_table table; member 101 if (table == NULL) in _bfd_elf_strtab_init() 104 if (!bfd_hash_table_init (&table->table, elf_strtab_hash_newfunc, in _bfd_elf_strtab_init() 107 free (table); in _bfd_elf_strtab_init() 111 table->sec_size = 0; in _bfd_elf_strtab_init() 112 table->size = 1; in _bfd_elf_strtab_init() 113 table->alloced = 64; in _bfd_elf_strtab_init() 117 if (table->array == NULL) in _bfd_elf_strtab_init() 119 free (table); in _bfd_elf_strtab_init() 123 table->array[0] = NULL; in _bfd_elf_strtab_init() [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | str-kmp.h | 42 size_t *table = (size_t *) nmalloca (m, sizeof (size_t)); in knuth_morris_pratt() local 43 if (table == NULL) in knuth_morris_pratt() 64 table[1] = 1; in knuth_morris_pratt() 83 table[i] = i - ++j; in knuth_morris_pratt() 92 table[i] = i; in knuth_morris_pratt() 106 j = j - table[j]; in knuth_morris_pratt() 138 rhaystack += table[j]; in knuth_morris_pratt() 139 j -= table[j]; in knuth_morris_pratt() 149 freea (table); in knuth_morris_pratt()
|
/dragonfly/contrib/grep/lib/ |
H A D | str-kmp.h | 42 size_t *table = (size_t *) nmalloca (m, sizeof (size_t)); in knuth_morris_pratt() local 43 if (table == NULL) in knuth_morris_pratt() 64 table[1] = 1; in knuth_morris_pratt() 83 table[i] = i - ++j; in knuth_morris_pratt() 92 table[i] = i; in knuth_morris_pratt() 106 j = j - table[j]; in knuth_morris_pratt() 138 rhaystack += table[j]; in knuth_morris_pratt() 139 j -= table[j]; in knuth_morris_pratt() 149 freea (table); in knuth_morris_pratt()
|
/dragonfly/contrib/zstd/lib/dictBuilder/ |
H A D | zdict.c | 429 table[u] = table[u-1], u--; in ZDICT_tryMerge() 438 …if ((table[u].pos + table[u].length >= elt.pos) && (table[u].pos < elt.pos)) { /* overlap, existi… in ZDICT_tryMerge() 449 table[u] = table[u-1], u--; in ZDICT_tryMerge() 459 table[u].length = MIN(elt.length, table[u].length + 1); in ZDICT_tryMerge() 476 table[u] = table[u+1]; in ZDICT_removeDictItem() 477 table->pos--; in ZDICT_removeDictItem() 488 newMerge = ZDICT_tryMerge(table, table[mergeId], mergeId, buffer); in ZDICT_insertDictItem() 501 table[current+1] = table[current]; in ZDICT_insertDictItem() 686 if (table[u-1].count >= table[u].count) break; in ZDICT_insertSortCount() 688 table[u-1] = table[u]; in ZDICT_insertSortCount() [all …]
|