Lines Matching refs:spci
82 QSDHCI_PCI *spci = container_of(s, QSDHCI_PCI, sdhci); in sdhci_pci_readw() local
83 return qpci_io_readw(&spci->dev, spci->mem_bar, reg); in sdhci_pci_readw()
88 QSDHCI_PCI *spci = container_of(s, QSDHCI_PCI, sdhci); in sdhci_pci_readq() local
89 return qpci_io_readq(&spci->dev, spci->mem_bar, reg); in sdhci_pci_readq()
94 QSDHCI_PCI *spci = container_of(s, QSDHCI_PCI, sdhci); in sdhci_pci_writeq() local
95 return qpci_io_writeq(&spci->dev, spci->mem_bar, reg, val); in sdhci_pci_writeq()
100 QSDHCI_PCI *spci = object; in sdhci_pci_get_driver() local
102 return &spci->sdhci; in sdhci_pci_get_driver()
111 QSDHCI_PCI *spci = (QSDHCI_PCI *)obj; in sdhci_pci_start_hw() local
112 qpci_device_enable(&spci->dev); in sdhci_pci_start_hw()
117 QSDHCI_PCI *spci = (QSDHCI_PCI *)obj; in sdhci_destructor() local
118 qpci_iounmap(&spci->dev, spci->mem_bar); in sdhci_destructor()
123 QSDHCI_PCI *spci = g_new0(QSDHCI_PCI, 1); in sdhci_pci_create() local
127 qpci_device_init(&spci->dev, bus, addr); in sdhci_pci_create()
128 spci->mem_bar = qpci_iomap(&spci->dev, 0, &barsize); in sdhci_pci_create()
129 spci->sdhci.readw = sdhci_pci_readw; in sdhci_pci_create()
130 spci->sdhci.readq = sdhci_pci_readq; in sdhci_pci_create()
131 spci->sdhci.writeq = sdhci_pci_writeq; in sdhci_pci_create()
132 set_qsdhci_fields(&spci->sdhci, 2, 0, 1, 0x057834b4); in sdhci_pci_create()
134 spci->obj.get_driver = sdhci_pci_get_driver; in sdhci_pci_create()
135 spci->obj.start_hw = sdhci_pci_start_hw; in sdhci_pci_create()
136 spci->obj.destructor = sdhci_destructor; in sdhci_pci_create()
137 return &spci->obj; in sdhci_pci_create()