/linux-master/arch/arm/mach-omap2/ |
H A D | pmic-cpcap.c | 36 * @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 D | omap_twl.c | 49 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 D | fixed.h | 48 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 D | uv.h | 12 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 D | gk20a.c | 96 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 D | priv.h | 15 int (*volt_set)(struct nvkm_volt *, u32 uv); 28 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
|
H A D | base.c | 43 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 D | gk104.c | 52 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 D | cvb.c | 29 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 D | uv_irq.c | 18 #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 D | uv_time.c | 12 #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 D | Makefile | 14 obj-y += uv/
|
/linux-master/drivers/regulator/ |
H A D | mp886x.c | 108 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 D | rohm-regulator.c | 17 uint32_t uv; local 19 ret = of_property_read_u32(np, prop, &uv); 26 if (uv == 0) { 47 if (ret == uv) {
|
H A D | fixed-helper.c | 28 * @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 D | uv_mmtimer.c | 28 #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 D | xpc_uv.c | 10 * 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 D | xp_uv.c | 11 * Cross Partition (XP) uv-based functions. 18 #include <asm/uv/uv_hub.h> 20 #include <asm/uv/bios.h>
|
H A D | xp.h | 20 #include <asm/uv/uv.h>
|
/linux-master/drivers/hwmon/ |
H A D | ntc_thermistor.c | 347 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 D | srat.c | 24 #include <asm/uv/uv.h>
|
/linux-master/drivers/staging/media/atomisp/pci/runtime/frame/interface/ |
H A D | ia_css_frame_comm.h | 47 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 D | volt.h | 13 u32 uv; member in struct:nvkm_volt::__anon730
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gm20b.c | 123 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 D | hw_irq.h | 71 * @uv: UV specific allocation data 84 struct uv_alloc_info uv; member in union:irq_alloc_info::__anon185
|