/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | nv40.c | 36 struct nvkm_volt *volt; local 39 ret = nvkm_volt_new_(&nv40_volt, device, type, inst, &volt); 40 *pvolt = volt; 44 return nvkm_voltgpio_init(volt);
|
H A D | base.c | 28 #include <subdev/bios/volt.h> 32 nvkm_volt_get(struct nvkm_volt *volt) argument 36 if (volt->func->volt_get) 37 return volt->func->volt_get(volt); 39 ret = volt->func->vid_get(volt); 41 for (i = 0; i < volt->vid_nr; i++) { 42 if (volt->vid[i].vid == ret) 43 return volt 51 nvkm_volt_set(struct nvkm_volt *volt, u32 uv) argument 82 nvkm_volt_map_min(struct nvkm_volt *volt, u8 id) argument 104 nvkm_volt_map(struct nvkm_volt *volt, u8 id, u8 temp) argument 160 nvkm_volt_set_id(struct nvkm_volt *volt, u8 id, u8 min_id, u8 temp, int condition) argument 186 nvkm_volt_parse_bios(struct nvkm_bios *bios, struct nvkm_volt *volt) argument 233 nvkm_volt_speedo_read(struct nvkm_volt *volt) argument 243 struct nvkm_volt *volt = nvkm_volt(subdev); local 257 struct nvkm_volt *volt = nvkm_volt(subdev); local 283 nvkm_volt_ctor(const struct nvkm_volt_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_volt *volt) argument [all...] |
H A D | gf100.c | 29 gf100_volt_speedo_read(struct nvkm_volt *volt) argument 31 struct nvkm_device *device = volt->subdev.device; 41 gf100_volt_oneinit(struct nvkm_volt *volt) argument 43 struct nvkm_subdev *subdev = &volt->subdev; 44 if (volt->speedo <= 0) 62 struct nvkm_volt *volt; local 65 ret = nvkm_volt_new_(&gf100_volt, device, type, inst, &volt); 66 *pvolt = volt; 70 return nvkm_voltgpio_init(volt);
|
H A D | gf117.c | 29 gf117_volt_speedo_read(struct nvkm_volt *volt) argument 31 struct nvkm_device *device = volt->subdev.device; 52 struct nvkm_volt *volt; local 55 ret = nvkm_volt_new_(&gf117_volt, device, type, inst, &volt); 56 *pvolt = volt; 60 return nvkm_voltgpio_init(volt);
|
H A D | gk20a.c | 95 struct gk20a_volt *volt = gk20a_volt(base); local 98 uv = regulator_get_voltage(volt->vdd); 100 for (i = 0; i < volt->base.vid_nr; i++) 101 if (volt->base.vid[i].uv >= uv) 110 struct gk20a_volt *volt = gk20a_volt(base); local 111 struct nvkm_subdev *subdev = &volt->base.subdev; 113 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); 114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); 120 struct gk20a_volt *volt local 147 gk20a_volt_ctor(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, const struct cvb_coef *coefs, int nb_coefs, int vmin, struct gk20a_volt *volt) argument 177 struct gk20a_volt *volt; local [all...] |
H A D | gpio.c | 24 #include <subdev/volt.h> 36 nvkm_voltgpio_get(struct nvkm_volt *volt) argument 38 struct nvkm_gpio *gpio = volt->subdev.device->gpio; 43 if (volt->vid_mask & (1 << i)) { 55 nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) argument 57 struct nvkm_gpio *gpio = volt->subdev.device->gpio; 61 if (volt->vid_mask & (1 << i)) { 72 nvkm_voltgpio_init(struct nvkm_volt *volt) argument 74 struct nvkm_subdev *subdev = &volt->subdev; 86 if (volt [all...] |
H A D | gm20b.c | 71 struct gk20a_volt *volt; local 80 volt = kzalloc(sizeof(*volt), GFP_KERNEL); 81 if (!volt) 83 *pvolt = &volt->base; 89 ARRAY_SIZE(gm20b_na_cvb_coef), vmin, volt); 92 ARRAY_SIZE(gm20b_cvb_coef), vmin, volt);
|
H A D | gk104.c | 26 #include <subdev/volt.h> 29 #include <subdev/bios/volt.h> 69 gk104_volt_speedo_read(struct nvkm_volt *volt) argument 71 struct nvkm_device *device = volt->subdev.device; 104 struct gk104_volt *volt; local 116 if (!(volt = kzalloc(sizeof(*volt), GFP_KERNEL))) 118 nvkm_volt_ctor(volt_func, device, type, inst, &volt->base); 119 *pvolt = &volt->base; 120 volt [all...] |
H A D | priv.h | 5 #include <subdev/volt.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);
|
H A D | gk20a.h | 42 int vmin, struct gk20a_volt *volt);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | volt.c | 26 #include <subdev/bios/volt.h> 32 u32 volt = 0; local 36 volt = nvbios_rd32(bios, bit_P.offset + 0x0c); 39 volt = nvbios_rd32(bios, bit_P.offset + 0x10); 41 if (volt) { 42 *ver = nvbios_rd08(bios, volt + 0); 46 *cnt = nvbios_rd08(bios, volt + 2); 47 *len = nvbios_rd08(bios, volt + 1); 48 return volt; 50 *hdr = nvbios_rd08(bios, volt 72 u32 volt = nvbios_volt_table(bios, ver, hdr, cnt, len); local 128 u32 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len); local 140 u32 volt = nvbios_volt_entry(bios, idx, ver, len); local [all...] |
/linux-master/arch/arm/mach-omap2/ |
H A D | smartreflex-class3.c | 17 unsigned long volt = voltdm_get_voltage(sr->voltdm); local 19 if (!volt) { 26 return sr_enable(sr, volt);
|
H A D | voltage.c | 74 unsigned long volt = 0; local 96 volt = voltdm->volt_data[i].volt_nominal; 101 if (!volt) { 107 ret = voltdm->scale(voltdm, volt); 109 voltdm->nominal_volt = volt; 169 * @volt: the voltage to be searched in the voltage table 172 * domain and tries to find a matching entry for the passed voltage volt. 176 * Returns pointer to the voltage table entry corresponding to volt on 181 unsigned long volt) 197 if (voltdm->volt_data[i].volt_nominal == volt) 180 omap_voltage_get_voltdata(struct voltagedomain *voltdm, unsigned long volt) argument [all...] |
H A D | vp.c | 13 static u32 _vp_set_init_voltage(struct voltagedomain *voltdm, u32 volt) argument 19 vsel = voltdm->pmic->uv_to_vsel(volt); 200 u32 vpconfig, volt; local 218 volt = voltdm_get_voltage(voltdm); 219 if (!volt) { 225 vpconfig = _vp_set_init_voltage(voltdm, volt);
|
/linux-master/include/linux/platform_data/ |
H A D | voltage-omap.h | 34 unsigned long volt);
|
/linux-master/drivers/cpufreq/ |
H A D | omap-cpufreq.c | 46 unsigned long freq, volt = 0, volt_old = 0, tol = 0; local 69 volt = dev_pm_opp_get_voltage(opp); 71 tol = volt * OPP_TOLERANCE / 100; 77 new_freq / 1000, volt ? volt / 1000 : -1); 81 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); 93 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol);
|
/linux-master/drivers/mmc/core/ |
H A D | regulator.c | 185 int ret, volt, min_uV, max_uV; local 199 ret = mmc_ocrbitnum_to_vdd(mmc->ios.vdd, &volt, &max_uV); 204 __func__, volt, max_uV); 206 min_uV = max(volt - 300000, 2700000); 217 min_uV, volt, max_uV); 222 2700000, volt, 3600000);
|
/linux-master/drivers/regulator/ |
H A D | da9055-regulator.c | 70 struct da9055_volt_reg volt; member in struct:da9055_regulator_info 135 ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); 139 if (ret >> info->volt.sl_shift) 149 struct da9055_volt_reg volt = info->volt; local 162 return da9055_reg_update(regulator->da9055, volt.reg_b, 163 1 << volt.sl_shift, 164 val << volt.sl_shift); 171 struct da9055_volt_reg volt = info->volt; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | volt.h | 33 int nvkm_volt_map(struct nvkm_volt *volt, u8 id, u8 temperature); 34 int nvkm_volt_map_min(struct nvkm_volt *volt, u8 id);
|
/linux-master/drivers/soc/samsung/ |
H A D | exynos-asv.c | 44 unsigned int new_volt, volt; local 57 volt = dev_pm_opp_get_voltage(opp); 58 new_volt = asv->opp_get_voltage(subsys, i, volt); 61 if (new_volt == volt) 73 opp_freq, volt, new_volt, cpu->id);
|
H A D | exynos5422-asv.c | 420 int level, unsigned int volt) 425 return volt; 430 if (volt > subsys->base_volt) 419 exynos5422_asv_opp_get_voltage(const struct exynos_asv_subsys *subsys, int level, unsigned int volt) argument
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | base.c | 33 #include <subdev/volt.h> 83 struct nvkm_volt *volt = clk->subdev.device->volt; local 102 if (!volt) 105 voltage = nvkm_volt_map(volt, cstate->voltage, temp); 108 return voltage <= min(max_volt, volt->max_uv); 116 struct nvkm_volt *volt = device->volt; local 122 if (!volt) 125 max_volt = volt 165 struct nvkm_volt *volt = device->volt; local 228 struct nvkm_volt *volt = clk->subdev.device->volt; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_hwmon.c | 36 #include <nvkm/subdev/volt.h> 318 struct nvkm_volt *volt = nvxx_volt(&drm->client.device); local 320 if (!volt || nvkm_volt_get(volt) < 0) 442 struct nvkm_volt *volt = nvxx_volt(&drm->client.device); local 445 if (!volt) 452 ret = nvkm_volt_get(volt); 456 *val = volt->min_uv > 0 ? (volt->min_uv / 1000) : -ENODEV; 459 *val = volt 669 struct nvkm_volt *volt = nvxx_volt(&drm->client.device); local [all...] |
/linux-master/drivers/power/supply/ |
H A D | twl4030_madc_battery.c | 76 int volt) 87 if (volt > calibration[0].voltage) { 91 if (volt <= calibration[i].voltage && 92 volt >= calibration[i+1].voltage) { 95 ((calibration[i].voltage - volt) * 75 twl4030_madc_bat_voltscale(struct twl4030_madc_battery *bat, int volt) argument
|
H A D | ug3105_battery.c | 75 int ocv[UG3105_MOV_AVG_WINDOW]; /* micro-volt */ 79 int ocv_avg; /* micro-volt */ 83 int volt; /* micro-volt */ member in struct:ug3105_chip 183 int prev_volt = chip->volt; 196 chip->volt = val * chip->uv_per_unit; 204 chip->volt - chip->curr * chip->intern_res_avg / 1000; 241 chip->volt < UG3105_LOW_BAT_UV || 255 volt_diff = abs(chip->volt - prev_volt); 422 * coming from somewhere for some reason (verified with a volt [all...] |