Lines Matching refs:bus
170 struct bcma_bus *bus = &soc->bus; in bcma_host_soc_register() local
175 bus->mmio = ioremap_nocache(BCMA_ADDR_BASE, BCMA_CORE_SIZE * 1); in bcma_host_soc_register()
176 if (!bus->mmio) in bcma_host_soc_register()
180 bus->hosttype = BCMA_HOSTTYPE_SOC; in bcma_host_soc_register()
181 bus->ops = &bcma_host_soc_ops; in bcma_host_soc_register()
182 bus->host_pdev = NULL; in bcma_host_soc_register()
185 bcma_init_bus(bus); in bcma_host_soc_register()
192 struct bcma_bus *bus = &soc->bus; in bcma_host_soc_init() local
196 err = bcma_bus_early_register(bus); in bcma_host_soc_init()
198 iounmap(bus->mmio); in bcma_host_soc_init()
208 struct bcma_bus *bus; in bcma_host_soc_probe() local
212 bus = devm_kzalloc(dev, sizeof(*bus), GFP_KERNEL); in bcma_host_soc_probe()
213 if (!bus) in bcma_host_soc_probe()
217 bus->mmio = of_iomap(np, 0); in bcma_host_soc_probe()
218 if (!bus->mmio) in bcma_host_soc_probe()
222 bus->hosttype = BCMA_HOSTTYPE_SOC; in bcma_host_soc_probe()
223 bus->ops = &bcma_host_soc_ops; in bcma_host_soc_probe()
224 bus->host_pdev = pdev; in bcma_host_soc_probe()
227 bcma_init_bus(bus); in bcma_host_soc_probe()
230 err = bcma_bus_register(bus); in bcma_host_soc_probe()
234 platform_set_drvdata(pdev, bus); in bcma_host_soc_probe()
239 iounmap(bus->mmio); in bcma_host_soc_probe()
245 struct bcma_bus *bus = platform_get_drvdata(pdev); in bcma_host_soc_remove() local
247 bcma_bus_unregister(bus); in bcma_host_soc_remove()
248 iounmap(bus->mmio); in bcma_host_soc_remove()