Home
last modified time | relevance | path

Searched refs:usb_online (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/power/supply/
Dtest_power.c29 static int usb_online = 1; variable
61 val->intval = usb_online; in test_power_get_usb_property()
240 usb_online = 0; in test_power_exit()
361 usb_online = map_get_value(map_ac_online, key, usb_online); in param_set_usb_online()
369 map_get_key(map_ac_online, usb_online, "unknown")); in param_get_usb_online()
557 module_param(usb_online, usb_online, 0644);
558 MODULE_PARM_DESC(usb_online, "USB charging state <on|off>");
Dpcf50633-charger.c29 int usb_online; member
118 if (mbc->usb_online) in pcf50633_mbc_get_status()
144 return mbc->usb_online; in pcf50633_mbc_get_usb_online_status()
259 mbc->usb_online = 1; in pcf50633_mbc_irq_handler()
261 mbc->usb_online = 0; in pcf50633_mbc_irq_handler()
308 val->intval = mbc->usb_online && in usb_get_property()
329 val->intval = mbc->usb_online && in ac_get_property()
Dmax8925_power.c73 unsigned usb_online:1; member
236 val->intval = info->usb_online; in max8925_usb_get_prop()
239 if (info->usb_online) { in max8925_usb_get_prop()
325 if (info->usb_online || info->ac_online) { in max8925_bat_get_prop()
403 info->usb_online = 0; in max8925_init_charger()
Dsmb347-charger.c204 bool usb_online; member
327 ret = smb->mains_online != dc || smb->usb_online != usb; in smb347_update_ps_status()
329 smb->usb_online = usb; in smb347_update_ps_status()
345 return smb->usb_online || smb->mains_online; in smb347_is_ps_online()
1051 if (!smb->usb_online) in smb347_get_charging_status()
1112 if (!smb->usb_online) in smb347_get_property_locked()
1138 val->intval = smb->usb_online; in smb347_get_property_locked()