Home
last modified time | relevance | path

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

12345678910>>...20

/Linux-v6.1/arch/arm/mach-omap2/
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 …]
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()
/Linux-v6.1/arch/x86/kernel/apic/
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>
40 /* Information derived from CPUID and some UV MMRs */
64 panic("UV: error: undefined MMR: %s\n", str); in uv_undefined()
66 pr_crit("UV: error: undefined MMR: %s\n", str); in uv_undefined()
122 "UV: WARN: GAM_ADDR_MAP_CONFIG is not available\n"); in early_get_pnodeid()
134 pr_info("UV: n_skt:%d pnmsk:%x pn:%x\n", in early_get_pnodeid()
[all …]
/Linux-v6.1/arch/x86/platform/uv/
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 */
220 pr_info("UV: New NMI action:%s\n", uv_nmi_action); in param_set_action()
224 pr_err("UV: Invalid NMI action:%s, valid actions are:\n", arg); in param_set_action()
[all …]
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()
196 info.uv.limit = limit; in uv_setup_irq()
[all …]
Duv_time.c12 #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 RTC clockevents failed rc %d\n", rc); in uv_rtc_setup_clock()
Dbios_uv.c16 #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-v6.1/Documentation/ABI/testing/
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
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
/Linux-v6.1/drivers/clk/tegra/
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()
/Linux-v6.1/drivers/s390/char/
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>
105 * are sane. Every other check is made by the Ultravisor (UV) and won't result
107 * request, sends the UV-call, and copies the result to userspace.
110 * ARCB and User Data are inputs for the UV generated by userspace.
111 * Measurement and Additional Data are outputs for userspace generated by UV.
114 * and secured request to UV and User Data is some plaintext data which is
119 * ARCB, UV will add some Additional Data to the measurement calculation.
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
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 …]
Dbase.c43 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()
/Linux-v6.1/drivers/regulator/
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 …]
Dqcom_rpm-regulator.c28 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()
224 ret = rpm_reg_write(vreg, req, uV / 1000); in rpm_reg_set_mV_sel()
[all …]
/Linux-v6.1/drivers/soc/rockchip/
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 …]
/Linux-v6.1/drivers/misc/sgi-xp/
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 …]
/Linux-v6.1/arch/ia64/uv/kernel/
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()
/Linux-v6.1/arch/x86/include/asm/uv/
Duv_hub.h6 * 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:
223 * HUB revision ranges for each UV HUB architecture.
254 /* Any UV Hubbed System */
354 * Note there are NO leds on a UV system. This register is only
377 * addresses, and UV global physical addresses.
[all …]
/Linux-v6.1/drivers/soc/qcom/
Dcpr.c204 int uV; member
216 int uV; member
780 new_uV = corner->uV; in cpr_set_performance_state()
829 int step_size_uV, steps, uV; in cpr_read_fuse_uV() local
844 uV = fdata->ref_uV + steps * step_size_uV; in cpr_read_fuse_uV()
845 return DIV_ROUND_UP(uV, step_volt) * step_volt; in cpr_read_fuse_uV()
857 int uV; in cpr_fuse_corner_init() local
881 /* Populate uV */ in cpr_fuse_corner_init()
882 uV = cpr_read_fuse_uV(desc, fdata, fuses->init_voltage, in cpr_fuse_corner_init()
884 if (uV < 0) in cpr_fuse_corner_init()
[all …]
/Linux-v6.1/drivers/char/
Duv_mmtimer.c2 * 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-v6.1/arch/ia64/include/asm/uv/
Duv_hub.h6 * SGI UV architectural definitions
33 * equal to 0. Most addressing macros that target UV hub chips
53 * Memory/UV-HUB Processor Socket Address Format:
139 * addresses, and UV global physical addresses.
144 /* socket phys RAM --> UV global physical address */
153 /* socket virtual --> UV global physical address */
159 /* socket virtual --> UV global physical address */
165 /* UV global physical address --> socket virtual */
260 /* Convert a cpu number to the UV blade number */
266 /* Convert linux node number to the UV blade number */
/Linux-v6.1/arch/arm/boot/dts/
Dcros-adc-thermistors.dtsi15 pullup-uv = <1800000>;
22 pullup-uv = <1800000>;
29 pullup-uv = <1800000>;
36 pullup-uv = <1800000>;
/Linux-v6.1/drivers/hwmon/
Dntc_thermistor.c347 int uv, ret; in ntc_adc_iio_read() local
349 ret = iio_read_channel_processed_scale(channel, &uv, 1000); in ntc_adc_iio_read()
363 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
366 uv = (data->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
370 return uv; in ntc_adc_iio_read()
382 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
389 if (uv == 0) in get_ohm_of_thermistor()
392 if (uv >= puv) in get_ohm_of_thermistor()
397 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
399 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
[all …]
/Linux-v6.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_util.h89 * @ uv_filter_cfg: uv plane filter configuration
96 * 0x8 update uv circular filter LUT
98 * 0x20 update uv separable filter LUT
101 * @ uv_cir_lut_idx: uv circular filter LUT index
103 * @ uv_sep_lut_idx: uv separable filter LUT index
243 * @uv_filter_cfg: UV plane filter configuration
249 * @uv_cir_lut_idx: UV circular LUT index
251 * @uv_sep_lut_idx: UV separable LUT index
296 /* for Y(RGB) and UV planes*/

12345678910>>...20