Home
last modified time | relevance | path

Searched refs:max_volt (Results 1 – 13 of 13) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/misc/
H A Dregulator-haptic.c31 unsigned int max_volt; member
64 volt_mag_multi = (u64)(haptic->max_volt - haptic->min_volt) * magnitude; in regulator_haptic_set_voltage()
69 haptic->max_volt); in regulator_haptic_set_voltage()
128 error = of_property_read_u32(node, "max-microvolt", &haptic->max_volt); in regulator_haptic_parse_dt()
160 haptic->max_volt = pdata->max_volt; in regulator_haptic_probe()
/OK3568_Linux_fs/u-boot/drivers/power/dvfs/
H A Drockchip_wtemp_dvfs.c90 int max_volt; /* uV */ member
211 if ((e->lmt.max_volt != -ENODATA) && (tgt_volt > e->lmt.max_volt)) { in wtemp_dvfs_low_temp_adjust()
212 tgt_volt = e->lmt.max_volt; in wtemp_dvfs_low_temp_adjust()
349 e->lmt.max_volt = ofnode_read_u32_default(opp_node, in __wtemp_common_ofdata_to_platdata()
354 e->lmt.max_volt); in __wtemp_common_ofdata_to_platdata()
377 if (e->lmt.max_volt == -ENODATA) in __wtemp_common_ofdata_to_platdata()
378 e->lmt.max_volt = e->opp[e->opp_nr - 1].uv; in __wtemp_common_ofdata_to_platdata()
488 e->lmt.max_volt, in print_e_state()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c80 u32 max_volt, int temp) in nvkm_cstate_valid() argument
108 return voltage <= min(max_volt, volt->max_uv); in nvkm_cstate_valid()
117 int max_volt; in nvkm_cstate_find_best() local
125 max_volt = volt->max_uv; in nvkm_cstate_find_best()
127 max_volt = min(max_volt, in nvkm_cstate_find_best()
130 max_volt = min(max_volt, in nvkm_cstate_find_best()
133 max_volt = min(max_volt, in nvkm_cstate_find_best()
137 if (nvkm_cstate_valid(clk, cstate, max_volt, clk->temp)) in nvkm_cstate_find_best()
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Daxp288_fuel_gauge.c119 int max_volt; member
425 if (vocv > info->max_volt) in fuel_gauge_battery_health()
512 val->intval = PROP_VOLT(info->max_volt); in fuel_gauge_get_property()
822 info->max_volt = 4100; in axp288_fuel_gauge_probe()
825 info->max_volt = 4150; in axp288_fuel_gauge_probe()
828 info->max_volt = 4200; in axp288_fuel_gauge_probe()
831 info->max_volt = 4350; in axp288_fuel_gauge_probe()
H A Dsc27xx_fuel_gauge.c112 int max_volt; member
542 if (vol > data->max_volt) in sc27xx_fgu_get_health()
1012 data->max_volt = info.constant_charge_voltage_max_uv / 1000; in sc27xx_fgu_hw_init()
/OK3568_Linux_fs/kernel/include/soc/rockchip/
H A Drockchip_system_monitor.h54 unsigned long max_volt; member
116 unsigned long max_volt; member
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dregulator-haptic.h22 unsigned int max_volt; member
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drockchip_system_monitor.c542 info->opp_table[i].max_volt = opp->supplies[0].u_volt_max; in rockchip_init_temp_opp_table()
553 if ((opp->supplies[0].u_volt + delta_volt) <= info->max_volt) { in rockchip_init_temp_opp_table()
562 if (info->opp_table[i].low_temp_volt == info->max_volt) in rockchip_init_temp_opp_table()
565 info->opp_table[i].low_temp_volt = info->max_volt; in rockchip_init_temp_opp_table()
583 if ((opp->supplies[1].u_volt + delta_volt) <= info->max_volt) { in rockchip_init_temp_opp_table()
592 if (info->opp_table[i].low_temp_mem_volt == info->max_volt) in rockchip_init_temp_opp_table()
595 info->opp_table[i].low_temp_mem_volt = info->max_volt; in rockchip_init_temp_opp_table()
635 info->max_volt = ULONG_MAX; in monitor_device_parse_wide_temp_config()
637 info->max_volt = value; in monitor_device_parse_wide_temp_config()
900 info->opp_table[i].max_volt; in rockchip_adjust_low_temp_opp_volt()
H A Drockchip_opp_select.c1442 u32 max_volt = UINT_MAX; in rockchip_adjust_opp_by_irdrop() local
1445 of_property_read_u32_index(np, "rockchip,max-volt", 0, &max_volt); in rockchip_adjust_opp_by_irdrop()
1473 if ((opp->supplies[0].u_volt + delta_irdrop) <= max_volt) { in rockchip_adjust_opp_by_irdrop()
1477 max_volt) in rockchip_adjust_opp_by_irdrop()
1480 opp->supplies[0].u_volt_max = max_volt; in rockchip_adjust_opp_by_irdrop()
1483 if (opp->supplies[0].u_volt == max_volt) in rockchip_adjust_opp_by_irdrop()
1486 opp->supplies[0].u_volt = max_volt; in rockchip_adjust_opp_by_irdrop()
1487 opp->supplies[0].u_volt_min = max_volt; in rockchip_adjust_opp_by_irdrop()
1488 opp->supplies[0].u_volt_max = max_volt; in rockchip_adjust_opp_by_irdrop()
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Dimx6q-cpufreq.c342 unsigned long min_volt, max_volt; in imx6q_cpufreq_probe() local
487 max_volt = dev_pm_opp_get_voltage(opp); in imx6q_cpufreq_probe()
490 ret = regulator_set_voltage_time(arm_reg, min_volt, max_volt); in imx6q_cpufreq_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/cadence/
H A Dcdns-mhdp8546-core.c983 u8 max_volt = CDNS_VOLT_SWING(mhdp->host.volt_swing); in cdns_mhdp_adjust_requested_eq() local
995 max_volt); in cdns_mhdp_adjust_requested_eq()
1093 const u8 max_volt = CDNS_VOLT_SWING(mhdp->host.volt_swing); in cdns_mhdp_adjust_requested_cr() local
1101 max_volt : req_volt[i]; in cdns_mhdp_adjust_requested_cr()
1117 const u8 max_volt = CDNS_VOLT_SWING(mhdp->host.volt_swing); in cdns_mhdp_validate_cr() local
1129 req_volt[i] = min(adjust, max_volt); in cdns_mhdp_validate_cr()
/OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/
H A Dtcpm.c288 u32 max_volt; member
2758 port->pps_data.max_volt = port->pps_data.req_max_volt; in tcpm_pd_ctrl_request()
5878 req_out_volt > port->pps_data.max_volt) { in tcpm_pps_set_out_volt()
6294 val->intval = port->pps_data.max_volt * 1000; in tcpm_psy_get_voltage_max()
6421 val->intval > port->pps_data.max_volt * 1000) in tcpm_psy_set_prop()
/OK3568_Linux_fs/u-boot/drivers/power/power_delivery/
H A Dtcpm.c261 u32 max_volt; member
1249 port->pps_data.max_volt = port->pps_data.req_max_volt; in tcpm_pd_ctrl_request()