Lines Matching refs:host
22 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument
27 BUG_ON(!host); in mmc_send_io_op_cond()
34 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in mmc_send_io_op_cond()
43 if (mmc_host_is_spi(host)) { in mmc_send_io_op_cond()
63 *rocr = cmd.resp[mmc_host_is_spi(host) ? 1 : 0]; in mmc_send_io_op_cond()
68 static int mmc_io_rw_direct_host(struct mmc_host *host, int write, unsigned fn, in mmc_io_rw_direct_host() argument
74 BUG_ON(!host); in mmc_io_rw_direct_host()
89 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_io_rw_direct_host()
93 if (mmc_host_is_spi(host)) { in mmc_io_rw_direct_host()
105 if (mmc_host_is_spi(host)) in mmc_io_rw_direct_host()
118 return mmc_io_rw_direct_host(card->host, write, fn, addr, in, out); in mmc_io_rw_direct()
130 unsigned int seg_size = card->host->max_seg_size; in mmc_io_rw_extended()
183 mmc_wait_for_req(card->host, &mrq); in mmc_io_rw_extended()
193 if (mmc_host_is_spi(card->host)) { in mmc_io_rw_extended()
207 int sdio_reset(struct mmc_host *host) in sdio_reset() argument
214 ret = mmc_io_rw_direct_host(host, 0, 0, SDIO_CCCR_ABORT, 0, &abort); in sdio_reset()
220 ret = mmc_io_rw_direct_host(host, 1, 0, SDIO_CCCR_ABORT, abort, NULL); in sdio_reset()