Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 22 files:

Smatch caller information:

drivers/hid/hid-nvidia-shield.c thunderstrike_create() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 4096-ptr_max
PARAM_VALUE 0 psy->dev.power.wakeirq->status 0-4294967295
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.shost->hostdata->saved_fault_code 0-u16max
LOCK2 &hdev->driver_input_lock
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/hid/hid-nvidia-shield.c thunderstrike_destroy() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hdev->driver_input_lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/hid/hid-nvidia-shield.c thunderstrike_psy_create() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 4096-ptr_max
BUF_SIZE 0 psy 2256
CAPPED_DATA 0 psy->desc->num_properties 1
DATA_SOURCE 0 psy r power_supply_register
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.auxiliary 0-4294967295
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.command 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.ctl 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.device 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.error 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.feature 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.flags s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.protocol 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.status 0-255
LOCK2 &hdev->driver_input_lock
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/hid/hid-steelseries-arctis.c steelseries_arctis_remove() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hdev->driver_input_lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/power/supply/isp1704_charger.c isp1704_charger_probe() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 4096-ptr_max
BUF_SIZE 0 psy 2256
CAPPED_DATA 0 psy->desc->num_properties 1
DATA_SOURCE 0 psy r power_supply_register
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.auxiliary 0-4294967295
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.command 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.ctl 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.device 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.error 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.feature 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.flags s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.protocol 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.status 0-255

drivers/power/supply/isp1704_charger.c isp1704_charger_remove() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &_dev->mutex

drivers/hid/hid-steam.c steam_battery_unregister() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->driver_input_lock

drivers/acpi/battery.c sysfs_remove_battery() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 _T->lock

drivers/usb/typec/ucsi/psy.c ucsi_unregister_port_psy() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/usb/misc/apple-mfi-fastcharge.c mfi_fc_disconnect() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/staging/greybus/power_supply.c _gb_power_supply_release() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &supplies->supplies_lock
TYPE_LOCK (struct gb_power_supplies)->supplies_lock

drivers/phy/ti/phy-tusb1210.c tusb1210_remove_charger_detect() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex

drivers/acpi/sbs.c acpi_battery_remove() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &sbs->lock
HALF_LOCKED2 &_dev->mutex
TYPE_LOCK (struct acpi_sbs)->lock

drivers/acpi/sbs.c acpi_charger_remove() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &sbs->lock
HALF_LOCKED2 &_dev->mutex
TYPE_LOCK (struct acpi_sbs)->lock

drivers/hid/hid-corsair-void.c corsair_void_add_battery() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 4096-ptr_max
BUF_SIZE 0 psy 2256
CAPPED_DATA 0 psy->desc->num_properties 1
DATA_SOURCE 0 psy r power_supply_register
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.auxiliary 0-4294967295
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.command 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.ctl 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.device 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.error 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.feature 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.flags s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.protocol 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.status 0-255
HALF_LOCKED2 &pool->lock

drivers/hid/hid-corsair-void.c corsair_void_battery_work_handler() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/hid/hid-corsair-void.c corsair_void_remove() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hid_dev->driver_input_lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/power/supply/bq24190_charger.c bq24190_probe() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 4096-ptr_max
BUF_SIZE 0 psy 2256
CAPPED_DATA 0 psy->desc->num_properties 1
DATA_SOURCE 0 psy r power_supply_register
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.auxiliary 0-4294967295
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.command 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.ctl 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.device 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.error 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.feature 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.flags s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.protocol 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.status 0-255

drivers/power/supply/bq24190_charger.c bq24190_probe() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 4096-ptr_max
BUF_SIZE 0 psy 2256
CAPPED_DATA 0 psy->desc->num_properties 1
DATA_SOURCE 0 psy r power_supply_register
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.auxiliary 0-4294967295
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.command 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.ctl 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.device 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.error 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.feature 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.flags s64min-s64max
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.hob_nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbah 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbal 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.lbam 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.nsect 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.protocol 0-255
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf.status 0-255

drivers/power/supply/bq24190_charger.c bq24190_remove() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex

drivers/power/supply/bq24190_charger.c bq24190_remove() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex

drivers/power/supply/power_supply_core.c devm_power_supply_release() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &pool->lock

drivers/platform/x86/compal-laptop.c compal_remove() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &_dev->mutex

drivers/power/supply/bq2415x_charger.c bq2415x_power_supply_exit() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex

drivers/power/supply/test_power.c test_power_exit() -> power_supply_unregister()

Type Parameter Key Value
NOCHECK_CALL

drivers/power/supply/test_power.c test_power_init() -> power_supply_unregister()

Type Parameter Key Value
NOCHECK_CALL

drivers/power/supply/charger-manager.c charger_manager_probe() -> power_supply_unregister()

Type Parameter Key Value
BUF_SIZE 0 psy s32min-s32max
DATA_SOURCE 0 psy r power_supply_register
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/power/supply/charger-manager.c charger_manager_remove() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &_dev->mutex

drivers/hid/hid-wiimote-modules.c wiimod_battery_remove() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/lenovo_yoga_c630_battery.c yoga_c630_ec_refresh_bat_info() -> power_supply_unregister()

Type Parameter Key Value
NOCHECK_CALL
LOCK2 _T->lock

drivers/power/supply/lenovo_yoga_c630_battery.c yoga_c630_psy_probe() -> power_supply_unregister()

Type Parameter Key Value
PARAM_VALUE 0 psy 0,4096-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 psy->tzd->device.sata_dev.ap->link.ap->link.device->link->ap->result_tf s64min-s64max
LOCK2 _T->lock

drivers/power/supply/lenovo_yoga_c630_battery.c yoga_c630_psy_remove() -> power_supply_unregister()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->mutex