| /OK3568_Linux_fs/kernel/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 microvolts DC. [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/regulator/ |
| H A D | lp873x_regulator.c | 61 static int lp873x_buck_volt2hex(int uV) in lp873x_buck_volt2hex() argument 63 if (uV > LP873X_BUCK_VOLT_MAX) in lp873x_buck_volt2hex() 65 else if (uV > 1400000) in lp873x_buck_volt2hex() 66 return (uV - 1420000) / 20000 + 0x9E; in lp873x_buck_volt2hex() 67 else if (uV > 730000) in lp873x_buck_volt2hex() 68 return (uV - 735000) / 5000 + 0x18; in lp873x_buck_volt2hex() 69 else if (uV >= 700000) in lp873x_buck_volt2hex() 70 return (uV - 700000) / 10000 + 0x1; in lp873x_buck_volt2hex() 89 static int lp873x_buck_val(struct udevice *dev, int op, int *uV) in lp873x_buck_val() argument 98 *uV = 0; in lp873x_buck_val() [all …]
|
| H A D | palmas_regulator.c | 89 static int palmas_smps_volt2hex(int uV) in palmas_smps_volt2hex() argument 91 if (uV > PALMAS_LDO_VOLT_MAX) in palmas_smps_volt2hex() 94 if (uV > 1650000) in palmas_smps_volt2hex() 95 return (uV - 1000000) / 20000 + 0x6; in palmas_smps_volt2hex() 97 if (uV == 500000) in palmas_smps_volt2hex() 100 return 0x6 + ((uV - 500000) / 10000); in palmas_smps_volt2hex() 105 unsigned int uV = 0; in palmas_smps_hex2volt() local 111 uV = 500000; in palmas_smps_hex2volt() 113 uV = 500000 + (hex - 0x6) * 10000; in palmas_smps_hex2volt() 116 uV *= 2; in palmas_smps_hex2volt() [all …]
|
| H A D | max77686.c | 72 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument 81 /* hex = (uV - 600000) / 12500; */ in max77686_buck_volt2hex() 82 hex = (uV - MAX77686_BUCK_UV_LMIN) / MAX77686_BUCK_UV_LSTEP; in max77686_buck_volt2hex() 87 * hex = (uV - 750000) / 50000. We assume that dynamic voltage in max77686_buck_volt2hex() 93 hex = (uV - MAX77686_BUCK_UV_HMIN) / MAX77686_BUCK_UV_HSTEP; in max77686_buck_volt2hex() 101 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in max77686_buck_volt2hex() 107 unsigned uV = 0; in max77686_buck_hex2volt() local 121 /* uV = hex * 12500 + 600000; */ in max77686_buck_hex2volt() 122 uV = hex * MAX77686_BUCK_UV_LSTEP + MAX77686_BUCK_UV_LMIN; in max77686_buck_hex2volt() 129 /* uV = hex * 50000 + 750000; */ in max77686_buck_hex2volt() [all …]
|
| H A D | lp87565_regulator.c | 59 static int lp87565_buck_volt2val(int uV) in lp87565_buck_volt2val() argument 61 if (uV > LP87565_BUCK_VOLT_MAX) in lp87565_buck_volt2val() 63 else if (uV > 1400000) in lp87565_buck_volt2val() 64 return (uV - 1420000) / 20000 + 0x9E; in lp87565_buck_volt2val() 65 else if (uV > 730000) in lp87565_buck_volt2val() 66 return (uV - 735000) / 5000 + 0x18; in lp87565_buck_volt2val() 67 else if (uV >= 500000) in lp87565_buck_volt2val() 68 return (uV - 500000) / 10000; in lp87565_buck_volt2val() 87 static int lp87565_buck_val(struct udevice *dev, int op, int *uV) in lp87565_buck_val() argument 96 *uV = 0; in lp87565_buck_val() [all …]
|
| H A D | regulator-uclass.c | 41 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument 49 if (uc_pdata->min_uV != -ENODATA && uV < uc_pdata->min_uV) in regulator_set_value() 51 if (uc_pdata->max_uV != -ENODATA && uV > uc_pdata->max_uV) in regulator_set_value() 65 ret = ops->set_value(dev, uV); in regulator_set_value() 67 if (!ret && (old_uV != -ENODATA) && (old_uV != uV)) { in regulator_set_value() 68 us = DIV_ROUND_UP(abs(uV - old_uV), uc_pdata->ramp_delay); in regulator_set_value() 70 debug("%s: ramp=%d, old_uV=%d, uV=%d, us=%d\n", in regulator_set_value() 71 uc_pdata->name, uc_pdata->ramp_delay, old_uV, uV, us); in regulator_set_value() 77 int regulator_set_suspend_value(struct udevice *dev, int uV) in regulator_set_suspend_value() argument 84 return ops->set_suspend_value(dev, uV); in regulator_set_suspend_value() [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/imxwayland/qmlvideofx/shaders/ |
| H A D | glow.fsh | 46 vec2 uv = qt_TexCoord0.xy; 47 vec3 t1 = texture2D(source, vec2(uv.x - step_w, uv.y - step_h)).rgb; 48 vec3 t2 = texture2D(source, vec2(uv.x, uv.y - step_h)).rgb; 49 vec3 t3 = texture2D(source, vec2(uv.x + step_w, uv.y - step_h)).rgb; 50 vec3 t4 = texture2D(source, vec2(uv.x - step_w, uv.y)).rgb; 51 vec3 t5 = texture2D(source, uv).rgb; 52 vec3 t6 = texture2D(source, vec2(uv.x + step_w, uv.y)).rgb; 53 vec3 t7 = texture2D(source, vec2(uv.x - step_w, uv.y + step_h)).rgb; 54 vec3 t8 = texture2D(source, vec2(uv.x, uv.y + step_h)).rgb; 55 vec3 t9 = texture2D(source, vec2(uv.x + step_w, uv.y + step_h)).rgb; [all …]
|
| H A D | emboss.fsh | 46 vec2 uv = qt_TexCoord0.xy; 47 vec3 t1 = texture2D(source, vec2(uv.x - step_w, uv.y - step_h)).rgb; 48 vec3 t2 = texture2D(source, vec2(uv.x, uv.y - step_h)).rgb; 49 vec3 t3 = texture2D(source, vec2(uv.x + step_w, uv.y - step_h)).rgb; 50 vec3 t4 = texture2D(source, vec2(uv.x - step_w, uv.y)).rgb; 51 vec3 t5 = texture2D(source, uv).rgb; 52 vec3 t6 = texture2D(source, vec2(uv.x + step_w, uv.y)).rgb; 53 vec3 t7 = texture2D(source, vec2(uv.x - step_w, uv.y + step_h)).rgb; 54 vec3 t8 = texture2D(source, vec2(uv.x, uv.y + step_h)).rgb; 55 vec3 t9 = texture2D(source, vec2(uv.x + step_w, uv.y + step_h)).rgb; [all …]
|
| H A D | sharpen.fsh | 52 vec2 uv = qt_TexCoord0.xy; 53 vec3 t1 = texture2D(source, vec2(uv.x - step_w, uv.y - step_h)).rgb; 54 vec3 t2 = texture2D(source, vec2(uv.x, uv.y - step_h)).rgb; 55 vec3 t3 = texture2D(source, vec2(uv.x + step_w, uv.y - step_h)).rgb; 56 vec3 t4 = texture2D(source, vec2(uv.x - step_w, uv.y)).rgb; 57 vec3 t5 = texture2D(source, uv).rgb; 58 vec3 t6 = texture2D(source, vec2(uv.x + step_w, uv.y)).rgb; 59 vec3 t7 = texture2D(source, vec2(uv.x - step_w, uv.y + step_h)).rgb; 60 vec3 t8 = texture2D(source, vec2(uv.x, uv.y + step_h)).rgb; 61 vec3 t9 = texture2D(source, vec2(uv.x + step_w, uv.y + step_h)).rgb; [all …]
|
| H A D | tiltshift.fsh | 46 vec2 uv = qt_TexCoord0.xy; 47 float y = uv.y < 0.4 ? uv.y : 1.0 - uv.y; 52 … acc += texture2D(source, vec2(uv.x + dist * x * step_w, uv.y + 0.5 * dist * y * step_h)).rgb; 60 vec2 uv = qt_TexCoord0.xy; 62 if (uv.x > dividerValue || (uv.y >= 0.4 && uv.y <= 0.6)) 63 col = texture2D(source, uv).rgb;
|
| H A D | gaussianblur_v.fsh | 43 vec2 uv = qt_TexCoord0.xy; 45 if (uv.x < dividerValue) { 46 c += texture2D(source, uv - vec2(0.0, 4.0*blurSize)) * 0.05; 47 c += texture2D(source, uv - vec2(0.0, 3.0*blurSize)) * 0.09; 48 c += texture2D(source, uv - vec2(0.0, 2.0*blurSize)) * 0.12; 49 c += texture2D(source, uv - vec2(0.0, 1.0*blurSize)) * 0.15; 50 c += texture2D(source, uv) * 0.18; 51 c += texture2D(source, uv + vec2(0.0, 1.0*blurSize)) * 0.15; 52 c += texture2D(source, uv + vec2(0.0, 2.0*blurSize)) * 0.12; 53 c += texture2D(source, uv + vec2(0.0, 3.0*blurSize)) * 0.09; [all …]
|
| H A D | gaussianblur_h.fsh | 43 vec2 uv = qt_TexCoord0.xy; 45 if (uv.x < dividerValue) { 46 c += texture2D(source, uv - vec2(4.0*blurSize, 0.0)) * 0.05; 47 c += texture2D(source, uv - vec2(3.0*blurSize, 0.0)) * 0.09; 48 c += texture2D(source, uv - vec2(2.0*blurSize, 0.0)) * 0.12; 49 c += texture2D(source, uv - vec2(1.0*blurSize, 0.0)) * 0.15; 50 c += texture2D(source, uv) * 0.18; 51 c += texture2D(source, uv + vec2(1.0*blurSize, 0.0)) * 0.15; 52 c += texture2D(source, uv + vec2(2.0*blurSize, 0.0)) * 0.12; 53 c += texture2D(source, uv + vec2(3.0*blurSize, 0.0)) * 0.09; [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/apic/ |
| H A D | x2apic_uv_x.c | 6 * SGI UV APIC functions (note: not an Intel compatible APIC) 22 #include <asm/uv/uv_mmrs.h> 23 #include <asm/uv/uv_hub.h> 24 #include <asm/uv/bios.h> 25 #include <asm/uv/uv.h> 40 /* Information derived from CPUID and some UV MMRs */ 64 panic("UV: error: undefined MMR: %s\n", str); in uv_undefined() 66 pr_crit("UV: error: undefined MMR: %s\n", str); in uv_undefined() 122 "UV: WARN: GAM_ADDR_MAP_CONFIG is not available\n"); in early_get_pnodeid() 134 pr_info("UV: n_skt:%d pnmsk:%x pn:%x\n", in early_get_pnodeid() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/platform/uv/ |
| H A D | uv_nmi.c | 28 #include <asm/uv/uv.h> 29 #include <asm/uv/uv_hub.h> 30 #include <asm/uv/uv_mmrs.h> 33 * UV handler for NMI 41 * We also have to lessen UV Hub MMR accesses as much as possible as this 42 * disrupts the UV Hub's primary mission of directing NumaLink traffic and 50 * IPI(NMI) signal as mentioned above, and does not read the UV Hub's MMR. 71 /* UV hubless values */ 217 pr_info("UV: New NMI action:%s\n", uv_nmi_action); in param_set_action() 221 pr_err("UV: Invalid NMI action:%s, valid actions are:\n", arg); in param_set_action() [all …]
|
| H A D | uv_irq.c | 6 * SGI UV IRQ functions 18 #include <asm/uv/uv_irq.h> 19 #include <asm/uv/uv_hub.h> 68 .name = "UV-CORE", 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() 165 fn = irq_domain_alloc_named_fwnode("UV-CORE"); in uv_get_irq_domain() 196 info.uv.limit = limit; in uv_setup_irq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/ |
| H A D | io-domain.c | 82 int (*write)(struct rockchip_iodomain_supply *supply, int uV); 90 int (*write)(struct rockchip_iodomain_supply *supply, int uV); 93 static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) in rk3568_iodomain_write() argument 96 u32 is_3v3 = uV > MAX_VOLTAGE_1_8; in rk3568_iodomain_write() 135 int uV) in rockchip_iodomain_write() argument 142 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write() 161 int uV; in rockchip_iodomain_notify() local 180 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify() 183 uV = (unsigned long)data; in rockchip_iodomain_notify() 188 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify() [all …]
|
| /OK3568_Linux_fs/kernel/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() 164 volt->base.vid[i].uv = max( in gk20a_volt_ctor() [all …]
|
| /OK3568_Linux_fs/kernel/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 232 uv = regulator_list_voltage_linear(rdev, val); in mp8867_get_voltage_sel() 233 uv = mp8869_scale(uv, di->r[0], di->r[1]); in mp8867_get_voltage_sel() [all …]
|
| /OK3568_Linux_fs/kernel/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.reason); in xpc_process_activate_IRQ_rcvd_uv() [all …]
|
| /OK3568_Linux_fs/kernel/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 * align->step_uv + align->offset_uv) / 1000; in round_voltage()
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | rk730.c | 150 int uv; in rk730_adc_vol_get() local 152 uv = (val >> shift) & mask; in rk730_adc_vol_get() 155 uv = mid + uv; in rk730_adc_vol_get() 157 uv = mid - uv; in rk730_adc_vol_get() 159 ucontrol->value.integer.value[0] = uv; in rk730_adc_vol_get() 160 ucontrol->value.integer.value[1] = uv; in rk730_adc_vol_get() 176 int uv = ucontrol->value.integer.value[0]; in rk730_adc_vol_put() local 182 if (uv > mid) { in rk730_adc_vol_put() 184 uv = uv - mid; in rk730_adc_vol_put() 187 uv = mid - uv; in rk730_adc_vol_put() [all …]
|
| H A D | rk_codec_digital.c | 90 int uv; in rk_codec_digital_adc_vol_get() local 106 uv = (val >> shift) & mask; in rk_codec_digital_adc_vol_get() 108 uv = mid + uv; in rk_codec_digital_adc_vol_get() 110 uv = mid - uv; in rk_codec_digital_adc_vol_get() 112 ucontrol->value.integer.value[0] = uv; in rk_codec_digital_adc_vol_get() 127 int uv = ucontrol->value.integer.value[0]; in rk_codec_digital_adc_vol_put() local 130 bool pos = (uv > mid); in rk_codec_digital_adc_vol_put() 149 uv = pos ? (uv - mid) : (mid - uv); in rk_codec_digital_adc_vol_put() 151 val = ((uv + min) & mask); in rk_codec_digital_adc_vol_put() 172 int uv; in rk_codec_digital_dac_vol_get() local [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/ |
| H A D | rockchip-cpu-avs.txt | 12 - min-volt: The minimum voltage in uV. Even though opp's voltage will be 18 <min-leakage-mA max-leakage-mA volt-uV>. 21 volt: voltage offset in uV to apply to the opp table entries. 30 min-volt = <800000>; /* uV */ 33 /* mA mA uV */ 41 min-volt = <800000>; /* uV */ 44 /* mA mA uV */
|
| /OK3568_Linux_fs/u-boot/drivers/power/pmic/ |
| H A D | pmic_max77686.c | 21 static unsigned int max77686_ldo_volt2hex(int ldo, ulong uV) in max77686_ldo_volt2hex() argument 32 hex = (uV - 800000) / 25000; in max77686_ldo_volt2hex() 35 hex = (uV - 800000) / 50000; in max77686_ldo_volt2hex() 41 debug("%s: %ld is wrong voltage value for LDO%d\n", __func__, uV, ldo); in max77686_ldo_volt2hex() 45 static int max77686_buck_volt2hex(int buck, ulong uV) in max77686_buck_volt2hex() argument 54 hex = (uV - 750000) / 50000; in max77686_buck_volt2hex() 60 __func__, uV, buck); in max77686_buck_volt2hex() 64 int max77686_set_ldo_voltage(struct pmic *p, int ldo, ulong uV) in max77686_set_ldo_voltage() argument 74 hex = max77686_ldo_volt2hex(ldo, uV); in max77686_set_ldo_voltage() 90 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV) in max77686_set_buck_voltage() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/ia64/uv/kernel/ |
| H A D | setup.c | 6 * SGI UV Core Functions 15 #include <asm/uv/uv.h> 16 #include <asm/uv/uv_mmrs.h> 17 #include <asm/uv/uv_hub.h> 80 !strcmp(xsdt->header.oem_table_id + 4, "UV")) in uv_probe_system_type() 100 printk(KERN_DEBUG "UV: global MMR base 0x%lx\n", mmr_base); in uv_setup() 117 printk(KERN_DEBUG "UV cpu %d, nid %d\n", cpu, nid); in uv_setup()
|