Lines Matching refs:host
14 #include <linux/mmc/host.h>
22 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr)
27 BUG_ON(!host);
34 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES);
43 if (mmc_host_is_spi(host)) {
63 *rocr = cmd.resp[mmc_host_is_spi(host) ? 1 : 0];
68 static int mmc_io_rw_direct_host(struct mmc_host *host, int write, unsigned fn,
74 BUG_ON(!host);
89 err = mmc_wait_for_cmd(host, &cmd, 0);
93 if (mmc_host_is_spi(host)) {
94 /* host driver already reported errors */
105 if (mmc_host_is_spi(host))
118 return mmc_io_rw_direct_host(card->host, write, fn, addr, in, out);
130 unsigned int seg_size = card->host->max_seg_size;
155 /* Code in host drivers/fwk assumes that "blocks" always is >=1 */
183 mmc_wait_for_req(card->host, &mrq);
193 if (mmc_host_is_spi(card->host)) {
194 /* host driver already reported errors */
207 int sdio_reset(struct mmc_host *host)
214 ret = mmc_io_rw_direct_host(host, 0, 0, SDIO_CCCR_ABORT, 0, &abort);
220 ret = mmc_io_rw_direct_host(host, 1, 0, SDIO_CCCR_ABORT, abort, NULL);