Lines Matching refs:devbusfn
198 pci_dev_t devbusfn; in dc21x4x_initialize() local
204 devbusfn = pci_find_devices(supported, idx++); in dc21x4x_initialize()
205 if (devbusfn == -1) { in dc21x4x_initialize()
210 pci_read_config_dword(devbusfn, PCI_REVISION_ID, &cfrv); in dc21x4x_initialize()
219 pci_read_config_word(devbusfn, PCI_COMMAND, &status); in dc21x4x_initialize()
227 pci_write_config_word(devbusfn, PCI_COMMAND, status); in dc21x4x_initialize()
229 pci_read_config_word(devbusfn, PCI_COMMAND, &status); in dc21x4x_initialize()
248 pci_read_config_byte(devbusfn, PCI_LATENCY_TIMER, &timer); in dc21x4x_initialize()
251 pci_write_config_byte(devbusfn, PCI_LATENCY_TIMER, 0x60); in dc21x4x_initialize()
256 pci_read_config_dword(devbusfn, PCI_BASE_ADDRESS_0, &iobase); in dc21x4x_initialize()
260 pci_read_config_dword(devbusfn, PCI_BASE_ADDRESS_1, &iobase); in dc21x4x_initialize()
280 dev->iobase = pci_io_to_phys(devbusfn, iobase); in dc21x4x_initialize()
282 dev->iobase = pci_mem_to_phys(devbusfn, iobase); in dc21x4x_initialize()
284 dev->priv = (void*) devbusfn; in dc21x4x_initialize()
291 pci_write_config_byte(devbusfn, PCI_CFDA_PSM, WAKEUP); in dc21x4x_initialize()
309 int devbusfn = (int) dev->priv; in dc21x4x_init() local
312 pci_write_config_byte(devbusfn, PCI_CFDA_PSM, WAKEUP); in dc21x4x_init()
471 int devbusfn = (int) dev->priv; in dc21x4x_halt() local
476 pci_write_config_byte(devbusfn, PCI_CFDA_PSM, SLEEP); in dc21x4x_halt()