Lines Matching defs:card

52  * rsi_cmd52writebyte() - This function issues cmd52 byte write onto the card.
53 * @card: Pointer to the mmc_card.
59 static int rsi_cmd52writebyte(struct mmc_card *card,
72 return mmc_wait_for_cmd(card->host, &io_cmd, 0);
76 * rsi_cmd52readbyte() - This function issues cmd52 byte read onto the card.
77 * @card: Pointer to the mmc_card.
83 static int rsi_cmd52readbyte(struct mmc_card *card,
97 err = mmc_wait_for_cmd(card->host, &io_cmd, 0);
123 host = func->card->host;
156 * rsi_reset_card() - This function resets and re-initializes the card.
165 struct mmc_card *card = pfunction->card;
166 struct mmc_host *host = card->host;
172 ret = rsi_cmd52writebyte(pfunction->card,
185 /* Initialize the SDIO card */
232 card->ocr = resp;
233 /* Issue CMD5, arg = ocr. Wait till card is ready */
236 card->ocr,
250 rsi_dbg(ERR_ZONE, "%s: card in not ready : %d %d\n",
269 /* Issue CMD7, select card */
281 if (card->host->caps & MMC_CAP_SD_HIGHSPEED) {
283 err = rsi_cmd52readbyte(card, SDIO_CCCR_SPEED, &cmd52_resp);
288 err = rsi_cmd52writebyte(card,
303 if (mmc_card_hs(card))
306 clock = card->cis.max_dtr;
314 if (card->host->caps & MMC_CAP_4_BIT_DATA) {
315 /* CMD52: Set bus width & disable card detect resistor */
316 err = rsi_cmd52writebyte(card,
340 struct mmc_host *host = dev->pfunction->card->host;
373 * rsi_setupcard() - This function queries and sets the card's features.
479 * information from the SD card.
510 * information to the SD card.
527 rsi_dbg(ERR_ZONE, "%s: Stopping card writes\n", __func__);
532 * card write
534 rsi_dbg(ERR_ZONE, "%s: Continue card writes\n", __func__);
780 rsi_dbg(ERR_ZONE, "%s: Unable to write onto the card: %d\n",
782 rsi_dbg(DATA_TX_ZONE, "%s: Successfully written onto card\n", __func__);
856 rsi_dbg(ERR_ZONE, "%s: Failed to setup card\n", __func__);
860 rsi_dbg(INIT_ZONE, "%s: Setup card successfully\n", __func__);
1277 ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data);
1286 ret = rsi_cmd52writebyte(pfunc->card, RSI_INT_ENABLE_REGISTER, data);
1293 ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data);
1315 ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data);
1324 ret = rsi_cmd52writebyte(pfunc->card, RSI_INT_ENABLE_REGISTER, data);
1337 ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data);