Lines Matching defs:table

53 	uint32_t *table;
56 table = kzalloc(array_size, GFP_KERNEL);
57 if (NULL == table)
61 table[i] = le32_to_cpu(pptable_array[i]);
63 *pptable_info_array = table;
75 uint32_t *table;
78 table = kzalloc(array_size, GFP_KERNEL);
79 if (NULL == table)
83 table[i] = le32_to_cpu(pptable_array[i]);
85 *pptable_info_array = table;
209 struct pp_atomctrl_voltage_table *table;
214 table = kzalloc(sizeof(struct pp_atomctrl_voltage_table),
217 if (NULL == table)
220 table->mask_low = vol_table->mask_low;
221 table->phase_delay = vol_table->phase_delay;
227 for (j = 0; j < table->count; j++) {
228 if (vvalue == table->entries[j].value) {
235 table->entries[table->count].value = vvalue;
236 table->entries[table->count].smio_low =
238 table->count++;
242 memcpy(vol_table, table, sizeof(struct pp_atomctrl_voltage_table));
243 kfree(table);
244 table = NULL;
271 "Failed to trim MVDD table.", return result);
299 "Failed to trim VDDCI table.", return result);
346 int phm_reset_single_dpm_table(void *table,
351 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table;
362 void *table,
366 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table;
372 int32_t phm_get_dpm_level_enable_mask_value(void *table)
376 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table;
405 /* voltage is bigger than max voltage in the table */
426 /* voltage is bigger than max voltage in the table */
443 int phm_find_boot_level(void *table,
448 struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table;
469 PP_ASSERT_WITH_CODE(lookup_table->count != 0, "Lookup table is empty", return -EINVAL);
479 pr_debug("Can't find requested voltage id in vdd_dep_on_sclk table\n");
498 /* initialize vddc_dep_on_dal_pwrl table */
549 struct phm_clock_voltage_dependency_table *table =
555 if (!table || table->count <= 0
560 for (i = 0; i < table->count; i++) {
561 if (dal_power_level == table->entries[i].clk) {
562 req_vddc = table->entries[i].v;
674 void *smu_atom_get_data_table(void *dev, uint32_t table, uint16_t *size,
681 adev->mode_info.atom_context, table, size,
719 struct watermarks *table = wt_table;
721 if (!table || !wm_with_clock_ranges)
728 table->WatermarkRow[1][i].MinClock =
732 table->WatermarkRow[1][i].MaxClock =
736 table->WatermarkRow[1][i].MinUclk =
740 table->WatermarkRow[1][i].MaxUclk =
744 table->WatermarkRow[1][i].WmSetting = (uint8_t)
749 table->WatermarkRow[0][i].MinClock =
753 table->WatermarkRow[0][i].MaxClock =
757 table->WatermarkRow[0][i].MinUclk =
761 table->WatermarkRow[0][i].MaxUclk =
765 table->WatermarkRow[0][i].WmSetting = (uint8_t)