Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/rk3399_rockchip-uboot/include/fsl-mc/
H A Dfsl_dprc.h38 #define DPRC_RSP_GET_CONTAINER_ID(cmd, container_id) \ argument
39 MC_RSP_OP(cmd, 0, 0, 32, int, container_id)
42 #define DPRC_CMD_OPEN(cmd, container_id) \ argument
43 MC_CMD_OP(cmd, 0, 0, 32, int, container_id)
46 #define DPRC_CMD_CREATE_CONTAINER(cmd, cfg) \ argument
48 MC_CMD_OP(cmd, 0, 32, 16, uint16_t, cfg->icid); \
49 MC_CMD_OP(cmd, 0, 0, 32, uint32_t, cfg->options); \
50 MC_CMD_OP(cmd, 1, 32, 32, int, cfg->portal_id); \
51 MC_CMD_OP(cmd, 2, 0, 8, char, cfg->label[0]);\
52 MC_CMD_OP(cmd, 2, 8, 8, char, cfg->label[1]);\
[all …]
H A Dfsl_dpni.h53 #define DPNI_CMD_OPEN(cmd, dpni_id) \ argument
54 MC_CMD_OP(cmd, 0, 0, 32, int, dpni_id)
117 #define DPNI_CMD_CREATE(cmd, cfg) \ argument
119 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->adv.max_tcs); \
120 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, cfg->adv.max_senders); \
121 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, cfg->mac_addr[5]); \
122 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, cfg->mac_addr[4]); \
123 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, cfg->mac_addr[3]); \
124 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, cfg->mac_addr[2]); \
125 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, cfg->mac_addr[1]); \
[all …]
H A Dfsl_dpmac.h33 #define DPMAC_CMD_CREATE(cmd, cfg) \ argument
34 MC_CMD_OP(cmd, 0, 0, 32, int, cfg->mac_id)
37 #define DPMAC_CMD_OPEN(cmd, dpmac_id) \ argument
38 MC_CMD_OP(cmd, 0, 0, 32, int, dpmac_id)
41 #define DPMAC_RSP_GET_ATTRIBUTES(cmd, attr) \ argument
43 MC_RSP_OP(cmd, 0, 0, 32, int, attr->phy_id);\
44 MC_RSP_OP(cmd, 0, 32, 32, int, attr->id);\
45 MC_RSP_OP(cmd, 1, 0, 16, uint16_t, attr->version.major);\
46 MC_RSP_OP(cmd, 1, 16, 16, uint16_t, attr->version.minor);\
47 MC_RSP_OP(cmd, 1, 32, 8, enum dpmac_link_type, attr->link_type);\
[all …]
H A Dfsl_dpio.h26 #define DPIO_CMD_OPEN(cmd, dpio_id) \ argument
27 MC_CMD_OP(cmd, 0, 0, 32, int, dpio_id)
30 #define DPIO_CMD_CREATE(cmd, cfg) \ argument
32 MC_CMD_OP(cmd, 0, 16, 2, enum dpio_channel_mode, \
34 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, cfg->num_priorities);\
38 #define DPIO_RSP_GET_ATTR(cmd, attr) \ argument
40 MC_RSP_OP(cmd, 0, 0, 32, int, attr->id);\
41 MC_RSP_OP(cmd, 0, 32, 16, uint16_t, attr->qbman_portal_id);\
42 MC_RSP_OP(cmd, 0, 48, 8, uint8_t, attr->num_priorities);\
43 MC_RSP_OP(cmd, 0, 56, 4, enum dpio_channel_mode, attr->channel_mode);\
[all …]
/rk3399_rockchip-uboot/drivers/net/fsl-mc/
H A Ddpni.c36 struct mc_command cmd = { 0 }; in dpni_open() local
40 cmd.header = mc_encode_cmd_header(DPNI_CMDID_OPEN, in dpni_open()
43 DPNI_CMD_OPEN(cmd, dpni_id); in dpni_open()
46 err = mc_send_command(mc_io, &cmd); in dpni_open()
51 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpni_open()
60 struct mc_command cmd = { 0 }; in dpni_close() local
63 cmd.header = mc_encode_cmd_header(DPNI_CMDID_CLOSE, in dpni_close()
68 return mc_send_command(mc_io, &cmd); in dpni_close()
76 struct mc_command cmd = { 0 }; in dpni_create() local
80 cmd.header = mc_encode_cmd_header(DPNI_CMDID_CREATE, in dpni_create()
[all …]
H A Ddprc.c18 struct mc_command cmd = { 0 }; in dprc_get_container_id() local
22 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_CONT_ID, in dprc_get_container_id()
27 err = mc_send_command(mc_io, &cmd); in dprc_get_container_id()
32 DPRC_RSP_GET_CONTAINER_ID(cmd, *container_id); in dprc_get_container_id()
42 struct mc_command cmd = { 0 }; in dprc_open() local
46 cmd.header = mc_encode_cmd_header(DPRC_CMDID_OPEN, cmd_flags, in dprc_open()
48 DPRC_CMD_OPEN(cmd, container_id); in dprc_open()
51 err = mc_send_command(mc_io, &cmd); in dprc_open()
56 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dprc_open()
65 struct mc_command cmd = { 0 }; in dprc_close() local
[all …]
H A Ddpmac.c19 struct mc_command cmd = { 0 }; in dpmac_open() local
23 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_OPEN, in dpmac_open()
26 DPMAC_CMD_OPEN(cmd, dpmac_id); in dpmac_open()
29 err = mc_send_command(mc_io, &cmd); in dpmac_open()
34 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpmac_open()
43 struct mc_command cmd = { 0 }; in dpmac_close() local
46 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CLOSE, cmd_flags, in dpmac_close()
50 return mc_send_command(mc_io, &cmd); in dpmac_close()
58 struct mc_command cmd = { 0 }; in dpmac_create() local
62 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CREATE, in dpmac_create()
[all …]
H A Ddpbp.c18 struct mc_command cmd = { 0 }; in dpbp_open() local
22 cmd.header = mc_encode_cmd_header(DPBP_CMDID_OPEN, in dpbp_open()
25 DPBP_CMD_OPEN(cmd, dpbp_id); in dpbp_open()
28 err = mc_send_command(mc_io, &cmd); in dpbp_open()
33 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpbp_open()
42 struct mc_command cmd = { 0 }; in dpbp_close() local
45 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CLOSE, cmd_flags, in dpbp_close()
49 return mc_send_command(mc_io, &cmd); in dpbp_close()
57 struct mc_command cmd = { 0 }; in dpbp_create() local
63 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CREATE, in dpbp_create()
[all …]
/rk3399_rockchip-uboot/drivers/net/fsl-mc/dpio/
H A Ddpio.c16 struct mc_command cmd = { 0 }; in dpio_open() local
20 cmd.header = mc_encode_cmd_header(DPIO_CMDID_OPEN, in dpio_open()
23 DPIO_CMD_OPEN(cmd, dpio_id); in dpio_open()
26 err = mc_send_command(mc_io, &cmd); in dpio_open()
31 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpio_open()
40 struct mc_command cmd = { 0 }; in dpio_close() local
43 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CLOSE, in dpio_close()
48 return mc_send_command(mc_io, &cmd); in dpio_close()
56 struct mc_command cmd = { 0 }; in dpio_create() local
60 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CREATE, in dpio_create()
[all …]
/rk3399_rockchip-uboot/common/
H A Dcli.c33 int run_command(const char *cmd, int flag) in run_command() argument
40 if (cli_simple_run_command(cmd, flag) == -1) in run_command()
49 return parse_string_outer(cmd, hush_flags); in run_command()
60 int run_command_repeatable(const char *cmd, int flag) in run_command_repeatable() argument
63 return cli_simple_run_command(cmd, flag); in run_command_repeatable()
69 if (parse_string_outer(cmd, in run_command_repeatable()
77 int run_command_list(const char *cmd, int len, int flag) in run_command_list() argument
80 char *buff = (char *)cmd; /* cast away const */ in run_command_list()
84 len = strlen(cmd); in run_command_list()
90 need_buff = strchr(cmd, '\n') != NULL; in run_command_list()
[all …]
/rk3399_rockchip-uboot/drivers/mmc/
H A Dmmc_boot.c28 struct mmc_cmd cmd; in mmc_boot_partition_size_change() local
31 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
32 cmd.resp_type = MMC_RSP_R1b; in mmc_boot_partition_size_change()
33 cmd.cmdarg = MMC_CMD62_ARG1; in mmc_boot_partition_size_change()
35 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
42 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
43 cmd.resp_type = MMC_RSP_R1b; in mmc_boot_partition_size_change()
44 cmd.cmdarg = MMC_CMD62_ARG2; in mmc_boot_partition_size_change()
46 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
55 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
[all …]
H A Dmmc.c87 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() argument
89 printf("CMD_SEND:%d\n", cmd->cmdidx); in mmmc_trace_before_send()
90 printf("\t\tARG\t\t\t 0x%08X\n", cmd->cmdarg); in mmmc_trace_before_send()
93 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret) in mmmc_trace_after_send() argument
101 switch (cmd->resp_type) { in mmmc_trace_after_send()
107 cmd->response[0]); in mmmc_trace_after_send()
111 cmd->response[0]); in mmmc_trace_after_send()
115 cmd->response[0]); in mmmc_trace_after_send()
117 cmd->response[1]); in mmmc_trace_after_send()
119 cmd->response[2]); in mmmc_trace_after_send()
[all …]
H A Dmvebu_mmc.c66 static int mvebu_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in mvebu_mmc_send_cmd() argument
76 DRIVER_NAME, cmd->cmdidx, cmd->resp_type, cmd->cmdarg); in mvebu_mmc_send_cmd()
79 cmd->cmdidx, mvebu_mmc_read(SDIO_HW_STATE)); in mvebu_mmc_send_cmd()
111 resptype = SDIO_CMD_INDEX(cmd->cmdidx); in mvebu_mmc_send_cmd()
114 if (cmd->resp_type & MMC_RSP_BUSY) in mvebu_mmc_send_cmd()
116 else if (cmd->resp_type & MMC_RSP_136) in mvebu_mmc_send_cmd()
118 else if (cmd->resp_type & MMC_RSP_PRESENT) in mvebu_mmc_send_cmd()
123 if (cmd->resp_type & MMC_RSP_CRC) in mvebu_mmc_send_cmd()
126 if (cmd->resp_type & MMC_RSP_OPCODE) in mvebu_mmc_send_cmd()
129 if (cmd->resp_type & MMC_RSP_PRESENT) { in mvebu_mmc_send_cmd()
[all …]
H A Dmmc_write.c20 struct mmc_cmd cmd; in mmc_erase_t() local
52 cmd.cmdidx = start_cmd; in mmc_erase_t()
53 cmd.cmdarg = start; in mmc_erase_t()
54 cmd.resp_type = MMC_RSP_R1; in mmc_erase_t()
56 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_erase_t()
60 cmd.cmdidx = end_cmd; in mmc_erase_t()
61 cmd.cmdarg = end; in mmc_erase_t()
63 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_erase_t()
67 cmd.cmdidx = MMC_CMD_ERASE; in mmc_erase_t()
68 cmd.cmdarg = erase_mode; in mmc_erase_t()
[all …]
H A Dsandbox_mmc.c28 static int sandbox_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sandbox_mmc_send_cmd() argument
31 switch (cmd->cmdidx) { in sandbox_mmc_send_cmd()
35 cmd->response[0] = 0 << 16; /* mmc->rca */ in sandbox_mmc_send_cmd()
39 cmd->response[0] = 0xaa; in sandbox_mmc_send_cmd()
42 cmd->response[0] = MMC_STATUS_RDY_FOR_DATA; in sandbox_mmc_send_cmd()
47 cmd->response[0] = 0; in sandbox_mmc_send_cmd()
48 cmd->response[1] = 10 << 16; /* 1 << block_len */ in sandbox_mmc_send_cmd()
65 cmd->response[0] = OCR_BUSY | OCR_HCS; in sandbox_mmc_send_cmd()
66 cmd->response[1] = 0; in sandbox_mmc_send_cmd()
67 cmd->response[2] = 0; in sandbox_mmc_send_cmd()
[all …]
H A Dmmc_spi.c173 static int mmc_spi_request(struct mmc *mmc, struct mmc_cmd *cmd, in mmc_spi_request() argument
181 cmd->cmdidx, cmd->resp_type, cmd->cmdarg); in mmc_spi_request()
184 r1 = mmc_spi_sendcmd(mmc, cmd->cmdidx, cmd->cmdarg); in mmc_spi_request()
194 } else if (cmd->resp_type == MMC_RSP_R2) { in mmc_spi_request()
195 r1 = mmc_spi_readdata(mmc, cmd->response, 1, 16); in mmc_spi_request()
197 cmd->response[i] = be32_to_cpu(cmd->response[i]); in mmc_spi_request()
198 debug("r128 %x %x %x %x\n", cmd->response[0], cmd->response[1], in mmc_spi_request()
199 cmd->response[2], cmd->response[3]); in mmc_spi_request()
201 switch (cmd->cmdidx) { in mmc_spi_request()
204 cmd->response[0] = (r1 & R1_SPI_IDLE) ? 0 : OCR_BUSY; in mmc_spi_request()
[all …]
H A Darm_pl180_mmci.c22 static int wait_for_command_end(struct mmc *dev, struct mmc_cmd *cmd) in wait_for_command_end() argument
28 if ((cmd->resp_type & MMC_RSP_PRESENT)) in wait_for_command_end()
39 debug("CMD%d time out\n", cmd->cmdidx); in wait_for_command_end()
42 (cmd->resp_type & MMC_RSP_CRC)) { in wait_for_command_end()
43 printf("CMD%d CRC error\n", cmd->cmdidx); in wait_for_command_end()
47 if (cmd->resp_type & MMC_RSP_PRESENT) { in wait_for_command_end()
48 cmd->response[0] = readl(&host->base->response0); in wait_for_command_end()
49 cmd->response[1] = readl(&host->base->response1); in wait_for_command_end()
50 cmd->response[2] = readl(&host->base->response2); in wait_for_command_end()
51 cmd->response[3] = readl(&host->base->response3); in wait_for_command_end()
[all …]
/rk3399_rockchip-uboot/drivers/scsi/
H A Dscsi.c63 pccb->cmd[0] = SCSI_READ16; in scsi_setup_read16()
64 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read16()
65 pccb->cmd[2] = (unsigned char)(start >> 56) & 0xff; in scsi_setup_read16()
66 pccb->cmd[3] = (unsigned char)(start >> 48) & 0xff; in scsi_setup_read16()
67 pccb->cmd[4] = (unsigned char)(start >> 40) & 0xff; in scsi_setup_read16()
68 pccb->cmd[5] = (unsigned char)(start >> 32) & 0xff; in scsi_setup_read16()
69 pccb->cmd[6] = (unsigned char)(start >> 24) & 0xff; in scsi_setup_read16()
70 pccb->cmd[7] = (unsigned char)(start >> 16) & 0xff; in scsi_setup_read16()
71 pccb->cmd[8] = (unsigned char)(start >> 8) & 0xff; in scsi_setup_read16()
72 pccb->cmd[9] = (unsigned char)start & 0xff; in scsi_setup_read16()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dscript_update.c114 char cmd[128]; in do_sd_update() local
140 snprintf(cmd, sizeof(cmd), in do_sd_update()
142 ret = run_command(cmd, 0); in do_sd_update()
144 snprintf(cmd, sizeof(cmd), "script 0x%08lx", (ulong)buf); in do_sd_update()
145 ret = run_command(cmd, 0); in do_sd_update()
161 char cmd[128]; in do_usb_update() local
201 snprintf(cmd, sizeof(cmd), "fatload usb %d 0x%08lx usb_update.txt", in do_usb_update()
203 ret = run_command(cmd, 0); in do_usb_update()
205 snprintf(cmd, sizeof(cmd), "script 0x%08lx", (ulong)buf); in do_usb_update()
206 ret = run_command(cmd, 0); in do_usb_update()
[all …]
H A Dcros_ec.c102 const char *cmd; in do_cros_ec() local
108 cmd = argv[1]; in do_cros_ec()
109 if (0 == strcmp("init", cmd)) { in do_cros_ec()
128 if (0 == strcmp("id", cmd)) { in do_cros_ec()
136 } else if (0 == strcmp("info", cmd)) { in do_cros_ec()
146 } else if (0 == strcmp("curimage", cmd)) { in do_cros_ec()
154 } else if (0 == strcmp("hash", cmd)) { in do_cros_ec()
175 } else if (0 == strcmp("reboot", cmd)) { in do_cros_ec()
177 enum ec_reboot_cmd cmd; in do_cros_ec() local
180 cmd = EC_REBOOT_COLD; in do_cros_ec()
[all …]
/rk3399_rockchip-uboot/test/py/tests/
H A Dtest_ums.py139 cmd = 'ums %s %s %s' % (tgt_usb_ctlr, tgt_dev_type, tgt_dev_id)
140 u_boot_console.run_command(cmd, wait_for_prompt=False)
158 cmd = ('/bin/mount', host_ums_part_node)
159 u_boot_utils.run_and_log(u_boot_console, cmd)
175 cmd = ('/bin/umount', host_ums_part_node)
176 u_boot_utils.run_and_log(u_boot_console, cmd, ignore_errors)
209 cmd = ('rm', '-f', mounted_test_fn)
210 u_boot_utils.run_and_log(u_boot_console, cmd)
213 cmd = ('cp', test_f.abs_fn, mounted_test_fn)
214 u_boot_utils.run_and_log(u_boot_console, cmd)
[all …]
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsf.c14 const u8 *cmd, size_t cmd_len, in spi_flash_read_write() argument
24 ret = spi_xfer(spi, cmd_len * 8, cmd, NULL, flags); in spi_flash_read_write()
39 int spi_flash_cmd_read(struct spi_slave *spi, const u8 *cmd, in spi_flash_cmd_read() argument
42 return spi_flash_read_write(spi, cmd, cmd_len, NULL, data, data_len); in spi_flash_cmd_read()
45 int spi_flash_cmd(struct spi_slave *spi, u8 cmd, void *response, size_t len) in spi_flash_cmd() argument
47 return spi_flash_cmd_read(spi, &cmd, 1, response, len); in spi_flash_cmd()
50 int spi_flash_cmd_write(struct spi_slave *spi, const u8 *cmd, size_t cmd_len, in spi_flash_cmd_write() argument
53 return spi_flash_read_write(spi, cmd, cmd_len, data, NULL, data_len); in spi_flash_cmd_write()
H A Dspi_flash.c26 static void spi_flash_addr(u32 addr, u8 *cmd) in spi_flash_addr() argument
29 cmd[1] = addr >> 16; in spi_flash_addr()
30 cmd[2] = addr >> 8; in spi_flash_addr()
31 cmd[3] = addr >> 0; in spi_flash_addr()
37 u8 cmd; in read_sr() local
39 cmd = CMD_READ_STATUS; in read_sr()
40 ret = spi_flash_read_common(flash, &cmd, 1, rs, 1); in read_sr()
52 const u8 cmd = CMD_FLAG_STATUS; in read_fsr() local
54 ret = spi_flash_read_common(flash, &cmd, 1, fsr, 1); in read_fsr()
65 u8 cmd; in write_sr() local
[all …]
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Df_fastboot.c554 char *cmd = req->buf; in cb_reboot() local
556 if (!strcmp_l1("reboot-bootloader", cmd)) { in cb_reboot()
563 if (!strcmp_l1("reboot-fastboot", cmd)) { in cb_reboot()
570 if (!strcmp_l1("reboot-recovery", cmd)) { in cb_reboot()
651 static int fb_read_var(char *cmd, char *response, in fb_read_var() argument
689 char *part_name = cmd; in fb_read_var()
691 cmd = strsep(&part_name, ":"); in fb_read_var()
692 if (!cmd || !part_name) { in fb_read_var()
723 } else if (!strncmp(PARTITION_TYPE_STRINGS, cmd, in fb_read_var()
732 } else if (!strncmp("partition-size", cmd, 14)) { in fb_read_var()
[all …]
/rk3399_rockchip-uboot/tools/patman/
H A Dgitutil.py33 cmd = ['git']
35 cmd += ['--git-dir', git_dir]
36 cmd += ['--no-pager', 'log', '--no-color']
38 cmd.append('--oneline')
40 cmd.append('--no-decorate')
42 cmd.append('--reverse')
44 cmd.append('-n%d' % count)
46 cmd.append(commit_range)
51 cmd.append('--')
52 return cmd
[all …]

12345678910>>...20