Documented in 2 files:

Defined in 3 files as a prototype:

Defined in 1 files as a member:

Defined in 7 files as a function:

Referenced in 12 files:

Smatch caller information:

drivers/pci/hotplug/acpiphp_glue.c acpiphp_check_bridge() -> enable_slot()

Type Parameter Key Value
PARAM_VALUE 0 slot 4096-ptr_max
PARAM_VALUE 0 slot->bus 4096-ptr_max
PARAM_VALUE 1 bridge 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &acpi_scan_lock
LOCK2 global &pci_rescan_remove_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &device_hotplug_lock

drivers/pci/hotplug/acpiphp_glue.c acpiphp_enable_slot() -> enable_slot()

Type Parameter Key Value
PARAM_VALUE 0 slot 4096-ptr_max
PARAM_VALUE 1 bridge 0
DATA_SOURCE 0 slot $0
BIT_INFO 0 slot->flags 0x0,0xfffffffc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
LOCK2 global &pci_rescan_remove_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/pci/hotplug/acpiphp_glue.c hotplug_event() -> enable_slot()

Type Parameter Key Value
PARAM_VALUE 0 slot 4096-ptr_max
PARAM_VALUE 1 bridge 0
BIT_INFO 0 slot->flags 0x0,0xfffffffd
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &acpi_scan_lock
LOCK2 global &pci_rescan_remove_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &device_hotplug_lock

drivers/pci/hotplug/pci_hotplug_core.c power_write_file() -> (struct hotplug_slot_ops)->enable_slot()

Type Parameter Key Value
PARAM_VALUE 0 slot 4096-ptr_max
PARAM_VALUE 0 slot->ops 4096-ptr_max
PARAM_VALUE 0 slot->ops->enable_slot 1-u64max
CONTAINER 0 -0-0+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

Smatch assignments to (struct hotplug_slot_ops)->enable_slot:

drivers/pci/hotplug/octep_hp.c (null)() -> (struct hotplug_slot_ops)->enable_slot [7952317786735579136]

drivers/pci/hotplug/acpiphp_core.c (null)() -> (struct hotplug_slot_ops)->enable_slot [4857976669904986112]

drivers/pci/hotplug/pciehp_core.c cleanup_slot() -> (struct hotplug_slot_ops)->enable_slot [min-max]

drivers/pci/hotplug/pciehp_core.c init_slot() -> (struct hotplug_slot_ops)->enable_slot [0-u64max]

drivers/pci/hotplug/pciehp_core.c pciehp_probe() -> (struct hotplug_slot_ops)->enable_slot [min-max]

drivers/pci/hotplug/pciehp_core.c pciehp_remove() -> (struct hotplug_slot_ops)->enable_slot [min-max]

drivers/pci/hotplug/shpchp_core.c (null)() -> (struct hotplug_slot_ops)->enable_slot [5235530813076267008]

drivers/pci/hotplug/cpci_hotplug_core.c (null)() -> (struct hotplug_slot_ops)->enable_slot [7018025911219265536]

drivers/platform/x86/eeepc-laptop.c (null)() -> (struct hotplug_slot_ops)->enable_slot [0]

drivers/platform/x86/asus-wmi.c (null)() -> (struct hotplug_slot_ops)->enable_slot [0]