Lines Matching refs:psy
288 struct power_supply *psy;
296 psy = power_supply_get_by_name(pm860x_supplied_to[0]);
297 if (!psy)
299 ret = psy->get_property(psy, POWER_SUPPLY_PROP_VOLTAGE_NOW, &data);
304 ret = psy->get_property(psy, POWER_SUPPLY_PROP_PRESENT, &data);
424 struct power_supply *psy;
430 psy = power_supply_get_by_name(pm860x_supplied_to[0]);
431 if (!psy)
433 ret = psy->get_property(psy, POWER_SUPPLY_PROP_TEMP, &temp);
468 struct power_supply *psy;
485 psy = power_supply_get_by_name(pm860x_supplied_to[0]);
486 if (!psy)
488 ret = psy->get_property(psy, POWER_SUPPLY_PROP_VOLTAGE_NOW, &val);
503 psy->set_property(psy, POWER_SUPPLY_PROP_CHARGE_FULL, &val);
583 static int pm860x_usb_get_prop(struct power_supply *psy,
588 dev_get_drvdata(psy->dev->parent);