Lines Matching refs:host
25 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd() argument
30 BUG_ON(!host); in mmc_app_cmd()
31 BUG_ON(card && (card->host != host)); in mmc_app_cmd()
43 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_app_cmd()
48 if (!mmc_host_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmc_app_cmd()
68 int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, in mmc_wait_for_app_cmd() argument
85 err = mmc_app_cmd(host, card); in mmc_wait_for_app_cmd()
88 if (mmc_host_is_spi(host)) { in mmc_wait_for_app_cmd()
103 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd()
110 if (mmc_host_is_spi(host)) { in mmc_wait_for_app_cmd()
127 BUG_ON(!card->host); in mmc_app_set_bus_width()
143 err = mmc_wait_for_app_cmd(card->host, card, &cmd, MMC_CMD_RETRIES); in mmc_app_set_bus_width()
150 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond() argument
155 BUG_ON(!host); in mmc_send_app_op_cond()
158 if (mmc_host_is_spi(host)) in mmc_send_app_op_cond()
165 err = mmc_wait_for_app_cmd(host, NULL, &cmd, MMC_CMD_RETRIES); in mmc_send_app_op_cond()
174 if (mmc_host_is_spi(host)) { in mmc_send_app_op_cond()
188 pr_err("%s: card never left busy state\n", mmc_hostname(host)); in mmc_send_app_op_cond()
190 if (rocr && !mmc_host_is_spi(host)) in mmc_send_app_op_cond()
196 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond() argument
212 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_send_if_cond()
216 if (mmc_host_is_spi(host)) in mmc_send_if_cond()
227 int mmc_send_relative_addr(struct mmc_host *host, unsigned int *rca) in mmc_send_relative_addr() argument
232 BUG_ON(!host); in mmc_send_relative_addr()
239 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in mmc_send_relative_addr()
258 BUG_ON(!card->host); in mmc_app_send_scr()
263 err = mmc_app_cmd(card->host, card); in mmc_app_send_scr()
291 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
316 BUG_ON(!card->host); in mmc_sd_switch()
342 mmc_wait_for_req(card->host, &mrq); in mmc_sd_switch()
361 BUG_ON(!card->host); in mmc_app_sd_status()
366 err = mmc_app_cmd(card->host, card); in mmc_app_sd_status()
387 mmc_wait_for_req(card->host, &mrq); in mmc_app_sd_status()