Lines Matching defs:cmd
21 static int rpi3_sdhost_send_cmd(struct mmc_cmd *cmd);
70 static void send_command_raw(unsigned int cmd, unsigned int arg)
84 rpi3_sdhost_params.current_cmd = cmd & HC_CMD_COMMAND_MASK;
88 mmio_write_32(reg_base + HC_COMMAND, cmd | HC_CMD_ENABLE);
99 static void send_command_decorated(unsigned int cmd, unsigned int arg)
103 switch (cmd & HC_CMD_COMMAND_MASK) {
127 send_command_raw(cmd | cmd_flags, arg);
257 static int rpi3_sdhost_send_cmd(struct mmc_cmd *cmd)
273 cmd_idx = cmd->cmd_idx & HC_CMD_COMMAND_MASK;
275 cmd_arg = cmd->cmd_arg;
277 /* if previous cmd send to SDHOST is not MMC_CMD(55).
300 if ((cmd->resp_type & MMC_RSP_136) &&
301 (cmd->resp_type & MMC_RSP_BUSY)) {
306 if (cmd->resp_type & MMC_RSP_48 && cmd->resp_type != MMC_RESPONSE_R2) {
310 } else if (cmd->resp_type & MMC_RSP_136) {
319 if (cmd->resp_type & MMC_RSP_BUSY) {
350 ERROR("rpi3_sdhost: cmd cannot be finished\n");
353 cmd->resp_data[0] = mmio_read_32(reg_base + HC_RESPONSE_0);
354 cmd->resp_data[1] = mmio_read_32(reg_base + HC_RESPONSE_1);
355 cmd->resp_data[2] = mmio_read_32(reg_base + HC_RESPONSE_2);
356 cmd->resp_data[3] = mmio_read_32(reg_base + HC_RESPONSE_3);
375 ERROR("rpi3_sdhost: unknown err, cmd = 0x%x\n",
385 rpi3_sdhost_params.sdcard_rca = (cmd->resp_data[0]