Lines Matching refs:slot

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