Lines Matching refs:srv

182 static void pcie_bwnotif_enable(struct pcie_device *srv)  in pcie_bwnotif_enable()  argument
184 struct pci_dev *port = srv->port; in pcie_bwnotif_enable()
213 struct pcie_device *srv = context; in pcie_bwnotif_irq() local
214 struct pci_dev *port = srv->port; in pcie_bwnotif_irq()
248 static int pcie_bwnotif_probe(struct pcie_device *srv) in pcie_bwnotif_probe() argument
250 struct pci_dev *port = srv->port; in pcie_bwnotif_probe()
257 struct pcie_bwctrl_data *data = devm_kzalloc(&srv->device, in pcie_bwnotif_probe()
262 ret = devm_mutex_init(&srv->device, &data->set_speed_mutex); in pcie_bwnotif_probe()
269 ret = request_irq(srv->irq, pcie_bwnotif_irq, in pcie_bwnotif_probe()
270 IRQF_SHARED, "PCIe bwctrl", srv); in pcie_bwnotif_probe()
276 pcie_bwnotif_enable(srv); in pcie_bwnotif_probe()
279 pci_dbg(port, "enabled with IRQ %d\n", srv->irq); in pcie_bwnotif_probe()
289 static void pcie_bwnotif_remove(struct pcie_device *srv) in pcie_bwnotif_remove() argument
291 struct pcie_bwctrl_data *data = srv->port->link_bwctrl; in pcie_bwnotif_remove()
296 pcie_bwnotif_disable(srv->port); in pcie_bwnotif_remove()
298 free_irq(srv->irq, srv); in pcie_bwnotif_remove()
300 srv->port->link_bwctrl = NULL; in pcie_bwnotif_remove()
304 static int pcie_bwnotif_suspend(struct pcie_device *srv) in pcie_bwnotif_suspend() argument
306 pcie_bwnotif_disable(srv->port); in pcie_bwnotif_suspend()
310 static int pcie_bwnotif_resume(struct pcie_device *srv) in pcie_bwnotif_resume() argument
312 pcie_bwnotif_enable(srv); in pcie_bwnotif_resume()