Lines Matching refs:dws
32 struct dw_spi dws; member
39 struct dw_spi *dws; in spi_pci_probe() local
57 dws = &dwpci->dws; in spi_pci_probe()
60 dws->paddr = pci_resource_start(pdev, pci_bar); in spi_pci_probe()
61 dws->iolen = pci_resource_len(pdev, pci_bar); in spi_pci_probe()
67 dws->regs = ioremap_nocache((unsigned long)dws->paddr, in spi_pci_probe()
69 if (!dws->regs) { in spi_pci_probe()
74 dws->parent_dev = &pdev->dev; in spi_pci_probe()
75 dws->bus_num = 0; in spi_pci_probe()
76 dws->num_cs = 4; in spi_pci_probe()
77 dws->irq = pdev->irq; in spi_pci_probe()
84 ret = dw_spi_mid_init(dws); in spi_pci_probe()
89 ret = dw_spi_add_host(dws); in spi_pci_probe()
98 iounmap(dws->regs); in spi_pci_probe()
113 dw_spi_remove_host(&dwpci->dws); in spi_pci_remove()
114 iounmap(dwpci->dws.regs); in spi_pci_remove()
126 ret = dw_spi_suspend_host(&dwpci->dws); in spi_suspend()
145 return dw_spi_resume_host(&dwpci->dws); in spi_resume()