data_cmd
static struct data_cmd drbd_cmd_handler[] = {
struct data_cmd const *cmd;
u8 data_cmd[2], status[2];
.data.out = data_cmd,
data_cmd[0] = 0;
data_cmd[1] = (address == MMC5633_TEMPERATURE) ?
WARN_ON(host->data_cmd);
host->data_cmd = cmd;
cmd == host->data_cmd) {
if (host->cmd || host->data_cmd) {
if (host->data_cmd && host->data_cmd->mrq == mrq)
host->data_cmd = NULL;
struct mmc_command *data_cmd = host->data_cmd;
host->data_cmd = NULL;
else if (!host->cmd || host->cmd == data_cmd)
WARN_ON(host->data_cmd);
host->data_cmd = cmd;
cmd == host->data_cmd) {
if (host->data_cmd) {
host->data_cmd->error = err;
sdhci_finish_mrq(host, host->data_cmd->mrq);
if (host->cmd || host->data_cmd) {
if (host->data || host->data_cmd ||
} else if (host->data_cmd) {
host->data_cmd->error = -ETIMEDOUT;
sdhci_finish_mrq(host, host->data_cmd->mrq);
if (intmask & SDHCI_INT_AUTO_CMD_ERR && host->data_cmd) {
struct mmc_request *mrq = host->data_cmd->mrq;
struct mmc_command *data_cmd = host->data_cmd;
if (data_cmd && (data_cmd->flags & MMC_RSP_BUSY)) {
host->data_cmd = NULL;
data_cmd->error = -ETIMEDOUT;
__sdhci_finish_mrq(host, data_cmd->mrq);
host->data_cmd = NULL;
if (host->cmd == data_cmd)
__sdhci_finish_mrq(host, data_cmd->mrq);
if (host->cmd == host->data_cmd) {
return host->cmd || host->data_cmd;
struct mmc_command *data_cmd; /* Current data command */
struct data_cmd *cmd;
static struct data_cmd data_cmds[];
static struct data_cmd data_cmds[] = {