Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/pci/hotplug/
H A Dacpiphp_core.c117 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
119 struct slot *slot = to_slot(hotplug_slot); in enable_slot()
134 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
154 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
159 hotplug_slot_name(hotplug_slot)); in set_attention_status()
178 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
200 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
205 hotplug_slot_name(hotplug_slot)); in get_attention_status()
224 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
244 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
[all …]
H A Dshpchp_core.c63 struct hotplug_slot *hotplug_slot; in init_slots() local
75 hotplug_slot = &slot->hotplug_slot; in init_slots()
100 retval = pci_hp_register(hotplug_slot, in init_slots()
133 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots()
141 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
154 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
164 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
174 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
189 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
204 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
[all …]
H A Ds390_pci_hpc.c23 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
26 hotplug_slot); in enable_slot()
47 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
50 hotplug_slot); in disable_slot()
74 static int reset_slot(struct hotplug_slot *hotplug_slot, bool probe) in reset_slot() argument
77 hotplug_slot); in reset_slot()
103 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
106 hotplug_slot); in get_power_status()
112 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
132 zdev->hotplug_slot.ops = &s390_hotplug_slot_ops; in zpci_init_slot()
[all …]
H A Dpciehp.h113 struct hotplug_slot hotplug_slot; /* hotplug core interface */ member
192 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot);
193 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot);
194 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe);
195 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status);
196 int pciehp_set_raw_indicator_status(struct hotplug_slot *h_slot, u8 status);
197 int pciehp_get_raw_indicator_status(struct hotplug_slot *h_slot, u8 *status);
203 return hotplug_slot_name(&ctrl->hotplug_slot); in slot_name()
206 static inline struct controller *to_ctrl(struct hotplug_slot *hotplug_slot) in to_ctrl() argument
208 return container_of(hotplug_slot, struct controller, hotplug_slot); in to_ctrl()
H A Dcpci_hotplug_core.c71 enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
73 struct slot *slot = to_slot(hotplug_slot); in enable_slot()
81 disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
83 struct slot *slot = to_slot(hotplug_slot); in disable_slot()
127 get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
129 struct slot *slot = to_slot(hotplug_slot); in get_power_status()
136 get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
145 set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
151 get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
160 get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
[all …]
H A Dpciehp_core.c78 ctrl->hotplug_slot.ops = ops; in init_slot()
81 retval = pci_hp_initialize(&ctrl->hotplug_slot, in init_slot()
92 struct hotplug_slot *hotplug_slot = &ctrl->hotplug_slot; in cleanup_slot() local
94 pci_hp_destroy(hotplug_slot); in cleanup_slot()
95 kfree(hotplug_slot->ops); in cleanup_slot()
101 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
117 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
128 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
139 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
225 rc = pci_hp_add(&ctrl->hotplug_slot); in pciehp_probe()
[all …]
H A 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);
H A Drpaphp_core.c54 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
57 struct slot *slot = to_slot(hotplug_slot); in set_attention_status()
81 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
84 struct slot *slot = to_slot(hotplug_slot); in get_power_status()
97 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status()
104 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
106 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status()
462 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots()
484 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
[all …]
H A Dcpci_hotplug.h38 struct hotplug_slot hotplug_slot; member
60 return hotplug_slot_name(&slot->hotplug_slot); in slot_name()
63 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument
65 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
H A Dpci_hotplug_core.c74 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file()
125 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file()
186 struct hotplug_slot *slot = pci_slot->hotplug; in test_write_file()
208 static bool has_power_file(struct hotplug_slot *slot) in has_power_file()
225 static bool has_latch_file(struct hotplug_slot *slot) in has_latch_file()
232 static bool has_adapter_file(struct hotplug_slot *slot) in has_adapter_file()
239 static bool has_test_file(struct hotplug_slot *slot) in has_test_file()
428 int pci_hp_add(struct hotplug_slot *slot) in pci_hp_add()
454 void pci_hp_deregister(struct hotplug_slot *slot) in pci_hp_deregister()
467 void pci_hp_del(struct hotplug_slot *slot) in pci_hp_del()
[all …]
H A Dibmphp_core.c213 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value) in set_attention_status() argument
224 if (hotplug_slot) { in set_attention_status()
254 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
264 if (hotplug_slot) { in get_attention_status()
281 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
290 if (hotplug_slot) { in get_latch_status()
306 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
315 if (hotplug_slot) { in get_power_status()
330 static int get_adapter_present(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_present() argument
340 if (hotplug_slot) { in get_adapter_present()
[all …]
H A 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()
H A Dcpqphp_core.c415 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
513 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
524 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
535 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
[all …]
H A Drpaphp_slot.c44 slot->hotplug_slot.ops = &rpaphp_hotplug_slot_ops; in alloc_slot_struct()
68 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_deregister_slot()
84 struct hotplug_slot *php_slot = &slot->hotplug_slot; in rpaphp_register_slot()
H A Dshpchp.h59 struct hotplug_slot hotplug_slot; member
156 return hotplug_slot_name(&slot->hotplug_slot); in slot_name()
192 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() argument
194 return container_of(hotplug_slot, struct slot, hotplug_slot); in get_slot()
H A Dpciehp_ctrl.c374 int pciehp_sysfs_enable_slot(struct hotplug_slot *hotplug_slot) in pciehp_sysfs_enable_slot() argument
376 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_sysfs_enable_slot()
413 int pciehp_sysfs_disable_slot(struct hotplug_slot *hotplug_slot) in pciehp_sysfs_disable_slot() argument
415 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_sysfs_disable_slot()
H A Dpciehp_hpc.c350 int pciehp_get_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_get_raw_indicator_status() argument
353 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_raw_indicator_status()
364 int pciehp_get_attention_status(struct hotplug_slot *hotplug_slot, u8 *status) in pciehp_get_attention_status() argument
366 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_get_attention_status()
482 int pciehp_set_raw_indicator_status(struct hotplug_slot *hotplug_slot, in pciehp_set_raw_indicator_status() argument
485 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_set_raw_indicator_status()
901 int pciehp_reset_slot(struct hotplug_slot *hotplug_slot, bool probe) in pciehp_reset_slot() argument
903 struct controller *ctrl = to_ctrl(hotplug_slot); in pciehp_reset_slot()
H A Dpnv_php.c328 static inline struct pnv_php_slot *to_pnv_php_slot(struct hotplug_slot *slot) in to_pnv_php_slot()
333 int pnv_php_set_slot_power_state(struct hotplug_slot *slot, in pnv_php_set_slot_power_state()
372 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_power_state()
394 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_adapter_state()
415 static int pnv_php_get_attention_state(struct hotplug_slot *slot, u8 *state) in pnv_php_get_attention_state()
423 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state) in pnv_php_set_attention_state()
447 struct hotplug_slot *slot = &php_slot->slot; in pnv_php_enable()
530 static int pnv_php_reset_slot(struct hotplug_slot *slot, bool probe) in pnv_php_reset_slot()
561 static int pnv_php_enable_slot(struct hotplug_slot *slot) in pnv_php_enable_slot()
568 static int pnv_php_disable_slot(struct hotplug_slot *slot) in pnv_php_disable_slot()
H A Dibmphp.h699 struct hotplug_slot hotplug_slot; member
743 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument
745 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
H A Dacpiphp_ampere_altra.c39 static int set_attention_status(struct hotplug_slot *slot, u8 status) in set_attention_status()
75 static int get_attention_status(struct hotplug_slot *slot, u8 *status) in get_attention_status()
H A 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()
H A 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()
/linux-6.15/include/linux/
H A Dpci_hotplug.h39 int (*enable_slot) (struct hotplug_slot *slot);
40 int (*disable_slot) (struct hotplug_slot *slot);
42 int (*hardware_test) (struct hotplug_slot *slot, u32 value);
43 int (*get_power_status) (struct hotplug_slot *slot, u8 *value);
45 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value);
47 int (*reset_slot) (struct hotplug_slot *slot, bool probe);
57 struct hotplug_slot { struct
77 int pci_hp_add(struct hotplug_slot *slot);
79 void pci_hp_del(struct hotplug_slot *slot);
80 void pci_hp_destroy(struct hotplug_slot *slot);
[all …]
/linux-6.15/arch/powerpc/include/asm/
H A Dpnv-pci.h31 struct hotplug_slot slot;
58 extern int pnv_php_set_slot_power_state(struct hotplug_slot *slot,
/linux-6.15/drivers/platform/x86/
H A 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()

12