Lines Matching defs:data
118 * The function changes SD/SDIO/MMC card data width if
119 * the card support configurable data width. The host controller
120 * and the card has to be in the same bus data width.
188 * Error handling routine. Does abort data
224 cmdRsp.data.r2.rsp1, cmdRsp.data.r2.rsp2,
225 cmdRsp.data.r2.rsp3, cmdRsp.data.r2.rsp4,
244 * The function handles real data transmission on both DMA and
245 * none DMA mode, In None DMA mode the data transfer starts
246 * when the command is sent to the card, data has to be written
249 * In DMA mode, the real data transfer is done by the DMA engine
250 * and this functions just waits for the data transfer to complete.
260 * In NON DMA mode, the real data xfer starts from here
282 /* In NON DMA mode, the real data
291 * once the data transmission is done
292 * copy data to the host buffer.
324 * so application can do data transfer to and from the card.
344 /* switch the data width back */
350 * Try different data width settings (highest to lowest).
353 * init_mmc_card() earlier. Stop at first verified data width
519 * data transmission.
586 * The function reads block data from a card.
624 * The function writes block data to a card.
650 * The function is called to write one block data directly to
651 * a card's data buffer.
652 * it is used in Non-DMA mode for card data transmission.
654 int write_buffer(struct sd_handle *handle, uint32_t length, uint8_t *data)
657 uint8_t *pData = data;
714 * The function is called to read maximal one block data
716 * It is used in Non-DMA mode for card data transmission.
718 int read_buffer(struct sd_handle *handle, uint32_t length, uint8_t *data)
721 uint8_t *pData = data;
756 /* In case, there are extra data in the SD FIFO, just dump them. */
779 * and CMD line if an error occures during data transmission.
821 * In case of timeout error, the cmd line and data line maybe
823 * either data line or cmd line to make sure a new cmd can be sent.
844 * The function is called to read one block data directly from a card.
845 * It is used in Non-DMA mode for card data transmission.
868 resp->data.r4.cardReady = cBit;
869 resp->data.r4.funcs = funcs;
870 resp->data.r4.memPresent = memPresent;
871 resp->data.r4.ocr = cardStatus;
875 resp->data.r6.rca = rca;
876 resp->data.r6.cardStatus = cardStatus & 0xFFFF;
880 resp->data.r7.rca = rca;
887 resp->data.r5.data = rsp0 & 0xff;
894 resp->data.r5.data = rsp0 & 0xff;
899 resp->data.r3.ocr = cardStatus;
904 resp->data.r2.rsp4 = rsp3;
905 resp->data.r2.rsp3 = rsp2;
906 resp->data.r2.rsp2 = rsp1;
907 resp->data.r2.rsp1 = rsp0;
922 * The function sets DMA buffer and data length, process
925 * It copies dma data from user buffer to the DMA buffer
926 * if the operation is to write data to the SD card.
928 void data_xfer_setup(struct sd_handle *handle, uint8_t *data, uint32_t length,
931 chal_sd_setup_xfer((CHAL_HANDLE *)handle->device, data, length, dir);