Lines Matching refs:srv
203 static void pcie_bwnotif_enable(struct pcie_device *srv) in pcie_bwnotif_enable() argument
205 struct pcie_bwctrl_data *data = srv->port->link_bwctrl; in pcie_bwnotif_enable()
206 struct pci_dev *port = srv->port; in pcie_bwnotif_enable()
235 struct pcie_device *srv = context; in pcie_bwnotif_irq() local
236 struct pcie_bwctrl_data *data = srv->port->link_bwctrl; in pcie_bwnotif_irq()
237 struct pci_dev *port = srv->port; in pcie_bwnotif_irq()
292 static int pcie_bwnotif_probe(struct pcie_device *srv) in pcie_bwnotif_probe() argument
294 struct pci_dev *port = srv->port; in pcie_bwnotif_probe()
301 struct pcie_bwctrl_data *data = devm_kzalloc(&srv->device, in pcie_bwnotif_probe()
306 ret = devm_mutex_init(&srv->device, &data->set_speed_mutex); in pcie_bwnotif_probe()
314 ret = request_irq(srv->irq, pcie_bwnotif_irq, in pcie_bwnotif_probe()
315 IRQF_SHARED, "PCIe bwctrl", srv); in pcie_bwnotif_probe()
321 pcie_bwnotif_enable(srv); in pcie_bwnotif_probe()
325 pci_dbg(port, "enabled with IRQ %d\n", srv->irq); in pcie_bwnotif_probe()
335 static void pcie_bwnotif_remove(struct pcie_device *srv) in pcie_bwnotif_remove() argument
337 struct pcie_bwctrl_data *data = srv->port->link_bwctrl; in pcie_bwnotif_remove()
343 pcie_bwnotif_disable(srv->port); in pcie_bwnotif_remove()
345 free_irq(srv->irq, srv); in pcie_bwnotif_remove()
347 srv->port->link_bwctrl = NULL; in pcie_bwnotif_remove()
352 static int pcie_bwnotif_suspend(struct pcie_device *srv) in pcie_bwnotif_suspend() argument
354 pcie_bwnotif_disable(srv->port); in pcie_bwnotif_suspend()
358 static int pcie_bwnotif_resume(struct pcie_device *srv) in pcie_bwnotif_resume() argument
360 pcie_bwnotif_enable(srv); in pcie_bwnotif_resume()