Lines Matching refs:slot

33 u8 cpci_get_attention_status(struct slot *slot)  in cpci_get_attention_status()  argument
38 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status()
39 slot->devfn, in cpci_get_attention_status()
44 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status()
45 slot->devfn, in cpci_get_attention_status()
53 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument
58 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status()
59 slot->devfn, in cpci_set_attention_status()
63 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status()
64 slot->devfn, in cpci_set_attention_status()
72 if (pci_bus_write_config_word(slot->bus, in cpci_set_attention_status()
73 slot->devfn, in cpci_set_attention_status()
80 u16 cpci_get_hs_csr(struct slot *slot) in cpci_get_hs_csr() argument
85 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_hs_csr()
86 slot->devfn, in cpci_get_hs_csr()
90 if (pci_bus_read_config_word(slot->bus, in cpci_get_hs_csr()
91 slot->devfn, in cpci_get_hs_csr()
98 int cpci_check_and_clear_ins(struct slot *slot) in cpci_check_and_clear_ins() argument
104 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_and_clear_ins()
105 slot->devfn, in cpci_check_and_clear_ins()
109 if (pci_bus_read_config_word(slot->bus, in cpci_check_and_clear_ins()
110 slot->devfn, in cpci_check_and_clear_ins()
116 if (pci_bus_write_config_word(slot->bus, in cpci_check_and_clear_ins()
117 slot->devfn, in cpci_check_and_clear_ins()
127 int cpci_check_ext(struct slot *slot) in cpci_check_ext() argument
133 hs_cap = pci_bus_find_capability(slot->bus, in cpci_check_ext()
134 slot->devfn, in cpci_check_ext()
138 if (pci_bus_read_config_word(slot->bus, in cpci_check_ext()
139 slot->devfn, in cpci_check_ext()
148 int cpci_clear_ext(struct slot *slot) in cpci_clear_ext() argument
153 hs_cap = pci_bus_find_capability(slot->bus, in cpci_clear_ext()
154 slot->devfn, in cpci_clear_ext()
158 if (pci_bus_read_config_word(slot->bus, in cpci_clear_ext()
159 slot->devfn, in cpci_clear_ext()
165 if (pci_bus_write_config_word(slot->bus, in cpci_clear_ext()
166 slot->devfn, in cpci_clear_ext()
174 int cpci_led_on(struct slot *slot) in cpci_led_on() argument
179 hs_cap = pci_bus_find_capability(slot->bus, in cpci_led_on()
180 slot->devfn, in cpci_led_on()
184 if (pci_bus_read_config_word(slot->bus, in cpci_led_on()
185 slot->devfn, in cpci_led_on()
191 if (pci_bus_write_config_word(slot->bus, in cpci_led_on()
192 slot->devfn, in cpci_led_on()
195 err("Could not set LOO for slot %s", slot_name(slot)); in cpci_led_on()
202 int cpci_led_off(struct slot *slot) in cpci_led_off() argument
207 hs_cap = pci_bus_find_capability(slot->bus, in cpci_led_off()
208 slot->devfn, in cpci_led_off()
212 if (pci_bus_read_config_word(slot->bus, in cpci_led_off()
213 slot->devfn, in cpci_led_off()
219 if (pci_bus_write_config_word(slot->bus, in cpci_led_off()
220 slot->devfn, in cpci_led_off()
223 err("Could not clear LOO for slot %s", slot_name(slot)); in cpci_led_off()
235 int cpci_configure_slot(struct slot *slot) in cpci_configure_slot() argument
245 if (slot->dev == NULL) { in cpci_configure_slot()
247 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); in cpci_configure_slot()
248 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot()
252 if (slot->dev == NULL) { in cpci_configure_slot()
260 n = pci_scan_slot(slot->bus, slot->devfn); in cpci_configure_slot()
262 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot()
263 if (slot->dev == NULL) { in cpci_configure_slot()
264 err("Could not find PCI device for slot %02x", slot->number); in cpci_configure_slot()
269 parent = slot->dev->bus; in cpci_configure_slot()
272 if (PCI_SLOT(dev->devfn) == PCI_SLOT(slot->devfn)) in cpci_configure_slot()
286 int cpci_unconfigure_slot(struct slot *slot) in cpci_unconfigure_slot() argument
291 if (!slot->dev) { in cpci_unconfigure_slot()
292 err("No device for slot %02x\n", slot->number); in cpci_unconfigure_slot()
298 list_for_each_entry_safe(dev, temp, &slot->bus->devices, bus_list) { in cpci_unconfigure_slot()
299 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_unconfigure_slot()
305 pci_dev_put(slot->dev); in cpci_unconfigure_slot()
306 slot->dev = NULL; in cpci_unconfigure_slot()