Lines Matching refs:_host

1079 int tmio_mmc_host_probe(struct tmio_mmc_host *_host,  in tmio_mmc_host_probe()  argument
1082 struct platform_device *pdev = _host->pdev; in tmio_mmc_host_probe()
1083 struct mmc_host *mmc = _host->mmc; in tmio_mmc_host_probe()
1091 _host->write16_hook = NULL; in tmio_mmc_host_probe()
1101 _host->pdata = pdata; in tmio_mmc_host_probe()
1104 _host->set_pwr = pdata->set_pwr; in tmio_mmc_host_probe()
1105 _host->set_clk_div = pdata->set_clk_div; in tmio_mmc_host_probe()
1107 ret = tmio_mmc_init_ocr(_host); in tmio_mmc_host_probe()
1111 _host->ctl = ioremap(res_ctl->start, resource_size(res_ctl)); in tmio_mmc_host_probe()
1112 if (!_host->ctl) { in tmio_mmc_host_probe()
1127 _host->native_hotplug = !(pdata->flags & TMIO_MMC_USE_GPIO_CD || in tmio_mmc_host_probe()
1132 if (tmio_mmc_clk_update(_host) < 0) { in tmio_mmc_host_probe()
1150 if (_host->native_hotplug) in tmio_mmc_host_probe()
1153 tmio_mmc_clk_stop(_host); in tmio_mmc_host_probe()
1154 tmio_mmc_reset(_host); in tmio_mmc_host_probe()
1156 _host->sdcard_irq_mask = sd_ctrl_read32(_host, CTL_IRQ_MASK); in tmio_mmc_host_probe()
1157 tmio_mmc_disable_mmc_irqs(_host, TMIO_MASK_ALL); in tmio_mmc_host_probe()
1160 if (!_host->chan_rx) in tmio_mmc_host_probe()
1162 if (!_host->chan_tx) in tmio_mmc_host_probe()
1164 if (!_host->native_hotplug) in tmio_mmc_host_probe()
1167 _host->sdcard_irq_mask &= ~irq_mask; in tmio_mmc_host_probe()
1169 _host->sdio_irq_enabled = false; in tmio_mmc_host_probe()
1171 _host->sdio_irq_mask = TMIO_SDIO_MASK_ALL; in tmio_mmc_host_probe()
1172 sd_ctrl_write16(_host, CTL_SDIO_IRQ_MASK, _host->sdio_irq_mask); in tmio_mmc_host_probe()
1173 sd_ctrl_write16(_host, CTL_TRANSACTION_CTL, 0x0000); in tmio_mmc_host_probe()
1176 spin_lock_init(&_host->lock); in tmio_mmc_host_probe()
1177 mutex_init(&_host->ios_lock); in tmio_mmc_host_probe()
1180 INIT_DELAYED_WORK(&_host->delayed_reset_work, tmio_mmc_reset_work); in tmio_mmc_host_probe()
1181 INIT_WORK(&_host->done, tmio_mmc_done_work); in tmio_mmc_host_probe()
1184 tmio_mmc_request_dma(_host, pdata); in tmio_mmc_host_probe()
1193 tmio_mmc_host_remove(_host); in tmio_mmc_host_probe()
1202 tmio_mmc_host_remove(_host); in tmio_mmc_host_probe()