Home
last modified time | relevance | path

Searched refs:intval (Results 1 - 13 of 13) sorted by relevance

/device/soc/rockchip/rk3588/kernel/drivers/power/supply/
H A Dcw2017_battery.c401 val->intval = cw_bat->soc; in cw_battery_get_property()
405 val->intval = cw_bat->status; in cw_battery_get_property()
409 val->intval = !!cw_bat->voltage_mv; in cw_battery_get_property()
413 val->intval = cw_bat->voltage_mv * 1000; in cw_battery_get_property()
417 val->intval = 0; in cw_battery_get_property()
421 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in cw_battery_get_property()
425 val->intval = cw_bat->charge_count; in cw_battery_get_property()
429 val->intval = cw_bat->temp; in cw_battery_get_property()
435 val->intval = cw_bat->battery.charge_full_design_uah; in cw_battery_get_property()
437 val->intval in cw_battery_get_property()
[all...]
H A Dbq25700_charger.c1125 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in bq25700_power_supply_get_property()
1128 val->intval = POWER_SUPPLY_STATUS_CHARGING; in bq25700_power_supply_get_property()
1130 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in bq25700_power_supply_get_property()
1138 val->intval = state.ac_stat; in bq25700_power_supply_get_property()
1144 val->intval = POWER_SUPPLY_HEALTH_GOOD; in bq25700_power_supply_get_property()
1146 val->intval = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq25700_power_supply_get_property()
1156 val->intval = ret * 64000; in bq25700_power_supply_get_property()
1160 val->intval = bq25700_tables[TBL_ICHG].rt.max; in bq25700_power_supply_get_property()
1165 val->intval = 0; in bq25700_power_supply_get_property()
1175 val->intval in bq25700_power_supply_get_property()
[all...]
H A Drk817_charger.c362 val->intval = 1; in rk817_charge_ac_get_property()
364 val->intval = (charge->ac_in | charge->dc_in); in rk817_charge_ac_get_property()
366 DBG("ac report online: %d\n", val->intval); in rk817_charge_ac_get_property()
370 val->intval = POWER_SUPPLY_STATUS_CHARGING; in rk817_charge_ac_get_property()
372 val->intval = charge->prop_status; in rk817_charge_ac_get_property()
374 DBG("report prop: %d\n", val->intval); in rk817_charge_ac_get_property()
377 val->intval = charge->max_chrg_voltage * 1000; /* uV */ in rk817_charge_ac_get_property()
380 val->intval = charge->max_chrg_current * 1000; /* uA */ in rk817_charge_ac_get_property()
400 val->intval = 1; in rk817_charge_usb_get_property()
402 val->intval in rk817_charge_usb_get_property()
[all...]
H A Drk817_battery.c2014 battery->usb_in = val.intval; in rk817_bat_get_charge_state()
2022 battery->ac_in = val.intval; in rk817_bat_get_charge_state()
2078 val->intval = battery->current_avg * 1000;/*uA*/ in rk817_battery_get_property()
2080 val->intval = VIRTUAL_CURRENT * 1000; in rk817_battery_get_property()
2083 val->intval = battery->voltage_avg * 1000;/*uV*/ in rk817_battery_get_property()
2085 val->intval = VIRTUAL_VOLTAGE * 1000; in rk817_battery_get_property()
2088 val->intval = (battery->dsoc + 500) / 1000; in rk817_battery_get_property()
2090 val->intval = VIRTUAL_SOC; in rk817_battery_get_property()
2093 val->intval = rk817_get_capacity_leve(battery); in rk817_battery_get_property()
2096 val->intval in rk817_battery_get_property()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/power/supply/
H A Dpower_supply_sysfs.c222 if (value->intval == usb_type) { in power_supply_show_usb_type()
250 value.intval = psy->desc->type; in power_supply_show_property()
262 if (ps_attr->text_values_len > 0 && value.intval < ps_attr->text_values_len && value.intval >= 0) { in power_supply_show_property()
263 return sprintf(buf, "%s\n", ps_attr->text_values[value.intval]); in power_supply_show_property()
273 ret = sprintf(buf, "%d\n", value.intval); in power_supply_show_property()
307 value.intval = ret; in power_supply_store_property()
H A Dpower_supply_core.c338 return ret.intval; in power_supply_am_i_supplied_ext()
373 return ret.intval; in power_supply_is_system_supplied_ext()
409 return ret.intval; in power_supply_get_supplier_max_current_ext()
437 val.intval = curr; in power_supply_set_input_current_limit_from_supplier()
1021 *temp = val.intval * 0x64; in power_supply_read_temp()
1076 *state = val.intval; in ps_get_max_charge_cntl_limit()
1093 *state = val.intval; in ps_get_cur_charge_cntl_limit()
1105 val.intval = state; in ps_set_cur_charge_cntl_limit()
/device/soc/rockchip/common/vendor/drivers/power/
H A Drk817_charger.c381 val->intval = 1; in rk817_charge_ac_get_property()
383 val->intval = (charge->ac_in | charge->dc_in); in rk817_charge_ac_get_property()
386 DBG("ac report online: %d\n", val->intval); in rk817_charge_ac_get_property()
390 val->intval = POWER_SUPPLY_STATUS_CHARGING; in rk817_charge_ac_get_property()
392 val->intval = charge->prop_status; in rk817_charge_ac_get_property()
395 DBG("report prop: %d\n", val->intval); in rk817_charge_ac_get_property()
398 val->intval = charge->max_chrg_voltage * 0x3E8; /* uV */ in rk817_charge_ac_get_property()
401 val->intval = charge->max_chrg_current * 0x3E8; /* uA */ in rk817_charge_ac_get_property()
420 val->intval = 1; in rk817_charge_usb_get_property()
422 val->intval in rk817_charge_usb_get_property()
[all...]
H A Drk817_battery.c2064 battery->usb_in = val.intval; in rk817_bat_get_charge_state()
2072 battery->ac_in = val.intval; in rk817_bat_get_charge_state()
2130 val->intval = battery->current_avg * 0x3E8; /* uA */ in rk817_battery_get_property()
2132 val->intval = VIRTUAL_CURRENT * 0x3E8; in rk817_battery_get_property()
2136 val->intval = battery->voltage_avg * 0x3E8; /* uV */ in rk817_battery_get_property()
2138 val->intval = VIRTUAL_VOLTAGE * 0x3E8; in rk817_battery_get_property()
2142 val->intval = (battery->dsoc + 0x1F4) / 0x3E8; in rk817_battery_get_property()
2144 val->intval = VIRTUAL_SOC; in rk817_battery_get_property()
2148 val->intval = rk817_get_capacity_leve(battery); in rk817_battery_get_property()
2151 val->intval in rk817_battery_get_property()
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Dextcon.h112 * @type: integer (intval)
116 * @type: integer (intval)
120 * @type: integer (intval)
147 * @type: integer (intval)
166 int intval; /* type : integer (intval) */ member
H A Dpower_supply.h216 int intval; member
/device/soc/rockchip/common/sdk_linux/drivers/hid/
H A Dhid-input.c361 val->intval = 1; in hidinput_get_battery_property()
374 val->intval = value; in hidinput_get_battery_property()
393 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in hidinput_get_battery_property()
395 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in hidinput_get_battery_property()
400 val->intval = POWER_SUPPLY_SCOPE_DEVICE; in hidinput_get_battery_property()
/device/soc/rockchip/common/sdk_linux/drivers/phy/rockchip/
H A Dphy-rockchip-typec.c1259 if (property.intval) { in tcphy_get_mode()
1270 tcphy->flip = property.intval ? 1 : 0; in tcphy_get_mode()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_pcie.c163 static int dhdpcie_bus_lpback_req(struct dhd_bus *bus, uint32 intval);

Completed in 37 milliseconds