Lines Matching refs:cmd

313 					struct mmc_cmd *cmd)  in sh_mmcif_get_response()  argument
315 if (cmd->resp_type & MMC_RSP_136) { in sh_mmcif_get_response()
316 cmd->response[0] = sh_mmcif_read(&host->regs->ce_resp3); in sh_mmcif_get_response()
317 cmd->response[1] = sh_mmcif_read(&host->regs->ce_resp2); in sh_mmcif_get_response()
318 cmd->response[2] = sh_mmcif_read(&host->regs->ce_resp1); in sh_mmcif_get_response()
319 cmd->response[3] = sh_mmcif_read(&host->regs->ce_resp0); in sh_mmcif_get_response()
320 debug(" RESP %08x, %08x, %08x, %08x\n", cmd->response[0], in sh_mmcif_get_response()
321 cmd->response[1], cmd->response[2], cmd->response[3]); in sh_mmcif_get_response()
323 cmd->response[0] = sh_mmcif_read(&host->regs->ce_resp0); in sh_mmcif_get_response()
328 struct mmc_cmd *cmd) in sh_mmcif_get_cmd12response() argument
330 cmd->response[0] = sh_mmcif_read(&host->regs->ce_resp_cmd12); in sh_mmcif_get_cmd12response()
334 struct mmc_data *data, struct mmc_cmd *cmd) in sh_mmcif_set_cmd() argument
337 u32 opc = cmd->cmdidx; in sh_mmcif_set_cmd()
340 switch (cmd->resp_type) { in sh_mmcif_set_cmd()
432 struct mmc_data *data, struct mmc_cmd *cmd) in sh_mmcif_start_cmd() argument
436 u32 opc = cmd->cmdidx; in sh_mmcif_start_cmd()
451 sh_mmcif_get_cmd12response(host, cmd); in sh_mmcif_start_cmd()
468 opc = sh_mmcif_set_cmd(host, data, cmd); in sh_mmcif_start_cmd()
473 debug("CMD%d ARG:%08x\n", cmd->cmdidx, cmd->cmdarg); in sh_mmcif_start_cmd()
475 sh_mmcif_write(cmd->cmdarg, &host->regs->ce_arg); in sh_mmcif_start_cmd()
485 switch (cmd->cmdidx) { in sh_mmcif_start_cmd()
492 printf(DRIVER_NAME": Cmd(d'%d) err\n", cmd->cmdidx); in sh_mmcif_start_cmd()
506 sh_mmcif_get_response(host, cmd); in sh_mmcif_start_cmd()
510 ret = sh_mmcif_data_trans(host, data, cmd->cmdidx); in sh_mmcif_start_cmd()
511 host->last_cmd = cmd->cmdidx; in sh_mmcif_start_cmd()
517 struct mmc_cmd *cmd, struct mmc_data *data) in sh_mmcif_send_cmd_common() argument
523 switch (cmd->cmdidx) { in sh_mmcif_send_cmd_common()
538 ret = sh_mmcif_start_cmd(host, data, cmd); in sh_mmcif_send_cmd_common()
574 static int sh_mmcif_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_mmcif_send_cmd() argument
579 return sh_mmcif_send_cmd_common(host, cmd, data); in sh_mmcif_send_cmd()
642 int sh_mmcif_dm_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sh_mmcif_dm_send_cmd() argument
647 return sh_mmcif_send_cmd_common(host, cmd, data); in sh_mmcif_dm_send_cmd()