Lines Matching refs:cmd
124 static int dw_send_cmd(struct mmc_cmd *cmd);
226 static int dw_send_cmd(struct mmc_cmd *cmd) in dw_send_cmd() argument
232 assert(cmd); in dw_send_cmd()
236 switch (cmd->cmd_idx) { in dw_send_cmd()
269 switch (cmd->resp_type) { in dw_send_cmd()
291 mmio_write_32(base + DWMMC_CMDARG, cmd->cmd_arg); in dw_send_cmd()
292 mmio_write_32(base + DWMMC_CMD, op | cmd->cmd_idx); in dw_send_cmd()
312 cmd->resp_data[0] = mmio_read_32(base + DWMMC_RESP0); in dw_send_cmd()
314 cmd->resp_data[1] = mmio_read_32(base + DWMMC_RESP1); in dw_send_cmd()
315 cmd->resp_data[2] = mmio_read_32(base + DWMMC_RESP2); in dw_send_cmd()
316 cmd->resp_data[3] = mmio_read_32(base + DWMMC_RESP3); in dw_send_cmd()