Lines Matching refs:slot

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