| /Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
| D | gk20a.c | 96 int i, uv; in gk20a_volt_vid_get() local 98 uv = regulator_get_voltage(volt->vdd); in gk20a_volt_vid_get() 101 if (volt->base.vid[i].uv >= uv) in gk20a_volt_vid_get() 113 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set() 114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set() 123 int target_uv = volt->base.vid[id].uv; in gk20a_volt_set_id() 152 int i, uv; in gk20a_volt_ctor() local 156 uv = regulator_get_voltage(tdev->vdd); in gk20a_volt_ctor() 157 nvkm_debug(&volt->base.subdev, "the default voltage is %duV\n", uv); in gk20a_volt_ctor() 164 volt->base.vid[i].uv = max( in gk20a_volt_ctor() [all …]
|
| D | base.c | 43 return volt->vid[i].uv; in nvkm_volt_get() 51 nvkm_volt_set(struct nvkm_volt *volt, u32 uv) in nvkm_volt_set() argument 57 return volt->func->volt_set(volt, uv); in nvkm_volt_set() 60 int err = volt->vid[i].uv - uv; in nvkm_volt_set() 71 nvkm_error(subdev, "couldn't set %iuv\n", uv); in nvkm_volt_set() 76 nvkm_debug(subdev, "set req %duv to %duv: %d\n", uv, in nvkm_volt_set() 77 volt->vid[best].uv, ret); in nvkm_volt_set() 203 volt->vid[volt->vid_nr].uv = info.base; in nvkm_volt_parse_bios() 218 volt->vid[volt->vid_nr].uv = ivid.voltage; in nvkm_volt_parse_bios() 315 volt->vid[i].vid, volt->vid[i].uv); in nvkm_volt_ctor()
|
| D | priv.h | 15 int (*volt_set)(struct nvkm_volt *, u32 uv); 28 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
|
| D | gk104.c | 52 gk104_volt_set(struct nvkm_volt *base, u32 uv) in gk104_volt_set() argument 60 duty = DIV_ROUND_UP((uv - bios->base) * div, bios->pwm_range); in gk104_volt_set()
|
| /Linux-v5.4/drivers/clk/tegra/ |
| D | cvb.c | 29 int uv; in round_cvb_voltage() local 33 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage() 34 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; in round_cvb_voltage() 35 return uv / 1000; in round_cvb_voltage() 46 int uv; in round_voltage() local 48 uv = max(mv * 1000, align->offset_uv) - align->offset_uv; in round_voltage() 49 uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv; in round_voltage() 50 return (uv * align->step_uv + align->offset_uv) / 1000; in round_voltage()
|
| /Linux-v5.4/arch/arm/mach-omap2/ |
| D | omap_twl.c | 54 static u8 twl4030_uv_to_vsel(unsigned long uv) in twl4030_uv_to_vsel() argument 56 return DIV_ROUND_UP(uv - 600000, 12500); in twl4030_uv_to_vsel() 93 static u8 twl6030_uv_to_vsel(unsigned long uv) in twl6030_uv_to_vsel() argument 109 if (!uv) in twl6030_uv_to_vsel() 118 if (uv > twl6030_vsel_to_uv(0x39)) { in twl6030_uv_to_vsel() 119 if (uv == 1350000) in twl6030_uv_to_vsel() 122 __func__, uv, twl6030_vsel_to_uv(0x39)); in twl6030_uv_to_vsel() 127 return DIV_ROUND_UP(uv - 709000, 12660) + 1; in twl6030_uv_to_vsel() 129 return DIV_ROUND_UP(uv - 607700, 12660) + 1; in twl6030_uv_to_vsel()
|
| /Linux-v5.4/drivers/misc/sgi-xp/ |
| D | xpc_uv.c | 79 part_uv = &xpc_partitions[partid].sn.uv; in xpc_setup_partitions_uv() 96 part_uv = &xpc_partitions[partid].sn.uv; in xpc_teardown_partitions_uv() 385 if (part->sn.uv.act_state_req == 0) in xpc_process_activate_IRQ_rcvd_uv() 391 act_state_req = part->sn.uv.act_state_req; in xpc_process_activate_IRQ_rcvd_uv() 392 part->sn.uv.act_state_req = 0; in xpc_process_activate_IRQ_rcvd_uv() 408 XPC_DEACTIVATE_PARTITION(part, part->sn.uv.reason); in xpc_process_activate_IRQ_rcvd_uv() 429 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_handle_activate_mq_msg_uv() 680 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_activate_IRQ_uv() 765 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_local_activate_IRQ_uv() 819 &xpc_partitions[sn_partition_id].sn.uv.cached_heartbeat; in xpc_setup_rsvd_page_uv() [all …]
|
| D | xpc.h | 94 } uv; member 360 struct xpc_channel_uv uv; member 517 struct xpc_partition_uv uv; member
|
| /Linux-v5.4/drivers/hwmon/ |
| D | ntc_thermistor.c | 329 int raw, uv, ret; in ntc_adc_iio_read() local 337 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read() 340 uv = (pdata->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read() 343 return uv; in ntc_adc_iio_read() 445 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument 453 if (uv == 0) in get_ohm_of_thermistor() 456 if (uv >= puv) in get_ohm_of_thermistor() 461 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor() 463 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor() 465 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor() [all …]
|
| /Linux-v5.4/arch/arm/boot/dts/ |
| D | cros-adc-thermistors.dtsi | 15 pullup-uv = <1800000>; 22 pullup-uv = <1800000>; 29 pullup-uv = <1800000>; 36 pullup-uv = <1800000>;
|
| /Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| D | gm20b.c | 123 u32 uv; member 189 gm20b_dvfs_calc_det_coeff(struct gm20b_clk *clk, s32 uv, in gm20b_dvfs_calc_det_coeff() argument 196 s32 mv = DIV_ROUND_CLOSEST(uv, 1000); in gm20b_dvfs_calc_det_coeff() 203 dvfs->dfs_ext_cal = DIV_ROUND_CLOSEST(uv - clk->uvdet_offs, in gm20b_dvfs_calc_det_coeff() 212 __func__, uv, dvfs->dfs_coeff, dvfs->dfs_ext_cal, in gm20b_dvfs_calc_det_coeff() 234 det_delta = DIV_ROUND_CLOSEST(((s32)clk->uv) - clk->uvdet_offs, in gm20b_dvfs_calc_ndiv() 476 clk->new_uv = volt->vid[cstate->voltage].uv; in gm20b_clk_calc() 579 if (clk->uv == clk->new_uv) in gm20b_clk_prog() 605 if (clk->uv < clk->new_uv) in gm20b_clk_prog() 630 clk->uv = clk->new_uv; in gm20b_clk_prog() [all …]
|
| /Linux-v5.4/include/linux/regulator/ |
| D | fixed.h | 47 struct regulator_consumer_supply *supplies, int num_supplies, int uv); 50 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
|
| /Linux-v5.4/drivers/regulator/ |
| D | fixed-helper.c | 31 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument 45 data->cfg.microvolts = uv; in regulator_register_always_on()
|
| D | rk808-regulator.c | 399 static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) in rk808_set_suspend_voltage() argument 402 int sel = regulator_map_voltage_linear(rdev, uv, uv); in rk808_set_suspend_voltage() 414 static int rk817_set_suspend_voltage(struct regulator_dev *rdev, int uv) in rk817_set_suspend_voltage() argument 417 int sel = regulator_map_voltage_linear(rdev, uv, uv); in rk817_set_suspend_voltage() 429 static int rk808_set_suspend_voltage_range(struct regulator_dev *rdev, int uv) in rk808_set_suspend_voltage_range() argument 432 int sel = regulator_map_voltage_linear_range(rdev, uv, uv); in rk808_set_suspend_voltage_range()
|
| D | bd718x7-regulator.c | 365 unsigned int uv; in set_dvs_levels() local 367 ret = of_property_read_u32(np, dvs->prop, &uv); in set_dvs_levels() 378 if (ret == uv) { in set_dvs_levels()
|
| D | da9062-regulator.c | 245 static int da9062_set_suspend_voltage(struct regulator_dev *rdev, int uv) in da9062_set_suspend_voltage() argument 251 sel = regulator_map_voltage_linear(rdev, uv, uv); in da9062_set_suspend_voltage()
|
| /Linux-v5.4/Documentation/devicetree/bindings/hwmon/ |
| D | ntc_thermistor.txt | 23 - "pullup-uv" Pull up voltage in micro volts 40 pullup-uv = <1800000>;
|
| /Linux-v5.4/arch/x86/platform/ |
| D | Makefile | 16 obj-y += uv/
|
| /Linux-v5.4/net/unix/ |
| D | diag.c | 31 struct unix_diag_vfs uv = { in sk_diag_dump_vfs() local 36 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
|
| /Linux-v5.4/Documentation/devicetree/bindings/opp/ |
| D | ti-omap5-opp-supply.txt | 36 - ti,absolute-max-voltage-uv: absolute maximum voltage for the OPP supply. 62 ti,absolute-max-voltage-uv = <1500000>;
|
| /Linux-v5.4/Documentation/devicetree/bindings/iio/light/ |
| D | uvis25.txt | 1 * ST UVIS25 uv sensor
|
| /Linux-v5.4/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
| D | volt.h | 13 u32 uv; member
|
| /Linux-v5.4/arch/arm64/boot/dts/rockchip/ |
| D | rk3399-gru-kevin.dts | 69 pullup-uv = <1800000>; 78 pullup-uv = <1800000>;
|
| /Linux-v5.4/arch/s390/boot/ |
| D | Makefile | 40 obj-$(CONFIG_PROTECTED_VIRTUALIZATION_GUEST) += uv.o
|
| /Linux-v5.4/arch/ia64/ |
| D | Makefile | 53 core-$(CONFIG_IA64_SGI_UV) += arch/ia64/uv/
|