Searched refs:bat_desc (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/power/supply/ |
H A D | rx51_battery.c | 19 struct power_supply_desc bat_desc; member 201 di->bat_desc.name = "rx51-battery"; in rx51_battery_probe() 202 di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in rx51_battery_probe() 203 di->bat_desc.properties = rx51_battery_props; in rx51_battery_probe() 204 di->bat_desc.num_properties = ARRAY_SIZE(rx51_battery_props); in rx51_battery_probe() 205 di->bat_desc.get_property = rx51_battery_get_property; in rx51_battery_probe() 221 di->bat = devm_power_supply_register(di->dev, &di->bat_desc, &psy_cfg); in rx51_battery_probe()
|
H A D | pmu_battery.c | 18 struct power_supply_desc bat_desc; member 169 pbat->bat_desc.name = pbat->name; in pmu_bat_init() 170 pbat->bat_desc.properties = pmu_bat_props; in pmu_bat_init() 171 pbat->bat_desc.num_properties = ARRAY_SIZE(pmu_bat_props); in pmu_bat_init() 172 pbat->bat_desc.get_property = pmu_bat_get_property; in pmu_bat_init() 173 pbat->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in pmu_bat_init() 178 &pbat->bat_desc, in pmu_bat_init()
|
H A D | max1721x_battery.c | 61 struct power_supply_desc bat_desc; member 343 info->bat_desc.name = info->name; in devm_w1_max1721x_add_device() 349 info->bat_desc.no_thermal = true; in devm_w1_max1721x_add_device() 350 info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in devm_w1_max1721x_add_device() 351 info->bat_desc.properties = max1721x_battery_props; in devm_w1_max1721x_add_device() 352 info->bat_desc.num_properties = ARRAY_SIZE(max1721x_battery_props); in devm_w1_max1721x_add_device() 353 info->bat_desc.get_property = max1721x_battery_get_property; in devm_w1_max1721x_add_device() 424 info->bat = devm_power_supply_register(&sl->dev, &info->bat_desc, in devm_w1_max1721x_add_device()
|
H A D | ds2760_battery.c | 112 struct power_supply_desc bat_desc; member 687 di->bat_desc.name = name; in w1_ds2760_add_slave() 688 di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in w1_ds2760_add_slave() 689 di->bat_desc.properties = ds2760_battery_props; in w1_ds2760_add_slave() 690 di->bat_desc.num_properties = ARRAY_SIZE(ds2760_battery_props); in w1_ds2760_add_slave() 691 di->bat_desc.get_property = ds2760_battery_get_property; in w1_ds2760_add_slave() 692 di->bat_desc.set_property = ds2760_battery_set_property; in w1_ds2760_add_slave() 693 di->bat_desc.property_is_writeable = in w1_ds2760_add_slave() 695 di->bat_desc.set_charged = ds2760_battery_set_charged; in w1_ds2760_add_slave() 696 di->bat_desc.external_power_changed = in w1_ds2760_add_slave() [all …]
|
H A D | ds2780_battery.c | 37 struct power_supply_desc bat_desc; member 758 dev_info->bat_desc.name = dev_name(&pdev->dev); in ds2780_battery_probe() 759 dev_info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ds2780_battery_probe() 760 dev_info->bat_desc.properties = ds2780_battery_props; in ds2780_battery_probe() 761 dev_info->bat_desc.num_properties = ARRAY_SIZE(ds2780_battery_props); in ds2780_battery_probe() 762 dev_info->bat_desc.get_property = ds2780_battery_get_property; in ds2780_battery_probe() 768 &dev_info->bat_desc, in ds2780_battery_probe()
|
H A D | ds2781_battery.c | 35 struct power_supply_desc bat_desc; member 762 dev_info->bat_desc.name = dev_name(&pdev->dev); in ds2781_battery_probe() 763 dev_info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ds2781_battery_probe() 764 dev_info->bat_desc.properties = ds2781_battery_props; in ds2781_battery_probe() 765 dev_info->bat_desc.num_properties = ARRAY_SIZE(ds2781_battery_props); in ds2781_battery_probe() 766 dev_info->bat_desc.get_property = ds2781_battery_get_property; in ds2781_battery_probe() 772 &dev_info->bat_desc, in ds2781_battery_probe()
|
/linux/drivers/acpi/ |
H A D | battery.c | 97 struct power_supply_desc bat_desc; member 866 battery->bat_desc.properties = in sysfs_add_battery() 868 battery->bat_desc.num_properties = in sysfs_add_battery() 871 battery->bat_desc.properties = charge_battery_props; in sysfs_add_battery() 872 battery->bat_desc.num_properties = in sysfs_add_battery() 877 battery->bat_desc.properties = in sysfs_add_battery() 879 battery->bat_desc.num_properties = in sysfs_add_battery() 882 battery->bat_desc.properties = energy_battery_props; in sysfs_add_battery() 883 battery->bat_desc.num_properties = in sysfs_add_battery() 888 battery->bat_desc.name = acpi_device_bid(battery->device); in sysfs_add_battery() [all …]
|
/linux/drivers/hid/ |
H A D | wacom_sys.c | 1762 struct power_supply_desc *bat_desc = &battery->bat_desc; in __wacom_initialize_battery() local 1766 if (!devres_open_group(dev, bat_desc, GFP_KERNEL)) in __wacom_initialize_battery() 1773 bat_desc->properties = wacom_battery_props; in __wacom_initialize_battery() 1774 bat_desc->num_properties = ARRAY_SIZE(wacom_battery_props); in __wacom_initialize_battery() 1775 bat_desc->get_property = wacom_battery_get_property; in __wacom_initialize_battery() 1777 bat_desc->name = battery->bat_name; in __wacom_initialize_battery() 1778 bat_desc->type = POWER_SUPPLY_TYPE_BATTERY; in __wacom_initialize_battery() 1779 bat_desc->use_for_apm = 0; in __wacom_initialize_battery() 1781 ps_bat = devm_power_supply_register(dev, bat_desc, &psy_cfg); in __wacom_initialize_battery() 1791 devres_close_group(dev, bat_desc); in __wacom_initialize_battery() [all …]
|
H A D | wacom.h | 133 struct power_supply_desc bat_desc; member
|
/linux/drivers/net/ethernet/renesas/ |
H A D | rtsn.c | 394 struct rtsn_desc *bat_desc; in rtsn_chain_format() local 411 bat_desc = &priv->tx_desc_bat[TX_CHAIN_IDX]; in rtsn_chain_format() 412 bat_desc->die_dt = DT_LINK; in rtsn_chain_format() 413 bat_desc->dptr = cpu_to_le32((u32)priv->tx_desc_dma); in rtsn_chain_format() 429 bat_desc = &priv->rx_desc_bat[RX_CHAIN_IDX]; in rtsn_chain_format() 430 bat_desc->die_dt = DT_LINK; in rtsn_chain_format() 431 bat_desc->dptr = cpu_to_le32((u32)priv->rx_desc_dma); in rtsn_chain_format()
|