/Linux-v4.19/drivers/gpu/drm/amd/lib/ |
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 …]
|
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_hem.c | 92 struct hns_roce_hem_table *table, unsigned long *obj, in hns_roce_calc_hem_mhop() argument 101 switch (table->type) { in hns_roce_calc_hem_mhop() 152 table->type); in hns_roce_calc_hem_mhop() 163 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop() 165 chunk_size = table->type < HEM_TYPE_MTT ? mhop->buf_chunk_size : in hns_roce_calc_hem_mhop() 167 table_idx = (*obj & (table->num_obj - 1)) / in hns_roce_calc_hem_mhop() 168 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop() 184 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop() 280 struct hns_roce_hem_table *table, unsigned long obj) in hns_roce_set_hem() argument 295 unsigned long i = (obj & (table->num_obj - 1)) / in hns_roce_set_hem() [all …]
|
/Linux-v4.19/arch/s390/mm/ |
D | pgalloc.c | 66 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free() argument 68 free_pages((unsigned long) table, 2); in crst_table_free() 82 unsigned long *table, *pgd; in crst_table_upgrade() local 90 table = crst_table_alloc(mm); in crst_table_upgrade() 91 if (!table) { in crst_table_upgrade() 98 crst_table_init(table, _REGION2_ENTRY_EMPTY); in crst_table_upgrade() 99 p4d_populate(mm, (p4d_t *) table, (pud_t *) pgd); in crst_table_upgrade() 100 mm->pgd = (pgd_t *) table; in crst_table_upgrade() 105 crst_table_init(table, _REGION1_ENTRY_EMPTY); in crst_table_upgrade() 106 pgd_populate(mm, (pgd_t *) table, (p4d_t *) pgd); in crst_table_upgrade() [all …]
|
/Linux-v4.19/tools/power/acpi/tools/acpidump/ |
D | apdump.c | 15 ap_dump_table_buffer(struct acpi_table_header *table, 30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument 33 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header() 37 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_is_valid_header() 40 *(u32 *)table->signature); in ap_is_valid_header() 46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header() 48 table->length); in ap_is_valid_header() 68 u8 ap_is_valid_checksum(struct acpi_table_header *table) in ap_is_valid_checksum() argument 73 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_checksum() 78 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_is_valid_checksum() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/include/linux/ |
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 …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | icm.c | 260 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() argument 262 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get() 263 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get() 266 mutex_lock(&table->mutex); in mlx4_table_get() 268 if (table->icm[i]) { in mlx4_table_get() 269 ++table->icm[i]->refcount; in mlx4_table_get() 273 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get() 274 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mlx4_table_get() 275 __GFP_NOWARN, table->coherent); in mlx4_table_get() 276 if (!table->icm[i]) { in mlx4_table_get() [all …]
|
/Linux-v4.19/tools/objtool/arch/x86/lib/ |
D | inat.c | 43 const insn_attr_t *table; in inat_get_escape_attribute() local 48 table = inat_escape_tables[n][0]; in inat_get_escape_attribute() 49 if (!table) in inat_get_escape_attribute() 51 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute() 52 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute() 53 if (!table) in inat_get_escape_attribute() 56 return table[opcode]; in inat_get_escape_attribute() 62 const insn_attr_t *table; in inat_get_group_attribute() local 67 table = inat_group_tables[n][0]; in inat_get_group_attribute() 68 if (!table) in inat_get_group_attribute() [all …]
|
/Linux-v4.19/tools/perf/util/intel-pt-decoder/ |
D | inat.c | 43 const insn_attr_t *table; in inat_get_escape_attribute() local 48 table = inat_escape_tables[n][0]; in inat_get_escape_attribute() 49 if (!table) in inat_get_escape_attribute() 51 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute() 52 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute() 53 if (!table) in inat_get_escape_attribute() 56 return table[opcode]; in inat_get_escape_attribute() 62 const insn_attr_t *table; in inat_get_group_attribute() local 67 table = inat_group_tables[n][0]; in inat_get_group_attribute() 68 if (!table) in inat_get_group_attribute() [all …]
|
/Linux-v4.19/arch/x86/lib/ |
D | inat.c | 43 const insn_attr_t *table; in inat_get_escape_attribute() local 48 table = inat_escape_tables[n][0]; in inat_get_escape_attribute() 49 if (!table) in inat_get_escape_attribute() 51 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute() 52 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute() 53 if (!table) in inat_get_escape_attribute() 56 return table[opcode]; in inat_get_escape_attribute() 62 const insn_attr_t *table; in inat_get_group_attribute() local 67 table = inat_group_tables[n][0]; in inat_get_group_attribute() 68 if (!table) in inat_get_group_attribute() [all …]
|
/Linux-v4.19/arch/powerpc/boot/ |
D | planetcore.c | 29 void planetcore_prepare_table(char *table) in planetcore_prepare_table() argument 32 if (*table == '\n') in planetcore_prepare_table() 33 *table = 0; in planetcore_prepare_table() 35 table++; in planetcore_prepare_table() 36 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table() 38 *table = 0; in planetcore_prepare_table() 41 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() argument 46 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key() 47 return table + keylen + 1; in planetcore_get_key() 49 table += strlen(table) + 1; in planetcore_get_key() [all …]
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
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 183 table->size = ARRAY_SIZE(skylake_mocs_table); in get_mocs_settings() 184 table->table = skylake_mocs_table; in get_mocs_settings() 187 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings() 188 table->table = broxton_mocs_table; in get_mocs_settings() 199 for (i = 0; i < table->size; i++) in get_mocs_settings() 200 if (WARN_ON(table->table[i].l3cc_value & in get_mocs_settings() 241 struct drm_i915_mocs_table table; in intel_mocs_init_engine() local 244 if (!get_mocs_settings(dev_priv, &table)) in intel_mocs_init_engine() [all …]
|
/Linux-v4.19/drivers/infiniband/core/ |
D | cache.c | 49 u16 table[0]; member 156 static bool is_gid_index_default(const struct ib_gid_table *table, in is_gid_index_default() argument 159 return index < 32 && (BIT(index) & table->default_gid_indices); in is_gid_index_default() 213 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked() local 223 write_lock_irq(&table->rwlock); in free_gid_entry_locked() 231 if (entry == table->data_vec[entry->attr.index]) in free_gid_entry_locked() 232 table->data_vec[entry->attr.index] = NULL; in free_gid_entry_locked() 234 write_unlock_irq(&table->rwlock); in free_gid_entry_locked() 263 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_work() local 265 mutex_lock(&table->lock); in free_gid_work() [all …]
|
/Linux-v4.19/drivers/media/i2c/ |
D | ks0127.c | 217 u8 *table = reg_defaults; in init_reg_defaults() local 223 table[KS_CMDA] = 0x2c; /* VSE=0, CCIR 601, autodetect standard */ in init_reg_defaults() 224 table[KS_CMDB] = 0x12; /* VALIGN=0, AGC control and input */ in init_reg_defaults() 225 table[KS_CMDC] = 0x00; /* Test options */ in init_reg_defaults() 227 table[KS_CMDD] = 0x01; in init_reg_defaults() 228 table[KS_HAVB] = 0x00; /* HAV Start Control */ in init_reg_defaults() 229 table[KS_HAVE] = 0x00; /* HAV End Control */ in init_reg_defaults() 230 table[KS_HS1B] = 0x10; /* HS1 Start Control */ in init_reg_defaults() 231 table[KS_HS1E] = 0x00; /* HS1 End Control */ in init_reg_defaults() 232 table[KS_HS2B] = 0x00; /* HS2 Start Control */ in init_reg_defaults() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 109 static struct mlx5_rl_entry *find_rl_entry(struct mlx5_rl_table *table, in find_rl_entry() argument 116 for (i = 0; i < table->max_size; i++) { in find_rl_entry() 117 if (mlx5_rl_are_equal(&table->rl_entry[i].rl, rl)) in find_rl_entry() 118 return &table->rl_entry[i]; in find_rl_entry() 119 if (!empty_found && !table->rl_entry[i].rl.rate) { in find_rl_entry() 121 ret_entry = &table->rl_entry[i]; in find_rl_entry() 146 struct mlx5_rl_table *table = &dev->priv.rl_table; in mlx5_rl_is_in_range() local 148 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range() 164 struct mlx5_rl_table *table = &dev->priv.rl_table; in mlx5_rl_add_rate() local 168 mutex_lock(&table->rl_lock); in mlx5_rl_add_rate() [all …]
|
/Linux-v4.19/drivers/clk/ |
D | clk-divider.c | 31 static unsigned int _get_table_maxdiv(const struct clk_div_table *table, in _get_table_maxdiv() argument 37 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv() 43 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument 48 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv() 54 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument 61 if (table) in _get_maxdiv() 62 return _get_table_maxdiv(table, width); in _get_maxdiv() 66 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument 71 for (clkt = table; clkt->div; clkt++) in _get_table_div() 77 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() argument [all …]
|
/Linux-v4.19/net/sched/ |
D | sch_gred.c | 62 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() argument 64 return test_bit(GRED_WRED_MODE, &table->flags); in gred_wred_mode() 67 static inline void gred_enable_wred_mode(struct gred_sched *table) in gred_enable_wred_mode() argument 69 __set_bit(GRED_WRED_MODE, &table->flags); in gred_enable_wred_mode() 72 static inline void gred_disable_wred_mode(struct gred_sched *table) in gred_disable_wred_mode() argument 74 __clear_bit(GRED_WRED_MODE, &table->flags); in gred_disable_wred_mode() 77 static inline int gred_rio_mode(struct gred_sched *table) in gred_rio_mode() argument 79 return test_bit(GRED_RIO_MODE, &table->flags); in gred_rio_mode() 82 static inline void gred_enable_rio_mode(struct gred_sched *table) in gred_enable_rio_mode() argument 84 __set_bit(GRED_RIO_MODE, &table->flags); in gred_enable_rio_mode() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/smumgr/ |
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 …]
|
D | ci_smumgr.c | 839 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument 845 table->VddcLevelCount = data->vddc_voltage_table.count; in ci_populate_smc_vddc_table() 846 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table() 849 &(table->VddcLevel[count])); in ci_populate_smc_vddc_table() 854 table->VddcLevel[count].Smio = (uint8_t) count; in ci_populate_smc_vddc_table() 855 table->Smio[count] |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table() 856 table->SmioMaskVddcVid |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table() 858 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table() 862 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in ci_populate_smc_vddc_table() 868 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vdd_ci_table() argument [all …]
|
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 …]
|
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 …]
|
/Linux-v4.19/drivers/clk/ti/ |
D | divider.c | 31 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument 36 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv() 48 if (divider->table) in _get_maxdiv() 49 return _get_table_maxdiv(divider->table); in _get_maxdiv() 53 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument 58 for (clkt = table; clkt->div; clkt++) in _get_table_div() 70 if (divider->table) in _get_div() 71 return _get_table_div(divider->table, val); in _get_div() 75 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() argument 80 for (clkt = table; clkt->div; clkt++) in _get_table_val() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_memfree.c | 222 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_get() argument 224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get() 227 mutex_lock(&table->mutex); in mthca_table_get() 229 if (table->icm[i]) { in mthca_table_get() 230 ++table->icm[i]->refcount; in mthca_table_get() 234 table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mthca_table_get() 235 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mthca_table_get() 236 __GFP_NOWARN, table->coherent); in mthca_table_get() 237 if (!table->icm[i]) { in mthca_table_get() 242 if (mthca_MAP_ICM(dev, table->icm[i], in mthca_table_get() [all …]
|
/Linux-v4.19/fs/proc/ |
D | proc_sysctl.c | 183 struct ctl_node *node, struct ctl_table *table) in init_header() argument 185 head->ctl_table = table; in init_header() 186 head->ctl_table_arg = table; in init_header() 198 for (entry = table; entry->procname; entry++, node++) in init_header() 445 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm() argument 451 mode = root->permissions(head, table); in sysctl_perm() 453 mode = table->mode; in sysctl_perm() 459 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument 481 ei->sysctl_entry = table; in proc_sys_make_inode() 487 inode->i_mode = table->mode; in proc_sys_make_inode() [all …]
|
/Linux-v4.19/drivers/acpi/ |
D | tables.c | 387 struct acpi_table_header *table = NULL; in acpi_table_parse() local 396 acpi_get_table(id, acpi_apic_instance, &table); in acpi_table_parse() 398 acpi_get_table(id, 0, &table); in acpi_table_parse() 400 if (table) { in acpi_table_parse() 401 handler(table); in acpi_table_parse() 402 acpi_put_table(table); in acpi_table_parse() 415 struct acpi_table_header *table = NULL; in check_multiple_madt() local 417 acpi_get_table(ACPI_SIG_MADT, 2, &table); in check_multiple_madt() 418 if (table) { in check_multiple_madt() 424 acpi_put_table(table); in check_multiple_madt() [all …]
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
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 …]
|