Home
last modified time | relevance | path

Searched refs:psy_name (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/usb/typec/ucsi/
H A Dpsy.c235 char *psy_name; in ucsi_register_port_psy() local
240 psy_name = devm_kasprintf(dev, GFP_KERNEL, "ucsi-source-psy-%s%d", in ucsi_register_port_psy()
242 if (!psy_name) in ucsi_register_port_psy()
245 con->psy_desc.name = psy_name; in ucsi_register_port_psy()
/openbmc/linux/include/linux/power/
H A Dcharger-manager.h164 const char *psy_name; member
/openbmc/linux/drivers/power/supply/
H A Drt9471.c731 char *psy_name; in rt9471_register_psy() local
737 psy_name = devm_kasprintf(dev, GFP_KERNEL, "rt9471-%s", dev_name(dev)); in rt9471_register_psy()
738 if (!psy_name) in rt9471_register_psy()
741 desc->name = psy_name; in rt9471_register_psy()
H A Dcharger-manager.c1293 of_property_read_string(np, "cm-name", &desc->psy_name); in of_cm_parse_desc()
1518 if (!desc->psy_name) in charger_manager_probe()
1521 strncpy(cm->psy_name_buf, desc->psy_name, PSY_NAME_MAX); in charger_manager_probe()
/openbmc/linux/drivers/usb/typec/
H A Drt1719.c563 char *psy_name; in devm_rt1719_psy_register() local
568 psy_name = devm_kasprintf(data->dev, GFP_KERNEL, "rt1719-source-psy-%s", in devm_rt1719_psy_register()
570 if (!psy_name) in devm_rt1719_psy_register()
573 data->psy_desc.name = psy_name; in devm_rt1719_psy_register()
H A Danx7411.c1439 char *psy_name; in anx7411_psy_register() local
1441 psy_name = devm_kasprintf(ctx->dev, GFP_KERNEL, "anx7411-source-psy-%s", in anx7411_psy_register()
1443 if (!psy_name) in anx7411_psy_register()
1446 psy_desc->name = psy_name; in anx7411_psy_register()
/openbmc/linux/drivers/usb/typec/tipd/
H A Dcore.c694 char *psy_name; in devm_tps6598_psy_register() local
699 psy_name = devm_kasprintf(tps->dev, GFP_KERNEL, "%s%s", tps6598x_psy_name_prefix, in devm_tps6598_psy_register()
701 if (!psy_name) in devm_tps6598_psy_register()
704 tps->psy_desc.name = psy_name; in devm_tps6598_psy_register()
/openbmc/linux/Documentation/power/
H A Dcharger-manager.rst117 `char *psy_name;`
119 "battery" if psy_name is NULL. Users can access the psy entries
120 at "/sys/class/power_supply/[psy_name]/".
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c6495 char *psy_name; in devm_tcpm_psy_register() local
6499 psy_name = devm_kzalloc(port->dev, psy_name_len, GFP_KERNEL); in devm_tcpm_psy_register()
6500 if (!psy_name) in devm_tcpm_psy_register()
6503 snprintf(psy_name, psy_name_len, "%s%s", tcpm_psy_name_prefix, in devm_tcpm_psy_register()
6505 port->psy_desc.name = psy_name; in devm_tcpm_psy_register()