Home
last modified time | relevance | path

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

12

/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()
Dpriv.h15 int (*volt_set)(struct nvkm_volt *, u32 uv);
28 int nvkm_voltpwm_set(struct nvkm_volt *volt, u32 uv);
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()
/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()
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()
/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 …]
Drohm-regulator.c17 uint32_t uv; in set_dvs_level() local
19 ret = of_property_read_u32(np, prop, &uv); in set_dvs_level()
26 if (uv == 0) { in set_dvs_level()
47 if (ret == uv) { in set_dvs_level()
Dfixed-helper.c31 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
45 data->cfg.microvolts = uv; in regulator_register_always_on()
Drk808-regulator.c367 static int rk806_set_suspend_voltage_range(struct regulator_dev *rdev, int reg_offset, int uv) in rk806_set_suspend_voltage_range() argument
369 int sel = regulator_map_voltage_linear_range(rdev, uv, uv); in rk806_set_suspend_voltage_range()
380 static int rk806_set_suspend_voltage_range_dcdc(struct regulator_dev *rdev, int uv) in rk806_set_suspend_voltage_range_dcdc() argument
382 return rk806_set_suspend_voltage_range(rdev, RK806_DCDC_SLP_REG_OFFSET, uv); in rk806_set_suspend_voltage_range_dcdc()
385 static int rk806_set_suspend_voltage_range_nldo(struct regulator_dev *rdev, int uv) in rk806_set_suspend_voltage_range_nldo() argument
387 return rk806_set_suspend_voltage_range(rdev, RK806_NLDO_SLP_REG_OFFSET, uv); in rk806_set_suspend_voltage_range_nldo()
390 static int rk806_set_suspend_voltage_range_pldo(struct regulator_dev *rdev, int uv) in rk806_set_suspend_voltage_range_pldo() argument
392 return rk806_set_suspend_voltage_range(rdev, RK806_PLDO_SLP_REG_OFFSET, uv); in rk806_set_suspend_voltage_range_pldo()
520 static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) in rk808_set_suspend_voltage() argument
523 int sel = regulator_map_voltage_linear(rdev, uv, uv); in rk808_set_suspend_voltage()
[all …]
Dbd71828-regulator.c110 uint32_t uv = 0; in ldo6_parse_dt() local
121 ret = of_property_read_u32(np, props[i], &uv); in ldo6_parse_dt()
127 if (uv) in ldo6_parse_dt()
Dpca9450-regulator.c157 uint32_t uv; in buck_set_dvs() local
159 ret = of_property_read_u32(np, prop, &uv); in buck_set_dvs()
169 if (ret == uv) { in buck_set_dvs()
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()
Dbd718x7-regulator.c1640 int uv; in get_special_regulators() local
1654 &uv); in get_special_regulators()
1662 ret = setup_feedback_loop(dev, np, reg_data, num_reg_data, uv); in get_special_regulators()
/drivers/misc/sgi-xp/
Dxpc_uv.c79 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()
429 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_handle_activate_mq_msg_uv()
680 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_activate_IRQ_uv()
765 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_local_activate_IRQ_uv()
819 &xpc_partitions[sn_partition_id].sn.uv.cached_heartbeat; in xpc_setup_rsvd_page_uv()
[all …]
Dxpc.h94 } uv; member
360 struct xpc_channel_uv uv; member
517 struct xpc_partition_uv uv; member
/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 …]
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgm20b.c123 u32 uv; member
189 gm20b_dvfs_calc_det_coeff(struct gm20b_clk *clk, s32 uv, in gm20b_dvfs_calc_det_coeff() argument
196 s32 mv = DIV_ROUND_CLOSEST(uv, 1000); in gm20b_dvfs_calc_det_coeff()
203 dvfs->dfs_ext_cal = DIV_ROUND_CLOSEST(uv - clk->uvdet_offs, in gm20b_dvfs_calc_det_coeff()
212 __func__, uv, dvfs->dfs_coeff, dvfs->dfs_ext_cal, in gm20b_dvfs_calc_det_coeff()
234 det_delta = DIV_ROUND_CLOSEST(((s32)clk->uv) - clk->uvdet_offs, in gm20b_dvfs_calc_ndiv()
476 clk->new_uv = volt->vid[cstate->voltage].uv; in gm20b_clk_calc()
579 if (clk->uv == clk->new_uv) in gm20b_clk_prog()
605 if (clk->uv < clk->new_uv) in gm20b_clk_prog()
630 clk->uv = clk->new_uv; in gm20b_clk_prog()
[all …]
/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dvolt.h13 u32 uv; member
/drivers/staging/media/atomisp/pci/runtime/frame/interface/
Dia_css_frame_comm.h47 struct ia_css_frame_sp_plane uv; member
/drivers/staging/media/atomisp/pci/
Dia_css_frame_public.h77 struct ia_css_frame_plane uv; /** UV plane */ member
/drivers/media/pci/ivtv/
Divtv-yuv.c145 int i, y, uv; in ivtv_yuv_filter_check() local
147 for (i = 0, y = 16, uv = 4; i < 16; i++, y += 24, uv += 12) { in ivtv_yuv_filter_check()
149 (read_dec(IVTV_YUV_VERTICAL_FILTER_OFFSET + uv) != i << 16)) { in ivtv_yuv_filter_check()
/drivers/media/usb/gspca/
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()
/drivers/s390/char/
DKconfig102 by providing a misc character device at /dev/uv.
/drivers/staging/media/atomisp/pci/runtime/frame/src/
Dframe.c534 frame_init_plane(&frame->planes.nv.uv, uv_width, in frame_init_nv_planes()

12