Lines Matching full:slot
35 u8 cpci_get_attention_status(struct slot *slot) in cpci_get_attention_status() argument
40 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status()
41 slot->devfn, in cpci_get_attention_status()
46 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status()
47 slot->devfn, in cpci_get_attention_status()
55 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument
60 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status()
61 slot->devfn, in cpci_set_attention_status()
65 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status()
66 slot->devfn, in cpci_set_attention_status()
74 if (pci_bus_write_config_word(slot->bus, in cpci_set_attention_status()
75 slot->devfn, in cpci_set_attention_status()
82 u16 cpci_get_hs_csr(struct slot *slot) in cpci_get_hs_csr() argument
87 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_hs_csr()
88 slot->devfn, in cpci_get_hs_csr()
92 if (pci_bus_read_config_word(slot->bus, in cpci_get_hs_csr()
93 slot->devfn, in cpci_get_hs_csr()
100 int cpci_check_and_clear_ins(struct slot *slot) in cpci_check_and_clear_ins() argument
106 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_and_clear_ins()
107 slot->devfn, in cpci_check_and_clear_ins()
111 if (pci_bus_read_config_word(slot->bus, in cpci_check_and_clear_ins()
112 slot->devfn, in cpci_check_and_clear_ins()
118 if (pci_bus_write_config_word(slot->bus, in cpci_check_and_clear_ins()
119 slot->devfn, in cpci_check_and_clear_ins()
129 int cpci_check_ext(struct slot *slot) in cpci_check_ext() argument
135 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_ext()
136 slot->devfn, in cpci_check_ext()
140 if (pci_bus_read_config_word(slot->bus, in cpci_check_ext()
141 slot->devfn, in cpci_check_ext()
150 int cpci_clear_ext(struct slot *slot) in cpci_clear_ext() argument
155 hs_cap = pci_bus_find_capability(slot->bus, in cpci_clear_ext()
156 slot->devfn, in cpci_clear_ext()
160 if (pci_bus_read_config_word(slot->bus, in cpci_clear_ext()
161 slot->devfn, in cpci_clear_ext()
167 if (pci_bus_write_config_word(slot->bus, in cpci_clear_ext()
168 slot->devfn, in cpci_clear_ext()
176 int cpci_led_on(struct slot *slot) in cpci_led_on() argument
181 hs_cap = pci_bus_find_capability(slot->bus, in cpci_led_on()
182 slot->devfn, in cpci_led_on()
186 if (pci_bus_read_config_word(slot->bus, in cpci_led_on()
187 slot->devfn, in cpci_led_on()
193 if (pci_bus_write_config_word(slot->bus, in cpci_led_on()
194 slot->devfn, in cpci_led_on()
197 err("Could not set LOO for slot %s", slot_name(slot)); in cpci_led_on()
204 int cpci_led_off(struct slot *slot) in cpci_led_off() argument
209 hs_cap = pci_bus_find_capability(slot->bus, in cpci_led_off()
210 slot->devfn, in cpci_led_off()
214 if (pci_bus_read_config_word(slot->bus, in cpci_led_off()
215 slot->devfn, in cpci_led_off()
221 if (pci_bus_write_config_word(slot->bus, in cpci_led_off()
222 slot->devfn, in cpci_led_off()
225 err("Could not clear LOO for slot %s", slot_name(slot)); in cpci_led_off()
237 int cpci_configure_slot(struct slot *slot) in cpci_configure_slot() argument
247 if (slot->dev == NULL) { in cpci_configure_slot()
249 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); in cpci_configure_slot()
250 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot()
254 if (slot->dev == NULL) { in cpci_configure_slot()
262 n = pci_scan_slot(slot->bus, slot->devfn); in cpci_configure_slot()
264 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot()
265 if (slot->dev == NULL) { in cpci_configure_slot()
266 err("Could not find PCI device for slot %02x", slot->number); in cpci_configure_slot()
271 parent = slot->dev->bus; in cpci_configure_slot()
274 if (PCI_SLOT(dev->devfn) == PCI_SLOT(slot->devfn)) in cpci_configure_slot()
288 int cpci_unconfigure_slot(struct slot *slot) in cpci_unconfigure_slot() argument
293 if (!slot->dev) { in cpci_unconfigure_slot()
294 err("No device for slot %02x\n", slot->number); in cpci_unconfigure_slot()
300 list_for_each_entry_safe(dev, temp, &slot->bus->devices, bus_list) { in cpci_unconfigure_slot()
301 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_unconfigure_slot()
307 pci_dev_put(slot->dev); in cpci_unconfigure_slot()
308 slot->dev = NULL; in cpci_unconfigure_slot()