/linux/arch/arm/mach-omap2/ |
H A D | pmic-cpcap.c | 36 * @uv: microvolts DC to convert 39 * generate an output voltage equal to or greater than @uv microvolts DC. 41 static unsigned char omap_cpcap_uv_to_vsel(unsigned long uv) in omap_cpcap_uv_to_vsel() argument 43 if (uv < 600000) in omap_cpcap_uv_to_vsel() 44 uv = 600000; in omap_cpcap_uv_to_vsel() 45 else if (uv > 1450000) in omap_cpcap_uv_to_vsel() 46 uv = 1450000; in omap_cpcap_uv_to_vsel() 47 return DIV_ROUND_UP(uv - 600000, 12500); in omap_cpcap_uv_to_vsel() 100 * @uv: microvolts DC to convert 103 * generate an output voltage equal to or greater than @uv microvolt 105 omap_max8952_uv_to_vsel(unsigned long uv) omap_max8952_uv_to_vsel() argument 171 omap_fan535503_uv_to_vsel(unsigned long uv) omap_fan535503_uv_to_vsel() argument 190 omap_fan535508_uv_to_vsel(unsigned long uv) omap_fan535508_uv_to_vsel() argument [all...] |
H A D | omap_twl.c | 49 static u8 twl4030_uv_to_vsel(unsigned long uv) in twl4030_uv_to_vsel() argument 51 return DIV_ROUND_UP(uv - 600000, 12500); in twl4030_uv_to_vsel() 88 static u8 twl6030_uv_to_vsel(unsigned long uv) in twl6030_uv_to_vsel() argument 104 if (!uv) in twl6030_uv_to_vsel() 113 if (uv > twl6030_vsel_to_uv(0x39)) { in twl6030_uv_to_vsel() 114 if (uv == 1350000) in twl6030_uv_to_vsel() 117 __func__, uv, twl6030_vsel_to_uv(0x39)); in twl6030_uv_to_vsel() 122 return DIV_ROUND_UP(uv - 709000, 12660) + 1; in twl6030_uv_to_vsel() 124 return DIV_ROUND_UP(uv - 607700, 12660) + 1; in twl6030_uv_to_vsel()
|
/linux/arch/x86/kernel/apic/ |
H A D | x2apic_uv_x.c | 6 * SGI UV APIC functions (note: not an Intel compatible APIC) 22 #include <asm/uv/uv_mmrs.h> 23 #include <asm/uv/uv_hub.h> 24 #include <asm/uv/bios.h> 25 #include <asm/uv/uv.h> 42 /* Information derived from CPUID and some UV MMRs */ 66 panic("UV: error: undefined MMR: %s\n", str); in uv_undefined() 68 pr_crit("UV: error: undefined MMR: %s\n", str); in uv_undefined() 124 "UV in early_get_pnodeid() [all...] |
/linux/arch/x86/platform/uv/ |
H A D | uv_nmi.c | 30 #include <asm/uv/uv.h> 31 #include <asm/uv/uv_hub.h> 32 #include <asm/uv/uv_mmrs.h> 35 * UV handler for NMI 43 * We also have to lessen UV Hub MMR accesses as much as possible as this 44 * disrupts the UV Hub's primary mission of directing NumaLink traffic and 52 * IPI(NMI) signal as mentioned above, and does not read the UV Hub's MMR. 73 /* UV hubless values */ 224 pr_info("UV in param_set_action() [all...] |
H A D | uv_irq.c | 6 * SGI UV IRQ functions 18 #include <asm/uv/uv_irq.h> 19 #include <asm/uv/uv_hub.h> 68 .name = "UV-CORE", 93 if (info->uv.limit == UV_AFFINITY_CPU) in uv_domain_alloc() 96 chip_data->pnode = uv_blade_to_pnode(info->uv.blade); in uv_domain_alloc() 97 chip_data->offset = info->uv.offset; in uv_domain_alloc() 99 handle_percpu_irq, NULL, info->uv.name); in uv_domain_alloc() 162 fn = irq_domain_alloc_named_fwnode("UV-CORE"); in uv_get_irq_domain() 192 info.uv in uv_setup_irq() [all...] |
H A D | uv_time.c | 12 #include <asm/uv/uv_mmrs.h> 13 #include <asm/uv/uv_hub.h> 14 #include <asm/uv/bios.h> 15 #include <asm/uv/uv.h> 272 * Starting with HUB rev 2.0, the UV RTC register is replicated across all 350 printk(KERN_INFO "UV RTC clocksource failed rc %d\n", rc); in uv_rtc_setup_clock() 352 printk(KERN_INFO "UV RTC clocksource registered freq %lu MHz\n", in uv_rtc_setup_clock() 383 printk(KERN_INFO "UV RTC clockevents registered\n"); in uv_rtc_setup_clock() 389 printk(KERN_INFO "UV RT in uv_rtc_setup_clock() [all...] |
H A D | bios_uv.c | 16 #include <asm/uv/bios.h> 17 #include <asm/uv/uv_hub.h> 31 * BIOS does not support UV systab in __uv_bios_call() 234 pr_crit("UV: UVsystab: missing\n"); in get_uv_systab_phys() 251 pr_err("UV: UVsystab: bad signature!\n"); in uv_bios_init() 256 /* Starting with UV4 the UV systab size is variable */ in uv_bios_init() 263 pr_err("UV: UVsystab: ioremap(%d) failed!\n", size); in uv_bios_init() 267 pr_info("UV: UVsystab: Revision:%x\n", uv_systab->revision); in uv_bios_init()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-adc-mt6360 | 6 Calculating with scale and offset returns voltage in uV 14 Calculating with scale and offset returns voltage in uV 22 Calculating with scale and offset returns voltage in uV 29 Calculating with scale and offset returns voltage in uV 36 Calculating with scale and offset returns voltage in uV 57 Calculating with scale and offset returns voltage in uV 71 Calculating with scale and offset returns voltage in uV 78 Calculating with scale and offset returns voltage in uV
|
H A D | sysfs-firmware-sgi_uv | 6 about the UV platform. 17 The archtype entry contains the UV architecture type that 20 UVsystab entry both passed from UV BIOS. 30 UV systems can be partitioned into multiple physical 36 A partitioned UV system can have one or more coherence 41 This value can be used to identify the UV system version:: 43 "0.*" = Hubless UV ('*' is subtype) 56 a UV Hub visible to the BIOS. Each hub object's name is appended by a 138 across all UV versions are:: 147 The location entry contains the location string of the UV Hu [all...] |
/linux/drivers/clk/tegra/ |
H A 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 * alig in round_voltage() [all...] |
/linux/drivers/misc/sgi-xp/ |
H A D | xpc_uv.c | 10 * Cross Partition Communication (XPC) uv-based functions. 26 #include <asm/uv/uv_hub.h> 27 #include <asm/uv/bios.h> 28 #include <asm/uv/uv_irq.h> 57 part_uv = &xpc_partitions[partid].sn.uv; in xpc_setup_partitions_uv() 74 part_uv = &xpc_partitions[partid].sn.uv; in xpc_teardown_partitions_uv() 314 if (part->sn.uv.act_state_req == 0) in xpc_process_activate_IRQ_rcvd_uv() 320 act_state_req = part->sn.uv.act_state_req; in xpc_process_activate_IRQ_rcvd_uv() 321 part->sn.uv.act_state_req = 0; in xpc_process_activate_IRQ_rcvd_uv() 337 XPC_DEACTIVATE_PARTITION(part, part->sn.uv in xpc_process_activate_IRQ_rcvd_uv() [all...] |
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A 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() [all...] |
H A 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 in nvkm_volt_parse_bios() [all...] |
/linux/drivers/regulator/ |
H A D | mp886x.c | 108 static inline unsigned int mp8869_scale(unsigned int uv, u32 r1, u32 r2) in mp8869_scale() argument 110 u32 tmp = uv * r1 / r2; in mp8869_scale() 112 return uv + tmp; in mp8869_scale() 118 int ret, uv; in mp8869_get_voltage_sel() local 128 uv = rdev->desc->min_uV; in mp8869_get_voltage_sel() 129 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8869_get_voltage_sel() 130 return regulator_map_voltage_linear(rdev, uv, uv); in mp8869_get_voltage_sel() 196 int ret, uv; in mp8867_get_voltage_sel() local [all...] |
H A D | qcom_rpm-regulator.c | 28 struct request_member uV; /* used if voltage is in uV */ member 58 int uV; member 108 .uV = { 0, 0x007FFFFF, 0 }, 119 .uV = { 0, 0x007FFFFF, 0 }, 142 .uV = { 0, 0x007FFFFF, 0 }, 213 int uV; in rpm_reg_set_mV_sel() local 218 uV = regulator_list_voltage_linear_range(rdev, selector); in rpm_reg_set_mV_sel() 219 if (uV < 0) in rpm_reg_set_mV_sel() 220 return uV; in rpm_reg_set_mV_sel() 240 int uV; rpm_reg_set_uV_sel() local [all...] |
/linux/arch/s390/include/uapi/asm/ |
H A D | uvdevice.h | 13 __u16 uv_rc; /* UV header rc value */ 14 __u16 uv_rrc; /* UV header rrc value */ 46 * as there is no corresponding UV-call. 54 * If bit `n` is set, the Ultravisor(UV) supports the UV-call 67 * userspace to request more memory than actually used by kernel/UV. 76 #define UVIO_DEVICE_NAME "uv"
|
/linux/tools/testing/selftests/power_supply/ |
H A D | test_power_supply_properties.sh | 84 test_sysfs_prop_optional input_voltage_limit "uV" 93 test_sysfs_prop_optional_range voltage_now 1800000 60000000 "uV" 94 test_sysfs_prop_optional_range voltage_min 1800000 60000000 "uV" 95 test_sysfs_prop_optional_range voltage_max 1800000 60000000 "uV" 96 test_sysfs_prop_optional_range voltage_min_design 1800000 60000000 "uV" 97 test_sysfs_prop_optional_range voltage_max_design 1800000 60000000 "uV"
|
/linux/arch/x86/include/asm/uv/ |
H A D | uv_hub.h | 6 * SGI UV architectural definitions 23 #include <asm/uv/uv.h> 24 #include <asm/uv/uv_mmrs.h> 25 #include <asm/uv/bios.h> 43 * equal to 0. Most addressing macros that target UV hub chips 70 * Memory/UV-HUB Processor Socket Address Format: 224 * HUB revision ranges for each UV HUB architecture. 255 /* Any UV Hubbed System */ 355 * Note there are NO leds on a UV syste [all...] |
/linux/drivers/pmdomain/qcom/ |
H A D | cpr.c | 204 int uV; member 216 int uV; member 778 new_uV = corner->uV; in cpr_set_performance_state() 824 int step_size_uV, steps, uV; in cpr_read_fuse_uV() local 839 uV = fdata->ref_uV + steps * step_size_uV; in cpr_read_fuse_uV() 840 return DIV_ROUND_UP(uV, step_volt) * step_volt; in cpr_read_fuse_uV() 852 int uV; in cpr_fuse_corner_init() local 876 /* Populate uV */ in cpr_fuse_corner_init() 877 uV = cpr_read_fuse_uV(desc, fdata, fuses->init_voltage, in cpr_fuse_corner_init() 879 if (uV < in cpr_fuse_corner_init() 986 int uV_high, uV_low, uV; cpr_interpolate() local [all...] |
/linux/drivers/char/ |
H A D | uv_mmtimer.c | 2 * Timer device implementation for SGI UV platform. 28 #include <asm/uv/uv_hub.h> 29 #include <asm/uv/bios.h> 30 #include <asm/uv/uv.h> 33 MODULE_DESCRIPTION("SGI UV Memory Mapped RTC Timer"); 38 #define UV_MMTIMER_DESC "SGI UV Memory Mapped RTC Timer" 92 * Starting with HUB rev 2.0, the UV RTC register is in uv_mmtimer_ioctl()
|
/linux/arch/arm/boot/dts/ |
H A D | cros-adc-thermistors.dtsi | 15 pullup-uv = <1800000>; 22 pullup-uv = <1800000>; 29 pullup-uv = <1800000>; 36 pullup-uv = <1800000>;
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rohm,bd96801-pmic.yaml | 103 regulator-uv-error-microvolt = <230000>; 114 regulator-uv-error-microvolt = <18000>; 125 regulator-uv-warn-microvolt = <18000>; 136 regulator-uv-warn-microvolt = <18000>; 147 regulator-uv-error-microvolt = <34000>; 158 regulator-uv-error-microvolt = <34000>; 169 regulator-uv-error-microvolt = <34000>;
|
/linux/drivers/hwmon/ |
H A D | ntc_thermistor.c | 348 int uv, ret; in ntc_adc_iio_read() local 350 ret = iio_read_channel_processed_scale(channel, &uv, 1000); in ntc_adc_iio_read() 364 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read() 367 uv = (data->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read() 371 return uv; in ntc_adc_iio_read() 383 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument 391 if (uv == 0 || uv >= puv) in get_ohm_of_thermistor() 395 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor() [all...] |
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A 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 195 /* Work with mv as uv would likely trigger an overflow */ in gm20b_dvfs_calc_det_coeff() 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() 211 nvkm_debug(subdev, "%s uv: %d coeff: %x, ext_cal: %d, det_max: %d\n", 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() 274 /* calculate the new n_int/sdm_din for this n/uv */ in gm20b_pllg_slide() 476 clk->new_uv = volt->vid[cstate->voltage].uv; in gm20b_clk_calc() [all...] |
/linux/Documentation/virt/kvm/s390/ |
H A D | s390-pv-boot.rst | 20 to the Ultravisor (UV) and instruct it to secure the memory of the 23 SIE instruction which the UV will intercept and execute on KVM's 56 The PV header contains the keys and hashes, which the UV will use to 60 and initrd. The components are decrypted by the UV. 72 UV will clear all memory when a secure VM is removed, and therefore
|