• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mmc/host/

Lines Matching refs:cmd

125 	struct mmc_command *cmd;
227 host->req->cmd->error = -ETIMEDOUT;
230 host->req->cmd->error = -EIO;
375 host->req->cmd->error = -ETIMEDOUT;
380 struct mmc_command *cmd)
386 if (cmd->flags & MMC_RSP_136) {
389 cmd->resp[i] = tmp << 24;
391 cmd->resp[i] |= tmp << 8;
393 cmd->resp[i] |= tmp >> 8;
396 cmd->resp[0] = readw(fifo_addr) << 24;
397 cmd->resp[0] |= readw(fifo_addr) << 8;
398 cmd->resp[0] |= readw(fifo_addr) & 0xff;
403 struct mmc_command *cmd)
410 host->cmd = cmd;
412 if (cmd->flags & MMC_RSP_BUSY)
415 switch (mmc_resp_type(cmd)) {
430 if (cmd->data) {
432 if (cmd->data->flags & MMC_DATA_WRITE)
434 if (cmd->data->flags & MMC_DATA_STREAM)
437 writew(cmd->data->blksz, host->base + JZ_REG_MMC_BLKLEN);
438 writew(cmd->data->blocks, host->base + JZ_REG_MMC_NOB);
441 writeb(cmd->opcode, host->base + JZ_REG_MMC_CMD);
442 writel(cmd->arg, host->base + JZ_REG_MMC_ARG);
450 struct mmc_command *cmd = host->req->cmd;
451 struct mmc_data *data = cmd->data;
466 struct mmc_command *cmd = host->req->cmd;
470 if (cmd->error)
475 if (cmd->flags & MMC_RSP_PRESENT)
476 jz4740_mmc_read_response(host, cmd);
478 if (!cmd->data)
484 if (cmd->data->flags & MMC_DATA_READ)
485 timeout = jz4740_mmc_read_data(host, cmd->data);
487 timeout = jz4740_mmc_write_data(host, cmd->data);
494 jz4740_mmc_transfer_check_state(host, cmd->data);
527 struct mmc_command *cmd = host->cmd;
547 if (host->req && cmd && irq_reg) {
554 cmd->error = -ETIMEDOUT;
556 cmd->error = -EIO;
559 if (cmd->data)
560 cmd->data->error = -EIO;
561 cmd->error = -EIO;
564 if (cmd->data)
565 cmd->data->error = -EIO;
566 cmd->error = -EIO;
612 jz4740_mmc_send_command(host, req->cmd);