volt 17 arch/arm/mach-omap2/smartreflex-class3.c unsigned long volt = voltdm_get_voltage(sr->voltdm); volt 19 arch/arm/mach-omap2/smartreflex-class3.c if (!volt) { volt 26 arch/arm/mach-omap2/smartreflex-class3.c return sr_enable(sr, volt); volt 74 arch/arm/mach-omap2/voltage.c unsigned long volt = 0; volt 96 arch/arm/mach-omap2/voltage.c volt = voltdm->volt_data[i].volt_nominal; volt 101 arch/arm/mach-omap2/voltage.c if (!volt) { volt 107 arch/arm/mach-omap2/voltage.c ret = voltdm->scale(voltdm, volt); volt 109 arch/arm/mach-omap2/voltage.c voltdm->nominal_volt = volt; volt 181 arch/arm/mach-omap2/voltage.c unsigned long volt) volt 197 arch/arm/mach-omap2/voltage.c if (voltdm->volt_data[i].volt_nominal == volt) volt 154 arch/arm/mach-omap2/voltage.h unsigned long volt); volt 13 arch/arm/mach-omap2/vp.c static u32 _vp_set_init_voltage(struct voltagedomain *voltdm, u32 volt) volt 19 arch/arm/mach-omap2/vp.c vsel = voltdm->pmic->uv_to_vsel(volt); volt 200 arch/arm/mach-omap2/vp.c u32 vpconfig, volt; volt 218 arch/arm/mach-omap2/vp.c volt = voltdm_get_voltage(voltdm); volt 219 arch/arm/mach-omap2/vp.c if (!volt) { volt 225 arch/arm/mach-omap2/vp.c vpconfig = _vp_set_init_voltage(voltdm, volt); volt 267 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 4070, .cur = 162, .level = 100}, volt 268 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 4040, .cur = 165, .level = 95}, volt 269 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 4016, .cur = 164, .level = 90}, volt 270 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3996, .cur = 166, .level = 85}, volt 271 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3971, .cur = 168, .level = 80}, volt 272 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3951, .cur = 168, .level = 75}, volt 273 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3931, .cur = 170, .level = 70}, volt 274 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3903, .cur = 172, .level = 65}, volt 275 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3886, .cur = 172, .level = 60}, volt 276 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3858, .cur = 176, .level = 55}, volt 277 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3842, .cur = 176, .level = 50}, volt 278 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3818, .cur = 176, .level = 45}, volt 279 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3789, .cur = 180, .level = 40}, volt 280 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3769, .cur = 180, .level = 35}, volt 281 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3749, .cur = 184, .level = 30}, volt 282 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3732, .cur = 184, .level = 25}, volt 283 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3716, .cur = 184, .level = 20}, volt 284 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3708, .cur = 184, .level = 15}, volt 285 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3716, .cur = 96, .level = 10}, volt 286 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3700, .cur = 96, .level = 5}, volt 287 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3684, .cur = 96, .level = 0}, volt 291 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 4130, .cur = 0, .level = 100}, volt 292 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3982, .cur = 0, .level = 50}, volt 293 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3854, .cur = 0, .level = 10}, volt 294 arch/arm/mach-s3c24xx/mach-h1940.c { .volt = 3841, .cur = 0, .level = 0}, volt 166 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4100, .cur = 156, .level = 100}, volt 167 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4050, .cur = 156, .level = 95}, volt 168 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4025, .cur = 141, .level = 90}, volt 169 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3995, .cur = 144, .level = 85}, volt 170 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3957, .cur = 162, .level = 80}, volt 171 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3931, .cur = 147, .level = 75}, volt 172 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3902, .cur = 147, .level = 70}, volt 173 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3863, .cur = 153, .level = 65}, volt 174 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3838, .cur = 150, .level = 60}, volt 175 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3800, .cur = 153, .level = 55}, volt 176 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3765, .cur = 153, .level = 50}, volt 177 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3748, .cur = 172, .level = 45}, volt 178 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3740, .cur = 153, .level = 40}, volt 179 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3714, .cur = 175, .level = 35}, volt 180 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3710, .cur = 156, .level = 30}, volt 181 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3963, .cur = 156, .level = 25}, volt 182 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3672, .cur = 178, .level = 20}, volt 183 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3651, .cur = 178, .level = 15}, volt 184 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3629, .cur = 178, .level = 10}, volt 185 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3612, .cur = 162, .level = 5}, volt 186 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3605, .cur = 162, .level = 0}, volt 190 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4200, .cur = 0, .level = 100}, volt 191 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4190, .cur = 0, .level = 99}, volt 192 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4178, .cur = 0, .level = 95}, volt 193 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4110, .cur = 0, .level = 70}, volt 194 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4076, .cur = 0, .level = 65}, volt 195 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4046, .cur = 0, .level = 60}, volt 196 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 4021, .cur = 0, .level = 55}, volt 197 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3999, .cur = 0, .level = 50}, volt 198 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3982, .cur = 0, .level = 45}, volt 199 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3965, .cur = 0, .level = 40}, volt 200 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3957, .cur = 0, .level = 35}, volt 201 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3948, .cur = 0, .level = 30}, volt 202 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3936, .cur = 0, .level = 25}, volt 203 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3927, .cur = 0, .level = 20}, volt 204 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3906, .cur = 0, .level = 15}, volt 205 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3880, .cur = 0, .level = 10}, volt 206 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3829, .cur = 0, .level = 5}, volt 207 arch/arm/mach-s3c24xx/mach-rx1950.c { .volt = 3820, .cur = 0, .level = 0}, volt 62 drivers/cpufreq/imx6q-cpufreq.c unsigned long freq_hz, volt, volt_old; volt 77 drivers/cpufreq/imx6q-cpufreq.c volt = dev_pm_opp_get_voltage(opp); volt 84 drivers/cpufreq/imx6q-cpufreq.c new_freq / 1000, volt / 1000); volt 100 drivers/cpufreq/imx6q-cpufreq.c ret = regulator_set_voltage_tol(arm_reg, volt, 0); volt 174 drivers/cpufreq/imx6q-cpufreq.c ret = regulator_set_voltage_tol(arm_reg, volt, 0); volt 439 drivers/cpufreq/imx6q-cpufreq.c unsigned long volt = be32_to_cpup(val++); volt 441 drivers/cpufreq/imx6q-cpufreq.c imx6_soc_volt[soc_opp_count++] = volt; volt 46 drivers/cpufreq/omap-cpufreq.c unsigned long freq, volt = 0, volt_old = 0, tol = 0; volt 69 drivers/cpufreq/omap-cpufreq.c volt = dev_pm_opp_get_voltage(opp); volt 71 drivers/cpufreq/omap-cpufreq.c tol = volt * OPP_TOLERANCE / 100; volt 77 drivers/cpufreq/omap-cpufreq.c new_freq / 1000, volt ? volt / 1000 : -1); volt 81 drivers/cpufreq/omap-cpufreq.c r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); volt 93 drivers/cpufreq/omap-cpufreq.c r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); volt 90 drivers/cpufreq/qcom-cpufreq-hw.c u32 volt; volt 106 drivers/cpufreq/qcom-cpufreq-hw.c volt = FIELD_GET(LUT_VOLT, data) * 1000; volt 115 drivers/cpufreq/qcom-cpufreq-hw.c dev_pm_opp_add(cpu_dev, freq * 1000, volt); volt 136 drivers/cpufreq/qcom-cpufreq-hw.c dev_pm_opp_add(cpu_dev, prev_freq * 1000, volt); volt 69 drivers/devfreq/rk3399_dmc.c unsigned long volt, target_volt; volt 129 drivers/devfreq/rk3399_dmc.c regulator_set_voltage(dmcfreq->vdd_center, dmcfreq->volt, volt 130 drivers/devfreq/rk3399_dmc.c dmcfreq->volt); volt 146 drivers/devfreq/rk3399_dmc.c regulator_set_voltage(dmcfreq->vdd_center, dmcfreq->volt, volt 147 drivers/devfreq/rk3399_dmc.c dmcfreq->volt); volt 156 drivers/devfreq/rk3399_dmc.c dmcfreq->volt = target_volt; volt 445 drivers/devfreq/rk3399_dmc.c data->volt = dev_pm_opp_get_voltage(opp); volt 73 drivers/gpu/drm/nouveau/include/nvif/device.h #define nvxx_volt(a) nvxx_device(a)->volt volt 156 drivers/gpu/drm/nouveau/include/nvkm/core/device.h struct nvkm_volt *volt; volt 229 drivers/gpu/drm/nouveau/include/nvkm/core/device.h int (*volt )(struct nvkm_device *, int idx, struct nvkm_volt **); volt 33 drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h int nvkm_volt_map(struct nvkm_volt *volt, u8 id, u8 temperature); volt 34 drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h int nvkm_volt_map_min(struct nvkm_volt *volt, u8 id); volt 369 drivers/gpu/drm/nouveau/nouveau_hwmon.c struct nvkm_volt *volt = nvxx_volt(&drm->client.device); volt 371 drivers/gpu/drm/nouveau/nouveau_hwmon.c if (!volt || nvkm_volt_get(volt) < 0) volt 493 drivers/gpu/drm/nouveau/nouveau_hwmon.c struct nvkm_volt *volt = nvxx_volt(&drm->client.device); volt 496 drivers/gpu/drm/nouveau/nouveau_hwmon.c if (!volt) volt 503 drivers/gpu/drm/nouveau/nouveau_hwmon.c ret = nvkm_volt_get(volt); volt 507 drivers/gpu/drm/nouveau/nouveau_hwmon.c *val = volt->min_uv > 0 ? (volt->min_uv / 1000) : -ENODEV; volt 510 drivers/gpu/drm/nouveau/nouveau_hwmon.c *val = volt->max_uv > 0 ? (volt->max_uv / 1000) : -ENODEV; volt 720 drivers/gpu/drm/nouveau/nouveau_hwmon.c struct nvkm_volt *volt = nvxx_volt(&drm->client.device); volt 727 drivers/gpu/drm/nouveau/nouveau_hwmon.c if (!iccsense && !therm && !volt) { volt 488 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 514 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 540 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 566 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 592 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 618 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 644 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 670 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 696 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 722 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 748 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 774 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 800 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 829 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 855 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 881 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 907 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 936 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 968 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1000 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1032 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1064 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1096 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1128 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1161 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1195 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1228 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1260 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1292 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1325 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = nv40_volt_new, volt 1361 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1398 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1434 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1470 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1507 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1544 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1581 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1616 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf117_volt_new, volt 1652 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gf100_volt_new, volt 1689 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1728 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1767 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1798 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk20a_volt_new, volt 1831 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1869 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1907 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1945 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 1983 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 2017 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 2051 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 2086 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 2121 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gk104_volt_new, volt 2150 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .volt = gm20b_volt_new, volt 2665 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(VOLT , device->volt , &device->volt->subdev); volt 3171 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(NVKM_SUBDEV_VOLT , volt); volt 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = 0; volt 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c volt = nvbios_rd32(bios, bit_P.offset + 0x0c); volt 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c volt = nvbios_rd32(bios, bit_P.offset + 0x10); volt 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c if (volt) { volt 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *ver = nvbios_rd08(bios, volt + 0); volt 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *cnt = nvbios_rd08(bios, volt + 2); volt 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *len = nvbios_rd08(bios, volt + 1); volt 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c return volt; volt 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *hdr = nvbios_rd08(bios, volt + 1); volt 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *cnt = nvbios_rd08(bios, volt + 2); volt 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *len = nvbios_rd08(bios, volt + 3); volt 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c return volt; volt 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *hdr = nvbios_rd08(bios, volt + 1); volt 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *cnt = nvbios_rd08(bios, volt + 3); volt 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *len = nvbios_rd08(bios, volt + 2); volt 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c return volt; volt 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = nvbios_volt_table(bios, ver, hdr, cnt, len); volt 74 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c switch (!!volt * *ver) { volt 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x04); volt 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x05); volt 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x04); volt 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->base = nvbios_rd32(bios, volt + 0x04); volt 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->step = nvbios_rd16(bios, volt + 0x08); volt 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x0b); volt 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->max = nvbios_rd32(bios, volt + 0x0e); volt 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->min = nvbios_rd32(bios, volt + 0x0a); volt 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->max = nvbios_rd32(bios, volt + 0x0e); volt 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->base = nvbios_rd32(bios, volt + 0x12) & 0x00ffffff; volt 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c if (nvbios_rd32(bios, volt + 0x4) & 1) { volt 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->pwm_freq = nvbios_rd32(bios, volt + 0x5) / 1000; volt 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->pwm_range = nvbios_rd32(bios, volt + 0x16); volt 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x06); volt 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->step = nvbios_rd16(bios, volt + 0x16); volt 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c !!(nvbios_rd08(bios, volt + 0x4) & 0x2); volt 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c return volt; volt 128 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len); volt 129 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c if (volt && idx < cnt) { volt 130 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c volt = volt + hdr + (idx * *len); volt 131 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c return volt; volt 140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = nvbios_volt_entry(bios, idx, ver, len); volt 142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c switch (!!volt * *ver) { volt 145 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->voltage = nvbios_rd08(bios, volt + 0x00) * 10000; volt 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vid = nvbios_rd08(bios, volt + 0x01); volt 149 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->voltage = nvbios_rd08(bios, volt + 0x00) * 10000; volt 150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vid = nvbios_rd08(bios, volt + 0x01) >> 2; volt 155 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->voltage = nvbios_rd32(bios, volt) & 0x001fffff; volt 156 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vid = (nvbios_rd32(bios, volt) >> 23) & 0xff; volt 159 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c return volt; volt 83 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_volt *volt = clk->subdev.device->volt; volt 102 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (!volt) volt 105 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c voltage = nvkm_volt_map(volt, cstate->voltage, temp); volt 108 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c return voltage <= min(max_volt, volt->max_uv); volt 116 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_volt *volt = device->volt; volt 122 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (!volt) volt 125 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c max_volt = volt->max_uv; volt 126 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (volt->max0_id != 0xff) volt 128 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c nvkm_volt_map(volt, volt->max0_id, clk->temp)); volt 129 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (volt->max1_id != 0xff) volt 131 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c nvkm_volt_map(volt, volt->max1_id, clk->temp)); volt 132 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (volt->max2_id != 0xff) volt 134 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c nvkm_volt_map(volt, volt->max2_id, clk->temp)); volt 165 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_volt *volt = device->volt; volt 184 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (volt) { volt 185 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ret = nvkm_volt_set_id(volt, cstate->voltage, volt 199 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (volt) { volt 200 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ret = nvkm_volt_set_id(volt, cstate->voltage, volt 226 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_volt *volt = clk->subdev.device->volt; volt 237 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (volt && nvkm_volt_map_min(volt, cstepX.voltage) > volt->max_uv) volt 468 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c struct nvkm_volt *volt = base->subdev.device->volt; volt 476 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c clk->new_uv = volt->vid[cstate->voltage].uv; volt 853 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c struct nvkm_volt *volt = device->volt; volt 856 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c _clk->uv = nvkm_volt_get(volt); volt 982 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c struct nvkm_volt *volt = subdev->device->volt; volt 990 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c vmin = volt->vid[0].uv; volt 991 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c for (i = 1; i < volt->vid_nr; i++) { volt 992 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c if (volt->vid[i].uv <= vmin) { volt 993 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c vmin = volt->vid[i].uv; volt 994 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c id = volt->vid[i].vid; volt 124 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c struct nvkm_volt *volt = device->volt; volt 132 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c if (!clk || !volt) volt 32 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_get(struct nvkm_volt *volt) volt 36 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->func->volt_get) volt 37 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->func->volt_get(volt); volt 39 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c ret = volt->func->vid_get(volt); volt 41 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c for (i = 0; i < volt->vid_nr; i++) { volt 42 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->vid[i].vid == ret) volt 43 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->vid[i].uv; volt 51 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_set(struct nvkm_volt *volt, u32 uv) volt 53 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_subdev *subdev = &volt->subdev; volt 54 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int i, ret = -EINVAL, best_err = volt->max_uv, best = -1; volt 56 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->func->volt_set) volt 57 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->func->volt_set(volt, uv); volt 59 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c for (i = 0; i < volt->vid_nr; i++) { volt 60 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int err = volt->vid[i].uv - uv; volt 75 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c ret = volt->func->vid_set(volt, volt->vid[best].vid); volt 77 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid[best].uv, ret); volt 82 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_map_min(struct nvkm_volt *volt, u8 id) volt 84 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_bios *bios = volt->subdev.device->bios; volt 92 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int ret = nvkm_volt_map_min(volt, info.link); volt 104 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_map(struct nvkm_volt *volt, u8 id, u8 temp) volt 106 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_bios *bios = volt->subdev.device->bios; volt 115 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->speedo < 0) volt 116 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->speedo; volt 120 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c result += div64_s64((s64)info.arg[1] * volt->speedo, 10); volt 121 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c result += div64_s64((s64)info.arg[2] * volt->speedo * volt->speedo, 100000); volt 127 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c result += ((s64)info.arg[1] * volt->speedo * 15625) >> 18; volt 129 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c result += ((s64)info.arg[3] * volt->speedo * temp * 15625) >> 18; volt 130 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c result += ((s64)info.arg[4] * volt->speedo * volt->speedo * 15625) >> 30; volt 148 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int ret = nvkm_volt_map(volt, info.link, temp); volt 160 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_set_id(struct nvkm_volt *volt, u8 id, u8 min_id, u8 temp, volt 165 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->func->set_id) volt 166 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->func->set_id(volt, id, condition); volt 168 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c ret = nvkm_volt_map(volt, id, temp); volt 170 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int prev = nvkm_volt_get(volt); volt 174 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int min = nvkm_volt_map(volt, min_id, temp); volt 177 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c ret = nvkm_volt_set(volt, ret); volt 186 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_parse_bios(struct nvkm_bios *bios, struct nvkm_volt *volt) volt 198 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->min_uv = info.min; volt 199 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max_uv = info.max; volt 203 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid[volt->vid_nr].uv = info.base; volt 204 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid[volt->vid_nr].vid = i; volt 205 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid_nr++; volt 209 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid_mask = info.vidmask; volt 212 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->min_uv = 0xffffffff; volt 213 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max_uv = 0; volt 218 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid[volt->vid_nr].uv = ivid.voltage; volt 219 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid[volt->vid_nr].vid = ivid.vid; volt 220 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid_nr++; volt 221 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->min_uv = min(volt->min_uv, ivid.voltage); volt 222 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max_uv = max(volt->max_uv, ivid.voltage); volt 225 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid_mask = info.vidmask; volt 227 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->min_uv = info.base; volt 228 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max_uv = info.base + info.pwm_range; volt 233 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_speedo_read(struct nvkm_volt *volt) volt 235 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->func->speedo_read) volt 236 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->func->speedo_read(volt); volt 243 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_volt *volt = nvkm_volt(subdev); volt 244 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int ret = nvkm_volt_get(volt); volt 257 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_volt *volt = nvkm_volt(subdev); volt 259 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->speedo = nvkm_volt_speedo_read(volt); volt 260 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->speedo > 0) volt 261 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_debug(&volt->subdev, "speedo %x\n", volt->speedo); volt 263 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->func->oneinit) volt 264 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c return volt->func->oneinit(volt); volt 284 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c int index, struct nvkm_volt *volt) volt 289 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_subdev_ctor(&nvkm_volt, device, index, &volt->subdev); volt 290 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->func = func; volt 297 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_parse_bios(bios, volt); volt 298 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_debug(&volt->subdev, "min: %iuv max: %iuv\n", volt 299 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->min_uv, volt->max_uv); volt 302 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max0_id = vmap.max0; volt 303 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max1_id = vmap.max1; volt 304 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max2_id = vmap.max2; volt 306 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max0_id = 0xff; volt 307 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max1_id = 0xff; volt 308 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->max2_id = 0xff; volt 312 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (volt->vid_nr) { volt 313 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c for (i = 0; i < volt->vid_nr; i++) { volt 314 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_debug(&volt->subdev, "VID %02x: %duv\n", volt 315 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c volt->vid[i].vid, volt->vid[i].uv); volt 29 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c gf100_volt_speedo_read(struct nvkm_volt *volt) volt 31 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c struct nvkm_device *device = volt->subdev.device; volt 41 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c gf100_volt_oneinit(struct nvkm_volt *volt) volt 43 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c struct nvkm_subdev *subdev = &volt->subdev; volt 44 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c if (volt->speedo <= 0) volt 61 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c struct nvkm_volt *volt; volt 64 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c ret = nvkm_volt_new_(&gf100_volt, device, index, &volt); volt 65 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c *pvolt = volt; volt 69 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf100.c return nvkm_voltgpio_init(volt); volt 29 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c gf117_volt_speedo_read(struct nvkm_volt *volt) volt 31 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c struct nvkm_device *device = volt->subdev.device; volt 51 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c struct nvkm_volt *volt; volt 54 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c ret = nvkm_volt_new_(&gf117_volt, device, index, &volt); volt 55 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c *pvolt = volt; volt 59 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c return nvkm_voltgpio_init(volt); volt 69 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c gk104_volt_speedo_read(struct nvkm_volt *volt) volt 71 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c struct nvkm_device *device = volt->subdev.device; volt 103 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c struct gk104_volt *volt; volt 115 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c if (!(volt = kzalloc(sizeof(*volt), GFP_KERNEL))) volt 117 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c nvkm_volt_ctor(volt_func, device, index, &volt->base); volt 118 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c *pvolt = &volt->base; volt 119 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c volt->bios = bios; volt 126 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c nvkm_error(&volt->base.subdev, volt 132 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c nvkm_voltgpio_init(&volt->base); volt 137 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c nvkm_debug(&volt->base.subdev, "Using %s mode\n", mode); volt 95 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c struct gk20a_volt *volt = gk20a_volt(base); volt 98 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c uv = regulator_get_voltage(volt->vdd); volt 100 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c for (i = 0; i < volt->base.vid_nr; i++) volt 101 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c if (volt->base.vid[i].uv >= uv) volt 110 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c struct gk20a_volt *volt = gk20a_volt(base); volt 111 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c struct nvkm_subdev *subdev = &volt->base.subdev; volt 113 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); volt 114 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); volt 120 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c struct gk20a_volt *volt = gk20a_volt(base); volt 121 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c struct nvkm_subdev *subdev = &volt->base.subdev; volt 122 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c int prev_uv = regulator_get_voltage(volt->vdd); volt 123 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c int target_uv = volt->base.vid[id].uv; volt 131 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c ret = gk20a_volt_vid_set(&volt->base, volt->base.vid[id].vid); volt 149 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c int vmin, struct gk20a_volt *volt) volt 154 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c nvkm_volt_ctor(&gk20a_volt, device, index, &volt->base); volt 157 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c nvkm_debug(&volt->base.subdev, "the default voltage is %duV\n", uv); volt 159 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c volt->vdd = tdev->vdd; volt 161 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c volt->base.vid_nr = nb_coefs; volt 162 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c for (i = 0; i < volt->base.vid_nr; i++) { volt 163 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c volt->base.vid[i].vid = i; volt 164 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c volt->base.vid[i].uv = max( volt 167 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c nvkm_debug(&volt->base.subdev, "%2d: vid=%d, uv=%d\n", i, volt 168 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c volt->base.vid[i].vid, volt->base.vid[i].uv); volt 177 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c struct gk20a_volt *volt; volt 179 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c volt = kzalloc(sizeof(*volt), GFP_KERNEL); volt 180 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c if (!volt) volt 182 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c *pvolt = &volt->base; volt 185 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c ARRAY_SIZE(gk20a_cvb_coef), 0, volt); volt 42 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h int vmin, struct gk20a_volt *volt); volt 70 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c struct gk20a_volt *volt; volt 79 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c volt = kzalloc(sizeof(*volt), GFP_KERNEL); volt 80 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c if (!volt) volt 82 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c *pvolt = &volt->base; volt 88 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c ARRAY_SIZE(gm20b_na_cvb_coef), vmin, volt); volt 91 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gm20b.c ARRAY_SIZE(gm20b_cvb_coef), vmin, volt); volt 36 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c nvkm_voltgpio_get(struct nvkm_volt *volt) volt 38 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c struct nvkm_gpio *gpio = volt->subdev.device->gpio; volt 43 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c if (volt->vid_mask & (1 << i)) { volt 55 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) volt 57 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c struct nvkm_gpio *gpio = volt->subdev.device->gpio; volt 61 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c if (volt->vid_mask & (1 << i)) { volt 72 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c nvkm_voltgpio_init(struct nvkm_volt *volt) volt 74 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c struct nvkm_subdev *subdev = &volt->subdev; volt 86 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c if (volt->vid_mask & (1 << i)) { volt 92 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c volt->vid_mask &= ~(1 << i); volt 35 drivers/gpu/drm/nouveau/nvkm/subdev/volt/nv40.c struct nvkm_volt *volt; volt 38 drivers/gpu/drm/nouveau/nvkm/subdev/volt/nv40.c ret = nvkm_volt_new_(&nv40_volt, device, index, &volt); volt 39 drivers/gpu/drm/nouveau/nvkm/subdev/volt/nv40.c *pvolt = volt; volt 43 drivers/gpu/drm/nouveau/nvkm/subdev/volt/nv40.c return nvkm_voltgpio_init(volt); volt 26 drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.h int nvkm_voltpwm_init(struct nvkm_volt *volt); volt 27 drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.h int nvkm_voltpwm_get(struct nvkm_volt *volt); volt 28 drivers/gpu/drm/nouveau/nvkm/subdev/volt/priv.h int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv); volt 291 drivers/hwmon/adt7475.c static inline u16 volt2reg(int channel, long volt, u8 bypass_attn) volt 297 drivers/hwmon/adt7475.c reg = DIV_ROUND_CLOSEST(volt * 1024, 2250); volt 299 drivers/hwmon/adt7475.c reg = DIV_ROUND_CLOSEST(volt * r[1] * 1024, volt 277 drivers/hwmon/fschmd.c u8 volt[6]; /* voltage */ volt 329 drivers/hwmon/fschmd.c return sprintf(buf, "%d\n", (data->volt[index] * dmi_vref * volt 332 drivers/hwmon/fschmd.c return sprintf(buf, "%d\n", (data->volt[index] * volt 1356 drivers/hwmon/fschmd.c data->volt[i] = i2c_smbus_read_byte_data(client, volt 75 drivers/hwmon/ftsteutates.c u8 volt[FTS_NO_VOLT_SENSORS]; volt 210 drivers/hwmon/ftsteutates.c data->volt[i] = err; volt 356 drivers/hwmon/ftsteutates.c return sprintf(buf, "%u\n", data->volt[index]); volt 378 drivers/hwmon/nct7802.c int volt, min, max, ret; volt 407 drivers/hwmon/nct7802.c volt = ret; volt 419 drivers/hwmon/nct7802.c if (volt < min || volt > max) volt 269 drivers/hwmon/nct7904.c int ret, volt, index; volt 279 drivers/hwmon/nct7904.c volt = ((ret & 0xff00) >> 5) | (ret & 0x7); volt 281 drivers/hwmon/nct7904.c volt *= 2; /* 0.002V scale */ volt 283 drivers/hwmon/nct7904.c volt *= 6; /* 0.006V scale */ volt 284 drivers/hwmon/nct7904.c *val = volt; volt 291 drivers/hwmon/nct7904.c volt = ((ret & 0xff00) >> 5) | (ret & 0x7); volt 293 drivers/hwmon/nct7904.c volt *= 2; /* 0.002V scale */ volt 295 drivers/hwmon/nct7904.c volt *= 6; /* 0.006V scale */ volt 296 drivers/hwmon/nct7904.c *val = volt; volt 303 drivers/hwmon/nct7904.c volt = ((ret & 0xff00) >> 5) | (ret & 0x7); volt 305 drivers/hwmon/nct7904.c volt *= 2; /* 0.002V scale */ volt 307 drivers/hwmon/nct7904.c volt *= 6; /* 0.006V scale */ volt 308 drivers/hwmon/nct7904.c *val = volt; volt 287 drivers/iio/adc/sc27xx_adc.c u32 volt; volt 304 drivers/iio/adc/sc27xx_adc.c volt = sc27xx_adc_to_volt(&small_scale_graph, raw_adc); volt 310 drivers/iio/adc/sc27xx_adc.c return (volt * denominator + numerator / 2) / numerator; volt 332 drivers/iio/adc/twl4030-madc.c int temp, curr, volt, res, ret; volt 334 drivers/iio/adc/twl4030-madc.c volt = (raw_volt * TEMP_STEP_SIZE) / TEMP_PSR_R; volt 343 drivers/iio/adc/twl4030-madc.c res = volt * 1000 / curr; volt 91 drivers/input/keyboard/tm2-touchkey.c u32 volt; volt 95 drivers/input/keyboard/tm2-touchkey.c volt = TM2_TOUCHKEY_LED_VOLTAGE_MIN; volt 98 drivers/input/keyboard/tm2-touchkey.c volt = TM2_TOUCHKEY_LED_VOLTAGE_MAX; volt 103 drivers/input/keyboard/tm2-touchkey.c regulator_set_voltage(touchkey->vdd, volt, volt); volt 148 drivers/input/misc/twl6040-vibra.c int volt; volt 151 drivers/input/misc/twl6040-vibra.c volt = regulator_get_voltage(info->supplies[0].consumer) / 1000; volt 152 drivers/input/misc/twl6040-vibra.c vibdatl = twl6040_vibra_code(volt, info->vibldrv_res, volt 157 drivers/input/misc/twl6040-vibra.c volt = regulator_get_voltage(info->supplies[1].consumer) / 1000; volt 158 drivers/input/misc/twl6040-vibra.c vibdatr = twl6040_vibra_code(volt, info->vibrdrv_res, volt 405 drivers/media/dvb-frontends/m88rs2000.c enum fe_sec_voltage volt) volt 413 drivers/media/dvb-frontends/m88rs2000.c switch (volt) { volt 452 drivers/media/dvb-frontends/si21xx.c static int si21xx_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage volt) volt 458 drivers/media/dvb-frontends/si21xx.c volt == SEC_VOLTAGE_13 ? "SEC_VOLTAGE_13" : volt 459 drivers/media/dvb-frontends/si21xx.c volt == SEC_VOLTAGE_18 ? "SEC_VOLTAGE_18" : "??"); volt 464 drivers/media/dvb-frontends/si21xx.c switch (volt) { volt 315 drivers/media/dvb-frontends/stv0288.c enum fe_sec_voltage volt) volt 318 drivers/media/dvb-frontends/stv0288.c volt == SEC_VOLTAGE_13 ? "SEC_VOLTAGE_13" : volt 319 drivers/media/dvb-frontends/stv0288.c volt == SEC_VOLTAGE_18 ? "SEC_VOLTAGE_18" : "??"); volt 183 drivers/media/pci/pt3/pt3.c static int pt3_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage volt) volt 192 drivers/media/pci/pt3/pt3.c on = (volt != SEC_VOLTAGE_OFF); volt 170 drivers/mmc/core/regulator.c int ret, volt, min_uV, max_uV; volt 184 drivers/mmc/core/regulator.c ret = mmc_ocrbitnum_to_vdd(mmc->ios.vdd, &volt, &max_uV); volt 189 drivers/mmc/core/regulator.c __func__, volt, max_uV); volt 191 drivers/mmc/core/regulator.c min_uV = max(volt - 300000, 2700000); volt 202 drivers/mmc/core/regulator.c min_uV, volt, max_uV)) volt 206 drivers/mmc/core/regulator.c 2700000, volt, 3600000); volt 743 drivers/opp/of.c unsigned long volt = be32_to_cpup(val++); volt 745 drivers/opp/of.c ret = _opp_add_v1(opp_table, dev, freq, volt, false); volt 526 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(volt-droop-detect, 0x23), volt 559 drivers/power/avs/smartreflex.c int sr_enable(struct omap_sr *sr, unsigned long volt) volt 571 drivers/power/avs/smartreflex.c volt_data = omap_voltage_get_voltdata(sr->voltdm, volt); volt 575 drivers/power/avs/smartreflex.c __func__, volt); volt 583 drivers/power/avs/smartreflex.c __func__, volt); volt 87 drivers/power/supply/abx500_chargalg.c int volt; volt 792 drivers/power/supply/abx500_chargalg.c !di->maintenance_chg && (di->batt_data.volt >= volt 1159 drivers/power/supply/abx500_chargalg.c di->batt_data.volt = ret.intval / 1000; volt 1395 drivers/power/supply/abx500_chargalg.c di->batt_data.volt, volt 1736 drivers/power/supply/bq27xxx_battery.c int volt; volt 1738 drivers/power/supply/bq27xxx_battery.c volt = bq27xxx_read(di, BQ27XXX_REG_VOLT, false); volt 1739 drivers/power/supply/bq27xxx_battery.c if (volt < 0) { volt 1741 drivers/power/supply/bq27xxx_battery.c return volt; volt 1744 drivers/power/supply/bq27xxx_battery.c val->intval = volt * 1000; volt 287 drivers/power/supply/da9052-battery.c int volt; volt 289 drivers/power/supply/da9052-battery.c volt = da9052_adc_manual_read(bat->da9052, DA9052_ADC_MAN_MUXSEL_VBAT); volt 290 drivers/power/supply/da9052-battery.c if (volt < 0) volt 291 drivers/power/supply/da9052-battery.c return volt; volt 293 drivers/power/supply/da9052-battery.c *volt_mV = volt_reg_to_mV(volt); volt 182 drivers/power/supply/s3c_adc_battery.c if (full_volt < calc_full_volt(lut->volt, lut->cur, volt 189 drivers/power/supply/s3c_adc_battery.c lut_volt1 = calc_full_volt(lut[0].volt, lut[0].cur, volt 191 drivers/power/supply/s3c_adc_battery.c lut_volt2 = calc_full_volt(lut[1].volt, lut[1].cur, volt 274 drivers/power/supply/sc27xx_fuel_gauge.c int volt, cur, oci, ocv, ret; volt 307 drivers/power/supply/sc27xx_fuel_gauge.c ret = regmap_read(data->regmap, data->base + SC27XX_FGU_POCV, &volt); volt 311 drivers/power/supply/sc27xx_fuel_gauge.c volt = sc27xx_fgu_adc_to_voltage(data, volt); volt 312 drivers/power/supply/sc27xx_fuel_gauge.c ocv = volt * 1000 - oci * data->internal_resist; volt 76 drivers/power/supply/twl4030_madc_battery.c int volt) volt 87 drivers/power/supply/twl4030_madc_battery.c if (volt > calibration[0].voltage) { volt 91 drivers/power/supply/twl4030_madc_battery.c if (volt <= calibration[i].voltage && volt 92 drivers/power/supply/twl4030_madc_battery.c volt >= calibration[i+1].voltage) { volt 95 drivers/power/supply/twl4030_madc_battery.c ((calibration[i].voltage - volt) * volt 215 drivers/regulator/da903x.c int volt; volt 218 drivers/regulator/da903x.c volt = rdev->desc->min_uV + volt 221 drivers/regulator/da903x.c volt = (info->max_uV + rdev->desc->min_uV) / 2 + volt 224 drivers/regulator/da903x.c if (volt > info->max_uV) volt 227 drivers/regulator/da903x.c return volt; volt 71 drivers/regulator/da9055-regulator.c struct da9055_volt_reg volt; volt 136 drivers/regulator/da9055-regulator.c ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); volt 140 drivers/regulator/da9055-regulator.c if (ret >> info->volt.sl_shift) volt 150 drivers/regulator/da9055-regulator.c struct da9055_volt_reg volt = info->volt; volt 163 drivers/regulator/da9055-regulator.c return da9055_reg_update(regulator->da9055, volt.reg_b, volt 164 drivers/regulator/da9055-regulator.c 1 << volt.sl_shift, volt 165 drivers/regulator/da9055-regulator.c val << volt.sl_shift); volt 172 drivers/regulator/da9055-regulator.c struct da9055_volt_reg volt = info->volt; volt 188 drivers/regulator/da9055-regulator.c ret = da9055_reg_read(regulator->da9055, volt.reg_a); volt 190 drivers/regulator/da9055-regulator.c ret = da9055_reg_read(regulator->da9055, volt.reg_b); volt 195 drivers/regulator/da9055-regulator.c sel = (ret & volt.v_mask); volt 218 drivers/regulator/da9055-regulator.c return da9055_reg_update(regulator->da9055, info->volt.reg_a, volt 219 drivers/regulator/da9055-regulator.c info->volt.v_mask, selector); volt 235 drivers/regulator/da9055-regulator.c return da9055_reg_update(regulator->da9055, info->volt.reg_a, volt 236 drivers/regulator/da9055-regulator.c info->volt.v_mask, selector); volt 238 drivers/regulator/da9055-regulator.c return da9055_reg_update(regulator->da9055, info->volt.reg_b, volt 239 drivers/regulator/da9055-regulator.c info->volt.v_mask, selector); volt 261 drivers/regulator/da9055-regulator.c return da9055_reg_update(regulator->da9055, info->volt.reg_b, volt 262 drivers/regulator/da9055-regulator.c info->volt.v_mask, ret); volt 353 drivers/regulator/da9055-regulator.c .volt = {\ volt 387 drivers/regulator/da9055-regulator.c .volt = {\ volt 441 drivers/regulator/mc13892-regulator.c int volt, mask, id = rdev_get_id(rdev); volt 445 drivers/regulator/mc13892-regulator.c volt = rdev->desc->volt_table[selector]; volt 466 drivers/regulator/mc13892-regulator.c if (volt > 1375000) { volt 85 drivers/regulator/mt6323-regulator.c #define MT6323_REG_FIXED(match, vreg, enreg, enbit, volt, \ volt 98 drivers/regulator/mt6323-regulator.c .min_uV = volt, \ volt 122 drivers/regulator/mt6358-regulator.c enreg, enbit, volt) \ volt 134 drivers/regulator/mt6358-regulator.c .min_uV = volt, \ volt 136 drivers/regulator/mt6380-regulator.c #define MT6380_REG_FIXED(match, vreg, enreg, enbit, volt, \ volt 149 drivers/regulator/mt6380-regulator.c .min_uV = volt, \ volt 88 drivers/regulator/mt6397-regulator.c #define MT6397_REG_FIXED(match, vreg, enreg, enbit, volt) \ volt 100 drivers/regulator/mt6397-regulator.c .min_uV = volt, \ volt 700 drivers/regulator/tps65910-regulator.c int volt, mult = 1, id = rdev_get_id(dev); volt 706 drivers/regulator/tps65910-regulator.c volt = VDD1_2_MIN_VOLT + volt 710 drivers/regulator/tps65910-regulator.c volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET); volt 717 drivers/regulator/tps65910-regulator.c return volt * 100 * mult; volt 922 drivers/scsi/bfa/bfa_defs.h u8 volt[4]; volt 174 drivers/usb/phy/phy-ab8500-usb.c int ret, volt; volt 201 drivers/usb/phy/phy-ab8500-usb.c volt = regulator_get_voltage(ab->v_ulpi); volt 202 drivers/usb/phy/phy-ab8500-usb.c if ((volt != 1300000) && (volt != 1350000)) volt 204 drivers/usb/phy/phy-ab8500-usb.c volt); volt 35 include/linux/platform_data/voltage-omap.h unsigned long volt); volt 307 include/linux/power/smartreflex.h int sr_enable(struct omap_sr *sr, unsigned long volt); volt 6 include/linux/s3c_adc_battery.h int volt; /* mV */