Lines Matching refs:slot
49 u8 cpci_get_attention_status(struct slot *slot) in cpci_get_attention_status() argument
54 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status()
55 slot->devfn, in cpci_get_attention_status()
60 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status()
61 slot->devfn, in cpci_get_attention_status()
69 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument
74 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status()
75 slot->devfn, in cpci_set_attention_status()
79 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status()
80 slot->devfn, in cpci_set_attention_status()
88 if (pci_bus_write_config_word(slot->bus, in cpci_set_attention_status()
89 slot->devfn, in cpci_set_attention_status()
96 u16 cpci_get_hs_csr(struct slot *slot) in cpci_get_hs_csr() argument
101 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_hs_csr()
102 slot->devfn, in cpci_get_hs_csr()
106 if (pci_bus_read_config_word(slot->bus, in cpci_get_hs_csr()
107 slot->devfn, in cpci_get_hs_csr()
114 int cpci_check_and_clear_ins(struct slot *slot) in cpci_check_and_clear_ins() argument
120 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_and_clear_ins()
121 slot->devfn, in cpci_check_and_clear_ins()
125 if (pci_bus_read_config_word(slot->bus, in cpci_check_and_clear_ins()
126 slot->devfn, in cpci_check_and_clear_ins()
132 if (pci_bus_write_config_word(slot->bus, in cpci_check_and_clear_ins()
133 slot->devfn, in cpci_check_and_clear_ins()
143 int cpci_check_ext(struct slot *slot) in cpci_check_ext() argument
149 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_ext()
150 slot->devfn, in cpci_check_ext()
154 if (pci_bus_read_config_word(slot->bus, in cpci_check_ext()
155 slot->devfn, in cpci_check_ext()
164 int cpci_clear_ext(struct slot *slot) in cpci_clear_ext() argument
169 hs_cap = pci_bus_find_capability(slot->bus, in cpci_clear_ext()
170 slot->devfn, in cpci_clear_ext()
174 if (pci_bus_read_config_word(slot->bus, in cpci_clear_ext()
175 slot->devfn, in cpci_clear_ext()
181 if (pci_bus_write_config_word(slot->bus, in cpci_clear_ext()
182 slot->devfn, in cpci_clear_ext()
190 int cpci_led_on(struct slot *slot) in cpci_led_on() argument
195 hs_cap = pci_bus_find_capability(slot->bus, in cpci_led_on()
196 slot->devfn, in cpci_led_on()
200 if (pci_bus_read_config_word(slot->bus, in cpci_led_on()
201 slot->devfn, in cpci_led_on()
207 if (pci_bus_write_config_word(slot->bus, in cpci_led_on()
208 slot->devfn, in cpci_led_on()
212 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_on()
219 int cpci_led_off(struct slot *slot) in cpci_led_off() argument
224 hs_cap = pci_bus_find_capability(slot->bus, in cpci_led_off()
225 slot->devfn, in cpci_led_off()
229 if (pci_bus_read_config_word(slot->bus, in cpci_led_off()
230 slot->devfn, in cpci_led_off()
236 if (pci_bus_write_config_word(slot->bus, in cpci_led_off()
237 slot->devfn, in cpci_led_off()
241 hotplug_slot_name(slot->hotplug_slot)); in cpci_led_off()
253 int cpci_configure_slot(struct slot *slot) in cpci_configure_slot() argument
263 if (slot->dev == NULL) { in cpci_configure_slot()
265 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); in cpci_configure_slot()
266 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot()
270 if (slot->dev == NULL) { in cpci_configure_slot()
278 n = pci_scan_slot(slot->bus, slot->devfn); in cpci_configure_slot()
280 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot()
281 if (slot->dev == NULL) { in cpci_configure_slot()
282 err("Could not find PCI device for slot %02x", slot->number); in cpci_configure_slot()
287 parent = slot->dev->bus; in cpci_configure_slot()
290 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_configure_slot()
307 int cpci_unconfigure_slot(struct slot *slot) in cpci_unconfigure_slot() argument
312 if (!slot->dev) { in cpci_unconfigure_slot()
313 err("No device for slot %02x\n", slot->number); in cpci_unconfigure_slot()
319 list_for_each_entry_safe(dev, temp, &slot->bus->devices, bus_list) { in cpci_unconfigure_slot()
320 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_unconfigure_slot()
326 pci_dev_put(slot->dev); in cpci_unconfigure_slot()
327 slot->dev = NULL; in cpci_unconfigure_slot()