Lines Matching refs:_host
1081 int tmio_mmc_host_probe(struct tmio_mmc_host *_host, in tmio_mmc_host_probe() argument
1084 struct platform_device *pdev = _host->pdev; in tmio_mmc_host_probe()
1085 struct mmc_host *mmc = _host->mmc; in tmio_mmc_host_probe()
1093 _host->write16_hook = NULL; in tmio_mmc_host_probe()
1103 _host->pdata = pdata; in tmio_mmc_host_probe()
1106 _host->set_pwr = pdata->set_pwr; in tmio_mmc_host_probe()
1107 _host->set_clk_div = pdata->set_clk_div; in tmio_mmc_host_probe()
1109 ret = tmio_mmc_init_ocr(_host); in tmio_mmc_host_probe()
1113 _host->ctl = devm_ioremap(&pdev->dev, in tmio_mmc_host_probe()
1115 if (!_host->ctl) { in tmio_mmc_host_probe()
1130 _host->native_hotplug = !(pdata->flags & TMIO_MMC_USE_GPIO_CD || in tmio_mmc_host_probe()
1135 if (tmio_mmc_clk_update(_host) < 0) { in tmio_mmc_host_probe()
1153 if (_host->native_hotplug) in tmio_mmc_host_probe()
1156 tmio_mmc_clk_stop(_host); in tmio_mmc_host_probe()
1157 tmio_mmc_reset(_host); in tmio_mmc_host_probe()
1159 _host->sdcard_irq_mask = sd_ctrl_read32(_host, CTL_IRQ_MASK); in tmio_mmc_host_probe()
1160 tmio_mmc_disable_mmc_irqs(_host, TMIO_MASK_ALL); in tmio_mmc_host_probe()
1163 if (!_host->chan_rx) in tmio_mmc_host_probe()
1165 if (!_host->chan_tx) in tmio_mmc_host_probe()
1167 if (!_host->native_hotplug) in tmio_mmc_host_probe()
1170 _host->sdcard_irq_mask &= ~irq_mask; in tmio_mmc_host_probe()
1172 _host->sdio_irq_enabled = false; in tmio_mmc_host_probe()
1174 _host->sdio_irq_mask = TMIO_SDIO_MASK_ALL; in tmio_mmc_host_probe()
1175 sd_ctrl_write16(_host, CTL_SDIO_IRQ_MASK, _host->sdio_irq_mask); in tmio_mmc_host_probe()
1176 sd_ctrl_write16(_host, CTL_TRANSACTION_CTL, 0x0000); in tmio_mmc_host_probe()
1179 spin_lock_init(&_host->lock); in tmio_mmc_host_probe()
1180 mutex_init(&_host->ios_lock); in tmio_mmc_host_probe()
1183 INIT_DELAYED_WORK(&_host->delayed_reset_work, tmio_mmc_reset_work); in tmio_mmc_host_probe()
1184 INIT_WORK(&_host->done, tmio_mmc_done_work); in tmio_mmc_host_probe()
1187 tmio_mmc_request_dma(_host, pdata); in tmio_mmc_host_probe()
1196 tmio_mmc_host_remove(_host); in tmio_mmc_host_probe()
1205 tmio_mmc_host_remove(_host); in tmio_mmc_host_probe()