Lines Matching refs:data
111 struct mmc_data *data;
195 if (host->data && !(host->data->flags & MMC_DATA_WRITE))
203 struct mmc_data *data)
208 dma_data_dir = mmc_get_dma_dir(data);
215 sg_copy_from_buffer(data->sg, 1, host->virt_base,
216 data->sg->length);
218 host->data->bytes_xfered += data->sg->length;
219 dma_unmap_sg(mmc_dev(mmc_from_priv(host)), data->sg,
223 host->data = NULL;
228 * dozens of requests until the card finishes writing data.
232 if (!data->stop) {
234 mmc_request_done(mmc_from_priv(host), data->mrq);
238 goldfish_mmc_start_command(host, data->stop);
242 struct mmc_data *data)
245 goldfish_mmc_xfer_done(host, data);
249 goldfish_mmc_xfer_done(host, data);
274 if (host->data == NULL || cmd->error) {
319 goldfish_mmc_end_of_data(host, host->data);
320 } else if (host->data != NULL) {
323 * during device initialization, cases where host->data is
330 goldfish_mmc_end_of_data(host, host->data);
356 struct mmc_data *data = req->data;
361 host->data = data;
362 if (data == NULL) {
369 block_size = data->blksz;
371 GOLDFISH_MMC_WRITE(host, MMC_BLOCK_COUNT, data->blocks - 1);
378 sg_len = (data->blocks == 1) ? 1 : data->sg_len;
380 dma_data_dir = mmc_get_dma_dir(data);
382 host->sg_len = dma_map_sg(mmc_dev(mmc_from_priv(host)), data->sg,
392 sg_copy_to_buffer(data->sg, 1, host->virt_base,
393 data->sg->length);