Lines Matching refs:cmd

121 static struct cvm_mmc_cr_mods cvm_mmc_get_cr_mods(struct mmc_command *cmd)  in cvm_mmc_get_cr_mods()  argument
128 cr = cvm_mmc_cr_types + (cmd->opcode & 0x3f); in cvm_mmc_get_cr_mods()
131 if (cmd->opcode == MMC_GEN_CMD) in cvm_mmc_get_cr_mods()
132 hardware_ctype = (cmd->arg & 1) ? 1 : 2; in cvm_mmc_get_cr_mods()
134 switch (mmc_cmd_type(cmd)) { in cvm_mmc_get_cr_mods()
136 desired_ctype = (cmd->data->flags & MMC_DATA_WRITE) ? 2 : 1; in cvm_mmc_get_cr_mods()
145 switch (mmc_resp_type(cmd)) { in cvm_mmc_get_cr_mods()
353 req->cmd->resp[0] = (rsp_lo >> 8) & 0xffffffff; in set_cmd_response()
354 req->cmd->resp[1] = 0; in set_cmd_response()
355 req->cmd->resp[2] = 0; in set_cmd_response()
356 req->cmd->resp[3] = 0; in set_cmd_response()
359 req->cmd->resp[3] = rsp_lo & 0xffffffff; in set_cmd_response()
360 req->cmd->resp[2] = (rsp_lo >> 32) & 0xffffffff; in set_cmd_response()
362 req->cmd->resp[1] = rsp_hi & 0xffffffff; in set_cmd_response()
363 req->cmd->resp[0] = (rsp_hi >> 32) & 0xffffffff; in set_cmd_response()
485 req->cmd->error = check_status(rsp_sts); in cvm_mmc_interrupt()
636 FIELD_PREP(MIO_EMM_DMA_CARD_ADDR, mrq->cmd->arg); in prepare_ext_dma()
686 host->dmar_fixup(host, mrq->cmd, data, addr); in cvm_mmc_dma_request()
701 mrq->cmd->error = -EINVAL; in cvm_mmc_dma_request()
754 struct mmc_command *cmd = mrq->cmd; in cvm_mmc_request() local
770 if (cmd->opcode == MMC_READ_MULTIPLE_BLOCK || in cvm_mmc_request()
771 cmd->opcode == MMC_WRITE_MULTIPLE_BLOCK) in cvm_mmc_request()
776 mods = cvm_mmc_get_cr_mods(cmd); in cvm_mmc_request()
781 if (cmd->data) { in cvm_mmc_request()
782 if (cmd->data->flags & MMC_DATA_READ) in cvm_mmc_request()
787 if (cmd->data->timeout_ns) in cvm_mmc_request()
788 set_wdog(slot, cmd->data->timeout_ns); in cvm_mmc_request()
798 FIELD_PREP(MIO_EMM_CMD_IDX, cmd->opcode) | in cvm_mmc_request()
799 FIELD_PREP(MIO_EMM_CMD_ARG, cmd->arg); in cvm_mmc_request()
801 if (cmd->data && mmc_cmd_type(cmd) == MMC_CMD_ADTC) in cvm_mmc_request()
803 64 - ((cmd->data->blocks * cmd->data->blksz) / 8)); in cvm_mmc_request()