Home
last modified time | relevance | path

Searched refs:uv (Results 1 – 25 of 47) sorted by relevance

12

/linux/arch/arm/mach-omap2/
H A Dpmic-cpcap.c41 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()
105 static unsigned char omap_max8952_uv_to_vsel(unsigned long uv) in omap_max8952_uv_to_vsel() argument
107 if (uv < 770000) in omap_max8952_uv_to_vsel()
108 uv = 770000; in omap_max8952_uv_to_vsel()
109 else if (uv > 1400000) in omap_max8952_uv_to_vsel()
[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()
/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 …]
H A Dpriv.h15 int (*volt_set)(struct nvkm_volt *, u32 uv);
28 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
H A Dgk104.c52 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/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()
H A Dclk-dfll.c508 unsigned long uv, min_uv; in get_dvco_rate_below() local
516 uv = dev_pm_opp_get_voltage(opp); in get_dvco_rate_below()
519 if (uv && uv > min_uv) in get_dvco_rate_below()
/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 …]
H A Dfixed-helper.c33 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
47 data->cfg.microvolts = uv; in regulator_register_always_on()
H A Dda9062-regulator.c248 static int da9062_set_suspend_voltage(struct regulator_dev *rdev, int uv) in da9062_set_suspend_voltage() argument
254 sel = regulator_map_voltage_linear(rdev, uv, uv); in da9062_set_suspend_voltage()
/linux/drivers/misc/sgi-xp/
H A Dxpc_uv.c57 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.reason); in xpc_process_activate_IRQ_rcvd_uv()
358 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_handle_activate_mq_msg_uv()
609 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_activate_IRQ_uv()
694 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_local_activate_IRQ_uv()
734 &xpc_partitions[sn_partition_id].sn.uv.cached_heartbeat; in xpc_setup_rsvd_page_uv()
[all …]
H A Dxpc.h94 } uv; member
360 struct xpc_channel_uv uv; member
517 struct xpc_partition_uv uv; member
/linux/arch/x86/platform/uv/
H A Duv_irq.c93 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()
192 info.uv.limit = limit; in uv_setup_irq()
193 info.uv.blade = mmr_blade; in uv_setup_irq()
194 info.uv.offset = mmr_offset; in uv_setup_irq()
195 info.uv.name = irq_name; in uv_setup_irq()
/linux/arch/arm/boot/dts/
H A Dcros-adc-thermistors.dtsi15 pullup-uv = <1800000>;
22 pullup-uv = <1800000>;
29 pullup-uv = <1800000>;
36 pullup-uv = <1800000>;
/linux/arch/x86/include/asm/uv/
H A Duv.h12 static inline int uv(int uvtype) in uv() function
38 static inline int is_uv_hubbed(int uv) { return 0; } in is_uv_hubbed() argument
/linux/include/linux/regulator/
H A Dfixed.h48 struct regulator_consumer_supply *supplies, int num_supplies, int uv);
51 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
/linux/drivers/s390/crypto/
H A DMakefile33 pkey-uv-objs := pkey_uv.o
34 obj-$(CONFIG_PKEY_UV) += pkey-uv.o
/linux/net/unix/
H A Ddiag.c34 struct unix_diag_vfs uv = { in sk_diag_dump_vfs() local
39 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
/linux/rust/kernel/
H A Dregulator.rs390 pub fn from_microvolts(uv: i32) -> Self { in from_microvolts()
391 Self(uv) in from_microvolts()
/linux/arch/x86/platform/
H A DMakefile14 obj-y += uv/
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dvolt.h13 u32 uv; member
/linux/arch/x86/include/asm/
H A Dhw_irq.h84 struct uv_alloc_info uv; member
/linux/arch/arm/boot/dts/st/
H A Dste-hrefv60plus.dtsi55 pullup-uv = <1800000>;
64 pullup-uv = <1800000>;
H A Dste-href.dtsi41 pullup-uv = <1800000>;
/linux/drivers/media/usb/gspca/
H A Dsonixj.c1865 const s16 *uv; in setcolors() local
1878 uv = uv_mi0360b; in setcolors()
1880 uv = uv_com; in setcolors()
1882 v = uv[i] * colors / COLORS_DEF; in setcolors()

12