Home
last modified time | relevance | path

Searched refs:hotplug_slot (Results 1 – 25 of 27) sorted by relevance

12

/drivers/pci/hotplug/
Dpcihp_skeleton.c42 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 …]
Dacpiphp_core.c71 static int enable_slot (struct hotplug_slot *slot);
72 static int disable_slot (struct hotplug_slot *slot);
73 static int set_attention_status (struct hotplug_slot *slot, u8 value);
74 static int get_power_status (struct hotplug_slot *slot, u8 *value);
75 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
76 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
77 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
136 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
138 struct slot *slot = hotplug_slot->private; in enable_slot()
153 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
[all …]
Dshpchp_core.c61 static int set_attention_status (struct hotplug_slot *slot, u8 value);
62 static int enable_slot (struct hotplug_slot *slot);
63 static int disable_slot (struct hotplug_slot *slot);
64 static int get_power_status (struct hotplug_slot *slot, u8 *value);
65 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
66 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
67 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
83 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
85 struct slot *slot = hotplug_slot->private; in release_slot()
90 kfree(slot->hotplug_slot->info); in release_slot()
[all …]
Dcpci_hotplug_core.c65 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 …]
Dpciehp_core.c65 static int set_attention_status (struct hotplug_slot *slot, u8 value);
66 static int enable_slot (struct hotplug_slot *slot);
67 static int disable_slot (struct hotplug_slot *slot);
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_latch_status (struct hotplug_slot *slot, u8 *value);
71 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
77 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
79 struct slot *slot = hotplug_slot->private; in release_slot()
82 __func__, hotplug_slot_name(hotplug_slot)); in release_slot()
[all …]
Drpaphp_slot.c36 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 …]
Drpaphp_core.c64 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
67 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status()
81 hotplug_slot->info->attention_status = value; in set_attention_status()
91 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value) in get_power_status() argument
94 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status()
107 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value) in get_attention_status() argument
109 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status()
110 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
114 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 * value) in get_adapter_status() argument
116 struct slot *slot = (struct slot *)hotplug_slot->private; in get_adapter_status()
[all …]
Dcpqphp_core.c283 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 …]
Dibmphp_core.c239 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
246 (ulong) hotplug_slot, value); in set_attention_status()
250 if (hotplug_slot) { in set_attention_status()
268 pslot = hotplug_slot->private; in set_attention_status()
283 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value) in get_attention_status() argument
290 (ulong) hotplug_slot, (ulong) value); in get_attention_status()
293 if (hotplug_slot) { in get_attention_status()
294 pslot = hotplug_slot->private; in get_attention_status()
314 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 * value) in get_latch_status() argument
321 (ulong) hotplug_slot, (ulong) value); in get_latch_status()
[all …]
Dsgi_hotplug.c62 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 …]
Dpci_hotplug_core.c76 static int get_##name (struct hotplug_slot *slot, type *value) \
111 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file()
240 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file()
270 struct hotplug_slot *slot = pci_slot->hotplug; in has_power_file()
282 struct hotplug_slot *slot = pci_slot->hotplug; in has_attention_file()
293 struct hotplug_slot *slot = pci_slot->hotplug; in has_latch_file()
303 struct hotplug_slot *slot = pci_slot->hotplug; in has_adapter_file()
313 struct hotplug_slot *slot = pci_slot->hotplug; in has_test_file()
407 static struct hotplug_slot *get_slot_from_name (const char *name) in get_slot_from_name()
409 struct hotplug_slot *slot; in get_slot_from_name()
[all …]
Dacpiphp.h59 struct hotplug_slot *hotplug_slot; member
66 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
143 int (*set_attn)(struct hotplug_slot *slot, u8 status);
144 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
Dibmphp_ebda.c679 static int fillslotinfo(struct hotplug_slot *hotplug_slot) in fillslotinfo() argument
684 if (!hotplug_slot || !hotplug_slot->private) in fillslotinfo()
687 slot = hotplug_slot->private; in fillslotinfo()
693 hotplug_slot->info->power_status = SLOT_POWER(slot->status); in fillslotinfo()
696 hotplug_slot->info->attention_status = SLOT_ATTN(slot->status, slot->ext_status); in fillslotinfo()
699 hotplug_slot->info->latch_status = SLOT_LATCH(slot->status); in fillslotinfo()
703 hotplug_slot->info->adapter_status = 1; in fillslotinfo()
705 hotplug_slot->info->adapter_status = 0; in fillslotinfo()
717 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
721 if (!hotplug_slot || !hotplug_slot->private) in release_slot()
[all …]
Dcpci_hotplug.h50 struct hotplug_slot *hotplug_slot; member
75 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Dshpchp.h89 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()
Drpaphp.h80 struct hotplug_slot *hotplug_slot; member
Dpciehp.h77 struct hotplug_slot *hotplug_slot; member
165 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Dacpiphp_ibm.c107 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status);
108 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status);
182 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) in ibm_set_attention_status()
226 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status) in ibm_get_attention_status()
Dcpci_hotplug_pci.c212 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_on()
241 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_off()
Drpaphp_pci.c80 struct hotplug_slot_info *info = slot->hotplug_slot->info; in rpaphp_enable_slot()
Dcpqphp.h277 struct hotplug_slot *hotplug_slot; member
468 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Dibmphp.h715 struct hotplug_slot *hotplug_slot; member
/drivers/platform/x86/
Deeepc-laptop.c179 struct hotplug_slot *hotplug_slot; member
602 if (eeepc->hotplug_slot) { in eeepc_rfkill_hotplug()
731 static int eeepc_get_adapter_status(struct hotplug_slot *hotplug_slot, in eeepc_get_adapter_status() argument
734 struct eeepc_laptop *eeepc = hotplug_slot->private; in eeepc_get_adapter_status()
745 static void eeepc_cleanup_pci_hotplug(struct hotplug_slot *hotplug_slot) in eeepc_cleanup_pci_hotplug() argument
747 kfree(hotplug_slot->info); in eeepc_cleanup_pci_hotplug()
748 kfree(hotplug_slot); in eeepc_cleanup_pci_hotplug()
767 eeepc->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in eeepc_setup_pci_hotplug()
768 if (!eeepc->hotplug_slot) in eeepc_setup_pci_hotplug()
771 eeepc->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in eeepc_setup_pci_hotplug()
[all …]
Dasus-wmi.c200 struct hotplug_slot *hotplug_slot; member
535 if (asus->hotplug_slot) { in asus_rfkill_hotplug()
637 static int asus_get_adapter_status(struct hotplug_slot *hotplug_slot, in asus_get_adapter_status() argument
640 struct asus_wmi *asus = hotplug_slot->private; in asus_get_adapter_status()
650 static void asus_cleanup_pci_hotplug(struct hotplug_slot *hotplug_slot) in asus_cleanup_pci_hotplug() argument
652 kfree(hotplug_slot->info); in asus_cleanup_pci_hotplug()
653 kfree(hotplug_slot); in asus_cleanup_pci_hotplug()
687 asus->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in asus_setup_pci_hotplug()
688 if (!asus->hotplug_slot) in asus_setup_pci_hotplug()
691 asus->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in asus_setup_pci_hotplug()
[all …]
/drivers/pci/
Dslot.c249 struct hotplug_slot *hotplug) in pci_create_slot()
378 struct hotplug_slot *slot = pci_slot->hotplug; in pci_hp_create_module_link()

12