Home
last modified time | relevance | path

Searched full:uv (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/openbmc/linux/arch/arm/mach-omap2/
H A Dpmic-cpcap.c36 * @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 microvolts DC.
[all …]
H A Domap_twl.c49 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()
/openbmc/u-boot/drivers/power/regulator/
H A Dlp873x_regulator.c58 static int lp873x_buck_volt2hex(int uV) in lp873x_buck_volt2hex() argument
60 if (uV > LP873X_BUCK_VOLT_MAX) in lp873x_buck_volt2hex()
62 else if (uV > 1400000) in lp873x_buck_volt2hex()
63 return (uV - 1420000) / 20000 + 0x9E; in lp873x_buck_volt2hex()
64 else if (uV > 730000) in lp873x_buck_volt2hex()
65 return (uV - 735000) / 5000 + 0x18; in lp873x_buck_volt2hex()
66 else if (uV >= 700000) in lp873x_buck_volt2hex()
67 return (uV - 700000) / 10000 + 0x1; in lp873x_buck_volt2hex()
86 static int lp873x_buck_val(struct udevice *dev, int op, int *uV) in lp873x_buck_val() argument
95 *uV = 0; in lp873x_buck_val()
[all …]
H A Ds2mps11_regulator.c46 unsigned int uV = 0; in s2mps11_buck_hex2volt() local
58 uV = hex * S2MPS11_BUCK_HSTEP + S2MPS11_BUCK_UV_HMIN; in s2mps11_buck_hex2volt()
63 uV = hex * S2MPS11_BUCK9_STEP * 2 + S2MPS11_BUCK9_UV_MIN; in s2mps11_buck_hex2volt()
71 uV = hex * S2MPS11_BUCK_LSTEP + S2MPS11_BUCK_UV_MIN; in s2mps11_buck_hex2volt()
75 return uV; in s2mps11_buck_hex2volt()
81 static int s2mps11_buck_volt2hex(int buck, int uV) in s2mps11_buck_volt2hex() argument
89 hex = (uV - S2MPS11_BUCK_UV_HMIN) / S2MPS11_BUCK_HSTEP; in s2mps11_buck_volt2hex()
95 hex = (uV - S2MPS11_BUCK9_UV_MIN) / S2MPS11_BUCK9_STEP; in s2mps11_buck_volt2hex()
100 hex = (uV - S2MPS11_BUCK_UV_MIN) / S2MPS11_BUCK_LSTEP; in s2mps11_buck_volt2hex()
112 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in s2mps11_buck_volt2hex()
[all …]
H A Dpalmas_regulator.c86 static int palmas_smps_volt2hex(int uV) in palmas_smps_volt2hex() argument
88 if (uV > PALMAS_LDO_VOLT_MAX) in palmas_smps_volt2hex()
91 if (uV > 1650000) in palmas_smps_volt2hex()
92 return (uV - 1000000) / 20000 + 0x6; in palmas_smps_volt2hex()
94 if (uV == 500000) in palmas_smps_volt2hex()
97 return 0x6 + ((uV - 500000) / 10000); in palmas_smps_volt2hex()
102 unsigned int uV = 0; in palmas_smps_hex2volt() local
108 uV = 500000; in palmas_smps_hex2volt()
110 uV = 500000 + (hex - 0x6) * 10000; in palmas_smps_hex2volt()
113 uV *= 2; in palmas_smps_hex2volt()
[all …]
H A Dmax77686.c69 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument
78 /* hex = (uV - 600000) / 12500; */ in max77686_buck_volt2hex()
79 hex = (uV - MAX77686_BUCK_UV_LMIN) / MAX77686_BUCK_UV_LSTEP; in max77686_buck_volt2hex()
84 * hex = (uV - 750000) / 50000. We assume that dynamic voltage in max77686_buck_volt2hex()
90 hex = (uV - MAX77686_BUCK_UV_HMIN) / MAX77686_BUCK_UV_HSTEP; in max77686_buck_volt2hex()
98 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in max77686_buck_volt2hex()
104 unsigned uV = 0; in max77686_buck_hex2volt() local
118 /* uV = hex * 12500 + 600000; */ in max77686_buck_hex2volt()
119 uV = hex * MAX77686_BUCK_UV_LSTEP + MAX77686_BUCK_UV_LMIN; in max77686_buck_hex2volt()
126 /* uV = hex * 50000 + 750000; */ in max77686_buck_hex2volt()
[all …]
H A Dlp87565_regulator.c56 static int lp87565_buck_volt2val(int uV) in lp87565_buck_volt2val() argument
58 if (uV > LP87565_BUCK_VOLT_MAX) in lp87565_buck_volt2val()
60 else if (uV > 1400000) in lp87565_buck_volt2val()
61 return (uV - 1420000) / 20000 + 0x9E; in lp87565_buck_volt2val()
62 else if (uV > 730000) in lp87565_buck_volt2val()
63 return (uV - 735000) / 5000 + 0x18; in lp87565_buck_volt2val()
64 else if (uV >= 500000) in lp87565_buck_volt2val()
65 return (uV - 500000) / 10000; in lp87565_buck_volt2val()
84 static int lp87565_buck_val(struct udevice *dev, int op, int *uV) in lp87565_buck_val() argument
93 *uV = 0; in lp87565_buck_val()
[all …]
H A Dtps65910_regulator.c21 * @vin_min[]: minimum supply input voltage in uV required to achieve the
23 * @vout[]: regulator output voltage in uV
192 int uV) in tps65910_regulator_set_value() argument
200 if (uV == *(ldo->vout + sel)) in tps65910_regulator_set_value()
216 static int tps65910_ldo_set_value(struct udevice *dev, int uV) in tps65910_ldo_set_value() argument
228 return tps65910_regulator_set_value(dev, &ldo_props_vdig1, uV); in tps65910_ldo_set_value()
230 return tps65910_regulator_set_value(dev, &ldo_props_vdig2, uV); in tps65910_ldo_set_value()
232 return tps65910_regulator_set_value(dev, &ldo_props_vpll, uV); in tps65910_ldo_set_value()
234 return tps65910_regulator_set_value(dev, &ldo_props_vdac, uV); in tps65910_ldo_set_value()
236 return tps65910_regulator_set_value(dev, &ldo_props_vaux1, uV); in tps65910_ldo_set_value()
[all …]
H A Dregulator-uclass.c43 debug("regulator %s: delay %u us (%d uV -> %d uV)\n", dev->name, delay, in regulator_set_value_ramp_delay()
49 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument
53 int ret, old_uV = uV, is_enabled = 0; in regulator_set_value()
56 if (uc_pdata->min_uV != -ENODATA && uV < uc_pdata->min_uV) in regulator_set_value()
58 if (uc_pdata->max_uV != -ENODATA && uV > uc_pdata->max_uV) in regulator_set_value()
69 ret = ops->set_value(dev, uV); in regulator_set_value()
73 regulator_set_value_ramp_delay(dev, old_uV, uV, in regulator_set_value()
84 int regulator_set_value_force(struct udevice *dev, int uV) in regulator_set_value_force() argument
91 return ops->set_value(dev, uV); in regulator_set_value_force()
150 int uV = regulator_get_value(dev); in regulator_set_enable() local
[all …]
/openbmc/linux/arch/x86/kernel/apic/
H A Dx2apic_uv_x.c6 * 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: WARN: GAM_ADDR_MAP_CONFIG is not available\n"); in early_get_pnodeid()
136 pr_info("UV: n_skt:%d pnmsk:%x pn:%x\n", in early_get_pnodeid()
[all …]
/openbmc/linux/arch/x86/platform/uv/
H A Duv_nmi.c29 #include <asm/uv/uv.h>
30 #include <asm/uv/uv_hub.h>
31 #include <asm/uv/uv_mmrs.h>
34 * UV handler for NMI
42 * We also have to lessen UV Hub MMR accesses as much as possible as this
43 * disrupts the UV Hub's primary mission of directing NumaLink traffic and
51 * IPI(NMI) signal as mentioned above, and does not read the UV Hub's MMR.
72 /* UV hubless values */
216 pr_info("UV: New NMI action:%s\n", uv_nmi_action); in param_set_action()
220 pr_err("UV: Invalid NMI action:%s, valid actions are:\n", arg); in param_set_action()
[all …]
H A Duv_irq.c6 * 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()
98 chip_data->pnode = uv_blade_to_pnode(info->uv.blade); in uv_domain_alloc()
99 chip_data->offset = info->uv.offset; in uv_domain_alloc()
101 handle_percpu_irq, NULL, info->uv.name); in uv_domain_alloc()
165 fn = irq_domain_alloc_named_fwnode("UV-CORE"); in uv_get_irq_domain()
195 info.uv.limit = limit; in uv_setup_irq()
[all …]
/openbmc/linux/drivers/s390/char/
H A Duvdevice.c7 * Ultravisor (UV) functions. The device only accepts IOCTLs and will only
14 * to existing UV-calls.
19 * by UV and to interpret the UV response. The uvdevice acts as a communication
33 #include <asm/uv.h>
154 * are sane. Every other check is made by the Ultravisor (UV) and won't result
156 * request, sends the UV-call, and copies the result to userspace.
159 * ARCB and User Data are inputs for the UV generated by userspace.
160 * Measurement and Additional Data are outputs for userspace generated by UV.
163 * and secured request to UV and User Data is some plaintext data which is
168 * ARCB, UV will add some Additional Data to the measurement calculation.
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/dbus-cxx/
H A Ddbus-cxx_2.5.2.bb34 PACKAGECONFIG[uv] = "-DENABLE_UV_SUPPORT=ON,-DENABLE_UV_SUPPORT=OFF,libuv"
36 PACKAGES =+ " ${PN}-tools ${PN}-glib ${PN}-uv ${PN}-glib-dev ${PN}-uv-dev "
43 FILES:${PN}-uv = "${libdir}/libdbus-cxx-uv.so.* "
44 FILES:${PN}-uv-dev = "${includedir}/dbus-cxx-uv-2.0/* \
45 ${libdir}/pkgconfig/dbus-cxx-uv-2.0.pc\
46 ${libdir}/libdbus-cxx-uv.so \
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-adc-mt63606 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 Dsysfs-firmware-sgi_uv6 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 Hub
/openbmc/linux/drivers/clk/tegra/
H A Dcvb.c29 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()
/openbmc/u-boot/test/dm/
H A Dadc.c52 int uV; in dm_test_adc_supply() local
56 /* Test Vss value - predefined 0 uV */ in dm_test_adc_supply()
57 ut_assertok(adc_vss_value(dev, &uV)); in dm_test_adc_supply()
58 ut_asserteq(SANDBOX_ADC_VSS_VALUE, uV); in dm_test_adc_supply()
61 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_adc_supply()
62 ut_asserteq(SANDBOX_BUCK2_INITIAL_EXPECTED_UV, uV); in dm_test_adc_supply()
70 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_adc_supply()
71 ut_asserteq(SANDBOX_BUCK2_SET_UV, uV); in dm_test_adc_supply()
184 int uV; in dm_test_adc_raw_to_uV() local
191 ut_assertok(adc_raw_to_uV(dev, data, &uV)); in dm_test_adc_raw_to_uV()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dgk20a.c96 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 …]
/openbmc/linux/drivers/regulator/
H A Dmp886x.c108 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
210 uv = regulator_list_voltage_linear(rdev, val); in mp8867_get_voltage_sel()
211 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8867_get_voltage_sel()
[all …]
/openbmc/linux/arch/ia64/uv/kernel/
H A Dsetup.c6 * SGI UV Core Functions
15 #include <asm/uv/uv.h>
16 #include <asm/uv/uv_mmrs.h>
17 #include <asm/uv/uv_hub.h>
80 !strcmp(xsdt->header.oem_table_id + 4, "UV")) in uv_probe_system_type()
100 printk(KERN_DEBUG "UV: global MMR base 0x%lx\n", mmr_base); in uv_setup()
117 printk(KERN_DEBUG "UV cpu %d, nid %d\n", cpu, nid); in uv_setup()
/openbmc/linux/drivers/soc/rockchip/
H A Dio-domain.c71 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
79 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
82 static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) in rk3568_iodomain_write() argument
85 u32 is_3v3 = uV > MAX_VOLTAGE_1_8; in rk3568_iodomain_write()
124 int uV) in rockchip_iodomain_write() argument
131 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write()
150 int uV; in rockchip_iodomain_notify() local
169 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify()
172 uV = (unsigned long)data; in rockchip_iodomain_notify()
177 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify()
[all …]
/openbmc/linux/drivers/misc/sgi-xp/
H A Dxpc_uv.c10 * Cross Partition Communication (XPC) uv-based functions.
26 #include <asm/uv/uv_hub.h>
28 #include <asm/uv/bios.h>
29 #include <asm/uv/uv_irq.h>
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()
[all …]
/openbmc/linux/arch/s390/include/uapi/asm/
H A Duvdevice.h13 __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.
75 #define UVIO_DEVICE_NAME "uv"
/openbmc/u-boot/cmd/
H A Dadc.c76 int ret, uV; in do_adc_single() local
90 if (!ret && !adc_raw_to_uV(dev, data, &uV)) in do_adc_single()
91 printf("%u, %d uV\n", data, uV); in do_adc_single()
104 int i, chan, ret, uV; in do_adc_scan() local
139 if (!adc_raw_to_uV(dev, ch[i].data, &uV)) in do_adc_scan()
140 printf("[%02d]: %u, %d uV\n", ch[i].id, ch[i].data, uV); in do_adc_scan()

12345678910>>...24