• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/hotplug/

Lines Matching refs:slot

51 u8 cpci_get_attention_status(struct slot* slot)
56 hs_cap = pci_bus_find_capability(slot->bus,
57 slot->devfn,
62 if (pci_bus_read_config_word(slot->bus,
63 slot->devfn,
71 int cpci_set_attention_status(struct slot* slot, int status)
76 hs_cap = pci_bus_find_capability(slot->bus,
77 slot->devfn,
81 if (pci_bus_read_config_word(slot->bus,
82 slot->devfn,
90 if (pci_bus_write_config_word(slot->bus,
91 slot->devfn,
98 u16 cpci_get_hs_csr(struct slot* slot)
103 hs_cap = pci_bus_find_capability(slot->bus,
104 slot->devfn,
108 if (pci_bus_read_config_word(slot->bus,
109 slot->devfn,
116 int cpci_check_and_clear_ins(struct slot* slot)
122 hs_cap = pci_bus_find_capability(slot->bus,
123 slot->devfn,
127 if (pci_bus_read_config_word(slot->bus,
128 slot->devfn,
134 if (pci_bus_write_config_word(slot->bus,
135 slot->devfn,
145 int cpci_check_ext(struct slot* slot)
151 hs_cap = pci_bus_find_capability(slot->bus,
152 slot->devfn,
156 if (pci_bus_read_config_word(slot->bus,
157 slot->devfn,
166 int cpci_clear_ext(struct slot* slot)
171 hs_cap = pci_bus_find_capability(slot->bus,
172 slot->devfn,
176 if (pci_bus_read_config_word(slot->bus,
177 slot->devfn,
183 if (pci_bus_write_config_word(slot->bus,
184 slot->devfn,
192 int cpci_led_on(struct slot* slot)
197 hs_cap = pci_bus_find_capability(slot->bus,
198 slot->devfn,
202 if (pci_bus_read_config_word(slot->bus,
203 slot->devfn,
209 if (pci_bus_write_config_word(slot->bus,
210 slot->devfn,
213 err("Could not set LOO for slot %s",
214 slot->hotplug_slot->name);
221 int cpci_led_off(struct slot* slot)
226 hs_cap = pci_bus_find_capability(slot->bus,
227 slot->devfn,
231 if (pci_bus_read_config_word(slot->bus,
232 slot->devfn,
238 if (pci_bus_write_config_word(slot->bus,
239 slot->devfn,
242 err("Could not clear LOO for slot %s",
243 slot->hotplug_slot->name);
255 int cpci_configure_slot(struct slot* slot)
262 if (slot->dev == NULL) {
264 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn));
265 slot->dev = pci_get_slot(slot->bus, slot->devfn);
269 if (slot->dev == NULL) {
277 n = pci_scan_slot(slot->bus, slot->devfn);
279 slot->dev = pci_get_slot(slot->bus, slot->devfn);
280 if (slot->dev == NULL) {
281 err("Could not find PCI device for slot %02x", slot->number);
285 parent = slot->dev->bus;
290 dev = pci_get_slot(parent, PCI_DEVFN(PCI_SLOT(slot->devfn), fn));
331 int cpci_unconfigure_slot(struct slot* slot)
337 if (!slot->dev) {
338 err("No device for slot %02x\n", slot->number);
343 dev = pci_get_slot(slot->bus,
344 PCI_DEVFN(PCI_SLOT(slot->devfn), i));
350 pci_dev_put(slot->dev);
351 slot->dev = NULL;