Lines Matching defs:data

26  * and 1- or 4-data bit SecureDigital cards, then the solution is to
263 struct mmc_command *cmd, struct mmc_data *data)
288 if (data) {
289 if (data->flags & MMC_DATA_READ) {
290 if (data->blocks > 1)
294 } else if (data->flags & MMC_DATA_WRITE) {
295 if (data->blocks > 1)
318 struct mmc_data *data;
326 data = mrq->cmd->data;
335 data->error = 0;
336 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir);
344 data->error = -EILSEQ;
349 data->bytes_xfered = 0;
351 if (!data->error) {
357 data->bytes_xfered = cp->ddma_bytecnt;
359 data->bytes_xfered =
360 (data->blocks * data->blksz) - host->pio.len;
378 struct mmc_data *data;
384 data = host->mrq->data;
389 /* This is the pointer to the data buffer */
390 sg = &data->sg[host->pio.index];
394 sg_len = data->sg[host->pio.index].length - host->pio.offset;
434 struct mmc_data *data;
440 data = host->mrq->data;
448 sg = &data->sg[host->pio.index];
452 sg_len = sg_dma_len(&data->sg[host->pio.index]) - host->pio.offset;
513 * and check for errors. Then start the data transfer if it is indicated.
547 * our response omits the CRC, our data ends up
549 * that means that the OSR data starts at bit 31,
602 struct mmc_data *data)
604 int datalen = data->blocks * data->blksz;
606 if (data->flags & MMC_DATA_READ)
616 host->dma.len = dma_map_sg(mmc_dev(host->mmc), data->sg,
617 data->sg_len, host->dma.dir);
622 __raw_writel(data->blksz - 1, HOST_BLKSIZE(host));
632 struct scatterlist *sg = &data->sg[i];
668 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
673 /* This actually starts a command or data transaction */
692 if (mrq->data) {
694 ret = au1xmmc_prepare_data(host, mrq->data);
698 ret = au1xmmc_send_command(host, mrq->cmd, mrq->data);
794 host->mrq->data->error = -ETIMEDOUT;