Lines Matching refs:card

25 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card)  in mmc_app_cmd()  argument
31 BUG_ON(card && (card->host != host)); in mmc_app_cmd()
35 if (card) { in mmc_app_cmd()
36 cmd.arg = card->rca << 16; 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()
121 int mmc_app_set_bus_width(struct mmc_card *card, int width) in mmc_app_set_bus_width() argument
126 BUG_ON(!card); in mmc_app_set_bus_width()
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()
248 int mmc_app_send_scr(struct mmc_card *card, u32 *scr) in mmc_app_send_scr() argument
257 BUG_ON(!card); in mmc_app_send_scr()
258 BUG_ON(!card->host); in mmc_app_send_scr()
263 err = mmc_app_cmd(card->host, card); in mmc_app_send_scr()
270 data_buf = kmalloc(sizeof(card->raw_scr), GFP_KERNEL); in mmc_app_send_scr()
289 mmc_set_data_timeout(&data, card); in mmc_app_send_scr()
291 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
293 memcpy(scr, data_buf, sizeof(card->raw_scr)); in mmc_app_send_scr()
307 int mmc_sd_switch(struct mmc_card *card, int mode, int group, in mmc_sd_switch() argument
315 BUG_ON(!card); in mmc_sd_switch()
316 BUG_ON(!card->host); in mmc_sd_switch()
340 mmc_set_data_timeout(&data, card); in mmc_sd_switch()
342 mmc_wait_for_req(card->host, &mrq); in mmc_sd_switch()
352 int mmc_app_sd_status(struct mmc_card *card, void *ssr) in mmc_app_sd_status() argument
360 BUG_ON(!card); in mmc_app_sd_status()
361 BUG_ON(!card->host); in mmc_app_sd_status()
366 err = mmc_app_cmd(card->host, card); in mmc_app_sd_status()
385 mmc_set_data_timeout(&data, card); in mmc_app_sd_status()
387 mmc_wait_for_req(card->host, &mrq); in mmc_app_sd_status()