/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
H A D | gk20a.c | 27 #include <subdev/volt.h> 124 struct nvkm_volt *volt = device->volt; local 132 if (!clk || !volt)
|
/linux-master/drivers/devfreq/ |
H A D | rk3399_dmc.c | 51 unsigned long volt, target_volt; member in struct:rk3399_dmcfreq 183 regulator_set_voltage(dmcfreq->vdd_center, dmcfreq->volt, 184 dmcfreq->volt); 200 regulator_set_voltage(dmcfreq->vdd_center, dmcfreq->volt, 201 dmcfreq->volt); 210 dmcfreq->volt = target_volt; 429 data->volt = dev_pm_opp_get_voltage(opp);
|
H A D | mtk-cci-devfreq.c | 226 unsigned long freq, volt; local 236 volt = dev_pm_opp_get_voltage(opp); 237 mtk_ccifreq_set_voltage(drv, volt);
|
/linux-master/drivers/cpufreq/ |
H A D | imx6q-cpufreq.c | 63 unsigned long freq_hz, volt, volt_old; local 78 volt = dev_pm_opp_get_voltage(opp); 85 new_freq / 1000, volt / 1000); 101 ret = regulator_set_voltage_tol(arm_reg, volt, 0); 175 ret = regulator_set_voltage_tol(arm_reg, volt, 0); 427 unsigned long volt = be32_to_cpup(val++); local 429 imx6_soc_volt[soc_opp_count++] = volt; 436 /* use fixed soc opp volt if no valid soc opp info found in dtb */
|
H A D | qcom-cpufreq-hw.c | 94 unsigned long volt) 101 return dev_pm_opp_add(cpu_dev, freq_hz, volt); 103 ret = dev_pm_opp_adjust_voltage(cpu_dev, freq_hz, volt, volt, volt); 204 u32 volt; local 246 volt = FIELD_GET(LUT_VOLT, data) * 1000; 254 if (!qcom_cpufreq_update_opp(cpu_dev, freq, volt)) { 279 if (!qcom_cpufreq_update_opp(cpu_dev, prev_freq, volt)) { 92 qcom_cpufreq_update_opp(struct device *cpu_dev, unsigned long freq_khz, unsigned long volt) argument
|
/linux-master/drivers/soc/mediatek/ |
H A D | mtk-svs.c | 43 /* svs bank volt flags */ 486 * @volt: bank voltage table 508 * opp_volt[i] = (volt[i] * volt_step) + volt_base; 527 u32 volt[MAX_OPP_ENTRIES]; member in struct:svs_bank 602 svsb->volt[i] = svs_opp_volt_to_bank_volt(opp_u_volt, 668 svsb_volt = max(svsb->volt[i] + temp_voffset, svsb->vmin); 847 i, svsb->volt[i], i, svsb->freq_pct[i]); 952 /* Target is to set svsb->volt[] by algorithm */ 955 /* volt[0] ~ volt[turn_p [all...] |
/linux-master/drivers/input/misc/ |
H A D | twl6040-vibra.c | 148 int volt; local 151 volt = regulator_get_voltage(info->supplies[0].consumer) / 1000; 152 vibdatl = twl6040_vibra_code(volt, info->vibldrv_res, 157 volt = regulator_get_voltage(info->supplies[1].consumer) / 1000; 158 vibdatr = twl6040_vibra_code(volt, info->vibrdrv_res, 306 dev_err(info->dev, "failed to set VDDVIBL volt %d\n", 316 dev_err(info->dev, "failed to set VDDVIBR volt %d\n",
|
/linux-master/drivers/input/keyboard/ |
H A D | tm2-touchkey.c | 90 u32 volt; local 94 volt = TM2_TOUCHKEY_LED_VOLTAGE_MIN; 97 volt = TM2_TOUCHKEY_LED_VOLTAGE_MAX; 102 regulator_set_voltage(touchkey->vdd, volt, volt);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gm20b.c | 24 #include <subdev/volt.h> 468 struct nvkm_volt *volt = base->subdev.device->volt; local 476 clk->new_uv = volt->vid[cstate->voltage].uv; 589 * - Voltage already increased to new level by volt, but maximum 595 * - Voltage is also old, it will be lowered by volt afterwards 853 struct nvkm_volt *volt = device->volt; local 856 _clk->uv = nvkm_volt_get(volt); 979 struct nvkm_volt *volt local [all...] |
/linux-master/drivers/hwmon/ |
H A D | nct7904.c | 303 int ret, volt, index; local 313 volt = ((ret & 0xff00) >> 5) | (ret & 0x7); 315 volt *= 2; /* 0.002V scale */ 317 volt *= 6; /* 0.006V scale */ 318 *val = volt; 325 volt = ((ret & 0xff00) >> 5) | (ret & 0x7); 327 volt *= 2; /* 0.002V scale */ 329 volt *= 6; /* 0.006V scale */ 330 *val = volt; 337 volt [all...] |
/linux-master/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | device.h | 52 #define nvxx_volt(a) nvxx_device(a)->volt
|
/linux-master/arch/arm/mach-omap2/ |
H A D | voltage.h | 154 unsigned long volt);
|
H A D | sram242x.S | 97 ldr r4, omap242x_sdi_prcm_voltctrl @ get addr of volt ctrl. 101 orr r5, r5, r9 @ bulld value for L0/L1-volt operation. 146 movne r9, #0x0 @ if up set flag up for pre up, hi volt 164 moveq r9, #0x1 @ if speed down, post down, drop volt 192 ldr r10, omap242x_srs_prcm_voltctrl @ get addr of volt ctrl 196 orr r8, r8, r9 @ bulld value for L0/L1-volt operation.
|
H A D | sram243x.S | 97 ldr r4, omap243x_sdi_prcm_voltctrl @ get addr of volt ctrl. 101 orr r5, r5, r9 @ bulld value for L0/L1-volt operation. 146 movne r9, #0x0 @ if up set flag up for pre up, hi volt 164 moveq r9, #0x1 @ if speed down, post down, drop volt 192 ldr r10, omap243x_srs_prcm_voltctrl @ get addr of volt ctrl 196 orr r8, r8, r9 @ bulld value for L0/L1-volt operation.
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | priv.h | 31 #include <subdev/volt.h>
|
H A D | base.c | 487 .volt = { 0x00000001, nv40_volt_new }, 513 .volt = { 0x00000001, nv40_volt_new }, 539 .volt = { 0x00000001, nv40_volt_new }, 565 .volt = { 0x00000001, nv40_volt_new }, 591 .volt = { 0x00000001, nv40_volt_new }, 617 .volt = { 0x00000001, nv40_volt_new }, 643 .volt = { 0x00000001, nv40_volt_new }, 669 .volt = { 0x00000001, nv40_volt_new }, 695 .volt = { 0x00000001, nv40_volt_new }, 721 .volt [all...] |
/linux-master/drivers/iio/adc/ |
H A D | qcom-vadc-common.c | 494 s64 volt = voltage; local 497 volt *= prescale->numerator * factor * full_scale_code_volt; 498 volt = div64_s64(volt, (s64)prescale->denominator * adc_vdd_ref_mv * 1000); 500 return volt;
|
/linux-master/drivers/power/supply/ |
H A D | da9052-battery.c | 287 int volt; local 289 volt = da9052_adc_manual_read(bat->da9052, DA9052_ADC_MAN_MUXSEL_VBAT); 290 if (volt < 0) 291 return volt; 293 *volt_mV = volt_reg_to_mV(volt);
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | layout.h | 24 NVKM_LAYOUT_ONCE(NVKM_SUBDEV_VOLT , struct nvkm_volt , volt)
|
/linux-master/drivers/regulator/ |
H A D | da903x-regulator.c | 215 int volt; local 218 volt = rdev->desc->min_uV + 221 volt = (info->max_uV + rdev->desc->min_uV) / 2 + 224 if (volt > info->max_uV) 227 return volt;
|
H A D | mt6380-regulator.c | 136 #define MT6380_REG_FIXED(match, vreg, enreg, enbit, volt, \ 149 .min_uV = volt, \
|
H A D | mt6357-regulator.c | 102 #define MT6357_REG_FIXED(match, vreg, volt) \ 115 .min_uV = volt, \
|
/linux-master/include/linux/power/ |
H A D | smartreflex.h | 306 int sr_enable(struct omap_sr *sr, unsigned long volt);
|
/linux-master/drivers/soc/ti/ |
H A D | smartreflex.c | 537 * @volt: The voltage at which the Voltage domain associated with 545 int sr_enable(struct omap_sr *sr, unsigned long volt) argument 557 volt_data = omap_voltage_get_voltdata(sr->voltdm, volt); 561 __func__, volt); 569 __func__, volt);
|
/linux-master/drivers/ufs/host/ |
H A D | ufs-mediatek.c | 482 int volt, ret; local 488 volt = cfg->vcore_volt; 499 ret = regulator_set_voltage(reg, volt, INT_MAX); 502 "failed to set vcore to %d\n", volt); 553 u32 volt; local 568 &volt)) { 587 cfg->vcore_volt = volt;
|