Lines Matching refs:cdnsp
57 struct cdns *cdnsp; in cdnsp_pci_probe() local
86 cdnsp = pci_get_drvdata(func); in cdnsp_pci_probe()
88 cdnsp = kzalloc(sizeof(*cdnsp), GFP_KERNEL); in cdnsp_pci_probe()
89 if (!cdnsp) { in cdnsp_pci_probe()
110 cdnsp->dev_regs = devm_ioremap(dev, rsrc_start, rsrc_len); in cdnsp_pci_probe()
111 if (!cdnsp->dev_regs) { in cdnsp_pci_probe()
117 cdnsp->dev_irq = pdev->irq; in cdnsp_pci_probe()
121 res = &cdnsp->xhci_res[0]; in cdnsp_pci_probe()
130 res = &cdnsp->xhci_res[1]; in cdnsp_pci_probe()
135 res = &cdnsp->otg_res; in cdnsp_pci_probe()
144 cdnsp->otg_irq = pdev->irq; in cdnsp_pci_probe()
148 cdnsp->dev = dev; in cdnsp_pci_probe()
149 cdnsp->gadget_init = cdnsp_gadget_init; in cdnsp_pci_probe()
151 ret = cdns_init(cdnsp); in cdnsp_pci_probe()
156 pci_set_drvdata(pdev, cdnsp); in cdnsp_pci_probe()
166 kfree(cdnsp); in cdnsp_pci_probe()
179 struct cdns *cdnsp; in cdnsp_pci_remove() local
183 cdnsp = (struct cdns *)pci_get_drvdata(pdev); in cdnsp_pci_remove()
189 cdns_remove(cdnsp); in cdnsp_pci_remove()
191 kfree(cdnsp); in cdnsp_pci_remove()