Home
last modified time | relevance | path

Searched refs:hotplug_slot (Results 1 – 25 of 29) 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.c66 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 …]
Dshpchp_core.c60 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 …]
Ds390_pci_hpc.c39 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()
111 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
113 struct slot *slot = hotplug_slot->private; in get_power_status()
126 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
133 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
135 struct slot *slot = hotplug_slot->private; in release_slot()
[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);
72 static int reset_slot (struct hotplug_slot *slot, int probe);
78 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
80 struct slot *slot = hotplug_slot->private; 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 …]
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.c65 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 …]
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.c237 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
244 (ulong) hotplug_slot, value); in set_attention_status()
248 if (hotplug_slot) { in set_attention_status()
266 pslot = hotplug_slot->private; in set_attention_status()
281 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
288 (ulong) hotplug_slot, (ulong) value); in get_attention_status()
291 if (hotplug_slot) { in get_attention_status()
292 pslot = hotplug_slot->private; in get_attention_status()
312 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
319 (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.c67 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 …]
Dacpiphp.h50 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);
Dibmphp_ebda.c678 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 …]
Dcpci_hotplug.h50 struct hotplug_slot *hotplug_slot; member
75 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Dshpchp.h88 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()
Dpciehp.h76 struct hotplug_slot *hotplug_slot; member
158 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Drpaphp.h80 struct hotplug_slot *hotplug_slot; member
Dacpiphp_ibm.c96 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);
171 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) in ibm_set_attention_status()
215 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
462 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
/drivers/platform/x86/
Deeepc-laptop.c178 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 …]
Dasus-wmi.c242 struct hotplug_slot *hotplug_slot; member
672 if (asus->hotplug_slot) { in asus_rfkill_hotplug()
774 static int asus_get_adapter_status(struct hotplug_slot *hotplug_slot, in asus_get_adapter_status() argument
777 struct asus_wmi *asus = hotplug_slot->private; in asus_get_adapter_status()
787 static void asus_cleanup_pci_hotplug(struct hotplug_slot *hotplug_slot) in asus_cleanup_pci_hotplug() argument
789 kfree(hotplug_slot->info); in asus_cleanup_pci_hotplug()
790 kfree(hotplug_slot); in asus_cleanup_pci_hotplug()
824 asus->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in asus_setup_pci_hotplug()
825 if (!asus->hotplug_slot) in asus_setup_pci_hotplug()
828 asus->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in asus_setup_pci_hotplug()
[all …]
/drivers/pci/
Dslot.c262 struct hotplug_slot *hotplug) in pci_create_slot()
369 struct hotplug_slot *slot = pci_slot->hotplug; in pci_hp_create_module_link()

12