/linux/drivers/pci/hotplug/ |
A D | acpiphp_core.c | 119 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 121 struct slot *slot = to_slot(hotplug_slot); in enable_slot() 136 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument 156 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument 161 hotplug_slot_name(hotplug_slot)); in set_attention_status() 180 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 202 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 207 hotplug_slot_name(hotplug_slot)); in get_attention_status() 226 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument 246 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument [all …]
|
A D | shpchp_core.c | 67 struct hotplug_slot *hotplug_slot; in init_slots() local 79 hotplug_slot = &slot->hotplug_slot; in init_slots() 105 retval = pci_hp_register(hotplug_slot, in init_slots() 138 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots() 146 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument 159 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 169 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument 179 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 194 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 209 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument [all …]
|
A D | s390_pci_hpc.c | 23 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 26 hotplug_slot); in enable_slot() 41 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument 44 hotplug_slot); in disable_slot() 60 static int reset_slot(struct hotplug_slot *hotplug_slot, bool probe) in reset_slot() argument 63 hotplug_slot); in reset_slot() 83 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 86 hotplug_slot); in get_power_status() 92 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 112 zdev->hotplug_slot.ops = &s390_hotplug_slot_ops; in zpci_init_slot() [all …]
|
A D | pciehp_core.c | 77 ctrl->hotplug_slot.ops = ops; in init_slot() 80 retval = pci_hp_initialize(&ctrl->hotplug_slot, in init_slot() 91 struct hotplug_slot *hotplug_slot = &ctrl->hotplug_slot; in cleanup_slot() local 93 pci_hp_destroy(hotplug_slot); in cleanup_slot() 94 kfree(hotplug_slot->ops); in cleanup_slot() 100 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument 116 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 127 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument 138 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 224 rc = pci_hp_add(&ctrl->hotplug_slot); in pciehp_probe() [all …]
|
A D | pciehp.h | 107 struct hotplug_slot hotplug_slot; /* hotplug core interface */ member 185 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot); 186 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot); 187 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe); 188 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status); 189 int pciehp_set_raw_indicator_status(struct hotplug_slot *h_slot, u8 status); 190 int pciehp_get_raw_indicator_status(struct hotplug_slot *h_slot, u8 *status); 196 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name() 199 static inline struct controller *to_ctrl(struct hotplug_slot *hotplug_slot) in to_ctrl() argument 201 return container_of(hotplug_slot, struct controller, hotplug_slot); in to_ctrl()
|
A D | cpci_hotplug_core.c | 71 enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 73 struct slot *slot = to_slot(hotplug_slot); in enable_slot() 84 disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument 86 struct slot *slot = to_slot(hotplug_slot); in disable_slot() 140 get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 142 struct slot *slot = to_slot(hotplug_slot); in get_power_status() 149 get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 158 set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument 164 get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 173 get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument [all …]
|
A D | rpaphp_core.c | 52 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument 55 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() 79 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 82 struct slot *slot = to_slot(hotplug_slot); in get_power_status() 95 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 97 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() 102 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 104 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() 460 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots() 482 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument [all …]
|
A D | acpiphp.h | 36 struct hotplug_slot hotplug_slot; member 43 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 46 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument 48 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot() 152 int (*set_attn)(struct hotplug_slot *slot, u8 status); 153 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
|
A D | ibmphp_core.c | 221 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument 232 if (hotplug_slot) { in set_attention_status() 262 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 272 if (hotplug_slot) { in get_attention_status() 289 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument 298 if (hotplug_slot) { in get_latch_status() 314 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 323 if (hotplug_slot) { in get_power_status() 338 static int get_adapter_present(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_present() argument 348 if (hotplug_slot) { in get_adapter_present() [all …]
|
A D | pci_hotplug_core.c | 82 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() 139 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file() 206 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file() 236 struct hotplug_slot *slot = pci_slot->hotplug; in has_power_file() 249 struct hotplug_slot *slot = pci_slot->hotplug; in has_attention_file() 261 struct hotplug_slot *slot = pci_slot->hotplug; in has_latch_file() 272 struct hotplug_slot *slot = pci_slot->hotplug; in has_adapter_file() 380 struct hotplug_slot *slot; in get_slot_from_name() 477 int pci_hp_add(struct hotplug_slot *slot) in pci_hp_add() 519 void pci_hp_del(struct hotplug_slot *slot) in pci_hp_del() [all …]
|
A D | cpci_hotplug.h | 38 struct hotplug_slot hotplug_slot; member 63 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 66 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument 68 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
|
A D | rpaphp.h | 71 struct hotplug_slot hotplug_slot; member 77 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument 79 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
|
A D | cpqphp_core.c | 415 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument 418 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() 442 static int process_SI(struct hotplug_slot *hotplug_slot) in process_SI() argument 445 struct slot *slot = to_slot(hotplug_slot); in process_SI() 474 static int process_SS(struct hotplug_slot *hotplug_slot) in process_SS() argument 477 struct slot *slot = to_slot(hotplug_slot); in process_SS() 502 static int hardware_test(struct hotplug_slot *hotplug_slot, u32 value) in hardware_test() argument 513 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 524 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 535 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument [all …]
|
A D | rpaphp_slot.c | 43 slot->hotplug_slot.ops = &rpaphp_hotplug_slot_ops; in alloc_slot_struct() 67 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_deregister_slot() 83 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_register_slot()
|
A D | shpchp.h | 76 struct hotplug_slot hotplug_slot; member 174 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 210 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() argument 212 return container_of(hotplug_slot, struct slot, hotplug_slot); in get_slot()
|
A D | pciehp_hpc.c | 352 int pciehp_get_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_get_raw_indicator_status() argument 355 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_raw_indicator_status() 366 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status) in pciehp_get_attention_status() argument 368 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_attention_status() 484 int pciehp_set_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_set_raw_indicator_status() argument 487 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_set_raw_indicator_status() 899 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe) in pciehp_reset_slot() argument 901 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_reset_slot()
|
A D | pciehp_ctrl.c | 360 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot) in pciehp_sysfs_enable_slot() argument 362 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_sysfs_enable_slot() 399 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot) in pciehp_sysfs_disable_slot() argument 401 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_sysfs_disable_slot()
|
A D | ibmphp.h | 700 struct hotplug_slot hotplug_slot; member 744 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument 746 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
|
A D | pnv_php.c | 327 static inline struct pnv_php_slot *to_pnv_php_slot(struct hotplug_slot *slot) in to_pnv_php_slot() 332 int pnv_php_set_slot_power_state(struct hotplug_slot *slot, in pnv_php_set_slot_power_state() 371 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_power_state() 393 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_adapter_state() 414 static int pnv_php_get_attention_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_attention_state() 422 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state) in pnv_php_set_attention_state() 446 struct hotplug_slot *slot = &php_slot->slot; in pnv_php_enable() 529 static int pnv_php_reset_slot(struct hotplug_slot *slot, bool probe) in pnv_php_reset_slot() 560 static int pnv_php_enable_slot(struct hotplug_slot *slot) in pnv_php_enable_slot() 567 static int pnv_php_disable_slot(struct hotplug_slot *slot) in pnv_php_disable_slot()
|
A D | cpqphp.h | 263 struct hotplug_slot hotplug_slot; member 448 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 451 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument 453 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
|
A D | acpiphp_ibm.c | 82 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status); 83 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status); 160 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) in ibm_set_attention_status() 209 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status) in ibm_get_attention_status()
|
A D | TODO | 25 struct hotplug_slot, this seems superfluous. 27 * Several functions access the pci_slot member in struct hotplug_slot even 53 * Several functions access the pci_slot member in struct hotplug_slot even
|
/linux/include/linux/ |
A D | pci_hotplug.h | 39 int (*enable_slot) (struct hotplug_slot *slot); 40 int (*disable_slot) (struct hotplug_slot *slot); 42 int (*hardware_test) (struct hotplug_slot *slot, u32 value); 43 int (*get_power_status) (struct hotplug_slot *slot, u8 *value); 45 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value); 47 int (*reset_slot) (struct hotplug_slot *slot, bool probe); 58 struct hotplug_slot { struct 79 int pci_hp_add(struct hotplug_slot *slot); 81 void pci_hp_del(struct hotplug_slot *slot); 82 void pci_hp_destroy(struct hotplug_slot *slot); [all …]
|
/linux/drivers/platform/x86/ |
A D | eeepc-laptop.c | 171 struct hotplug_slot hotplug_slot; member 574 if (!eeepc->hotplug_slot.ops) in eeepc_rfkill_hotplug() 704 static int eeepc_get_adapter_status(struct hotplug_slot *hotplug_slot, in eeepc_get_adapter_status() argument 710 eeepc = container_of(hotplug_slot, struct eeepc_laptop, hotplug_slot); in eeepc_get_adapter_status() 736 eeepc->hotplug_slot.ops = &eeepc_hotplug_slot_ops; in eeepc_setup_pci_hotplug() 738 ret = pci_hp_register(&eeepc->hotplug_slot, bus, 0, "eeepc-wifi"); in eeepc_setup_pci_hotplug() 747 eeepc->hotplug_slot.ops = NULL; in eeepc_setup_pci_hotplug() 808 if (eeepc->hotplug_slot.ops) in eeepc_rfkill_exit() 809 pci_hp_deregister(&eeepc->hotplug_slot); in eeepc_rfkill_exit()
|
/linux/arch/powerpc/include/asm/ |
A D | pnv-pci.h | 47 struct hotplug_slot slot; 74 extern int pnv_php_set_slot_power_state(struct hotplug_slot *slot,
|