Lines Matching refs:cmd
21 static int rpi3_sdhost_send_cmd(struct mmc_cmd *cmd);
70 static void send_command_raw(unsigned int cmd, unsigned int arg) in send_command_raw() argument
84 rpi3_sdhost_params.current_cmd = cmd & HC_CMD_COMMAND_MASK; in send_command_raw()
88 mmio_write_32(reg_base + HC_COMMAND, cmd | HC_CMD_ENABLE); in send_command_raw()
99 static void send_command_decorated(unsigned int cmd, unsigned int arg) in send_command_decorated() argument
103 switch (cmd & HC_CMD_COMMAND_MASK) { in send_command_decorated()
127 send_command_raw(cmd | cmd_flags, arg); in send_command_decorated()
258 static int rpi3_sdhost_send_cmd(struct mmc_cmd *cmd) in rpi3_sdhost_send_cmd() argument
274 cmd_idx = cmd->cmd_idx & HC_CMD_COMMAND_MASK; in rpi3_sdhost_send_cmd()
276 cmd_arg = cmd->cmd_arg; in rpi3_sdhost_send_cmd()
301 if ((cmd->resp_type & MMC_RSP_136) && in rpi3_sdhost_send_cmd()
302 (cmd->resp_type & MMC_RSP_BUSY)) { in rpi3_sdhost_send_cmd()
307 if (cmd->resp_type & MMC_RSP_48 && cmd->resp_type != MMC_RESPONSE_R2) { in rpi3_sdhost_send_cmd()
311 } else if (cmd->resp_type & MMC_RSP_136) { in rpi3_sdhost_send_cmd()
320 if (cmd->resp_type & MMC_RSP_BUSY) { in rpi3_sdhost_send_cmd()
354 cmd->resp_data[0] = mmio_read_32(reg_base + HC_RESPONSE_0); in rpi3_sdhost_send_cmd()
355 cmd->resp_data[1] = mmio_read_32(reg_base + HC_RESPONSE_1); in rpi3_sdhost_send_cmd()
356 cmd->resp_data[2] = mmio_read_32(reg_base + HC_RESPONSE_2); in rpi3_sdhost_send_cmd()
357 cmd->resp_data[3] = mmio_read_32(reg_base + HC_RESPONSE_3); in rpi3_sdhost_send_cmd()
386 rpi3_sdhost_params.sdcard_rca = (cmd->resp_data[0] in rpi3_sdhost_send_cmd()