/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
A D | base.c | 37 return volt->func->volt_get(volt); in nvkm_volt_get() 39 ret = volt->func->vid_get(volt); in nvkm_volt_get() 57 return volt->func->volt_set(volt, uv); in nvkm_volt_set() 75 ret = volt->func->vid_set(volt, volt->vid[best].vid); in nvkm_volt_set() 203 volt->vid[volt->vid_nr].uv = info.base; in nvkm_volt_parse_bios() 204 volt->vid[volt->vid_nr].vid = i; in nvkm_volt_parse_bios() 219 volt->vid[volt->vid_nr].vid = ivid.vid; in nvkm_volt_parse_bios() 236 return volt->func->speedo_read(volt); in nvkm_volt_speedo_read() 264 return volt->func->oneinit(volt); in nvkm_volt_oneinit() 299 volt->min_uv, volt->max_uv); in nvkm_volt_ctor() [all …]
|
A D | gk20a.c | 114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set() 131 ret = gk20a_volt_vid_set(&volt->base, volt->base.vid[id].vid); in gk20a_volt_set_id() 159 volt->vdd = tdev->vdd; in gk20a_volt_ctor() 161 volt->base.vid_nr = nb_coefs; in gk20a_volt_ctor() 163 volt->base.vid[i].vid = i; in gk20a_volt_ctor() 164 volt->base.vid[i].uv = max( in gk20a_volt_ctor() 168 volt->base.vid[i].vid, volt->base.vid[i].uv); in gk20a_volt_ctor() 177 struct gk20a_volt *volt; in gk20a_volt_new() local 179 volt = kzalloc(sizeof(*volt), GFP_KERNEL); in gk20a_volt_new() 180 if (!volt) in gk20a_volt_new() [all …]
|
A D | gf100.c | 29 gf100_volt_speedo_read(struct nvkm_volt *volt) in gf100_volt_speedo_read() argument 31 struct nvkm_device *device = volt->subdev.device; in gf100_volt_speedo_read() 41 gf100_volt_oneinit(struct nvkm_volt *volt) in gf100_volt_oneinit() argument 43 struct nvkm_subdev *subdev = &volt->subdev; in gf100_volt_oneinit() 44 if (volt->speedo <= 0) in gf100_volt_oneinit() 62 struct nvkm_volt *volt; in gf100_volt_new() local 65 ret = nvkm_volt_new_(&gf100_volt, device, type, inst, &volt); in gf100_volt_new() 66 *pvolt = volt; in gf100_volt_new() 70 return nvkm_voltgpio_init(volt); in gf100_volt_new()
|
A D | gpio.c | 36 nvkm_voltgpio_get(struct nvkm_volt *volt) in nvkm_voltgpio_get() argument 38 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_get() 43 if (volt->vid_mask & (1 << i)) { in nvkm_voltgpio_get() 55 nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) in nvkm_voltgpio_set() argument 57 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_set() 61 if (volt->vid_mask & (1 << i)) { in nvkm_voltgpio_set() 72 nvkm_voltgpio_init(struct nvkm_volt *volt) in nvkm_voltgpio_init() argument 74 struct nvkm_subdev *subdev = &volt->subdev; in nvkm_voltgpio_init() 86 if (volt->vid_mask & (1 << i)) { in nvkm_voltgpio_init() 92 volt->vid_mask &= ~(1 << i); in nvkm_voltgpio_init()
|
A D | gk104.c | 69 gk104_volt_speedo_read(struct nvkm_volt *volt) in gk104_volt_speedo_read() argument 71 struct nvkm_device *device = volt->subdev.device; in gk104_volt_speedo_read() 104 struct gk104_volt *volt; in gk104_volt_new() local 116 if (!(volt = kzalloc(sizeof(*volt), GFP_KERNEL))) in gk104_volt_new() 118 nvkm_volt_ctor(volt_func, device, type, inst, &volt->base); in gk104_volt_new() 119 *pvolt = &volt->base; in gk104_volt_new() 120 volt->bios = bios; in gk104_volt_new() 127 nvkm_error(&volt->base.subdev, in gk104_volt_new() 133 nvkm_voltgpio_init(&volt->base); in gk104_volt_new() 138 nvkm_debug(&volt->base.subdev, "Using %s mode\n", mode); in gk104_volt_new()
|
A D | Kbuild | 2 nvkm-y += nvkm/subdev/volt/base.o 3 nvkm-y += nvkm/subdev/volt/gpio.o 4 nvkm-y += nvkm/subdev/volt/nv40.o 5 nvkm-y += nvkm/subdev/volt/gf100.o 6 nvkm-y += nvkm/subdev/volt/gf117.o 7 nvkm-y += nvkm/subdev/volt/gk104.o 8 nvkm-y += nvkm/subdev/volt/gk20a.o 9 nvkm-y += nvkm/subdev/volt/gm20b.o
|
A D | gm20b.c | 71 struct gk20a_volt *volt; in gm20b_volt_new() local 80 volt = kzalloc(sizeof(*volt), GFP_KERNEL); in gm20b_volt_new() 81 if (!volt) in gm20b_volt_new() 83 *pvolt = &volt->base; in gm20b_volt_new() 89 ARRAY_SIZE(gm20b_na_cvb_coef), vmin, volt); in gm20b_volt_new() 92 ARRAY_SIZE(gm20b_cvb_coef), vmin, volt); in gm20b_volt_new()
|
A D | gf117.c | 29 gf117_volt_speedo_read(struct nvkm_volt *volt) in gf117_volt_speedo_read() argument 31 struct nvkm_device *device = volt->subdev.device; in gf117_volt_speedo_read() 52 struct nvkm_volt *volt; in gf117_volt_new() local 55 ret = nvkm_volt_new_(&gf117_volt, device, type, inst, &volt); in gf117_volt_new() 56 *pvolt = volt; in gf117_volt_new() 60 return nvkm_voltgpio_init(volt); in gf117_volt_new()
|
A D | nv40.c | 36 struct nvkm_volt *volt; in nv40_volt_new() local 39 ret = nvkm_volt_new_(&nv40_volt, device, type, inst, &volt); in nv40_volt_new() 40 *pvolt = volt; in nv40_volt_new() 44 return nvkm_voltgpio_init(volt); in nv40_volt_new()
|
A D | priv.h | 26 int nvkm_voltpwm_init(struct nvkm_volt *volt); 27 int nvkm_voltpwm_get(struct nvkm_volt *volt); 28 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
A D | volt.c | 32 u32 volt = 0; in nvbios_volt_table() local 41 if (volt) { in nvbios_volt_table() 48 return volt; in nvbios_volt_table() 53 return volt; in nvbios_volt_table() 60 return volt; in nvbios_volt_table() 74 switch (!!volt * *ver) { in nvbios_volt_parse() 121 return volt; in nvbios_volt_parse() 129 if (volt && idx < cnt) { in nvbios_volt_entry() 130 volt = volt + hdr + (idx * *len); in nvbios_volt_entry() 131 return volt; in nvbios_volt_entry() [all …]
|
/linux/arch/arm/mach-s3c/ |
A D | mach-rx1950.c | 190 { .volt = 4190, .cur = 0, .level = 99}, 191 { .volt = 4178, .cur = 0, .level = 95}, 192 { .volt = 4110, .cur = 0, .level = 70}, 193 { .volt = 4076, .cur = 0, .level = 65}, 194 { .volt = 4046, .cur = 0, .level = 60}, 195 { .volt = 4021, .cur = 0, .level = 55}, 196 { .volt = 3999, .cur = 0, .level = 50}, 197 { .volt = 3982, .cur = 0, .level = 45}, 198 { .volt = 3965, .cur = 0, .level = 40}, 205 { .volt = 3829, .cur = 0, .level = 5}, [all …]
|
A D | mach-h1940.c | 271 { .volt = 4040, .cur = 165, .level = 95}, 272 { .volt = 4016, .cur = 164, .level = 90}, 273 { .volt = 3996, .cur = 166, .level = 85}, 274 { .volt = 3971, .cur = 168, .level = 80}, 288 { .volt = 3716, .cur = 96, .level = 10}, 289 { .volt = 3700, .cur = 96, .level = 5}, 290 { .volt = 3684, .cur = 96, .level = 0}, 294 { .volt = 4130, .cur = 0, .level = 100}, 295 { .volt = 3982, .cur = 0, .level = 50}, 296 { .volt = 3854, .cur = 0, .level = 10}, [all …]
|
/linux/drivers/regulator/ |
A D | da9055-regulator.c | 71 struct da9055_volt_reg volt; member 140 if (ret >> info->volt.sl_shift) in da9055_ldo_get_mode() 150 struct da9055_volt_reg volt = info->volt; in da9055_ldo_set_mode() local 164 1 << volt.sl_shift, in da9055_ldo_set_mode() 165 val << volt.sl_shift); in da9055_ldo_set_mode() 172 struct da9055_volt_reg volt = info->volt; in da9055_regulator_get_voltage_sel() local 195 sel = (ret & volt.v_mask); in da9055_regulator_get_voltage_sel() 219 info->volt.v_mask, selector); in da9055_regulator_set_voltage_sel() 262 info->volt.v_mask, ret); in da9055_regulator_set_suspend_voltage() 353 .volt = {\ [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
A D | base.c | 83 struct nvkm_volt *volt = clk->subdev.device->volt; in nvkm_cstate_valid() local 102 if (!volt) in nvkm_cstate_valid() 116 struct nvkm_volt *volt = device->volt; in nvkm_cstate_find_best() local 122 if (!volt) in nvkm_cstate_find_best() 128 nvkm_volt_map(volt, volt->max0_id, clk->temp)); in nvkm_cstate_find_best() 131 nvkm_volt_map(volt, volt->max1_id, clk->temp)); in nvkm_cstate_find_best() 165 struct nvkm_volt *volt = device->volt; in nvkm_cstate_prog() local 184 if (volt) { in nvkm_cstate_prog() 199 if (volt) { in nvkm_cstate_prog() 226 struct nvkm_volt *volt = clk->subdev.device->volt; in nvkm_cstate_new() local [all …]
|
/linux/drivers/cpufreq/ |
A D | omap-cpufreq.c | 46 unsigned long freq, volt = 0, volt_old = 0, tol = 0; in omap_target() local 69 volt = dev_pm_opp_get_voltage(opp); in omap_target() 71 tol = volt * OPP_TOLERANCE / 100; in omap_target() 77 new_freq / 1000, volt ? volt / 1000 : -1); in omap_target() 81 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target() 93 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
|
/linux/arch/arm/mach-omap2/ |
A D | voltage.c | 74 unsigned long volt = 0; in voltdm_scale() local 96 volt = voltdm->volt_data[i].volt_nominal; in voltdm_scale() 101 if (!volt) { in voltdm_scale() 107 ret = voltdm->scale(voltdm, volt); in voltdm_scale() 109 voltdm->nominal_volt = volt; in voltdm_scale() 181 unsigned long volt) in omap_voltage_get_voltdata() argument 197 if (voltdm->volt_data[i].volt_nominal == volt) in omap_voltage_get_voltdata()
|
A D | smartreflex-class3.c | 17 unsigned long volt = voltdm_get_voltage(sr->voltdm); in sr_class3_enable() local 19 if (!volt) { in sr_class3_enable() 26 return sr_enable(sr, volt); in sr_class3_enable()
|
A D | vp.c | 13 static u32 _vp_set_init_voltage(struct voltagedomain *voltdm, u32 volt) in _vp_set_init_voltage() argument 19 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage() 200 u32 vpconfig, volt; in omap_vp_enable() local 218 volt = voltdm_get_voltage(voltdm); in omap_vp_enable() 219 if (!volt) { in omap_vp_enable() 225 vpconfig = _vp_set_init_voltage(voltdm, volt); in omap_vp_enable()
|
/linux/arch/arm/boot/dts/ |
A D | vexpress-v2p-ca9.dts | 215 volt-vd10 { 217 compatible = "arm,vexpress-volt"; 224 volt-vd10-s2 { 226 compatible = "arm,vexpress-volt"; 233 volt-vd10-s3 { 235 compatible = "arm,vexpress-volt"; 242 volt-vcc1v8 { 244 compatible = "arm,vexpress-volt"; 251 volt-ddr2vtt { 253 compatible = "arm,vexpress-volt"; [all …]
|
/linux/drivers/mmc/core/ |
A D | regulator.c | 182 int ret, volt, min_uV, max_uV; in mmc_regulator_set_vqmmc() local 196 ret = mmc_ocrbitnum_to_vdd(mmc->ios.vdd, &volt, &max_uV); in mmc_regulator_set_vqmmc() 201 __func__, volt, max_uV); in mmc_regulator_set_vqmmc() 203 min_uV = max(volt - 300000, 2700000); in mmc_regulator_set_vqmmc() 214 min_uV, volt, max_uV); in mmc_regulator_set_vqmmc() 219 2700000, volt, 3600000); in mmc_regulator_set_vqmmc()
|
/linux/drivers/soc/samsung/ |
A D | exynos-asv.c | 44 unsigned int new_volt, volt; in exynos_asv_update_cpu_opps() local 57 volt = dev_pm_opp_get_voltage(opp); in exynos_asv_update_cpu_opps() 58 new_volt = asv->opp_get_voltage(subsys, i, volt); in exynos_asv_update_cpu_opps() 61 if (new_volt == volt) in exynos_asv_update_cpu_opps() 73 opp_freq, volt, new_volt, cpu->id); in exynos_asv_update_cpu_opps()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
A D | base.c | 488 .volt = { 0x00000001, nv40_volt_new }, 514 .volt = { 0x00000001, nv40_volt_new }, 540 .volt = { 0x00000001, nv40_volt_new }, 566 .volt = { 0x00000001, nv40_volt_new }, 592 .volt = { 0x00000001, nv40_volt_new }, 618 .volt = { 0x00000001, nv40_volt_new }, 644 .volt = { 0x00000001, nv40_volt_new }, 670 .volt = { 0x00000001, nv40_volt_new }, 696 .volt = { 0x00000001, nv40_volt_new }, 722 .volt = { 0x00000001, nv40_volt_new }, [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_hwmon.c | 369 struct nvkm_volt *volt = nvxx_volt(&drm->client.device); in nouveau_input_is_visible() local 371 if (!volt || nvkm_volt_get(volt) < 0) in nouveau_input_is_visible() 493 struct nvkm_volt *volt = nvxx_volt(&drm->client.device); in nouveau_in_read() local 496 if (!volt) in nouveau_in_read() 503 ret = nvkm_volt_get(volt); in nouveau_in_read() 507 *val = volt->min_uv > 0 ? (volt->min_uv / 1000) : -ENODEV; in nouveau_in_read() 510 *val = volt->max_uv > 0 ? (volt->max_uv / 1000) : -ENODEV; in nouveau_in_read() 720 struct nvkm_volt *volt = nvxx_volt(&drm->client.device); in nouveau_hwmon_init() local 727 if (!iccsense && !therm && !volt) { in nouveau_hwmon_init()
|
/linux/Documentation/devicetree/bindings/regulator/ |
A D | vexpress.txt | 5 - "compatible" value: "arm,vexpress-volt" 25 volt@0 { 26 compatible = "arm,vexpress-volt";
|