Defined in 3 files as a macro:

Defined in 3 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/base/power/trace.c show_dev_hash() -> to_device()

Type Parameter Key Value
PARAM_VALUE 0 item 0-562968433491800063,562968433491800065-u64max
LOCK2 global &dpm_list_mtx

drivers/base/power/trace.c show_trace_dev_match() -> to_device()

Type Parameter Key Value
PARAM_VALUE 0 item 0-562968433491800063,562968433491800065-u64max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 global &dpm_list_mtx
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/target/target_core_configfs.c target_dev_alias_show() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_alias_store() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_alua_lu_gp_show() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_alua_lu_gp_store() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_control_store() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_enable_show() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_enable_store() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_info_show() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_lba_map_show() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_lba_map_store() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_udev_path_show() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/target_core_configfs.c target_dev_udev_path_store() -> to_device()

Type Parameter Key Value
DATA_SOURCE 0 item $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/base/power/main.c dpm_complete() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_noirq_resume_devices() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &acpi_scan_lock
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_noirq_suspend_devices() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &acpi_scan_lock
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_prepare() -> to_device()

Type Parameter Key Value
PARAM_VALUE 0 item 0-562968433491800063,562968433491800065-u64max
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_resume() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_resume_early() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &acpi_scan_lock
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_suspend() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock

drivers/base/power/main.c dpm_suspend_late() -> to_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpm_list_mtx
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &acpi_scan_lock
HALF_LOCKED2 global &device_hotplug_lock