Home
last modified time | relevance | path

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

12

/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 = to_slot(hotplug_slot); 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
79 hotplug_slot = &slot->hotplug_slot; in init_slots()
99 hotplug_slot->ops = &shpchp_hotplug_slot_ops; in init_slots()
[all …]
Ds390_pci_hpc.c23 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
25 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in enable_slot()
26 hotplug_slot); in enable_slot()
41 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
43 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in disable_slot()
44 hotplug_slot); in disable_slot()
60 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
62 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in get_power_status()
63 hotplug_slot); in get_power_status()
69 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
[all …]
Dpciehp_core.c45 static int set_attention_status(struct hotplug_slot *slot, u8 value);
46 static int get_power_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);
77 ctrl->hotplug_slot.ops = ops; in init_slot()
80 retval = pci_hp_initialize(&ctrl->hotplug_slot, in init_slot()
91 struct hotplug_slot *hotplug_slot = &ctrl->hotplug_slot; in cleanup_slot() local
93 pci_hp_destroy(hotplug_slot); in cleanup_slot()
94 kfree(hotplug_slot->ops); in cleanup_slot()
100 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
[all …]
Dpciehp.h109 struct hotplug_slot hotplug_slot; /* hotplug core interface */ member
188 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot);
189 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot);
190 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe);
191 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status);
192 int pciehp_set_raw_indicator_status(struct hotplug_slot *h_slot, u8 status);
193 int pciehp_get_raw_indicator_status(struct hotplug_slot *h_slot, u8 *status);
199 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name()
202 static inline struct controller *to_ctrl(struct hotplug_slot *hotplug_slot) in to_ctrl() argument
204 return container_of(hotplug_slot, struct controller, hotplug_slot); in to_ctrl()
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 enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
73 struct slot *slot = to_slot(hotplug_slot); in enable_slot()
84 disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
[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 = to_slot(hotplug_slot); 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 = to_slot(hotplug_slot); 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 = to_slot(hotplug_slot); 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 = to_slot(hotplug_slot); in get_adapter_status()
460 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots()
482 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
[all …]
Dacpiphp.h36 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);
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 = to_slot(hotplug_slot); in set_attention_status()
262 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
269 (ulong) hotplug_slot, (ulong) value); in get_attention_status()
272 if (hotplug_slot) { in get_attention_status()
273 pslot = to_slot(hotplug_slot); in get_attention_status()
289 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
296 (ulong) hotplug_slot, (ulong) value); in get_latch_status()
[all …]
Dpci_hotplug_core.c50 static int get_##name(struct hotplug_slot *slot, type *value) \
82 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file()
139 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file()
206 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file()
236 struct hotplug_slot *slot = pci_slot->hotplug; in has_power_file()
249 struct hotplug_slot *slot = pci_slot->hotplug; in has_attention_file()
261 struct hotplug_slot *slot = pci_slot->hotplug; in has_latch_file()
272 struct hotplug_slot *slot = pci_slot->hotplug; in has_adapter_file()
283 struct hotplug_slot *slot = pci_slot->hotplug; in has_test_file()
378 static struct hotplug_slot *get_slot_from_name(const char *name) in get_slot_from_name()
[all …]
Dcpci_hotplug.h38 struct hotplug_slot hotplug_slot; member
63 return hotplug_slot_name(&slot->hotplug_slot); in slot_name()
66 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument
68 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
Drpaphp.h71 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()
Dcpqphp_core.c275 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 …]
Drpaphp_slot.c43 slot->hotplug_slot.ops = &rpaphp_hotplug_slot_ops; in alloc_slot_struct()
67 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_deregister_slot()
83 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_register_slot()
Dshpchp.h76 struct hotplug_slot hotplug_slot; member
174 return hotplug_slot_name(&slot->hotplug_slot); in slot_name()
210 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() argument
212 return container_of(hotplug_slot, struct slot, hotplug_slot); in get_slot()
Dpciehp_ctrl.c368 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot) in pciehp_sysfs_enable_slot() argument
370 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_sysfs_enable_slot()
407 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot) in pciehp_sysfs_disable_slot() argument
409 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_sysfs_disable_slot()
Dpciehp_hpc.c348 int pciehp_get_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_get_raw_indicator_status() argument
351 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_raw_indicator_status()
362 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status) in pciehp_get_attention_status() argument
364 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_attention_status()
480 int pciehp_set_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_set_raw_indicator_status() argument
483 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_set_raw_indicator_status()
896 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe) in pciehp_reset_slot() argument
898 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_reset_slot()
Dibmphp.h700 struct hotplug_slot hotplug_slot; member
744 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument
746 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
Dpnv_php.c327 static inline struct pnv_php_slot *to_pnv_php_slot(struct hotplug_slot *slot) in to_pnv_php_slot()
332 int pnv_php_set_slot_power_state(struct hotplug_slot *slot, in pnv_php_set_slot_power_state()
371 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_power_state()
393 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_adapter_state()
414 static int pnv_php_get_attention_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_attention_state()
422 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state) in pnv_php_set_attention_state()
446 struct hotplug_slot *slot = &php_slot->slot; in pnv_php_enable()
529 static int pnv_php_reset_slot(struct hotplug_slot *slot, bool probe) in pnv_php_reset_slot()
560 static int pnv_php_enable_slot(struct hotplug_slot *slot) in pnv_php_enable_slot()
567 static int pnv_php_disable_slot(struct hotplug_slot *slot) in pnv_php_disable_slot()
Dcpqphp.h263 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()
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()
DTODO25 struct hotplug_slot, this seems superfluous.
27 * Several functions access the pci_slot member in struct hotplug_slot even
53 * Several functions access the pci_slot member in struct hotplug_slot even
Dibmphp_ebda.c664 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()
/drivers/platform/x86/
Deeepc-laptop.c171 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()
Dasus-wmi.c237 struct hotplug_slot hotplug_slot; member
1048 if (asus->hotplug_slot.ops) { in asus_rfkill_hotplug()
1146 static int asus_get_adapter_status(struct hotplug_slot *hotplug_slot, in asus_get_adapter_status() argument
1149 struct asus_wmi *asus = container_of(hotplug_slot, in asus_get_adapter_status()
1150 struct asus_wmi, hotplug_slot); in asus_get_adapter_status()
1190 asus->hotplug_slot.ops = &asus_hotplug_slot_ops; in asus_setup_pci_hotplug()
1192 ret = pci_hp_register(&asus->hotplug_slot, bus, 0, "asus-wifi"); in asus_setup_pci_hotplug()
1201 asus->hotplug_slot.ops = NULL; in asus_setup_pci_hotplug()
1329 if (asus->hotplug_slot.ops) in asus_wmi_rfkill_exit()
1330 pci_hp_deregister(&asus->hotplug_slot); in asus_wmi_rfkill_exit()

12