| /linux/drivers/pci/hotplug/ |
| H A D | acpiphp_core.c | 51 static int enable_slot(struct hotplug_slot *slot); 52 static int disable_slot(struct hotplug_slot *slot); 53 static int set_attention_status(struct hotplug_slot *slot, u8 value); 54 static int get_power_status(struct hotplug_slot *slot, u8 *value); 55 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 56 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 117 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 119 struct slot *slot = to_slot(hotplug_slot); in enable_slot() 134 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument [all …]
|
| H A D | shpchp_core.c | 42 static int set_attention_status(struct hotplug_slot *slot, u8 value); 43 static int enable_slot(struct hotplug_slot *slot); 44 static int disable_slot(struct hotplug_slot *slot); 45 static int get_power_status(struct hotplug_slot *slot, u8 *value); 46 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 47 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 48 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 63 struct hotplug_slot *hotplug_slot; in init_slots() local 75 hotplug_slot = &slot->hotplug_slot; in init_slots() 95 hotplug_slot->ops = &shpchp_hotplug_slot_ops; in init_slots() [all …]
|
| H A D | pciehp_core.c | 46 static int set_attention_status(struct hotplug_slot *slot, u8 value); 47 static int get_power_status(struct hotplug_slot *slot, u8 *value); 48 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 49 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 78 ctrl->hotplug_slot.ops = ops; in init_slot() 81 retval = pci_hp_initialize(&ctrl->hotplug_slot, in init_slot() 92 struct hotplug_slot *hotplug_slot = &ctrl->hotplug_slot; in cleanup_slot() local 94 pci_hp_destroy(hotplug_slot); in cleanup_slot() 95 kfree(hotplug_slot->ops); in cleanup_slot() 101 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument [all …]
|
| H A D | pciehp.h | 113 struct hotplug_slot hotplug_slot; /* hotplug core interface */ member 193 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot); 194 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot); 195 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe); 196 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status); 197 int pciehp_set_raw_indicator_status(struct hotplug_slot *h_slot, u8 status); 198 int pciehp_get_raw_indicator_status(struct hotplug_slot *h_slot, u8 *status); 204 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name() 207 static inline struct controller *to_ctrl(struct hotplug_slot *hotplug_slot) in to_ctrl() argument 209 return container_of(hotplug_slot, struct controller, hotplug_slot); in to_ctrl()
|
| H A D | cpci_hotplug_core.c | 52 static int enable_slot(struct hotplug_slot *slot); 53 static int disable_slot(struct hotplug_slot *slot); 54 static int set_attention_status(struct hotplug_slot *slot, u8 value); 55 static int get_power_status(struct hotplug_slot *slot, u8 *value); 56 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 58 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 71 enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 73 struct slot *slot = to_slot(hotplug_slot); in enable_slot() 81 disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument [all …]
|
| H A D | rpaphp_core.c | 54 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument 57 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() 81 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 84 struct slot *slot = to_slot(hotplug_slot); in get_power_status() 97 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() 104 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 106 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() 462 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots() 484 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument [all …]
|
| H 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);
|
| H A D | pci_hotplug_core.c | 41 static int get_##name(struct hotplug_slot *slot, type *value) \ 70 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() 121 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file() 182 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file() 204 static bool has_power_file(struct hotplug_slot *slot) in has_power_file() 213 static bool has_attention_file(struct hotplug_slot *slot) in has_attention_file() 221 static bool has_latch_file(struct hotplug_slot *slot) in has_latch_file() 228 static bool has_adapter_file(struct hotplug_slot *slot) in has_adapter_file() 235 static bool has_test_file(struct hotplug_slot *slot) in has_test_file() 242 static int fs_add_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot) in fs_add_slot() [all …]
|
| H A D | ibmphp_core.c | 213 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument 220 (ulong) hotplug_slot, value); in set_attention_status() 224 if (hotplug_slot) { in set_attention_status() 242 pslot = to_slot(hotplug_slot); in set_attention_status() 254 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 261 (ulong) hotplug_slot, (ulong) value); in get_attention_status() 264 if (hotplug_slot) { in get_attention_status() 265 pslot = to_slot(hotplug_slot); in get_attention_status() 281 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument 288 (ulong) hotplug_slot, (ulong) value); in get_latch_status() [all …]
|
| H 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()
|
| H A D | cpqphp_core.c | 275 pci_hp_deregister(&old_slot->hotplug_slot); in ctrl_slot_cleanup() 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 504 struct slot *slot = to_slot(hotplug_slot); in hardware_test() 513 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument [all …]
|
| H A D | rpaphp_slot.c | 44 slot->hotplug_slot.ops = &rpaphp_hotplug_slot_ops; in alloc_slot_struct() 68 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_deregister_slot() 84 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_register_slot()
|
| H A D | pciehp_hpc.c | 351 int pciehp_get_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_get_raw_indicator_status() argument 354 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_raw_indicator_status() 365 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status) in pciehp_get_attention_status() argument 367 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_attention_status() 483 int pciehp_set_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_set_raw_indicator_status() argument 486 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_set_raw_indicator_status() 939 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe) in pciehp_reset_slot() argument 941 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_reset_slot()
|
| H A D | pnv_php.c | 330 static inline struct pnv_php_slot *to_pnv_php_slot(struct hotplug_slot *slot) in to_pnv_php_slot() 335 int pnv_php_set_slot_power_state(struct hotplug_slot *slot, in pnv_php_set_slot_power_state() 374 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_power_state() 410 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_adapter_state() 444 static int pnv_php_get_raw_indicator_status(struct hotplug_slot *slot, u8 *state) in pnv_php_get_raw_indicator_status() 456 static int pnv_php_get_attention_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_attention_state() 465 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state) in pnv_php_set_attention_state() 488 struct hotplug_slot *slot) in pnv_php_activate_slot() 544 struct hotplug_slot *slot = &php_slot->slot; in pnv_php_enable() 627 static int pnv_php_reset_slot(struct hotplug_slot *slot, bool probe) in pnv_php_reset_slot() [all …]
|
| H A D | ibmphp.h | 699 struct hotplug_slot hotplug_slot; member 743 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument 745 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
|
| H 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()
|
| H 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()
|
| H A D | TODO | 25 struct hotplug_slot, this seems superfluous. 27 * Several functions access the pci_slot member in struct hotplug_slot even
|
| H A D | octep_hp.c | 45 struct hotplug_slot slot; 107 static int octep_hp_enable_slot(struct hotplug_slot *slot) in octep_hp_enable_slot() 116 static int octep_hp_disable_slot(struct hotplug_slot *slot) in octep_hp_disable_slot()
|
| H A D | ibmphp_ebda.c | 664 static int fillslotinfo(struct hotplug_slot *hotplug_slot) in fillslotinfo() argument 669 slot = to_slot(hotplug_slot); in fillslotinfo() 879 rc = fillslotinfo(&tmp_slot->hotplug_slot); in ebda_rsrc_controller() 886 tmp_slot->hotplug_slot.ops = &ibmphp_hotplug_slot_ops; in ebda_rsrc_controller() 900 pci_hp_register(&tmp_slot->hotplug_slot, in ebda_rsrc_controller()
|
| /linux/include/linux/ |
| H A D | pci_hotplug.h | 39 int (*enable_slot) (struct hotplug_slot *slot); 40 int (*disable_slot) (struct hotplug_slot *slot); 41 int (*set_attention_status) (struct hotplug_slot *slot, u8 value); 42 int (*hardware_test) (struct hotplug_slot *slot, u32 value); 43 int (*get_power_status) (struct hotplug_slot *slot, u8 *value); 44 int (*get_attention_status) (struct hotplug_slot *slot, u8 *value); 45 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value); 46 int (*get_adapter_status) (struct hotplug_slot *slot, u8 *value); 47 int (*reset_slot) (struct hotplug_slot *slot, bool probe); 57 struct hotplug_slot { struct [all …]
|
| /linux/drivers/platform/x86/ |
| H 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()
|
| H A D | asus-wmi.c | 329 struct hotplug_slot hotplug_slot; member 2171 if (asus->hotplug_slot.ops) { in asus_rfkill_hotplug() 2267 static int asus_get_adapter_status(struct hotplug_slot *hotplug_slot, in asus_get_adapter_status() argument 2270 struct asus_wmi *asus = container_of(hotplug_slot, in asus_get_adapter_status() 2271 struct asus_wmi, hotplug_slot); in asus_get_adapter_status() 2311 asus->hotplug_slot.ops = &asus_hotplug_slot_ops; in asus_setup_pci_hotplug() 2313 ret = pci_hp_register(&asus->hotplug_slot, bus, 0, "asus-wifi"); in asus_setup_pci_hotplug() 2322 asus->hotplug_slot.ops = NULL; in asus_setup_pci_hotplug() 2450 if (asus->hotplug_slot.ops) in asus_wmi_rfkill_exit() 2451 pci_hp_deregister(&asus->hotplug_slot); in asus_wmi_rfkill_exit()
|
| /linux/arch/s390/include/asm/ |
| H A D | pci.h | 128 struct hotplug_slot hotplug_slot; member
|
| /linux/drivers/pci/ |
| H A D | slot.c | 228 struct hotplug_slot *hotplug) in pci_create_slot()
|