Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/pci/hotplug/
Dacpiphp_core.c52 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_latch_status(struct hotplug_slot *slot, u8 *value);
58 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
119 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
121 struct slot *slot = hotplug_slot->private; in enable_slot()
136 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
[all …]
Dshpchp_core.c46 static int set_attention_status(struct hotplug_slot *slot, u8 value);
47 static int enable_slot(struct hotplug_slot *slot);
48 static int disable_slot(struct hotplug_slot *slot);
49 static int get_power_status(struct hotplug_slot *slot, u8 *value);
50 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
51 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
52 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
67 struct hotplug_slot *hotplug_slot; in init_slots() local
80 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in init_slots()
81 if (!hotplug_slot) { in init_slots()
[all …]
Ds390_pci_hpc.c35 struct hotplug_slot *hotplug_slot; member
61 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
63 struct slot *slot = hotplug_slot->private; in enable_slot()
89 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
91 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
142 struct hotplug_slot *hotplug_slot; in zpci_init_slot() local
155 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in zpci_init_slot()
[all …]
Dpciehp_core.c49 static int set_attention_status(struct hotplug_slot *slot, u8 value);
50 static int enable_slot(struct hotplug_slot *slot);
51 static int disable_slot(struct hotplug_slot *slot);
52 static int get_power_status(struct hotplug_slot *slot, u8 *value);
53 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
54 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
55 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
56 static int reset_slot(struct hotplug_slot *slot, int probe);
61 struct hotplug_slot *hotplug = NULL; in init_slot()
99 slot->hotplug_slot = hotplug; in init_slot()
[all …]
Dcpci_hotplug_core.c52 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 update_latch_status(struct hotplug_slot *hotplug_slot, u8 value) in update_latch_status() argument
75 memcpy(&info, hotplug_slot->info, sizeof(struct hotplug_slot_info)); in update_latch_status()
77 return pci_hp_change_slot_info(hotplug_slot, &info); in update_latch_status()
[all …]
Drpaphp_slot.c24 kfree(slot->hotplug_slot->info); in dealloc_slot_struct()
26 kfree(slot->hotplug_slot); in dealloc_slot_struct()
38 slot->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in alloc_slot_struct()
39 if (!slot->hotplug_slot) in alloc_slot_struct()
41 slot->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in alloc_slot_struct()
43 if (!slot->hotplug_slot->info) in alloc_slot_struct()
51 slot->hotplug_slot->private = slot; in alloc_slot_struct()
52 slot->hotplug_slot->ops = &rpaphp_hotplug_slot_ops; in alloc_slot_struct()
57 kfree(slot->hotplug_slot->info); in alloc_slot_struct()
59 kfree(slot->hotplug_slot); in alloc_slot_struct()
[all …]
Drpaphp_core.c52 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
55 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status()
69 hotplug_slot->info->attention_status = value; 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 = (struct slot *)hotplug_slot->private; 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 = (struct slot *)hotplug_slot->private; in get_attention_status()
98 *value = slot->hotplug_slot->info->attention_status; 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 = (struct slot *)hotplug_slot->private; in get_adapter_status()
[all …]
Dcpqphp_core.c278 pci_hp_deregister(old_slot->hotplug_slot); in ctrl_slot_cleanup()
279 kfree(old_slot->hotplug_slot->info); in ctrl_slot_cleanup()
280 kfree(old_slot->hotplug_slot); in ctrl_slot_cleanup()
419 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
422 struct slot *slot = hotplug_slot->private; in set_attention_status()
446 static int process_SI(struct hotplug_slot *hotplug_slot) in process_SI() argument
449 struct slot *slot = hotplug_slot->private; in process_SI()
478 static int process_SS(struct hotplug_slot *hotplug_slot) in process_SS() argument
481 struct slot *slot = hotplug_slot->private; in process_SS()
506 static int hardware_test(struct hotplug_slot *hotplug_slot, u32 value) in hardware_test() argument
[all …]
Dpci_hotplug_core.c50 static int get_##name(struct hotplug_slot *slot, type *value) \
84 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file()
207 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file()
237 struct hotplug_slot *slot = pci_slot->hotplug; in has_power_file()
250 struct hotplug_slot *slot = pci_slot->hotplug; in has_attention_file()
262 struct hotplug_slot *slot = pci_slot->hotplug; in has_latch_file()
273 struct hotplug_slot *slot = pci_slot->hotplug; in has_adapter_file()
284 struct hotplug_slot *slot = pci_slot->hotplug; in has_test_file()
379 static struct hotplug_slot *get_slot_from_name(const char *name) in get_slot_from_name()
381 struct hotplug_slot *slot; in get_slot_from_name()
[all …]
Dibmphp_core.c221 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
228 (ulong) hotplug_slot, value); in set_attention_status()
232 if (hotplug_slot) { in set_attention_status()
250 pslot = hotplug_slot->private; in set_attention_status()
265 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
272 (ulong) hotplug_slot, (ulong) value); in get_attention_status()
275 if (hotplug_slot) { in get_attention_status()
276 pslot = hotplug_slot->private; in get_attention_status()
296 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
303 (ulong) hotplug_slot, (ulong) value); in get_latch_status()
[all …]
Dsgi_hotplug.c59 struct hotplug_slot *hotplug_slot; member
79 static int enable_slot(struct hotplug_slot *slot);
80 static int disable_slot(struct hotplug_slot *slot);
81 static inline int get_power_status(struct hotplug_slot *slot, u8 *value);
159 static int sn_hp_slot_private_alloc(struct hotplug_slot *bss_hotplug_slot, in sn_hp_slot_private_alloc()
182 slot->hotplug_slot = bss_hotplug_slot; in sn_hp_slot_private_alloc()
188 static struct hotplug_slot *sn_hp_destroy(void) in sn_hp_destroy()
192 struct hotplug_slot *bss_hotplug_slot = NULL; in sn_hp_destroy()
195 bss_hotplug_slot = slot->hotplug_slot; in sn_hp_destroy()
227 static int sn_slot_enable(struct hotplug_slot *bss_hotplug_slot, in sn_slot_enable()
[all …]
Dacpiphp.h36 struct hotplug_slot *hotplug_slot; member
44 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
149 int (*set_attn)(struct hotplug_slot *slot, u8 status);
150 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
Dpciehp.h75 struct hotplug_slot *hotplug_slot; member
207 int pciehp_set_raw_indicator_status(struct hotplug_slot *h_slot, u8 status);
208 int pciehp_get_raw_indicator_status(struct hotplug_slot *h_slot, u8 *status);
212 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Dcpci_hotplug.h36 struct hotplug_slot *hotplug_slot; member
61 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
Dshpchp.h74 struct hotplug_slot *hotplug_slot; member
172 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
208 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() argument
210 return hotplug_slot->private; in get_slot()
Drpaphp.h70 struct hotplug_slot *hotplug_slot; member
Dibmphp_ebda.c664 static int fillslotinfo(struct hotplug_slot *hotplug_slot) in fillslotinfo() argument
669 if (!hotplug_slot || !hotplug_slot->private) in fillslotinfo()
672 slot = hotplug_slot->private; in fillslotinfo()
678 hotplug_slot->info->power_status = SLOT_POWER(slot->status); in fillslotinfo()
681 hotplug_slot->info->attention_status = SLOT_ATTN(slot->status, slot->ext_status); in fillslotinfo()
684 hotplug_slot->info->latch_status = SLOT_LATCH(slot->status); in fillslotinfo()
688 hotplug_slot->info->adapter_status = 1; in fillslotinfo()
690 hotplug_slot->info->adapter_status = 0; in fillslotinfo()
715 struct hotplug_slot *hp_slot_ptr; in ebda_rsrc_controller()
922 tmp_slot->hotplug_slot = hp_slot_ptr; in ebda_rsrc_controller()
[all …]
Dacpiphp_ibm.c82 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()
Dpnv_php.c331 int pnv_php_set_slot_power_state(struct hotplug_slot *slot, in pnv_php_set_slot_power_state()
364 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_power_state()
387 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_adapter_state()
409 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state) in pnv_php_set_attention_state()
419 struct hotplug_slot *slot = &php_slot->slot; in pnv_php_enable()
502 static int pnv_php_enable_slot(struct hotplug_slot *slot) in pnv_php_enable_slot()
510 static int pnv_php_disable_slot(struct hotplug_slot *slot) in pnv_php_disable_slot()
Dpciehp_hpc.c318 int pciehp_get_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_get_raw_indicator_status() argument
321 struct slot *slot = hotplug_slot->private; in pciehp_get_raw_indicator_status()
410 int pciehp_set_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_set_raw_indicator_status() argument
413 struct slot *slot = hotplug_slot->private; in pciehp_set_raw_indicator_status()
Dcpci_hotplug_pci.c198 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_on()
227 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_off()
/Linux-v4.19/include/linux/
Dpci_hotplug.h51 int (*enable_slot) (struct hotplug_slot *slot);
52 int (*disable_slot) (struct hotplug_slot *slot);
53 int (*set_attention_status) (struct hotplug_slot *slot, u8 value);
54 int (*hardware_test) (struct hotplug_slot *slot, u32 value);
55 int (*get_power_status) (struct hotplug_slot *slot, u8 *value);
56 int (*get_attention_status) (struct hotplug_slot *slot, u8 *value);
57 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value);
58 int (*get_adapter_status) (struct hotplug_slot *slot, u8 *value);
59 int (*reset_slot) (struct hotplug_slot *slot, int probe);
86 struct hotplug_slot { struct
[all …]
/Linux-v4.19/drivers/platform/x86/
Deeepc-laptop.c180 struct hotplug_slot *hotplug_slot; member
585 if (!eeepc->hotplug_slot) in eeepc_rfkill_hotplug()
715 static int eeepc_get_adapter_status(struct hotplug_slot *hotplug_slot, in eeepc_get_adapter_status() argument
718 struct eeepc_laptop *eeepc = hotplug_slot->private; in eeepc_get_adapter_status()
745 eeepc->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in eeepc_setup_pci_hotplug()
746 if (!eeepc->hotplug_slot) in eeepc_setup_pci_hotplug()
749 eeepc->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in eeepc_setup_pci_hotplug()
751 if (!eeepc->hotplug_slot->info) in eeepc_setup_pci_hotplug()
754 eeepc->hotplug_slot->private = eeepc; in eeepc_setup_pci_hotplug()
755 eeepc->hotplug_slot->ops = &eeepc_hotplug_slot_ops; in eeepc_setup_pci_hotplug()
[all …]
Dasus-wmi.c257 struct hotplug_slot *hotplug_slot; member
756 if (asus->hotplug_slot) { in asus_rfkill_hotplug()
858 static int asus_get_adapter_status(struct hotplug_slot *hotplug_slot, in asus_get_adapter_status() argument
861 struct asus_wmi *asus = hotplug_slot->private; in asus_get_adapter_status()
902 asus->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in asus_setup_pci_hotplug()
903 if (!asus->hotplug_slot) in asus_setup_pci_hotplug()
906 asus->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in asus_setup_pci_hotplug()
908 if (!asus->hotplug_slot->info) in asus_setup_pci_hotplug()
911 asus->hotplug_slot->private = asus; in asus_setup_pci_hotplug()
912 asus->hotplug_slot->ops = &asus_hotplug_slot_ops; in asus_setup_pci_hotplug()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dpnv-pci.h56 struct hotplug_slot slot;
83 extern int pnv_php_set_slot_power_state(struct hotplug_slot *slot,

12