Lines Matching refs:cmd
428 static void sh_sdhi_get_response(struct sh_sdhi_host *host, struct mmc_cmd *cmd) in sh_sdhi_get_response() argument
433 if (cmd->resp_type & MMC_RSP_136) { in sh_sdhi_get_response()
457 cmd->response[0] = (resp[6] << 16) | resp[7]; in sh_sdhi_get_response()
458 cmd->response[1] = (resp[4] << 16) | resp[5]; in sh_sdhi_get_response()
459 cmd->response[2] = (resp[2] << 16) | resp[3]; in sh_sdhi_get_response()
460 cmd->response[3] = (resp[0] << 16) | resp[1]; in sh_sdhi_get_response()
462 cmd->response[0] = (resp[0] << 16) | resp[1]; in sh_sdhi_get_response()
466 cmd->response[0] = (resp[7] << 16) | resp[6]; in sh_sdhi_get_response()
467 cmd->response[1] = (resp[5] << 16) | resp[4]; in sh_sdhi_get_response()
468 cmd->response[2] = (resp[3] << 16) | resp[2]; in sh_sdhi_get_response()
469 cmd->response[3] = (resp[1] << 16) | resp[0]; in sh_sdhi_get_response()
471 cmd->response[0] = (resp[1] << 16) | resp[0]; in sh_sdhi_get_response()
533 struct mmc_data *data, struct mmc_cmd *cmd) in sh_sdhi_start_cmd() argument
536 unsigned short shcmd, opc = cmd->cmdidx; in sh_sdhi_start_cmd()
541 opc, cmd->cmdarg, cmd->resp_type); in sh_sdhi_start_cmd()
552 sh_sdhi_get_response(host, cmd); in sh_sdhi_start_cmd()
576 (unsigned short)(cmd->cmdarg & ARG0_MASK)); in sh_sdhi_start_cmd()
578 (unsigned short)((cmd->cmdarg >> 16) & ARG1_MASK)); in sh_sdhi_start_cmd()
604 switch (cmd->cmdidx) { in sh_sdhi_start_cmd()
613 debug(DRIVER_NAME": cmdidx = %d\n", cmd->cmdidx); in sh_sdhi_start_cmd()
629 sh_sdhi_get_response(host, cmd); in sh_sdhi_start_cmd()
637 ret, cmd->response[0], cmd->response[1], in sh_sdhi_start_cmd()
638 cmd->response[2], cmd->response[3]); in sh_sdhi_start_cmd()
643 struct mmc_cmd *cmd, struct mmc_data *data) in sh_sdhi_send_cmd_common() argument
647 return sh_sdhi_start_cmd(host, data, cmd); in sh_sdhi_send_cmd_common()
699 static int sh_sdhi_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_sdhi_send_cmd() argument
704 return sh_sdhi_send_cmd_common(host, cmd, data); in sh_sdhi_send_cmd()
794 int sh_sdhi_dm_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sh_sdhi_dm_send_cmd() argument
799 return sh_sdhi_send_cmd_common(host, cmd, data); in sh_sdhi_dm_send_cmd()