/kernel/linux/linux-5.10/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) 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() 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) omap_max8952_uv_to_vsel() argument 171 omap_fan535503_uv_to_vsel(unsigned long uv) omap_fan535503_uv_to_vsel() argument 190 omap_fan535508_uv_to_vsel(unsigned long uv) omap_fan535508_uv_to_vsel() argument [all...] |
H A D | omap_twl.c | 49 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()
|
/kernel/linux/linux-6.6/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) 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() 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) omap_max8952_uv_to_vsel() argument 171 omap_fan535503_uv_to_vsel(unsigned long uv) omap_fan535503_uv_to_vsel() argument 190 omap_fan535508_uv_to_vsel(unsigned long uv) omap_fan535508_uv_to_vsel() argument [all...] |
H A D | omap_twl.c | 49 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gk20a.c | 96 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() [all...] |
H A D | base.c | 43 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 in nvkm_volt_parse_bios() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gk20a.c | 96 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() [all...] |
H A D | base.c | 43 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 in nvkm_volt_parse_bios() [all...] |
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | cvb.c | 29 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 * alig in round_voltage() [all...] |
/kernel/linux/linux-6.6/drivers/clk/tegra/ |
H A D | cvb.c | 29 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 * alig in round_voltage() [all...] |
/kernel/linux/linux-5.10/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) in uv_domain_alloc() 98 chip_data->pnode = uv_blade_to_pnode(info->uv.blade); in uv_domain_alloc() 99 chip_data->offset = info->uv.offset; in uv_domain_alloc() 101 handle_percpu_irq, NULL, info->uv.name); in uv_domain_alloc() 196 info.uv.limit = limit; in uv_setup_irq() 197 info.uv.blade = mmr_blade; in uv_setup_irq() 198 info.uv.offset = mmr_offset; in uv_setup_irq() 199 info.uv in uv_setup_irq() [all...] |
H A D | uv_sysfs.c | 10 #include <asm/uv/bios.h> 11 #include <asm/uv/uv.h>
|
/kernel/linux/linux-6.6/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) in uv_domain_alloc() 98 chip_data->pnode = uv_blade_to_pnode(info->uv.blade); in uv_domain_alloc() 99 chip_data->offset = info->uv.offset; in uv_domain_alloc() 101 handle_percpu_irq, NULL, info->uv.name); in uv_domain_alloc() 195 info.uv.limit = limit; in uv_setup_irq() 196 info.uv.blade = mmr_blade; in uv_setup_irq() 197 info.uv.offset = mmr_offset; in uv_setup_irq() 198 info.uv in uv_setup_irq() [all...] |
/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | mp886x.c | 130 static inline unsigned int mp8869_scale(unsigned int uv, u32 r1, u32 r2) in mp8869_scale() argument 132 u32 tmp = uv * r1 / r2; in mp8869_scale() 134 return uv + tmp; in mp8869_scale() 140 int ret, uv; in mp8869_get_voltage_sel() local 150 uv = rdev->desc->min_uV; in mp8869_get_voltage_sel() 151 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8869_get_voltage_sel() 152 return regulator_map_voltage_linear(rdev, uv, uv); in mp8869_get_voltage_sel() 218 int ret, uv; in mp8867_get_voltage_sel() local [all...] |
H A D | rohm-regulator.c | 17 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() 34 if (ret == uv) { in set_dvs_level()
|
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | mp886x.c | 108 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 [all...] |
H A D | rohm-regulator.c | 17 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()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | ntc_thermistor.c | 347 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() [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | ntc_thermistor.c | 329 int raw, uv, ret; in ntc_adc_iio_read() local 337 ret = iio_convert_raw_to_processed(channel, raw, &uv, 1000); in ntc_adc_iio_read() 340 uv = (pdata->pullup_uv * (s64)raw) >> 12; in ntc_adc_iio_read() 343 return uv; in ntc_adc_iio_read() 408 if (of_property_read_u32(np, "pullup-uv", &pdata->pullup_uv)) in ntc_thermistor_parse_dt() 445 static int get_ohm_of_thermistor(struct ntc_data *data, unsigned int uv) in get_ohm_of_thermistor() argument 453 if (uv == 0) in get_ohm_of_thermistor() 456 if (uv >= puv) in get_ohm_of_thermistor() 461 n = div_u64(pdo * (puv - uv), uv); in get_ohm_of_thermistor() [all...] |
/kernel/linux/linux-5.10/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> 28 #include <asm/uv/bios.h> 29 #include <asm/uv/uv_irq.h> 79 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 in xpc_process_activate_IRQ_rcvd_uv() [all...] |
/kernel/linux/linux-6.6/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> 28 #include <asm/uv/bios.h> 29 #include <asm/uv/uv_irq.h> 79 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 in xpc_process_activate_IRQ_rcvd_uv() [all...] |
/kernel/linux/linux-5.10/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>
|
/kernel/linux/linux-5.10/arch/ia64/uv/kernel/ |
H A D | setup.c | 15 #include <asm/uv/uv.h> 16 #include <asm/uv/uv_mmrs.h> 17 #include <asm/uv/uv_hub.h>
|
/kernel/linux/linux-6.6/arch/ia64/uv/kernel/ |
H A D | setup.c | 15 #include <asm/uv/uv.h> 16 #include <asm/uv/uv_mmrs.h> 17 #include <asm/uv/uv_hub.h>
|
/kernel/linux/linux-6.6/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>
|