| /rk3399_rockchip-uboot/drivers/crypto/fsl/ |
| H A D | desc_constr.h | 137 u32 *cmd = desc_end(desc); in append_cmd() local 139 *cmd = command; in append_cmd() 188 #define APPEND_CMD_RET(cmd, op) \ argument 189 static inline u32 *append_##cmd(u32 *desc, u32 options) \ 191 u32 *cmd = desc_end(desc); \ 194 return cmd; \ 211 #define APPEND_CMD(cmd, op) \ argument 212 static inline void append_##cmd(u32 *desc, u32 options) \ 219 #define APPEND_CMD_LEN(cmd, op) \ in APPEND_CMD() argument 220 static inline void append_##cmd(u32 *desc, unsigned int len, u32 options) \ in APPEND_CMD() [all …]
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | sunxi_mmc.c | 188 unsigned int cmd; in mmc_update_clk() local 191 cmd = SUNXI_MMC_CMD_START | in mmc_update_clk() 194 writel(cmd, &priv->reg->cmd); in mmc_update_clk() 195 while (readl(&priv->reg->cmd) & SUNXI_MMC_CMD_START) { in mmc_update_clk() 322 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common() argument 333 if (cmd->resp_type & MMC_RSP_BUSY) in sunxi_mmc_send_cmd_common() 334 debug("mmc cmd %d check rsp busy\n", cmd->cmdidx); in sunxi_mmc_send_cmd_common() 335 if (cmd->cmdidx == 12) in sunxi_mmc_send_cmd_common() 338 if (!cmd->cmdidx) in sunxi_mmc_send_cmd_common() 340 if (cmd->resp_type & MMC_RSP_PRESENT) in sunxi_mmc_send_cmd_common() [all …]
|
| H A D | mmc-uclass.c | 18 int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in dm_mmc_send_cmd() argument 26 mmmc_trace_before_send(mmc, cmd); in dm_mmc_send_cmd() 28 ret = ops->send_cmd(dev, cmd, data); in dm_mmc_send_cmd() 31 mmmc_trace_after_send(mmc, cmd, ret); in dm_mmc_send_cmd() 33 if (ret && cmd->cmdidx != SD_CMD_SEND_IF_COND && in dm_mmc_send_cmd() 34 cmd->cmdidx != MMC_CMD_APP_CMD && in dm_mmc_send_cmd() 35 cmd->cmdidx != MMC_CMD_SEND_OP_COND && in dm_mmc_send_cmd() 36 cmd->cmdidx != MMC_SEND_TUNING_BLOCK_HS200 && in dm_mmc_send_cmd() 37 cmd->cmdidx != MMC_CMD_READ_MULTIPLE_BLOCK && in dm_mmc_send_cmd() 38 cmd->cmdidx != MMC_CMD_WRITE_MULTIPLE_BLOCK && in dm_mmc_send_cmd() [all …]
|
| H A D | mxsmmc.c | 103 priv->desc->cmd.data = MXS_DMA_DESC_COMMAND_DMA_WRITE; in mxsmmc_send_cmd_dma() 107 priv->desc->cmd.data = MXS_DMA_DESC_COMMAND_DMA_READ; in mxsmmc_send_cmd_dma() 114 priv->desc->cmd.address = (dma_addr_t)bbstate.bounce_buffer; in mxsmmc_send_cmd_dma() 116 priv->desc->cmd.data |= MXS_DMA_DESC_IRQ | MXS_DMA_DESC_DEC_SEM | in mxsmmc_send_cmd_dma() 136 mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mxsmmc_send_cmd() argument 145 debug("MMC%d: CMD%d\n", mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd() 174 if (!(cmd->resp_type & MMC_RSP_CRC)) in mxsmmc_send_cmd() 176 if (cmd->resp_type & MMC_RSP_PRESENT) /* Need to get response */ in mxsmmc_send_cmd() 178 if (cmd->resp_type & MMC_RSP_136) /* It's a 136 bits response */ in mxsmmc_send_cmd() 189 reg |= cmd->cmdidx << SSP_CMD0_CMD_OFFSET; in mxsmmc_send_cmd() [all …]
|
| H A D | stm32_sdmmc2.c | 236 struct mmc_cmd *cmd, u32 cmd_param) in stm32_sdmmc2_start_cmd() argument 241 cmd_param |= cmd->cmdidx | SDMMC_CMD_CPSMEN; in stm32_sdmmc2_start_cmd() 242 if (cmd->resp_type & MMC_RSP_PRESENT) { in stm32_sdmmc2_start_cmd() 243 if (cmd->resp_type & MMC_RSP_136) in stm32_sdmmc2_start_cmd() 245 else if (cmd->resp_type & MMC_RSP_CRC) in stm32_sdmmc2_start_cmd() 255 writel(cmd->cmdarg, priv->base + SDMMC_ARG); in stm32_sdmmc2_start_cmd() 262 struct mmc_cmd *cmd, in stm32_sdmmc2_end_cmd() argument 269 if (cmd->resp_type & MMC_RSP_PRESENT) { in stm32_sdmmc2_end_cmd() 271 if (cmd->resp_type & MMC_RSP_CRC) in stm32_sdmmc2_end_cmd() 290 __func__, status, cmd->cmdidx); in stm32_sdmmc2_end_cmd() [all …]
|
| H A D | mxcmmc.c | 43 u32 cmd; member 111 struct mmc_cmd *cmd; member 162 static int mxcmci_start_cmd(struct mxcmci_host *host, struct mmc_cmd *cmd, in mxcmci_start_cmd() argument 165 if (host->cmd != NULL) in mxcmci_start_cmd() 167 host->cmd = cmd; in mxcmci_start_cmd() 169 switch (cmd->resp_type) { in mxcmci_start_cmd() 184 cmd->resp_type); in mxcmci_start_cmd() 188 writel(cmd->cmdidx, &host->base->cmd); in mxcmci_start_cmd() 189 writel(cmd->cmdarg, &host->base->arg); in mxcmci_start_cmd() 196 struct mmc_cmd *cmd, struct mmc_data *data) in mxcmci_finish_request() argument [all …]
|
| H A D | meson_gx_mmc.c | 98 struct mmc_cmd *cmd) in meson_mmc_setup_cmd() argument 102 meson_mmc_cmd |= cmd->cmdidx << CMD_CFG_CMD_INDEX_SHIFT; in meson_mmc_setup_cmd() 104 if (cmd->resp_type & MMC_RSP_PRESENT) { in meson_mmc_setup_cmd() 105 if (cmd->resp_type & MMC_RSP_136) in meson_mmc_setup_cmd() 108 if (cmd->resp_type & MMC_RSP_BUSY) in meson_mmc_setup_cmd() 111 if (!(cmd->resp_type & MMC_RSP_CRC)) in meson_mmc_setup_cmd() 160 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response() argument 162 if (cmd->resp_type & MMC_RSP_136) { in meson_mmc_read_response() 163 cmd->response[0] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP3); in meson_mmc_read_response() 164 cmd->response[1] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP2); in meson_mmc_read_response() [all …]
|
| H A D | sh_mmcif.c | 310 struct mmc_cmd *cmd) in sh_mmcif_get_response() argument 312 if (cmd->resp_type & MMC_RSP_136) { in sh_mmcif_get_response() 313 cmd->response[0] = sh_mmcif_read(&host->regs->ce_resp3); in sh_mmcif_get_response() 314 cmd->response[1] = sh_mmcif_read(&host->regs->ce_resp2); in sh_mmcif_get_response() 315 cmd->response[2] = sh_mmcif_read(&host->regs->ce_resp1); in sh_mmcif_get_response() 316 cmd->response[3] = sh_mmcif_read(&host->regs->ce_resp0); in sh_mmcif_get_response() 317 debug(" RESP %08x, %08x, %08x, %08x\n", cmd->response[0], in sh_mmcif_get_response() 318 cmd->response[1], cmd->response[2], cmd->response[3]); in sh_mmcif_get_response() 320 cmd->response[0] = sh_mmcif_read(&host->regs->ce_resp0); in sh_mmcif_get_response() 325 struct mmc_cmd *cmd) in sh_mmcif_get_cmd12response() argument [all …]
|
| H A D | tegra_mmc.c | 127 struct mmc_cmd *cmd, in tegra_mmc_wait_inhibit() argument 142 if ((data == NULL) && (cmd->resp_type & MMC_RSP_BUSY)) in tegra_mmc_wait_inhibit() 157 static int tegra_mmc_send_cmd_bounced(struct udevice *dev, struct mmc_cmd *cmd, in tegra_mmc_send_cmd_bounced() argument 168 result = tegra_mmc_wait_inhibit(priv, cmd, data, 10 /* ms */); in tegra_mmc_send_cmd_bounced() 176 debug("cmd->arg: %08x\n", cmd->cmdarg); in tegra_mmc_send_cmd_bounced() 177 writel(cmd->cmdarg, &priv->reg->argument); in tegra_mmc_send_cmd_bounced() 182 if ((cmd->resp_type & MMC_RSP_136) && (cmd->resp_type & MMC_RSP_BUSY)) in tegra_mmc_send_cmd_bounced() 197 if (!(cmd->resp_type & MMC_RSP_PRESENT)) in tegra_mmc_send_cmd_bounced() 199 else if (cmd->resp_type & MMC_RSP_136) in tegra_mmc_send_cmd_bounced() 201 else if (cmd->resp_type & MMC_RSP_BUSY) in tegra_mmc_send_cmd_bounced() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/lib/ |
| H A D | scu.c | 25 u32 cmd; member 48 static void scu_ipc_send_command(struct ipc_regs *regs, u32 cmd) in scu_ipc_send_command() argument 50 writel(cmd, ®s->cmd); in scu_ipc_send_command() 86 static int scu_ipc_cmd(struct ipc_regs *regs, u32 cmd, u32 sub, in scu_ipc_cmd() argument 94 scu_ipc_send_command(regs, (inlen << 16) | (sub << 12) | cmd); in scu_ipc_cmd() 117 int scu_ipc_simple_command(u32 cmd, u32 sub) in scu_ipc_simple_command() argument 129 scu_ipc_send_command(scu->regs, sub << 12 | cmd); in scu_ipc_simple_command() 133 int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_command() argument 145 return scu_ipc_cmd(scu->regs, cmd, sub, in, inlen, out, outlen); in scu_ipc_command()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | fdc.c | 34 uchar cmd[16]; /* cmd desc */ member 146 static FDC_COMMAND_STRUCT cmd; /* global command struct */ variable 259 pCMD->cmd[0],track,head,sect,pCMD->drive,pCMD->blnr); in fdc_issue_cmd() 262 pCMD->cmd[DRIVE]=pCMD->drive | 0x04; /* head 1 */ in fdc_issue_cmd() 263 pCMD->cmd[HEAD]=(unsigned char) head; /* head register */ in fdc_issue_cmd() 266 pCMD->cmd[DRIVE]=pCMD->drive; /* head 0 */ in fdc_issue_cmd() 267 pCMD->cmd[HEAD]=(unsigned char) head; /* head register */ in fdc_issue_cmd() 269 pCMD->cmd[TRACK]=(unsigned char) track; /* track */ in fdc_issue_cmd() 270 switch (pCMD->cmd[COMMAND]) { in fdc_issue_cmd() 272 pCMD->cmd[SECTOR]=(unsigned char) sect; /* sector */ in fdc_issue_cmd() [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | mxsimage.c | 123 char *cmd; member 131 struct sb_cmd_ctx *cmd; member 362 struct sb_command *cmd = &cctx->payload; in sb_encrypt_tag() local 364 sb_aes_crypt(ictx, (uint8_t *)cmd, in sb_encrypt_tag() 365 (uint8_t *)&cctx->c_payload, sizeof(*cmd)); in sb_encrypt_tag() 366 EVP_DigestUpdate(md_ctx, &cctx->c_payload, sizeof(*cmd)); in sb_encrypt_tag() 418 cctx = cctx->cmd; in sb_encrypt_image() 560 static int sb_build_dcd(struct sb_image_ctx *ictx, struct sb_cmd_list *cmd) in sb_build_dcd() argument 577 tok = strtok(cmd->cmd, " "); in sb_build_dcd() 580 cmd->lineno); in sb_build_dcd() [all …]
|
| /rk3399_rockchip-uboot/tools/patman/ |
| H A D | command.py | 74 cmd = pipeline.pop(0) 87 last_pipe = cros_subprocess.Popen(cmd, cwd=cwd, **kwargs) 107 def Output(*cmd, **kwargs): argument 109 return RunPipe([cmd], capture=True, raise_on_error=raise_on_error).stdout 111 def OutputOneLine(*cmd, **kwargs): argument 113 return (RunPipe([cmd], capture=True, oneline=True, 117 def Run(*cmd, **kwargs): argument 118 return RunPipe([cmd], **kwargs).stdout 120 def RunList(cmd): argument 121 return RunPipe([cmd], capture=True).stdout
|
| /rk3399_rockchip-uboot/arch/x86/cpu/ivybridge/ |
| H A D | cpu.c | 104 ulong cmd; in enable_usb_bar() local 109 pci_bus_read_config(bus, usb0, PCI_COMMAND, &cmd, PCI_SIZE_32); in enable_usb_bar() 110 cmd |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; in enable_usb_bar() 111 pci_bus_write_config(bus, usb0, PCI_COMMAND, cmd, PCI_SIZE_32); in enable_usb_bar() 116 pci_bus_read_config(bus, usb1, PCI_COMMAND, &cmd, PCI_SIZE_32); in enable_usb_bar() 117 cmd |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; in enable_usb_bar() 118 pci_bus_write_config(bus, usb1, PCI_COMMAND, cmd, PCI_SIZE_32); in enable_usb_bar() 123 pci_bus_read_config(bus, usb3, PCI_COMMAND, &cmd, PCI_SIZE_32); in enable_usb_bar() 124 cmd |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; in enable_usb_bar() 125 pci_bus_write_config(bus, usb3, PCI_COMMAND, cmd, PCI_SIZE_32); in enable_usb_bar()
|
| /rk3399_rockchip-uboot/drivers/net/fsl-mc/ |
| H A D | mc_sys.c | 32 struct mc_command *cmd) in mc_send_command() argument 37 mc_write_command(mc_io->mmio_regs, cmd); in mc_send_command() 40 status = mc_read_response(mc_io->mmio_regs, cmd); in mc_send_command() 55 (unsigned int)MC_CMD_HDR_READ_TOKEN(cmd->header), in mc_send_command() 56 (unsigned int)MC_CMD_HDR_READ_CMDID(cmd->header), in mc_send_command()
|
| H A D | fsl_dpmng_cmd.h | 12 #define DPMNG_RSP_GET_VERSION(cmd, mc_ver_info) \ argument 14 MC_RSP_OP(cmd, 0, 0, 32, uint32_t, mc_ver_info->revision); \ 15 MC_RSP_OP(cmd, 0, 32, 32, uint32_t, mc_ver_info->major); \ 16 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, mc_ver_info->minor); \
|
| /rk3399_rockchip-uboot/test/py/ |
| H A D | u_boot_console_exec_attach.py | 40 cmd = ['u-boot-test-flash', config.board_type, config.board_identity] 41 runner = self.log.get_runner(cmd[0], sys.stdout) 42 runner.run(cmd) 63 cmd = ['u-boot-test-reset'] + args 64 runner = self.log.get_runner(cmd[0], sys.stdout) 65 runner.run(cmd)
|
| H A D | u_boot_utils.py | 156 def run_and_log(u_boot_console, cmd, ignore_errors=False): argument 172 if isinstance(cmd, str): 173 cmd = cmd.split() 174 runner = u_boot_console.log.get_runner(cmd[0], sys.stdout) 175 output = runner.run(cmd, ignore_errors=ignore_errors) 179 def run_and_log_expect_exception(u_boot_console, cmd, retcode, msg): argument 192 runner = u_boot_console.log.get_runner(cmd[0], sys.stdout) 193 runner.run(cmd)
|
| /rk3399_rockchip-uboot/common/ |
| H A D | cli_simple.c | 175 int cli_simple_run_command(const char *cmd, int flag) in cli_simple_run_command() argument 187 debug_parser("[RUN_COMMAND] cmd[%p]=\"", cmd); in cli_simple_run_command() 190 puts(cmd ? cmd : "NULL"); in cli_simple_run_command() 195 if (!cmd || !*cmd) in cli_simple_run_command() 198 if (strlen(cmd) >= CONFIG_SYS_CBSIZE) { in cli_simple_run_command() 203 strcpy(cmdbuf, cmd); in cli_simple_run_command() 209 debug_parser("[PROCESS_SEPARATORS] %s\n", cmd); in cli_simple_run_command() 309 int cli_simple_run_command_list(char *cmd, int flag) in cli_simple_run_command_list() argument 318 next = cmd; in cli_simple_run_command_list() 319 line = cmd; in cli_simple_run_command_list()
|
| H A D | command.c | 86 cmd_tbl_t *find_cmd_tbl(const char *cmd, cmd_tbl_t *table, int table_len) in find_cmd_tbl() argument 94 if (!cmd) in find_cmd_tbl() 100 len = ((p = strchr(cmd, '.')) == NULL) ? strlen (cmd) : (p - cmd); in find_cmd_tbl() 103 if (strncmp(cmd, cmdtp->name, len) == 0) { in find_cmd_tbl() 118 cmd_tbl_t *find_cmd(const char *cmd) in find_cmd() argument 120 cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd); in find_cmd() 121 const int len = ll_entry_count(cmd_tbl_t, cmd); in find_cmd() 122 return find_cmd_tbl(cmd, start, len); in find_cmd() 166 cmd_tbl_t *cmdtp = ll_entry_start(cmd_tbl_t, cmd); in complete_cmdv() 167 const int count = ll_entry_count(cmd_tbl_t, cmd); in complete_cmdv() [all …]
|
| H A D | usb_storage.c | 347 printf("%02X ", pccb->cmd[i]); in usb_show_srb() 506 unsigned char cmd[12]; in usb_stor_CB_reset() local 510 memset(cmd, 0xff, sizeof(cmd)); in usb_stor_CB_reset() 511 cmd[0] = SCSI_SEND_DIAG; in usb_stor_CB_reset() 512 cmd[1] = 4; in usb_stor_CB_reset() 516 0, us->ifnum, cmd, sizeof(cmd), in usb_stor_CB_reset() 542 dir_in = US_DIRECTION(srb->cmd[0]); in usb_stor_BBB_comdat() 546 dir_in, srb->lun, srb->cmdlen, srb->cmd, srb->datalen, in usb_stor_BBB_comdat() 550 printf("cmd[%d] %#x ", result, srb->cmd[result]); in usb_stor_BBB_comdat() 572 memcpy(cbw->CBWCDB, srb->cmd, srb->cmdlen); in usb_stor_BBB_comdat() [all …]
|
| /rk3399_rockchip-uboot/include/linux/ |
| H A D | ethtool.h | 20 __u32 cmd; member 56 __u32 cmd; member 81 __u32 cmd; member 89 __u32 cmd; member 95 __u32 cmd; member 103 __u32 cmd; member 112 __u32 cmd; /* ETHTOOL_{G,S}COALESCE */ member 208 __u32 cmd; /* ETHTOOL_{G,S}RINGPARAM */ member 230 __u32 cmd; /* ETHTOOL_{G,S}PAUSEPARAM */ member 258 __u32 cmd; /* ETHTOOL_GSTRINGS */ member [all …]
|
| /rk3399_rockchip-uboot/include/fsl-mc/ |
| H A D | fsl_dpbp.h | 32 #define DPBP_CMD_OPEN(cmd, dpbp_id) \ argument 33 MC_CMD_OP(cmd, 0, 0, 32, int, dpbp_id) 36 #define DPBP_RSP_GET_ATTRIBUTES(cmd, attr) \ argument 38 MC_RSP_OP(cmd, 0, 16, 16, uint16_t, attr->bpid); \ 39 MC_RSP_OP(cmd, 0, 32, 32, int, attr->id);\ 40 MC_RSP_OP(cmd, 1, 0, 16, uint16_t, attr->version.major);\ 41 MC_RSP_OP(cmd, 1, 16, 16, uint16_t, attr->version.minor);\
|
| /rk3399_rockchip-uboot/drivers/ufs/ |
| H A D | ufs-rockchip-rpmb.c | 84 pccb->cmd[0] = UFS_OP_SECURITY_PROTOCOL_IN; /* 0: opcode */ in scsi_secproc_in() 85 pccb->cmd[1] = 0xEC; /* 1: security protocal */ in scsi_secproc_in() 86 pccb->cmd[2] = 0; /* 2: specific */ in scsi_secproc_in() 87 pccb->cmd[3] = 0x1; /* 3: specific */ in scsi_secproc_in() 88 pccb->cmd[4] = 0; /* 4: reserved */ in scsi_secproc_in() 89 pccb->cmd[5] = 0; /* 5: reserved */ in scsi_secproc_in() 90 pccb->cmd[6] = (uint8_t)((size >> 24) & 0xff); /* 6: MSB, shift 24 */ in scsi_secproc_in() 91 pccb->cmd[7] = (uint8_t)((size >> 16) & 0xff); /* 7: MSB, shift 16 */ in scsi_secproc_in() 92 pccb->cmd[8] = (uint8_t)((size >> 8) & 0xff); /* 8: LSB, shift 8 */ in scsi_secproc_in() 93 pccb->cmd[9] = (uint8_t)(size & 0xff); /* 9: LSB */ in scsi_secproc_in() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/dram/ |
| H A D | cmd_ddrphy.c | 266 char *cmd; in do_ddr() local 275 cmd = "all"; in do_ddr() 277 cmd = argv[1]; in do_ddr() 279 if (!strcmp(cmd, "wbdl") || !strcmp(cmd, "all")) in do_ddr() 282 if (!strcmp(cmd, "rbdl") || !strcmp(cmd, "all")) in do_ddr() 285 if (!strcmp(cmd, "wld") || !strcmp(cmd, "all")) in do_ddr() 288 if (!strcmp(cmd, "dqsgd") || !strcmp(cmd, "all")) in do_ddr() 291 if (!strcmp(cmd, "mdl") || !strcmp(cmd, "all")) in do_ddr() 294 if (!strcmp(cmd, "reg") || !strcmp(cmd, "all")) in do_ddr()
|