Lines Matching refs:priv_dev
28 struct cdns2_device *priv_dev; in cdns2_pci_probe() local
45 priv_dev = devm_kzalloc(&pdev->dev, sizeof(*priv_dev), GFP_KERNEL); in cdns2_pci_probe()
46 if (!priv_dev) in cdns2_pci_probe()
59 priv_dev->regs = devm_ioremap(dev, rsrc_start, rsrc_len); in cdns2_pci_probe()
60 if (!priv_dev->regs) { in cdns2_pci_probe()
65 priv_dev->irq = pdev->irq; in cdns2_pci_probe()
69 priv_dev->dev = dev; in cdns2_pci_probe()
71 priv_dev->eps_supported = 0x000f000f; in cdns2_pci_probe()
72 priv_dev->onchip_tx_buf = 16; in cdns2_pci_probe()
73 priv_dev->onchip_rx_buf = 16; in cdns2_pci_probe()
75 ret = cdns2_gadget_init(priv_dev); in cdns2_pci_probe()
79 pci_set_drvdata(pdev, priv_dev); in cdns2_pci_probe()
90 struct cdns2_device *priv_dev = pci_get_drvdata(pdev); in cdns2_pci_remove() local
95 cdns2_gadget_remove(priv_dev); in cdns2_pci_remove()
100 struct cdns2_device *priv_dev = dev_get_drvdata(dev); in cdns2_pci_suspend() local
102 return cdns2_gadget_suspend(priv_dev); in cdns2_pci_suspend()
107 struct cdns2_device *priv_dev = dev_get_drvdata(dev); in cdns2_pci_resume() local
109 return cdns2_gadget_resume(priv_dev, 1); in cdns2_pci_resume()