Lines Matching refs:card

22 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card)  in mmc_app_cmd()  argument
27 if (WARN_ON(card && card->host != host)) in mmc_app_cmd()
32 if (card) { in mmc_app_cmd()
33 cmd.arg = card->rca << 16; in mmc_app_cmd()
52 static int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, in mmc_wait_for_app_cmd() argument
63 err = mmc_app_cmd(host, card); in mmc_wait_for_app_cmd()
97 int mmc_app_set_bus_width(struct mmc_card *card, int width) in mmc_app_set_bus_width() argument
115 return mmc_wait_for_app_cmd(card->host, card, &cmd); in mmc_app_set_bus_width()
256 int mmc_app_send_scr(struct mmc_card *card) in mmc_app_send_scr() argument
267 err = mmc_app_cmd(card->host, card); in mmc_app_send_scr()
274 scr = kmalloc(sizeof(card->raw_scr), GFP_KERNEL); in mmc_app_send_scr()
293 mmc_set_data_timeout(&data, card); in mmc_app_send_scr()
295 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
297 card->raw_scr[0] = be32_to_cpu(scr[0]); in mmc_app_send_scr()
298 card->raw_scr[1] = be32_to_cpu(scr[1]); in mmc_app_send_scr()
310 int mmc_sd_switch(struct mmc_card *card, int mode, int group, in mmc_sd_switch() argument
323 return mmc_send_adtc_data(card, card->host, SD_SWITCH, cmd_args, resp, in mmc_sd_switch()
328 int mmc_app_sd_status(struct mmc_card *card, void *ssr) in mmc_app_sd_status() argument
338 err = mmc_app_cmd(card->host, card); in mmc_app_sd_status()
357 mmc_set_data_timeout(&data, card); in mmc_app_sd_status()
359 mmc_wait_for_req(card->host, &mrq); in mmc_app_sd_status()