/drivers/pci/hotplug/ |
D | pcihp_skeleton.c | 42 struct hotplug_slot *hotplug_slot; member 75 static int enable_slot(struct hotplug_slot *slot); 76 static int disable_slot(struct hotplug_slot *slot); 77 static int set_attention_status(struct hotplug_slot *slot, u8 value); 78 static int hardware_test(struct hotplug_slot *slot, u32 value); 79 static int get_power_status(struct hotplug_slot *slot, u8 *value); 80 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 81 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 82 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 95 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument [all …]
|
D | acpiphp_core.c | 66 static int enable_slot(struct hotplug_slot *slot); 67 static int disable_slot(struct hotplug_slot *slot); 68 static int set_attention_status(struct hotplug_slot *slot, u8 value); 69 static int get_power_status(struct hotplug_slot *slot, u8 *value); 70 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 71 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 72 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 133 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 135 struct slot *slot = hotplug_slot->private; in enable_slot() 150 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument [all …]
|
D | shpchp_core.c | 60 static int set_attention_status(struct hotplug_slot *slot, u8 value); 61 static int enable_slot(struct hotplug_slot *slot); 62 static int disable_slot(struct hotplug_slot *slot); 63 static int get_power_status(struct hotplug_slot *slot, u8 *value); 64 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 65 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 66 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 82 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument 84 struct slot *slot = hotplug_slot->private; in release_slot() 89 kfree(slot->hotplug_slot->info); in release_slot() [all …]
|
D | s390_pci_hpc.c | 39 struct hotplug_slot *hotplug_slot; member 65 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument 67 struct slot *slot = hotplug_slot->private; in enable_slot() 93 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument 95 struct slot *slot = hotplug_slot->private; in disable_slot() 115 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 117 struct slot *slot = hotplug_slot->private; in get_power_status() 130 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 137 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument 139 struct slot *slot = hotplug_slot->private; in release_slot() [all …]
|
D | cpci_hotplug_core.c | 65 static int enable_slot(struct hotplug_slot *slot); 66 static int disable_slot(struct hotplug_slot *slot); 67 static int set_attention_status(struct hotplug_slot *slot, u8 value); 68 static int get_power_status(struct hotplug_slot *slot, u8 *value); 69 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 70 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 71 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 84 update_latch_status(struct hotplug_slot *hotplug_slot, u8 value) in update_latch_status() argument 88 memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info)); in update_latch_status() 90 return pci_hp_change_slot_info(hotplug_slot, &info); in update_latch_status() [all …]
|
D | pciehp_core.c | 64 static int set_attention_status(struct hotplug_slot *slot, u8 value); 65 static int enable_slot(struct hotplug_slot *slot); 66 static int disable_slot(struct hotplug_slot *slot); 67 static int get_power_status(struct hotplug_slot *slot, u8 *value); 68 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 69 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 70 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 71 static int reset_slot(struct hotplug_slot *slot, int probe); 77 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument 79 kfree(hotplug_slot->ops); in release_slot() [all …]
|
D | rpaphp_slot.c | 36 static void rpaphp_release_slot(struct hotplug_slot *hotplug_slot) in rpaphp_release_slot() argument 38 struct slot *slot = (struct slot *) hotplug_slot->private; in rpaphp_release_slot() 44 kfree(slot->hotplug_slot->info); in dealloc_slot_struct() 46 kfree(slot->hotplug_slot); in dealloc_slot_struct() 58 slot->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in alloc_slot_struct() 59 if (!slot->hotplug_slot) in alloc_slot_struct() 61 slot->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in alloc_slot_struct() 63 if (!slot->hotplug_slot->info) in alloc_slot_struct() 71 slot->hotplug_slot->private = slot; in alloc_slot_struct() 72 slot->hotplug_slot->ops = &rpaphp_hotplug_slot_ops; in alloc_slot_struct() [all …]
|
D | rpaphp_core.c | 65 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument 68 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status() 82 hotplug_slot->info->attention_status = value; in set_attention_status() 92 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument 95 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() 108 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 110 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() 111 *value = slot->hotplug_slot->info->attention_status; in get_attention_status() 115 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument 117 struct slot *slot = (struct slot *)hotplug_slot->private; in get_adapter_status() [all …]
|
D | cpqphp_core.c | 283 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument 285 struct slot *slot = hotplug_slot->private; in release_slot() 289 kfree(slot->hotplug_slot->info); in release_slot() 290 kfree(slot->hotplug_slot); in release_slot() 304 pci_hp_deregister(old_slot->hotplug_slot); in ctrl_slot_cleanup() 442 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument 445 struct slot *slot = hotplug_slot->private; in set_attention_status() 469 static int process_SI(struct hotplug_slot *hotplug_slot) in process_SI() argument 472 struct slot *slot = hotplug_slot->private; in process_SI() 501 static int process_SS(struct hotplug_slot *hotplug_slot) in process_SS() argument [all …]
|
D | ibmphp_core.c | 235 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument 242 (ulong) hotplug_slot, value); in set_attention_status() 246 if (hotplug_slot) { in set_attention_status() 264 pslot = hotplug_slot->private; in set_attention_status() 279 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument 286 (ulong) hotplug_slot, (ulong) value); in get_attention_status() 289 if (hotplug_slot) { in get_attention_status() 290 pslot = hotplug_slot->private; in get_attention_status() 310 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument 317 (ulong) hotplug_slot, (ulong) value); in get_latch_status() [all …]
|
D | sgi_hotplug.c | 62 struct hotplug_slot *hotplug_slot; member 82 static int enable_slot(struct hotplug_slot *slot); 83 static int disable_slot(struct hotplug_slot *slot); 84 static inline int get_power_status(struct hotplug_slot *slot, u8 *value); 162 static int sn_hp_slot_private_alloc(struct hotplug_slot *bss_hotplug_slot, in sn_hp_slot_private_alloc() 185 slot->hotplug_slot = bss_hotplug_slot; in sn_hp_slot_private_alloc() 191 static struct hotplug_slot *sn_hp_destroy(void) in sn_hp_destroy() 195 struct hotplug_slot *bss_hotplug_slot = NULL; in sn_hp_destroy() 198 bss_hotplug_slot = slot->hotplug_slot; in sn_hp_destroy() 230 static int sn_slot_enable(struct hotplug_slot *bss_hotplug_slot, in sn_slot_enable() [all …]
|
D | pci_hotplug_core.c | 67 static int get_##name(struct hotplug_slot *slot, type *value) \ 101 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() 224 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file() 254 struct hotplug_slot *slot = pci_slot->hotplug; in has_power_file() 267 struct hotplug_slot *slot = pci_slot->hotplug; in has_attention_file() 279 struct hotplug_slot *slot = pci_slot->hotplug; in has_latch_file() 290 struct hotplug_slot *slot = pci_slot->hotplug; in has_adapter_file() 301 struct hotplug_slot *slot = pci_slot->hotplug; in has_test_file() 396 static struct hotplug_slot *get_slot_from_name(const char *name) in get_slot_from_name() 398 struct hotplug_slot *slot; in get_slot_from_name() [all …]
|
D | acpiphp.h | 50 struct hotplug_slot *hotplug_slot; member 58 return hotplug_slot_name(slot->hotplug_slot); in slot_name() 163 int (*set_attn)(struct hotplug_slot *slot, u8 status); 164 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
|
D | ibmphp_ebda.c | 678 static int fillslotinfo(struct hotplug_slot *hotplug_slot) in fillslotinfo() argument 683 if (!hotplug_slot || !hotplug_slot->private) in fillslotinfo() 686 slot = hotplug_slot->private; in fillslotinfo() 692 hotplug_slot->info->power_status = SLOT_POWER(slot->status); in fillslotinfo() 695 hotplug_slot->info->attention_status = SLOT_ATTN(slot->status, slot->ext_status); in fillslotinfo() 698 hotplug_slot->info->latch_status = SLOT_LATCH(slot->status); in fillslotinfo() 702 hotplug_slot->info->adapter_status = 1; in fillslotinfo() 704 hotplug_slot->info->adapter_status = 0; in fillslotinfo() 716 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument 720 if (!hotplug_slot || !hotplug_slot->private) in release_slot() [all …]
|
D | pciehp.h | 76 struct hotplug_slot *hotplug_slot; member 155 int pciehp_set_raw_indicator_status(struct hotplug_slot *h_slot, u8 status); 156 int pciehp_get_raw_indicator_status(struct hotplug_slot *h_slot, u8 *status); 160 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
|
D | cpci_hotplug.h | 50 struct hotplug_slot *hotplug_slot; member 75 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
|
D | shpchp.h | 88 struct hotplug_slot *hotplug_slot; member 187 return hotplug_slot_name(slot->hotplug_slot); in slot_name() 234 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() argument 236 return hotplug_slot->private; in get_slot()
|
D | rpaphp.h | 80 struct hotplug_slot *hotplug_slot; member
|
D | pnv_php.c | 336 int pnv_php_set_slot_power_state(struct hotplug_slot *slot, in pnv_php_set_slot_power_state() 369 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_power_state() 392 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_adapter_state() 415 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state) in pnv_php_set_attention_state() 425 struct hotplug_slot *slot = &php_slot->slot; in pnv_php_enable() 508 static int pnv_php_enable_slot(struct hotplug_slot *slot) in pnv_php_enable_slot() 516 static int pnv_php_disable_slot(struct hotplug_slot *slot) in pnv_php_disable_slot() 547 static void pnv_php_release(struct hotplug_slot *slot) in pnv_php_release()
|
D | acpiphp_ibm.c | 96 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status); 97 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status); 174 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) in ibm_set_attention_status() 223 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status) in ibm_get_attention_status()
|
D | pciehp_hpc.c | 358 int pciehp_get_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_get_raw_indicator_status() argument 361 struct slot *slot = hotplug_slot->private; in pciehp_get_raw_indicator_status() 446 int pciehp_set_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_set_raw_indicator_status() argument 449 struct slot *slot = hotplug_slot->private; in pciehp_set_raw_indicator_status()
|
D | cpci_hotplug_pci.c | 212 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_on() 241 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_off()
|
/drivers/platform/x86/ |
D | eeepc-laptop.c | 178 struct hotplug_slot *hotplug_slot; member 583 if (!eeepc->hotplug_slot) in eeepc_rfkill_hotplug() 713 static int eeepc_get_adapter_status(struct hotplug_slot *hotplug_slot, in eeepc_get_adapter_status() argument 716 struct eeepc_laptop *eeepc = hotplug_slot->private; in eeepc_get_adapter_status() 727 static void eeepc_cleanup_pci_hotplug(struct hotplug_slot *hotplug_slot) in eeepc_cleanup_pci_hotplug() argument 729 kfree(hotplug_slot->info); in eeepc_cleanup_pci_hotplug() 730 kfree(hotplug_slot); in eeepc_cleanup_pci_hotplug() 749 eeepc->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in eeepc_setup_pci_hotplug() 750 if (!eeepc->hotplug_slot) in eeepc_setup_pci_hotplug() 753 eeepc->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in eeepc_setup_pci_hotplug() [all …]
|
D | asus-wmi.c | 241 struct hotplug_slot *hotplug_slot; member 677 if (asus->hotplug_slot) { in asus_rfkill_hotplug() 779 static int asus_get_adapter_status(struct hotplug_slot *hotplug_slot, in asus_get_adapter_status() argument 782 struct asus_wmi *asus = hotplug_slot->private; in asus_get_adapter_status() 792 static void asus_cleanup_pci_hotplug(struct hotplug_slot *hotplug_slot) in asus_cleanup_pci_hotplug() argument 794 kfree(hotplug_slot->info); in asus_cleanup_pci_hotplug() 795 kfree(hotplug_slot); in asus_cleanup_pci_hotplug() 829 asus->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in asus_setup_pci_hotplug() 830 if (!asus->hotplug_slot) in asus_setup_pci_hotplug() 833 asus->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in asus_setup_pci_hotplug() [all …]
|
/drivers/pci/ |
D | slot.c | 262 struct hotplug_slot *hotplug) in pci_create_slot() 367 struct hotplug_slot *slot = pci_slot->hotplug; in pci_hp_create_module_link()
|