Lines Matching refs:srv
44 struct pcie_device *srv; member
218 struct pci_dev *port = data->srv->port; in pcie_pme_work_fn()
326 static int pcie_pme_probe(struct pcie_device *srv) in pcie_pme_probe() argument
328 struct pci_dev *port = srv->port; in pcie_pme_probe()
344 data->srv = srv; in pcie_pme_probe()
345 set_service_data(srv, data); in pcie_pme_probe()
350 ret = request_irq(srv->irq, pcie_pme_irq, IRQF_SHARED, "PCIe PME", srv); in pcie_pme_probe()
356 pci_info(port, "Signaling with IRQ %d\n", srv->irq); in pcie_pme_probe()
392 static int pcie_pme_suspend(struct pcie_device *srv) in pcie_pme_suspend() argument
394 struct pcie_pme_service_data *data = get_service_data(srv); in pcie_pme_suspend()
395 struct pci_dev *port = srv->port; in pcie_pme_suspend()
407 ret = enable_irq_wake(srv->irq); in pcie_pme_suspend()
414 synchronize_irq(srv->irq); in pcie_pme_suspend()
423 static int pcie_pme_resume(struct pcie_device *srv) in pcie_pme_resume() argument
425 struct pcie_pme_service_data *data = get_service_data(srv); in pcie_pme_resume()
429 struct pci_dev *port = srv->port; in pcie_pme_resume()
435 disable_irq_wake(srv->irq); in pcie_pme_resume()
446 static void pcie_pme_remove(struct pcie_device *srv) in pcie_pme_remove() argument
448 struct pcie_pme_service_data *data = get_service_data(srv); in pcie_pme_remove()
450 pcie_pme_disable_interrupt(srv->port, data); in pcie_pme_remove()
451 free_irq(srv->irq, srv); in pcie_pme_remove()