Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c atomisp_register_i2c_module() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 0,4096-ptr_max
PARAM_VALUE 1 state 4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 device unit_byte

drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c gmin_acpi_pm_ctrl() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 0,4096-ptr_max
PARAM_VALUE 1 state 0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
HALF_LOCKED2 &dev->input_lock

drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c gmin_acpi_pm_ctrl() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 0,4096-ptr_max
PARAM_VALUE 1 state 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
HALF_LOCKED2 &dev->input_lock

drivers/pci/hotplug/acpiphp_glue.c acpiphp_rescan_slot() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.initialized 1
PARAM_VALUE 0 device->flags.visited 1
PARAM_VALUE 0 device->handle->child->descriptor_type 0-255
PARAM_VALUE 0 device->handle->child->flags 0-u16max
PARAM_VALUE 0 device->handle->child->name.integer 0-4294967295
PARAM_VALUE 0 device->handle->child->owner_id 0-u16max
PARAM_VALUE 0 device->handle->child->type 0-255
PARAM_VALUE 0 device->handle->descriptor_type 0-255
PARAM_VALUE 0 device->handle->flags 0-u16max
PARAM_VALUE 0 device->handle->name.integer 0-4294967295
PARAM_VALUE 0 device->handle->owner_id 0-u16max
PARAM_VALUE 0 device->handle->type 0-255
PARAM_VALUE 0 *device->handle->name.ascii 0-255
PARAM_VALUE 1 state 0
DATA_SOURCE 0 device r func_to_acpi_device
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &pci_rescan_remove_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &acpi_scan_lock

drivers/acpi/device_pm.c acpi_bus_set_power() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 1-u64max
PARAM_VALUE 1 state s32min-4
DATA_SOURCE 0 device r acpi_fetch_acpi_dev
DATA_SOURCE 1 state $1
FUZZY_MAX 1 state 4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ap->host->eh_mutex
HALF_LOCKED2 flags

drivers/acpi/device_pm.c acpi_dev_pm_full_power() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 1 state 0
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte

drivers/acpi/device_pm.c acpi_dev_pm_low_power() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 0 device->wakeup.ws->dev->kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->wakeup.ws->dev->kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->wakeup.ws->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 1 state 0-4
DATA_SOURCE 0 device $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
HALF_LOCKED2 &dev->mutex

drivers/acpi/device_pm.c acpi_device_update_power() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->handle->descriptor_type 0-255
PARAM_VALUE 0 device->handle->flags 0-u16max
PARAM_VALUE 0 device->handle->name.integer 0-4294967295
PARAM_VALUE 0 device->handle->owner_id 0-u16max
PARAM_VALUE 0 device->handle->type 0-255
PARAM_VALUE 0 device->power.state s32min-254,256-s32max
PARAM_VALUE 1 state 0
BUF_SIZE 0 device s32min-(-1),1-s32max
BUF_SIZE 0 device s32min-(-1),1-s32max
BUF_SIZE 0 device->driver_data (-1),160
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte

drivers/acpi/device_pm.c acpi_power_up_if_adr_present() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 0 device->pnp.type.bus_address 1
PARAM_VALUE 0 device->power.state 4
PARAM_VALUE 1 state 0
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING

drivers/acpi/fan_core.c acpi_fan_suspend() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 0,4096-ptr_max
PARAM_VALUE 1 state 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 device unit_byte

drivers/acpi/fan_core.c fan_set_state() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 1 state 0,4
BUF_SIZE 0 device s32min-(-2),1-s32max
BUF_SIZE 0 device s32min-(-2),1-s32max
DATA_SOURCE 0 device $0
FUZZY_MAX 1 state 4
BIT_INFO 1 state 0x0,0x4
HARD_MAX 1 state 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
LOCK2 &cdev->lock
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct thermal_cooling_device)->lock

drivers/platform/x86/lenovo/yogabook.c yogabook_wmi_set_kbd_backlight() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 1 state 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/pci/pci-acpi.c acpi_pci_set_power_state() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 1 state 0-255
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
HALF_LOCKED2 &dev->dev.mutex

drivers/pnp/pnpacpi/core.c pnpacpi_disable_resources() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 1 state 4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 device unit_byte

drivers/pnp/pnpacpi/core.c pnpacpi_resume() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 1 state 0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
HALF_LOCKED2 &fsm->lock

drivers/pnp/pnpacpi/core.c pnpacpi_set_resources() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 1 state 0
CAPPED_DATA 0 device 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte

drivers/pnp/pnpacpi/core.c pnpacpi_suspend() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->flags.power_manageable 1
PARAM_VALUE 1 state 0-4
FUZZY_MAX 1 state 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 device unit_byte
HALF_LOCKED2 &dev->mutex

drivers/hid/i2c-hid/i2c-hid-acpi.c i2c_hid_acpi_shutdown_tail() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 1 state 4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 device unit_byte
LOCK2 &dev->mutex
HALF_LOCKED2 &parent->mutex
HALF_LOCKED2 global &system_transition_mutex
TYPE_LOCK (struct device)->mutex

drivers/acpi/scan.c acpi_scan_check_and_detach() -> acpi_device_set_power()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->handler 0,4096-ptr_max
PARAM_VALUE 0 device->handler->detach 0,1100082136474046464,1582600108896296960,1609302589942390784,4128778365344645120
PARAM_VALUE 0 device->wakeup.ws->dev->kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->wakeup.ws->dev->kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->wakeup.ws->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 1 state 4
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 device unit_byte
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &acpi_scan_lock
HALF_LOCKED2 global &device_hotplug_lock