Lines Matching refs:cmd

345 	struct mmc_command *cmd)  in cb710_encode_cmd_flags()  argument
347 unsigned int flags = cmd->flags; in cb710_encode_cmd_flags()
370 cb_flags |= cmd->opcode << CB710_MMC_CMD_CODE_SHIFT; in cb710_encode_cmd_flags()
372 if (cmd->data && (cmd->data->flags & MMC_DATA_READ)) in cb710_encode_cmd_flags()
396 struct mmc_command *cmd) in cb710_receive_response() argument
401 if (cmd->flags & MMC_RSP_136) { in cb710_receive_response()
410 cmd->resp[0] = (resp[0] << 8)|(resp[1] >> 24); in cb710_receive_response()
411 cmd->resp[1] = (resp[1] << 8)|(resp[2] >> 24); in cb710_receive_response()
412 cmd->resp[2] = (resp[2] << 8)|(resp[3] >> 24); in cb710_receive_response()
413 cmd->resp[3] = (resp[3] << 8); in cb710_receive_response()
416 cmd->resp[0] = cb710_read_port_32(slot, CB710_MMC_RESPONSE0_PORT); in cb710_receive_response()
419 wanted_opcode = (cmd->flags & MMC_RSP_OPCODE) ? cmd->opcode : 0x3F; in cb710_receive_response()
421 cmd->error = -EILSEQ; in cb710_receive_response()
443 static int cb710_mmc_command(struct mmc_host *mmc, struct mmc_command *cmd) in cb710_mmc_command() argument
447 struct mmc_data *data = cmd->data; in cb710_mmc_command()
449 u16 cb_cmd = cb710_encode_cmd_flags(reader, cmd); in cb710_mmc_command()
463 cb710_write_port_32(slot, CB710_MMC_CMD_PARAM_PORT, cmd->arg); in cb710_mmc_command()
468 cmd->error = cb710_wait_for_event(slot, CB710_MMC_S1_COMMAND_SENT); in cb710_mmc_command()
469 if (cmd->error) in cb710_mmc_command()
472 if (cmd->flags & MMC_RSP_PRESENT) { in cb710_mmc_command()
473 cb710_receive_response(slot, cmd); in cb710_mmc_command()
474 if (cmd->error) in cb710_mmc_command()
493 if (!cb710_mmc_command(mmc, mrq->cmd) && mrq->stop) in cb710_mmc_request()