Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/clk/tegra/
Dcvb.c38 int uv; in round_cvb_voltage() local
42 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage()
43 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; in round_cvb_voltage()
44 return uv / 1000; in round_cvb_voltage()
55 int uv; in round_voltage() local
57 uv = max(mv * 1000, align->offset_uv) - align->offset_uv; in round_voltage()
58 uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv; in round_voltage()
59 return (uv * align->step_uv + align->offset_uv) / 1000; in round_voltage()
Dclk-dfll.c633 int i, uv; in find_lut_index_for_rate() local
642 uv = dev_pm_opp_get_voltage(opp); in find_lut_index_for_rate()
647 if (regulator_list_voltage(td->vdd_reg, td->i2c_lut[i]) == uv) in find_lut_index_for_rate()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgk20a.c107 int i, uv; in gk20a_volt_vid_get() local
109 uv = regulator_get_voltage(volt->vdd); in gk20a_volt_vid_get()
112 if (volt->base.vid[i].uv >= uv) in gk20a_volt_vid_get()
124 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set()
125 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set()
134 int target_uv = volt->base.vid[id].uv; in gk20a_volt_set_id()
162 int i, uv; in gk20a_volt_new() local
170 uv = regulator_get_voltage(tdev->vdd); in gk20a_volt_new()
171 nvkm_info(&volt->base.subdev, "The default voltage is %duV\n", uv); in gk20a_volt_new()
180 volt->base.vid[i].uv = in gk20a_volt_new()
[all …]
Dbase.c42 return volt->vid[i].uv; in nvkm_volt_get()
50 nvkm_volt_set(struct nvkm_volt *volt, u32 uv) in nvkm_volt_set() argument
56 return volt->func->volt_set(volt, uv); in nvkm_volt_set()
59 if (volt->vid[i].uv == uv) { in nvkm_volt_set()
61 nvkm_debug(subdev, "set %duv: %d\n", uv, ret); in nvkm_volt_set()
126 volt->vid[volt->vid_nr].uv = info.base; in nvkm_volt_parse_bios()
138 volt->vid[volt->vid_nr].uv = ivid.voltage; in nvkm_volt_parse_bios()
190 volt->vid[i].vid, volt->vid[i].uv); in nvkm_volt_ctor()
Dpriv.h13 int (*volt_set)(struct nvkm_volt *, u32 uv);
25 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
Dgk104.c51 gk104_volt_set(struct nvkm_volt *base, u32 uv) in gk104_volt_set() argument
59 duty = (uv - bios->base) * div / bios->pwm_range; in gk104_volt_set()
/linux-4.4.14/arch/arm/mach-omap2/
Domap_twl.c57 static u8 twl4030_uv_to_vsel(unsigned long uv) in twl4030_uv_to_vsel() argument
59 return DIV_ROUND_UP(uv - 600000, 12500); in twl4030_uv_to_vsel()
96 static u8 twl6030_uv_to_vsel(unsigned long uv) in twl6030_uv_to_vsel() argument
112 if (!uv) in twl6030_uv_to_vsel()
121 if (uv > twl6030_vsel_to_uv(0x39)) { in twl6030_uv_to_vsel()
122 if (uv == 1350000) in twl6030_uv_to_vsel()
125 __func__, uv, twl6030_vsel_to_uv(0x39)); in twl6030_uv_to_vsel()
130 return DIV_ROUND_UP(uv - 709000, 12660) + 1; in twl6030_uv_to_vsel()
132 return DIV_ROUND_UP(uv - 607700, 12660) + 1; in twl6030_uv_to_vsel()
/linux-4.4.14/drivers/misc/sgi-xp/
Dxpc_uv.c76 part_uv = &xpc_partitions[partid].sn.uv; in xpc_setup_partitions_uv()
93 part_uv = &xpc_partitions[partid].sn.uv; in xpc_teardown_partitions_uv()
382 if (part->sn.uv.act_state_req == 0) in xpc_process_activate_IRQ_rcvd_uv()
388 act_state_req = part->sn.uv.act_state_req; in xpc_process_activate_IRQ_rcvd_uv()
389 part->sn.uv.act_state_req = 0; in xpc_process_activate_IRQ_rcvd_uv()
405 XPC_DEACTIVATE_PARTITION(part, part->sn.uv.reason); in xpc_process_activate_IRQ_rcvd_uv()
426 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_handle_activate_mq_msg_uv()
676 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_activate_IRQ_uv()
761 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_local_activate_IRQ_uv()
815 &xpc_partitions[sn_partition_id].sn.uv.cached_heartbeat; in xpc_setup_rsvd_page_uv()
[all …]
Dxpc.h101 } uv; member
583 struct xpc_channel_uv uv; member
778 struct xpc_partition_uv uv; member
/linux-4.4.14/drivers/regulator/
Dtps65912-regulator.c159 unsigned long uv; in tps65912_vsel_to_uv_range0() local
161 uv = ((vsel * 12500) + 500000); in tps65912_vsel_to_uv_range0()
162 return uv; in tps65912_vsel_to_uv_range0()
167 unsigned long uv; in tps65912_vsel_to_uv_range1() local
169 uv = ((vsel * 12500) + 700000); in tps65912_vsel_to_uv_range1()
170 return uv; in tps65912_vsel_to_uv_range1()
175 unsigned long uv; in tps65912_vsel_to_uv_range2() local
177 uv = ((vsel * 25000) + 500000); in tps65912_vsel_to_uv_range2()
178 return uv; in tps65912_vsel_to_uv_range2()
183 unsigned long uv; in tps65912_vsel_to_uv_range3() local
[all …]
Dfixed-helper.c30 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
44 data->cfg.microvolts = uv; in regulator_register_always_on()
Drk808-regulator.c242 static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) in rk808_set_suspend_voltage() argument
245 int sel = regulator_map_voltage_linear_range(rdev, uv, uv); in rk808_set_suspend_voltage()
Dda9062-regulator.c299 static int da9062_set_suspend_voltage(struct regulator_dev *rdev, int uv) in da9062_set_suspend_voltage() argument
305 sel = regulator_map_voltage_linear(rdev, uv, uv); in da9062_set_suspend_voltage()
/linux-4.4.14/drivers/hwmon/
Dntc_thermistor.c231 int raw, uv, ret; in ntc_adc_iio_read() local
239 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read()
242 uv = (pdata->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read()
245 return uv; in ntc_adc_iio_read()
350 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument
358 if (uv == 0) in get_ohm_of_thermistor()
361 if (uv >= puv) in get_ohm_of_thermistor()
366 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor()
368 n = div_u64(puo * uv, puv - uv); in get_ohm_of_thermistor()
370 n = div64_u64_safe(pdo * puo * (puv - uv), in get_ohm_of_thermistor()
[all …]
Dlm93.c378 const long uv = mv * 1000; in LM93_IN_TO_REG() local
387 u8 result = ((uv - intercept + (slope/2)) / slope); in LM93_IN_TO_REG()
/linux-4.4.14/arch/arm/boot/dts/
Dcros-adc-thermistors.dtsi18 pullup-uv = <1800000>;
25 pullup-uv = <1800000>;
32 pullup-uv = <1800000>;
39 pullup-uv = <1800000>;
Dexynos3250-monk.dts144 pullup-uv = <1800000>;
152 pullup-uv = <1800000>;
Dexynos3250-rinato.dts135 pullup-uv = <1800000>;
143 pullup-uv = <1800000>;
Dexynos4412-trats2.dts256 pullup-uv = <1800000>; /* VCC_1.8V_AP */
264 pullup-uv = <1800000>; /* VCC_1.8V_AP */
/linux-4.4.14/include/linux/regulator/
Dfixed.h64 struct regulator_consumer_supply *supplies, int num_supplies, int uv);
67 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
/linux-4.4.14/Documentation/devicetree/bindings/hwmon/
Dntc_thermistor.txt21 - "pullup-uv" Pull up voltage in micro volts
38 pullup-uv = <1800000>;
/linux-4.4.14/arch/ia64/uv/kernel/
Dmachvec.c9 #define MACHVEC_PLATFORM_NAME uv
/linux-4.4.14/arch/x86/platform/
DMakefile15 obj-y += uv/
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dvolt.h12 u32 uv; member
/linux-4.4.14/net/unix/
Ddiag.c27 struct unix_diag_vfs uv = { in sk_diag_dump_vfs() local
32 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
/linux-4.4.14/arch/ia64/
DMakefile55 core-$(CONFIG_IA64_SGI_UV) += arch/ia64/uv/
61 …64_GENERIC) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ arch/ia64/hp/sim/ arch/ia64/sn/ arch/ia64/uv/
/linux-4.4.14/fs/fuse/
Dinode.c479 unsigned uv; in parse_fuse_opt() local
503 if (fuse_match_uint(&args[0], &uv)) in parse_fuse_opt()
505 d->user_id = make_kuid(current_user_ns(), uv); in parse_fuse_opt()
512 if (fuse_match_uint(&args[0], &uv)) in parse_fuse_opt()
514 d->group_id = make_kgid(current_user_ns(), uv); in parse_fuse_opt()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-yuv.c157 int i, y, uv; in ivtv_yuv_filter_check() local
159 for (i = 0, y = 16, uv = 4; i < 16; i++, y += 24, uv += 12) { in ivtv_yuv_filter_check()
161 (read_dec(IVTV_YUV_VERTICAL_FILTER_OFFSET + uv) != i << 16)) { in ivtv_yuv_filter_check()
/linux-4.4.14/Documentation/devicetree/bindings/arm/samsung/
Dexynos-adc.txt92 pullup-uv = <1800000>;
/linux-4.4.14/drivers/media/usb/gspca/
Dsonixj.c1872 const s16 *uv; in setcolors() local
1885 uv = uv_mi0360b; in setcolors()
1887 uv = uv_com; in setcolors()
1889 v = uv[i] * colors / COLORS_DEF; in setcolors()
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt17 Ulisses Alonso Camaró <uaca@i.hate.spam.alumni.uv.es>
261 see http://pusa.uv.es/~ulisses/packet_mmap/packet_mmap.pre-2.4.26_2.6.5.txt