• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/

Lines Matching defs:data

158 static void glamo_mci_disable_timer(unsigned long data) {
159 struct glamo_mci_host *host = (struct glamo_mci_host *)data;
164 static void do_pio_read(struct glamo_mci_host *host, struct mmc_data *data)
171 for (sg = data->sg; sg; sg = sg_next(sg)) {
178 data->bytes_xfered += sg->length;
182 "complete (no more data).\n");
185 static void do_pio_write(struct glamo_mci_host *host, struct mmc_data *data)
192 for (sg = data->sg; sg; sg = sg_next(sg)) {
195 data->bytes_xfered += sg->length;
237 if (cmd->data->flags & MMC_DATA_READ) {
245 /* we ignore a data timeout report if we are also told the data came */
264 if (cmd->data->flags & MMC_DATA_READ)
265 do_pio_read(host, cmd->data);
287 sg = cmd->data->sg;
301 data_ready = blocks_ready * cmd->data->blksz;
316 cmd->data->bytes_xfered = data_read;
460 if (cmd->data)
521 /* We'll only get an interrupt when all data has been transfered.
522 By starting to copy data when it's avaiable we can increase throughput by
524 if (cmd->data && (cmd->data->flags & MMC_DATA_READ))
531 struct mmc_data *data)
534 glamo_reg_write(host, GLAMO_REG_MMC_DATBLKLEN, data->blksz);
535 glamo_reg_write(host, GLAMO_REG_MMC_DATBLKCNT, data->blocks);
537 data->bytes_xfered = 0;
540 if (data->flags & MMC_DATA_WRITE) {
541 do_pio_write(host, data);
545 data->blksz, data->blocks);
568 if (cmd->data->error)
569 cmd->data->error = -ETIMEDOUT;
592 if (cmd->data) {
593 if(glamo_mci_prepare_pio(host, cmd->data)) {
595 cmd->data->error = -EIO;
601 "arg 0x%x data=%p mrq->stop=%p flags 0x%x\n",
602 cmd->opcode, cmd->arg, cmd->data, cmd->mrq->stop,
608 * if we don't have bulk data to take care of, we're done
610 if (!cmd->data || cmd->error)
621 * if there is read data coming, or we wait for write data to complete,
625 dev_dbg(&host->pdev->dev, "Waiting for payload data\n");
781 /* Get ahold of our data buffer we use for data in and out on MMC */