Lines Matching refs:sdiod
1109 struct brcmf_sdio_dev *sdiod = bus->sdiodev; in brcmf_sdio_hostmail() local
1119 hmb_data = brcmf_sdiod_readl(sdiod, in brcmf_sdio_hostmail()
1124 brcmf_sdiod_writel(sdiod, core->base + SD_REG(tosbmailbox), in brcmf_sdio_hostmail()
1132 brcmf_fw_crashed(&sdiod->func1->dev); in brcmf_sdio_hostmail()
1202 struct brcmf_sdio_dev *sdiod = bus->sdiodev; in brcmf_sdio_rxfail() local
1245 brcmf_sdiod_writel(sdiod, core->base + SD_REG(tosbmailbox), in brcmf_sdio_rxfail()
2584 struct brcmf_sdio_dev *sdiod = bus->sdiodev; in brcmf_sdio_dpc() local
2641 brcmf_sdiod_writel(sdiod, intstat_addr, I_HMB_FC_CHANGE, &err); in brcmf_sdio_dpc()
2643 newstatus = brcmf_sdiod_readl(sdiod, intstat_addr, &err); in brcmf_sdio_dpc()
4178 struct brcmf_sdio_dev *sdiod = bus_if->bus_priv.sdio; in brcmf_sdio_bus_remove() local
4180 device_release_driver(&sdiod->func2->dev); in brcmf_sdio_bus_remove()
4181 device_release_driver(&sdiod->func1->dev); in brcmf_sdio_bus_remove()
4208 struct brcmf_sdio_dev *sdiod = bus_if->bus_priv.sdio; in brcmf_sdio_firmware_callback() local
4209 struct brcmf_sdio *bus = sdiod->bus; in brcmf_sdio_firmware_callback()
4225 sdiod->clm_fw = fwreq->items[BRCMF_SDIO_FW_CLM].binary; in brcmf_sdio_firmware_callback()
4239 sdio_claim_host(sdiod->func1); in brcmf_sdio_firmware_callback()
4247 saveclk = brcmf_sdiod_readb(sdiod, SBSDIO_FUNC1_CHIPCLKCSR, &err); in brcmf_sdio_firmware_callback()
4252 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_CHIPCLKCSR, in brcmf_sdio_firmware_callback()
4261 brcmf_sdiod_writel(sdiod, core->base + SD_REG(tosbmailboxdata), in brcmf_sdio_firmware_callback()
4264 err = sdio_enable_func(sdiod->func2); in brcmf_sdio_firmware_callback()
4272 brcmf_sdiod_writel(sdiod, core->base + SD_REG(hostintmask), in brcmf_sdio_firmware_callback()
4275 switch (sdiod->func1->device) { in brcmf_sdio_firmware_callback()
4280 brcmf_sdiod_writeb(sdiod, SBSDIO_WATERMARK, in brcmf_sdio_firmware_callback()
4282 devctl = brcmf_sdiod_readb(sdiod, SBSDIO_DEVICE_CTL, in brcmf_sdio_firmware_callback()
4285 brcmf_sdiod_writeb(sdiod, SBSDIO_DEVICE_CTL, devctl, in brcmf_sdio_firmware_callback()
4287 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL, in brcmf_sdio_firmware_callback()
4293 brcmf_sdiod_writeb(sdiod, SBSDIO_WATERMARK, in brcmf_sdio_firmware_callback()
4295 devctl = brcmf_sdiod_readb(sdiod, SBSDIO_DEVICE_CTL, in brcmf_sdio_firmware_callback()
4298 brcmf_sdiod_writeb(sdiod, SBSDIO_DEVICE_CTL, devctl, in brcmf_sdio_firmware_callback()
4300 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL, in brcmf_sdio_firmware_callback()
4307 brcmf_sdiod_writeb(sdiod, SBSDIO_WATERMARK, in brcmf_sdio_firmware_callback()
4309 devctl = brcmf_sdiod_readb(sdiod, SBSDIO_DEVICE_CTL, in brcmf_sdio_firmware_callback()
4312 brcmf_sdiod_writeb(sdiod, SBSDIO_DEVICE_CTL, devctl, in brcmf_sdio_firmware_callback()
4314 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL, in brcmf_sdio_firmware_callback()
4320 brcmf_sdiod_writeb(sdiod, SBSDIO_WATERMARK, in brcmf_sdio_firmware_callback()
4322 devctl = brcmf_sdiod_readb(sdiod, SBSDIO_DEVICE_CTL, in brcmf_sdio_firmware_callback()
4325 brcmf_sdiod_writeb(sdiod, SBSDIO_DEVICE_CTL, devctl, in brcmf_sdio_firmware_callback()
4327 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL, in brcmf_sdio_firmware_callback()
4335 brcmf_sdiod_writeb(sdiod, SBSDIO_WATERMARK, in brcmf_sdio_firmware_callback()
4337 devctl = brcmf_sdiod_readb(sdiod, SBSDIO_DEVICE_CTL, in brcmf_sdio_firmware_callback()
4340 brcmf_sdiod_writeb(sdiod, SBSDIO_DEVICE_CTL, devctl, in brcmf_sdio_firmware_callback()
4342 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL, in brcmf_sdio_firmware_callback()
4346 brcmf_sdiod_writeb(sdiod, SBSDIO_WATERMARK, in brcmf_sdio_firmware_callback()
4352 sdio_disable_func(sdiod->func2); in brcmf_sdio_firmware_callback()
4360 brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_CHIPCLKCSR, in brcmf_sdio_firmware_callback()
4366 sdiod->bus_if->dev = sdiod->dev; in brcmf_sdio_firmware_callback()
4367 sdiod->bus_if->ops = &brcmf_sdio_bus_ops; in brcmf_sdio_firmware_callback()
4368 sdiod->bus_if->chip = bus->ci->chip; in brcmf_sdio_firmware_callback()
4369 sdiod->bus_if->chiprev = bus->ci->chiprev; in brcmf_sdio_firmware_callback()
4374 err = brcmf_sdiod_intr_register(sdiod); in brcmf_sdio_firmware_callback()
4385 sdio_release_host(sdiod->func1); in brcmf_sdio_firmware_callback()
4387 err = brcmf_alloc(sdiod->dev, sdiod->settings); in brcmf_sdio_firmware_callback()
4394 err = brcmf_attach(sdiod->dev); in brcmf_sdio_firmware_callback()
4404 brcmf_free(sdiod->dev); in brcmf_sdio_firmware_callback()
4406 sdio_claim_host(sdiod->func1); in brcmf_sdio_firmware_callback()
4410 sdio_release_host(sdiod->func1); in brcmf_sdio_firmware_callback()
4413 device_release_driver(&sdiod->func2->dev); in brcmf_sdio_firmware_callback()