Searched refs:uv (Results 1 - 25 of 79) sorted by relevance

1234

/linux-master/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) argument
43 if (uv < 600000)
44 uv = 600000;
45 else if (uv > 1450000)
46 uv = 1450000;
47 return DIV_ROUND_UP(uv - 600000, 12500);
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) argument
171 omap_fan535503_uv_to_vsel(unsigned long uv) argument
190 omap_fan535508_uv_to_vsel(unsigned long uv) argument
[all...]
H A Domap_twl.c49 static u8 twl4030_uv_to_vsel(unsigned long uv) argument
51 return DIV_ROUND_UP(uv - 600000, 12500);
88 static u8 twl6030_uv_to_vsel(unsigned long uv) argument
104 if (!uv)
113 if (uv > twl6030_vsel_to_uv(0x39)) {
114 if (uv == 1350000)
117 __func__, uv, twl6030_vsel_to_uv(0x39));
122 return DIV_ROUND_UP(uv - 709000, 12660) + 1;
124 return DIV_ROUND_UP(uv - 607700, 12660) + 1;
/linux-master/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)
50 regulator_register_always_on(int id, const char *name, struct regulator_consumer_supply *supplies, int num_supplies, int uv) argument
/linux-master/arch/x86/include/asm/uv/
H A Duv.h12 static inline int uv(int uvtype) function
14 /* uv(0) is "any" */
38 static inline int is_uv_hubbed(int uv) { return 0; } argument
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A Dgk20a.c96 int i, uv; local
98 uv = regulator_get_voltage(volt->vdd);
101 if (volt->base.vid[i].uv >= uv)
113 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv);
114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000);
123 int target_uv = volt->base.vid[id].uv;
152 int i, uv; local
156 uv = regulator_get_voltage(tdev->vdd);
157 nvkm_debug(&volt->base.subdev, "the default voltage is %duV\n", uv);
[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 Dbase.c43 return volt->vid[i].uv;
51 nvkm_volt_set(struct nvkm_volt *volt, u32 uv) argument
57 return volt->func->volt_set(volt, uv);
60 int err = volt->vid[i].uv - uv;
71 nvkm_error(subdev, "couldn't set %iuv\n", uv);
76 nvkm_debug(subdev, "set req %duv to %duv: %d\n", uv,
77 volt->vid[best].uv, ret);
203 volt->vid[volt->vid_nr].uv = info.base;
218 volt->vid[volt->vid_nr].uv
[all...]
H A Dgk104.c52 gk104_volt_set(struct nvkm_volt *base, u32 uv) argument
60 duty = DIV_ROUND_UP((uv - bios->base) * div, bios->pwm_range);
/linux-master/drivers/clk/tegra/
H A Dcvb.c29 int uv; local
33 uv = max(mv * 1000, offset) - offset;
34 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv;
35 return uv / 1000;
46 int uv; local
48 uv = max(mv * 1000, align->offset_uv) - align->offset_uv;
49 uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv;
50 return (uv * alig
[all...]
/linux-master/arch/x86/platform/uv/
H A Duv_irq.c18 #include <asm/uv/uv_irq.h>
19 #include <asm/uv/uv_hub.h>
93 if (info->uv.limit == UV_AFFINITY_CPU)
98 chip_data->pnode = uv_blade_to_pnode(info->uv.blade);
99 chip_data->offset = info->uv.offset;
101 handle_percpu_irq, NULL, info->uv.name);
195 info.uv.limit = limit;
196 info.uv.blade = mmr_blade;
197 info.uv.offset = mmr_offset;
198 info.uv
[all...]
H A 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>
/linux-master/arch/x86/platform/
H A DMakefile14 obj-y += uv/
/linux-master/drivers/regulator/
H A Dmp886x.c108 static inline unsigned int mp8869_scale(unsigned int uv, u32 r1, u32 r2) argument
110 u32 tmp = uv * r1 / r2;
112 return uv + tmp;
118 int ret, uv; local
128 uv = rdev->desc->min_uV;
129 uv = mp8869_scale(uv, di->r[0], di->r[1]);
130 return regulator_map_voltage_linear(rdev, uv, uv);
196 int ret, uv; local
[all...]
H A Drohm-regulator.c17 uint32_t uv; local
19 ret = of_property_read_u32(np, prop, &uv);
26 if (uv == 0) {
47 if (ret == uv) {
H A Dfixed-helper.c28 * @uv: voltage in microvolts
31 struct regulator_consumer_supply *supplies, int num_supplies, int uv)
45 data->cfg.microvolts = uv;
30 regulator_register_always_on(int id, const char *name, struct regulator_consumer_supply *supplies, int num_supplies, int uv) argument
/linux-master/drivers/char/
H A Duv_mmtimer.c28 #include <asm/uv/uv_hub.h>
29 #include <asm/uv/bios.h>
30 #include <asm/uv/uv.h>
/linux-master/drivers/misc/sgi-xp/
H A Dxpc_uv.c10 * 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;
74 part_uv = &xpc_partitions[partid].sn.uv;
314 if (part->sn.uv.act_state_req == 0)
320 act_state_req = part->sn.uv.act_state_req;
321 part->sn.uv.act_state_req = 0;
337 XPC_DEACTIVATE_PARTITION(part, part->sn.uv
[all...]
H A Dxp_uv.c11 * Cross Partition (XP) uv-based functions.
18 #include <asm/uv/uv_hub.h>
20 #include <asm/uv/bios.h>
H A Dxp.h20 #include <asm/uv/uv.h>
/linux-master/drivers/hwmon/
H A Dntc_thermistor.c347 int uv, ret; local
349 ret = iio_read_channel_processed_scale(channel, &uv, 1000);
363 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000);
366 uv = (data->pullup_uv * (s64)raw) >> 12;
370 return uv;
382 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) argument
389 if (uv == 0)
392 if (uv >= puv)
397 n = div_u64(pdo * (puv - uv), uv);
[all...]
/linux-master/arch/x86/mm/
H A Dsrat.c24 #include <asm/uv/uv.h>
/linux-master/drivers/staging/media/atomisp/pci/runtime/frame/interface/
H A Dia_css_frame_comm.h47 struct ia_css_frame_sp_plane uv; member in struct:ia_css_frame_sp_nv_planes
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dvolt.h13 u32 uv; member in struct:nvkm_volt::__anon730
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgm20b.c123 u32 uv; member in struct:gm20b_clk
189 gm20b_dvfs_calc_det_coeff(struct gm20b_clk *clk, s32 uv, argument
195 /* Work with mv as uv would likely trigger an overflow */
196 s32 mv = DIV_ROUND_CLOSEST(uv, 1000);
203 dvfs->dfs_ext_cal = DIV_ROUND_CLOSEST(uv - clk->uvdet_offs,
211 nvkm_debug(subdev, "%s uv: %d coeff: %x, ext_cal: %d, det_max: %d\n",
212 __func__, uv, dvfs->dfs_coeff, dvfs->dfs_ext_cal,
234 det_delta = DIV_ROUND_CLOSEST(((s32)clk->uv) - clk->uvdet_offs,
274 /* calculate the new n_int/sdm_din for this n/uv */
476 clk->new_uv = volt->vid[cstate->voltage].uv;
[all...]
/linux-master/arch/x86/include/asm/
H A Dhw_irq.h71 * @uv: UV specific allocation data
84 struct uv_alloc_info uv; member in union:irq_alloc_info::__anon185

Completed in 229 milliseconds

1234