command_invocation::argv is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDcommand_invocation::argv

command_invocation::argv field

Syntax

const char **argv;

References

LocationReferrerText
command.h:81
const char **argv;
FLASHPlugin.c:320plugin_flash_bank_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[7], stackSize);
FLASHPlugin.c:326plugin_flash_bank_command()
const char *URL = CMD_ARGV[6];
aarch64.c:3023aarch64_handle_disassemble_command()
aarch64.c:3026aarch64_handle_disassemble_command()
aarch64.c:3048aarch64_mask_interrupts_command()
n = nvp_name2value(nvp_maskisr_modes, CMD_ARGV[0]);
aarch64.c:3050aarch64_mask_interrupts_command()
LOG_ERROR("Unknown parameter: %s - should be off or on", CMD_ARGV[0]);
aarch64.c:3114aarch64_mcrmrc_command()
aarch64.c:3120aarch64_mcrmrc_command()
aarch64.c:3126aarch64_mcrmrc_command()
aarch64.c:3132aarch64_mcrmrc_command()
aarch64.c:3138aarch64_mcrmrc_command()
aarch64.c:3145aarch64_mcrmrc_command()
adapter.c:436handle_adapter_driver_command()
if (CMD_ARGC != 1 || CMD_ARGV[0][0] == '\0')
adapter.c:440handle_adapter_driver_command()
if (strcmp(CMD_ARGV[0], adapter_drivers[i]->name) != 0)
adapter.c:458handle_adapter_driver_command()
adapter.c:475handle_reset_config_command()
for (; CMD_ARGC; CMD_ARGC--, CMD_ARGV++) {
adapter.c:481handle_reset_config_command()
if (strcmp(*CMD_ARGV, "srst_gates_jtag") == 0)
adapter.c:483handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "srst_nogate") == 0)
adapter.c:489handle_reset_config_command()
"gating", *CMD_ARGV);
adapter.c:497handle_reset_config_command()
if (strcmp(*CMD_ARGV, "none") == 0)
adapter.c:499handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "trst_only") == 0)
adapter.c:501handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "srst_only") == 0)
adapter.c:503handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "trst_and_srst") == 0)
adapter.c:509handle_reset_config_command()
"signal", *CMD_ARGV);
adapter.c:517handle_reset_config_command()
if (strcmp(*CMD_ARGV, "separate") == 0)
adapter.c:519handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "srst_pulls_trst") == 0)
adapter.c:521handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "trst_pulls_srst") == 0)
adapter.c:523handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "combined") == 0)
adapter.c:529handle_reset_config_command()
"combination", *CMD_ARGV);
adapter.c:537handle_reset_config_command()
if (strcmp(*CMD_ARGV, "trst_open_drain") == 0)
adapter.c:539handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "trst_push_pull") == 0)
adapter.c:545handle_reset_config_command()
"trst_type", *CMD_ARGV);
adapter.c:553handle_reset_config_command()
if (strcmp(*CMD_ARGV, "srst_push_pull") == 0)
adapter.c:555handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "srst_open_drain") == 0)
adapter.c:561handle_reset_config_command()
"srst_type", *CMD_ARGV);
adapter.c:569handle_reset_config_command()
if (strcmp(*CMD_ARGV, "connect_assert_srst") == 0)
adapter.c:571handle_reset_config_command()
else if (strcmp(*CMD_ARGV, "connect_deassert_srst") == 0)
adapter.c:577handle_reset_config_command()
"connect_type", *CMD_ARGV);
adapter.c:584handle_reset_config_command()
LOG_ERROR("unknown reset_config flag (%s)", *CMD_ARGV);
adapter.c:688handle_adapter_srst_delay_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], delay);
adapter.c:702handle_adapter_srst_pulse_width_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], width);
adapter.c:718handle_adapter_speed_command()
adapter.c:744handle_adapter_serial_command()
adapter.c:783handle_adapter_reset_de_assert()
if (strcmp(CMD_ARGV[0], "srst") == 0)
adapter.c:785handle_adapter_reset_de_assert()
else if (strcmp(CMD_ARGV[0], "trst") == 0)
adapter.c:791handle_adapter_reset_de_assert()
if (strcmp(CMD_ARGV[1], "assert") == 0)
adapter.c:793handle_adapter_reset_de_assert()
else if (strcmp(CMD_ARGV[1], "deassert") == 0)
adapter.c:798handle_adapter_reset_de_assert()
if (strcmp(CMD_ARGV[2], "srst") == 0 && srst == VALUE_UNDEFINED)
adapter.c:800handle_adapter_reset_de_assert()
else if (strcmp(CMD_ARGV[2], "trst") == 0 && trst == VALUE_UNDEFINED)
adapter.c:935adapter_gpio_config_handler()
int gpio_idx = get_gpio_index(CMD_ARGV[0]);
adapter.c:937adapter_gpio_config_handler()
LOG_ERROR("adapter has no gpio named %s", CMD_ARGV[0]);
adapter.c:948adapter_gpio_config_handler()
LOG_DEBUG("Processing %s", CMD_ARGV[i]);
adapter.c:950adapter_gpio_config_handler()
if (isdigit(*CMD_ARGV[i])) {
adapter.c:951adapter_gpio_config_handler()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[i], gpio_config->gpio_num);
adapter.c:956adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-chip") == 0) {
adapter.c:961adapter_gpio_config_handler()
LOG_DEBUG("-chip arg is %s", CMD_ARGV[i + 1]);
adapter.c:962adapter_gpio_config_handler()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[i + 1], gpio_config->chip_num);
adapter.c:967adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-active-high") == 0) {
adapter.c:972adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-active-low") == 0) {
adapter.c:979adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-push-pull") == 0) {
adapter.c:984adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-open-drain") == 0) {
adapter.c:989adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-open-source") == 0) {
adapter.c:996adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-pull-none") == 0) {
adapter.c:1001adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-pull-up") == 0) {
adapter.c:1006adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-pull-down") == 0) {
adapter.c:1013adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-init-inactive") == 0) {
adapter.c:1018adapter_gpio_config_handler()
if (strcmp(CMD_ARGV[i], "-init-active") == 0) {
adapter.c:1025adapter_gpio_config_handler()
strcmp(CMD_ARGV[i], "-init-input") == 0) {
adapter.c:1033adapter_gpio_config_handler()
CMD_NAME, gpio_map[gpio_idx].name, CMD_ARGV[i]);
ambiqmicro.c:772ambiqmicro_handle_page_erase_command()
ambiqmicro.c:773ambiqmicro_handle_page_erase_command()
ambiqmicro.c:800ambiqmicro_handle_program_otp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], offset);
ambiqmicro.c:801ambiqmicro_handle_program_otp_command()
arc_cmd.c:66arc_handle_add_reg_type_flags_ops()
arc_cmd.c:68arc_handle_add_reg_type_flags_ops()
arc_cmd.c:74arc_handle_add_reg_type_flags_ops()
const char *name = CMD_ARGV[0];
arc_cmd.c:76arc_handle_add_reg_type_flags_ops()
arc_cmd.c:91arc_handle_add_reg_type_flags_ops()
const char *field_name = CMD_ARGV[0];
arc_cmd.c:92arc_handle_add_reg_type_flags_ops()
arc_cmd.c:94arc_handle_add_reg_type_flags_ops()
CMD_ARGV += 2;
arc_cmd.c:116arc_handle_add_reg_type_flags_ops()
arc_cmd.c:217arc_handle_set_aux_reg()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], regnum);
arc_cmd.c:221arc_handle_set_aux_reg()
arc_cmd.c:244arc_handle_get_aux_reg()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], regnum);
arc_cmd.c:270arc_handle_get_core_reg()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], regnum);
arc_cmd.c:302arc_handle_set_core_reg()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], regnum);
arc_cmd.c:311arc_handle_set_core_reg()
arc_cmd.c:375arc_handle_add_reg_type_struct_opts()
arc_cmd.c:377arc_handle_add_reg_type_struct_opts()
arc_cmd.c:383arc_handle_add_reg_type_struct_opts()
const char *name = CMD_ARGV[0];
arc_cmd.c:385arc_handle_add_reg_type_struct_opts()
arc_cmd.c:400arc_handle_add_reg_type_struct_opts()
const char *field_name = CMD_ARGV[0];
arc_cmd.c:401arc_handle_add_reg_type_struct_opts()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], start_pos);
arc_cmd.c:402arc_handle_add_reg_type_struct_opts()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], end_pos);
arc_cmd.c:404arc_handle_add_reg_type_struct_opts()
CMD_ARGV += 3;
arc_cmd.c:429arc_handle_add_reg_type_struct_opts()
arc_cmd.c:549arc_handle_add_reg_do()
arc_cmd.c:551arc_handle_add_reg_do()
arc_cmd.c:557arc_handle_add_reg_do()
reg->name = strdup(CMD_ARGV[0]);
arc_cmd.c:564arc_handle_add_reg_do()
arc_cmd.c:579arc_handle_add_reg_do()
arc_cmd.c:581arc_handle_add_reg_do()
arc_cmd.c:590arc_handle_add_reg_do()
arc_cmd.c:597arc_handle_add_reg_do()
arc_cmd.c:604arc_handle_add_reg_do()
type_name = CMD_ARGV[0];
arc_cmd.c:606arc_handle_add_reg_do()
arc_cmd.c:614arc_handle_add_reg_do()
arc_cmd.c:679arc_set_reg_exists()
const char * const reg_name = CMD_ARGV[i];
arc_cmd.c:706arc_handle_get_reg_field()
const char *reg_name = CMD_ARGV[0];
arc_cmd.c:707arc_handle_get_reg_field()
const char *field_name = CMD_ARGV[1];
arc_cmd.c:782arc_handle_actionpoints_num()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], ap_num);
arm11.c:1263arm11_handle_vcr()
arm7_9_common.c:2769handle_arm7_9_dbgrq_command()
arm7_9_common.c:2789handle_arm7_9_fast_memory_access_command()
arm7_9_common.c:2809handle_arm7_9_dcc_downloads_command()
arm920t.c:878arm920t_handle_read_cache_command()
output = fopen(CMD_ARGV[0], "w");
arm920t.c:1106arm920t_handle_read_cache_command()
arm920t.c:1160arm920t_handle_read_mmu_command()
output = fopen(CMD_ARGV[0], "w");
arm920t.c:1418arm920t_handle_read_mmu_command()
arm920t.c:1468arm920t_handle_cp15_command()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], address);
arm920t.c:1486arm920t_handle_cp15_command()
arm946e.c:582arm946e_handle_cp15()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
arm946e.c:599arm946e_handle_cp15()
arm946e.c:646arm946e_handle_idcache()
retval = command_parse_bool_arg(CMD_ARGV[0], &enable);
arm946e.c:648arm946e_handle_idcache()
if (strcmp(CMD_ARGV[0], "flush") == 0) {
arm946e.c:657arm946e_handle_idcache()
command_print(CMD, "%s-cache absent, '%s' operation undefined", icache ? "I" : "D", CMD_ARGV[0]);
arm966e.c:184arm966e_handle_cp15_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
arm966e.c:203arm966e_handle_cp15_command()
arm9tdmi.c:819handle_arm9tdmi_catch_vectors_command()
if (strcmp(CMD_ARGV[0], "all") == 0)
arm9tdmi.c:821handle_arm9tdmi_catch_vectors_command()
else if (strcmp(CMD_ARGV[0], "none") == 0) {
arm9tdmi.c:828handle_arm9tdmi_catch_vectors_command()
if (strcmp(CMD_ARGV[i], arm9tdmi_vectors[j].name) == 0) {
arm9tdmi.c:836handle_arm9tdmi_catch_vectors_command()
command_print(CMD, "vector '%s' not found, leaving current setting unchanged", CMD_ARGV[i]);
arm_adi_v5.c:2518handle_dap_info_command()
if (!strcmp(CMD_ARGV[0], "root")) {
arm_adi_v5.c:2530handle_dap_info_command()
arm_adi_v5.c:2567dap_baseaddr_command()
arm_adi_v5.c:2635dap_memaccess_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], memaccess_tck);
arm_adi_v5.c:2660dap_apsel_command()
arm_adi_v5.c:2691dap_apcsw_command()
if (strcmp(CMD_ARGV[0], "default") == 0)
arm_adi_v5.c:2694dap_apcsw_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], csw_val);
arm_adi_v5.c:2708dap_apcsw_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], csw_val);
arm_adi_v5.c:2709dap_apcsw_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], csw_mask);
arm_adi_v5.c:2743dap_apid_command()
arm_adi_v5.c:2783dap_apreg_command()
arm_adi_v5.c:2789dap_apreg_command()
arm_adi_v5.c:2809dap_apreg_command()
arm_adi_v5.c:2864dap_dpreg_command()
arm_adi_v5.c:2871dap_dpreg_command()
arm_cti.c:252handle_cti_enable()
arm_cti.c:265handle_cti_testmode()
arm_cti.c:279handle_cti_write()
arm_cti.c:283handle_cti_write()
arm_cti.c:298handle_cti_read()
arm_cti.c:319handle_cti_ack()
arm_cti.c:338handle_cti_channel()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], ch_num);
arm_cti.c:340handle_cti_channel()
if (!strcmp(CMD_ARGV[1], "gate"))
arm_cti.c:342handle_cti_channel()
else if (!strcmp(CMD_ARGV[1], "ungate"))
arm_cti.c:344handle_cti_channel()
else if (!strcmp(CMD_ARGV[1], "pulse"))
arm_cti.c:346handle_cti_channel()
else if (!strcmp(CMD_ARGV[1], "set"))
arm_cti.c:348handle_cti_channel()
else if (!strcmp(CMD_ARGV[1], "clear"))
arm_dap.c:465handle_dap_info_command()
if (!strcmp(CMD_ARGV[0], "root")) {
arm_dap.c:477handle_dap_info_command()
arm_tpiu_swo.c:1091handle_tpiu_deprecated_config_command()
if (!strcmp(CMD_ARGV[cmd_idx], "disable")) {
arm_tpiu_swo.c:1104handle_tpiu_deprecated_config_command()
if (!strcmp(CMD_ARGV[cmd_idx], "internal")) {
arm_tpiu_swo.c:1108handle_tpiu_deprecated_config_command()
output = CMD_ARGV[cmd_idx];
arm_tpiu_swo.c:1109handle_tpiu_deprecated_config_command()
} else if (strcmp(CMD_ARGV[cmd_idx], "external"))
arm_tpiu_swo.c:1114handle_tpiu_deprecated_config_command()
if (!strcmp(CMD_ARGV[cmd_idx], "sync")) {
arm_tpiu_swo.c:1115handle_tpiu_deprecated_config_command()
protocol = CMD_ARGV[cmd_idx];
arm_tpiu_swo.c:1119handle_tpiu_deprecated_config_command()
port_width = CMD_ARGV[cmd_idx];
arm_tpiu_swo.c:1121handle_tpiu_deprecated_config_command()
if (strcmp(CMD_ARGV[cmd_idx], "manchester") && strcmp(CMD_ARGV[cmd_idx], "uart"))
arm_tpiu_swo.c:1123handle_tpiu_deprecated_config_command()
protocol = CMD_ARGV[cmd_idx];
arm_tpiu_swo.c:1127handle_tpiu_deprecated_config_command()
formatter = CMD_ARGV[cmd_idx];
arm_tpiu_swo.c:1132handle_tpiu_deprecated_config_command()
trace_clk = CMD_ARGV[cmd_idx];
arm_tpiu_swo.c:1135handle_tpiu_deprecated_config_command()
pin_clk = CMD_ARGV[cmd_idx];
armv4_5.c:920handle_arm_core_state_command()
if (strcmp(CMD_ARGV[0], "arm") == 0) {
armv4_5.c:928handle_arm_core_state_command()
if (strcmp(CMD_ARGV[0], "thumb") == 0)
armv4_5.c:1038handle_armv4_5_mcrmrc()
armv4_5.c:1044handle_armv4_5_mcrmrc()
armv4_5.c:1050handle_armv4_5_mcrmrc()
armv4_5.c:1056handle_armv4_5_mcrmrc()
armv4_5.c:1062handle_armv4_5_mcrmrc()
armv4_5.c:1075handle_armv4_5_mcrmrc()
armv4_5.c:1138handle_armv4_5_mcrrmrrc()
armv4_5.c:1144handle_armv4_5_mcrrmrrc()
armv4_5.c:1150handle_armv4_5_mcrrmrrc()
armv4_5.c:1163handle_armv4_5_mcrrmrrc()
armv7a.c:221handle_cache_l2x()
armv7a.c:222handle_cache_l2x()
armv7a_cache.c:420arm7a_l1_d_cache_inval_virt_cmd()
armv7a_cache.c:424arm7a_l1_d_cache_inval_virt_cmd()
armv7a_cache.c:438arm7a_l1_d_cache_clean_virt_cmd()
armv7a_cache.c:442arm7a_l1_d_cache_clean_virt_cmd()
armv7a_cache.c:465arm7a_l1_i_cache_inval_virt_cmd()
armv7a_cache.c:469arm7a_l1_i_cache_inval_virt_cmd()
armv7a_cache_l2x.c:247arm7a_l2x_cache_flush_virt_cmd()
armv7a_cache_l2x.c:251arm7a_l2x_cache_flush_virt_cmd()
armv7a_cache_l2x.c:266arm7a_l2x_cache_inval_virt_cmd()
armv7a_cache_l2x.c:270arm7a_l2x_cache_inval_virt_cmd()
armv7a_cache_l2x.c:285arm7a_l2x_cache_clean_virt_cmd()
armv7a_cache_l2x.c:289arm7a_l2x_cache_clean_virt_cmd()
armv7a_cache_l2x.c:304armv7a_l2x_cache_conf_cmd()
armv7a_cache_l2x.c:305armv7a_l2x_cache_conf_cmd()
armv7a_mmu.c:203armv7a_mmu_dump_table()
if (!strcmp(CMD_ARGV[0], "addr")) {
armv7a_mmu.c:207armv7a_mmu_dump_table()
COMMAND_PARSE_NUMBER(target_addr, CMD_ARGV[1], ttb);
armv7a_mmu.c:210armv7a_mmu_dump_table()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[2], max_pt_idx);
armv7a_mmu.c:222armv7a_mmu_dump_table()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], ttbidx);
armv7m_trace.c:86handle_itm_port_command()
armv7m_trace.c:87handle_itm_port_command()
armv7m_trace.c:114handle_itm_ports_command()
armv8.c:1242armv8_handle_exception_catch_command()
n = nvp_name2value(nvp_ecatch_modes, CMD_ARGV[argp]);
armv8.c:1244armv8_handle_exception_catch_command()
LOG_ERROR("Unknown option: %s", CMD_ARGV[argp]);
at91sam3.c:3585sam3_handle_gpnvm_command()
if ((strcmp(CMD_ARGV[0], "show") == 0) && (strcmp(CMD_ARGV[1], "all") == 0))
at91sam3.c:3589sam3_handle_gpnvm_command()
at91sam3.c:3595sam3_handle_gpnvm_command()
if (strcmp("show", CMD_ARGV[0]) == 0) {
at91sam3.c:3623sam3_handle_gpnvm_command()
if (strcmp("set", CMD_ARGV[0]) == 0)
at91sam3.c:3625sam3_handle_gpnvm_command()
else if ((strcmp("clr", CMD_ARGV[0]) == 0) ||
at91sam3.c:3626sam3_handle_gpnvm_command()
(strcmp("clear", CMD_ARGV[0]) == 0)) /* quietly accept both */
at91sam3.c:3629sam3_handle_gpnvm_command()
command_print(CMD, "Unknown command: %s", CMD_ARGV[0]);
at91sam3.c:3651sam3_handle_slowclk_command()
at91sam4.c:3133sam4_handle_gpnvm_command()
if ((strcmp(CMD_ARGV[0], "show") == 0) && (strcmp(CMD_ARGV[1], "all") == 0))
at91sam4.c:3137sam4_handle_gpnvm_command()
at91sam4.c:3143sam4_handle_gpnvm_command()
if (strcmp("show", CMD_ARGV[0]) == 0) {
at91sam4.c:3171sam4_handle_gpnvm_command()
if (strcmp("set", CMD_ARGV[0]) == 0)
at91sam4.c:3173sam4_handle_gpnvm_command()
else if ((strcmp("clr", CMD_ARGV[0]) == 0) ||
at91sam4.c:3174sam4_handle_gpnvm_command()
(strcmp("clear", CMD_ARGV[0]) == 0)) /* quietly accept both */
at91sam4.c:3177sam4_handle_gpnvm_command()
command_print(CMD, "Unknown command: %s", CMD_ARGV[0]);
at91sam4.c:3199sam4_handle_slowclk_command()
at91sam7.c:723at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], base_address);
at91sam7.c:725at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[8], banks_num);
at91sam7.c:726at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[9], num_sectors);
at91sam7.c:727at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[10], pages_per_sector);
at91sam7.c:728at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[11], page_size);
at91sam7.c:729at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[12], num_nvmbits);
at91sam7.c:733at91sam7_flash_bank_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[13], freq);
at91sam7.c:790at91sam7_flash_bank_command()
at91sam7_info->target_name = strdup(CMD_ARGV[7]);
at91sam7.c:1046at91sam7_handle_gpnvm_command()
command_print(CMD, "not an at91sam7 flash bank '%s'", CMD_ARGV[0]);
at91sam7.c:1054at91sam7_handle_gpnvm_command()
if (strcmp(CMD_ARGV[1], "set") == 0)
at91sam7.c:1056at91sam7_handle_gpnvm_command()
else if (strcmp(CMD_ARGV[1], "clear") == 0)
at91sam7.c:1068at91sam7_handle_gpnvm_command()
at91sam7.c:1072at91sam7_handle_gpnvm_command()
at91sam9.c:491at91sam9_nand_device_command()
LOG_ERROR("parameters: %s target chip_addr", CMD_ARGV[0]);
at91sam9.c:495at91sam9_nand_device_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[2], chip);
at91sam9.c:497at91sam9_nand_device_command()
LOG_ERROR("invalid NAND chip address: %s", CMD_ARGV[2]);
at91sam9.c:502at91sam9_nand_device_command()
at91sam9.c:504at91sam9_nand_device_command()
LOG_ERROR("invalid ECC controller address: %s", CMD_ARGV[3]);
at91sam9.c:543handle_at91sam9_cle_command()
at91sam9.c:546handle_at91sam9_cle_command()
command_print(CMD, "invalid nand device number: %s", CMD_ARGV[0]);
at91sam9.c:552handle_at91sam9_cle_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], address_line);
at91sam9.c:571handle_at91sam9_ale_command()
at91sam9.c:574handle_at91sam9_ale_command()
command_print(CMD, "invalid nand device number: %s", CMD_ARGV[0]);
at91sam9.c:580handle_at91sam9_ale_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], address_line);
at91sam9.c:599handle_at91sam9_rdy_busy_command()
at91sam9.c:602handle_at91sam9_rdy_busy_command()
command_print(CMD, "invalid nand device number: %s", CMD_ARGV[0]);
at91sam9.c:608handle_at91sam9_rdy_busy_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], base_pioc);
at91sam9.c:611handle_at91sam9_rdy_busy_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[2], pin_num);
at91sam9.c:630handle_at91sam9_ce_command()
at91sam9.c:633handle_at91sam9_ce_command()
command_print(CMD, "invalid nand device number: %s", CMD_ARGV[0]);
at91sam9.c:639handle_at91sam9_ce_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], base_pioc);
at91sam9.c:642handle_at91sam9_ce_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[2], pin_num);
at91samd.c:994samd_handle_set_security_command()
if (CMD_ARGC < 1 || (CMD_ARGC >= 1 && (strcmp(CMD_ARGV[0], "enable")))) {
at91samd.c:1029samd_handle_eeprom_command()
int val = atoi(CMD_ARGV[0]);
at91samd.c:1095samd_handle_nvmuserrow_command()
at91samd.c:1099samd_handle_nvmuserrow_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[1], mask_temp);
at91samd.c:1139samd_handle_bootloader_command()
int val = atoi(CMD_ARGV[0]);
ath79.c:358ath79_flash_bank_command()
if (strcmp(CMD_ARGV[6], "cs0") == 0)
ath79.c:360ath79_flash_bank_command()
else if (strcmp(CMD_ARGV[6], "cs1") == 0)
ath79.c:362ath79_flash_bank_command()
else if (strcmp(CMD_ARGV[6], "cs2") == 0)
ath79.c:365ath79_flash_bank_command()
LOG_ERROR("Unknown arg: %s", CMD_ARGV[6]);
atsame5.c:794same5_handle_userpage_command()
atsame5.c:798same5_handle_userpage_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[1], mask_temp);
atsame5.c:836same5_handle_bootloader_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[0], size);
atsamv.c:609samv_handle_gpnvm_command()
if (!strcmp(CMD_ARGV[0], "show") && !strcmp(CMD_ARGV[1], "all"))
atsamv.c:613samv_handle_gpnvm_command()
atsamv.c:622samv_handle_gpnvm_command()
if (!strcmp("show", CMD_ARGV[0])) {
atsamv.c:652samv_handle_gpnvm_command()
if (!strcmp("set", CMD_ARGV[0]))
atsamv.c:654samv_handle_gpnvm_command()
else if (!strcmp("clr", CMD_ARGV[0]) || !strcmp("clear", CMD_ARGV[0]))
atsamv.c:657samv_handle_gpnvm_command()
command_print(CMD, "unknown command: %s", CMD_ARGV[0]);
cfi.c:837cfi_flash_bank_command()
cmsis_dap.c:2157cmsis_dap_handle_cmd_command()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[i], command[i]);
cmsis_dap.c:2190cmsis_dap_handle_vid_pid_command()
cmsis_dap.c:2191cmsis_dap_handle_vid_pid_command()
cmsis_dap.c:2206cmsis_dap_handle_backend_command()
if (strcmp(CMD_ARGV[0], "auto") == 0) {
cmsis_dap.c:2210cmsis_dap_handle_backend_command()
if (strcasecmp(cmsis_dap_backends[i]->name, CMD_ARGV[0]) == 0) {
cmsis_dap.c:2232cmsis_dap_handle_quirk_command()
command.c:513exec_command()
.argv = words + 1,
command.c:658handle_find()
char *full_path = find_file(CMD_ARGV[0]);
command.c:670handle_echo()
if (CMD_ARGC == 2 && !strcmp(CMD_ARGV[0], "-n")) {
command.c:671handle_echo()
LOG_USER_N("%s", CMD_ARGV[1]);
command.c:678handle_echo()
LOG_USER("%s", CMD_ARGV[0]);
command.c:840handle_help_command()
cmd_match = strdup(CMD_ARGV[0]);
command.c:844handle_help_command()
cmd_match = alloc_printf("%s %s", prev, CMD_ARGV[i]);
command.c:1078handle_help_add_command()
const char *help = !strcmp(CMD_NAME, "add_help_text") ? CMD_ARGV[1] : NULL;
command.c:1079handle_help_add_command()
const char *usage = !strcmp(CMD_NAME, "add_usage_text") ? CMD_ARGV[1] : NULL;
command.c:1084handle_help_add_command()
const char *cmd_name = CMD_ARGV[0];
command.c:1095handle_sleep_command()
if (strcmp(CMD_ARGV[1], "busy") == 0)
command.c:1103handle_sleep_command()
int retval = parse_ulong(CMD_ARGV[0], &duration);
command.c:1388handle_command_parse_bool()
const char *in = CMD_ARGV[0];
core.c:200nand_command_get_device()
const char *str = CMD_ARGV[name_index];
cortex_a.c:3281handle_cortex_a_mask_interrupts_command()
n = nvp_name2value(nvp_maskisr_modes, CMD_ARGV[0]);
cortex_a.c:3283handle_cortex_a_mask_interrupts_command()
LOG_ERROR("Unknown parameter: %s - should be off or on", CMD_ARGV[0]);
cortex_a.c:3309handle_cortex_a_dacrfixup_command()
n = nvp_name2value(nvp_dacrfixup_modes, CMD_ARGV[0]);
cortex_a.c:3330handle_cortex_a_freeze_core_command()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], coreid);
cortex_a.c:3335handle_cortex_a_freeze_core_command()
cortex_m.c:3144handle_cortex_m_vector_catch_command()
if (strcmp(CMD_ARGV[0], "all") == 0) {
cortex_m.c:3149handle_cortex_m_vector_catch_command()
} else if (strcmp(CMD_ARGV[0], "none") == 0)
cortex_m.c:3155handle_cortex_m_vector_catch_command()
if (strcmp(CMD_ARGV[CMD_ARGC], vec_ids[i].name) != 0)
cortex_m.c:3161handle_cortex_m_vector_catch_command()
LOG_TARGET_ERROR(target, "No Cortex-M vector '%s'", CMD_ARGV[CMD_ARGC]);
cortex_m.c:3220handle_cortex_m_mask_interrupts_command()
n = nvp_name2value(nvp_maskisr_modes, CMD_ARGV[0]);
cortex_m.c:3245handle_cortex_m_reset_config_command()
if (strcmp(*CMD_ARGV, "sysresetreq") == 0)
cortex_m.c:3248handle_cortex_m_reset_config_command()
else if (strcmp(*CMD_ARGV, "vectreset") == 0) {
cortex_m.c:3256handle_cortex_m_reset_config_command()
else if (stricmp(*CMD_ARGV, "lpc55sxx") == 0)
davinci.c:679davinci_nand_device_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[2], chip);
davinci.c:681davinci_nand_device_command()
LOG_ERROR("Invalid NAND chip address %s", CMD_ARGV[2]);
davinci.c:685davinci_nand_device_command()
if (strcmp(CMD_ARGV[3], "hwecc1") == 0)
davinci.c:687davinci_nand_device_command()
else if (strcmp(CMD_ARGV[3], "hwecc4") == 0)
davinci.c:689davinci_nand_device_command()
else if (strcmp(CMD_ARGV[3], "hwecc4_infix") == 0)
davinci.c:692davinci_nand_device_command()
LOG_ERROR("Invalid ecc mode %s", CMD_ARGV[3]);
davinci.c:696davinci_nand_device_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[4], aemif);
davinci.c:698davinci_nand_device_command()
LOG_ERROR("Invalid AEMIF controller address %s", CMD_ARGV[4]);
dsp563xx.c:2027dsp563xx_add_watchpoint_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], address);
dsp563xx.c:2030dsp563xx_add_watchpoint_command()
switch (CMD_ARGV[0][0]) {
dsp563xx.c:2048dsp563xx_add_watchpoint_command()
switch (CMD_ARGV[1][0]) {
dsp563xx.c:2125dsp563xx_mem_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
dsp563xx.c:2131dsp563xx_mem_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], pattern);
dsp563xx.c:2133dsp563xx_mem_command()
dsp563xx.c:2140dsp563xx_mem_command()
efinix.c:263efinix_pld_create_command()
if (strcmp(CMD_ARGV[2], "-chain-position") != 0)
efinix.c:266efinix_pld_create_command()
efinix.c:268efinix_pld_create_command()
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[3]);
efinix.c:274efinix_pld_create_command()
if (strcmp(CMD_ARGV[4], "-family") != 0)
efinix.c:277efinix_pld_create_command()
if (strcmp(CMD_ARGV[5], "trion") == 0) {
efinix.c:279efinix_pld_create_command()
} else if (strcmp(CMD_ARGV[5], "titanium") == 0) {
eneispif.c:66eneispif_flash_bank_command()
esirisc.c:1705handle_esirisc_cache_arch_command()
if (strcmp(*CMD_ARGV, "harvard") == 0)
esirisc.c:1707handle_esirisc_cache_arch_command()
else if (strcmp(*CMD_ARGV, "von_neumann") == 0)
esirisc.c:1710handle_esirisc_cache_arch_command()
LOG_ERROR("invalid cache_arch: %s", *CMD_ARGV);
esirisc.c:1765handle_esirisc_hwdc_command()
if (strcmp(CMD_ARGV[0], "all") == 0)
esirisc.c:1769handle_esirisc_hwdc_command()
if (strcmp(CMD_ARGV[0], "none") != 0) {
esirisc.c:1771handle_esirisc_hwdc_command()
esirisc.c:1773handle_esirisc_hwdc_command()
LOG_ERROR("invalid mask: %s", CMD_ARGV[CMD_ARGC]);
esirisc_flash.c:107esirisc_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], esirisc_info->cfg);
esirisc_flash.c:108esirisc_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[7], esirisc_info->clock);
esirisc_flash.c:109esirisc_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[8], esirisc_info->wait_states);
esirisc_trace.c:815handle_esirisc_trace_analyze_command()
esirisc_trace.c:816handle_esirisc_trace_analyze_command()
esirisc_trace.c:845handle_esirisc_trace_dump_command()
esirisc_trace.c:847handle_esirisc_trace_dump_command()
esirisc_trace.c:848handle_esirisc_trace_dump_command()
esirisc_trace.c:850handle_esirisc_trace_dump_command()
return esirisc_trace_dump_memory(CMD, CMD_ARGV[2], address, size);
esirisc_trace.c:864handle_esirisc_trace_buffer_command()
esirisc_trace.c:865handle_esirisc_trace_buffer_command()
esirisc_trace.c:870handle_esirisc_trace_buffer_command()
if (strcmp("wrap", CMD_ARGV[2]) == 0)
esirisc_trace.c:888handle_esirisc_trace_fifo_command()
esirisc_trace.c:906handle_esirisc_trace_flow_control_command()
if (strcmp(CMD_ARGV[0], "enable") == 0)
esirisc_trace.c:908handle_esirisc_trace_flow_control_command()
else if (strcmp(CMD_ARGV[0], "disable") == 0)
esirisc_trace.c:926handle_esirisc_trace_format_command()
if (strcmp(CMD_ARGV[0], "full") == 0)
esirisc_trace.c:928handle_esirisc_trace_format_command()
else if (strcmp(CMD_ARGV[0], "branch") == 0)
esirisc_trace.c:930handle_esirisc_trace_format_command()
else if (strcmp(CMD_ARGV[0], "icache") == 0)
esirisc_trace.c:935handle_esirisc_trace_format_command()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[1], pc_bits);
esirisc_trace.c:956handle_esirisc_trace_trigger_start_command()
if (strcmp(CMD_ARGV[0], "none") == 0)
esirisc_trace.c:958handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "pc") == 0)
esirisc_trace.c:960handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "load") == 0)
esirisc_trace.c:962handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "store") == 0)
esirisc_trace.c:964handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "exception") == 0)
esirisc_trace.c:966handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "eret") == 0)
esirisc_trace.c:968handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "wait") == 0)
esirisc_trace.c:970handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "stop") == 0)
esirisc_trace.c:972handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "high") == 0)
esirisc_trace.c:974handle_esirisc_trace_trigger_start_command()
else if (strcmp(CMD_ARGV[0], "low") == 0)
esirisc_trace.c:980handle_esirisc_trace_trigger_start_command()
esirisc_trace.c:981handle_esirisc_trace_trigger_start_command()
esirisc_trace.c:999handle_esirisc_trace_trigger_stop_command()
if (strcmp(CMD_ARGV[0], "none") == 0)
esirisc_trace.c:1001handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "pc") == 0)
esirisc_trace.c:1003handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "load") == 0)
esirisc_trace.c:1005handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "store") == 0)
esirisc_trace.c:1007handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "exception") == 0)
esirisc_trace.c:1009handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "eret") == 0)
esirisc_trace.c:1011handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "wait") == 0)
esirisc_trace.c:1013handle_esirisc_trace_trigger_stop_command()
else if (strcmp(CMD_ARGV[0], "stop") == 0)
esirisc_trace.c:1019handle_esirisc_trace_trigger_stop_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], trace_info->stop_data);
esirisc_trace.c:1020handle_esirisc_trace_trigger_stop_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], trace_info->stop_mask);
esirisc_trace.c:1038handle_esirisc_trace_trigger_delay_command()
if (strcmp(CMD_ARGV[0], "none") == 0)
esirisc_trace.c:1040handle_esirisc_trace_trigger_delay_command()
else if (strcmp(CMD_ARGV[0], "start") == 0)
esirisc_trace.c:1042handle_esirisc_trace_trigger_delay_command()
else if (strcmp(CMD_ARGV[0], "stop") == 0)
esirisc_trace.c:1044handle_esirisc_trace_trigger_delay_command()
else if (strcmp(CMD_ARGV[0], "both") == 0)
esirisc_trace.c:1055handle_esirisc_trace_trigger_delay_command()
esp32.c:378esp32_cmd_flashbootstrap_do()
if (!strcasecmp(CMD_ARGV[0], "none"))
esp32.c:380esp32_cmd_flashbootstrap_do()
else if (!strcasecmp(CMD_ARGV[0], "1.8"))
esp32.c:382esp32_cmd_flashbootstrap_do()
else if (!strcasecmp(CMD_ARGV[0], "3.3"))
esp32.c:384esp32_cmd_flashbootstrap_do()
else if (!strcasecmp(CMD_ARGV[0], "high"))
esp32.c:386esp32_cmd_flashbootstrap_do()
else if (!strcasecmp(CMD_ARGV[0], "low"))
esp32_apptrace.c:1593esp32_cmd_apptrace()
esp32_apptrace.c:1598esp32_cmd_sysview()
esp32_apptrace.c:1603esp32_cmd_sysview_mcore()
esp_semihosting.c:114esp_semihosting_basedir_command()
semihosting->basedir = strdup(CMD_ARGV[0]);
esp_xtensa_smp.c:902esp_xtensa_smp_cmd_tracedump()
esp_xtensa_smp.c:909esp_xtensa_smp_cmd_tracedump()
etb.c:327handle_etb_config_command()
target = get_target(CMD_ARGV[0]);
etb.c:330handle_etb_config_command()
LOG_ERROR("ETB: target '%s' not defined", CMD_ARGV[0]);
etb.c:336handle_etb_config_command()
command_print(CMD, "ETB: '%s' isn't an ARM", CMD_ARGV[0]);
etb.c:340handle_etb_config_command()
etb.c:342handle_etb_config_command()
command_print(CMD, "ETB: TAP %s does not exist", CMD_ARGV[1]);
etb.c:392handle_etb_trigger_percent_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], new_value);
etm.c:1136handle_etm_tracemode_command_update()
if (strcmp(CMD_ARGV[0], "none") == 0)
etm.c:1138handle_etm_tracemode_command_update()
else if (strcmp(CMD_ARGV[0], "data") == 0)
etm.c:1140handle_etm_tracemode_command_update()
else if (strcmp(CMD_ARGV[0], "address") == 0)
etm.c:1142handle_etm_tracemode_command_update()
else if (strcmp(CMD_ARGV[0], "all") == 0)
etm.c:1145handle_etm_tracemode_command_update()
command_print(CMD, "invalid option '%s'", CMD_ARGV[0]);
etm.c:1150handle_etm_tracemode_command_update()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[1], context_id);
etm.c:1165handle_etm_tracemode_command_update()
command_print(CMD, "invalid option '%s'", CMD_ARGV[1]);
etm.c:1170handle_etm_tracemode_command_update()
COMMAND_PARSE_ENABLE(CMD_ARGV[2], etmv1_cycle_accurate);
etm.c:1175handle_etm_tracemode_command_update()
COMMAND_PARSE_ENABLE(CMD_ARGV[3], etmv1_branch_output);
etm.c:1312handle_etm_config_command()
target = get_target(CMD_ARGV[0]);
etm.c:1314handle_etm_config_command()
LOG_ERROR("target '%s' not defined", CMD_ARGV[0]);
etm.c:1339handle_etm_config_command()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[1], port_width);
etm.c:1372handle_etm_config_command()
"unsupported ETM port width '%s'", CMD_ARGV[1]);
etm.c:1376handle_etm_config_command()
if (strcmp("normal", CMD_ARGV[2]) == 0)
etm.c:1378handle_etm_config_command()
else if (strcmp("multiplexed", CMD_ARGV[2]) == 0)
etm.c:1380handle_etm_config_command()
else if (strcmp("demultiplexed", CMD_ARGV[2]) == 0)
etm.c:1385handle_etm_config_command()
etm.c:1389handle_etm_config_command()
if (strcmp("half", CMD_ARGV[3]) == 0)
etm.c:1391handle_etm_config_command()
else if (strcmp("full", CMD_ARGV[3]) == 0)
etm.c:1396handle_etm_config_command()
etm.c:1407handle_etm_config_command()
if (strcmp(CMD_ARGV[4], etm_capture_drivers[i]->name) == 0) {
etm.c:1423handle_etm_config_command()
LOG_ERROR("trace capture driver '%s' not found", CMD_ARGV[4]);
etm.c:1671handle_etm_image_command()
etm.c:1675handle_etm_image_command()
if (image_open(etm_ctx->image, CMD_ARGV[0],
etm.c:1676handle_etm_image_command()
(CMD_ARGC >= 3) ? CMD_ARGV[2] : NULL) != ERROR_OK) {
etm.c:1724handle_etm_dump_command()
etm.c:1771handle_etm_load_command()
etm.c:1931handle_etm_trigger_debug_command()
etm_dummy.c:20handle_etm_dummy_config_command()
target = get_target(CMD_ARGV[0]);
etm_dummy.c:23handle_etm_dummy_config_command()
LOG_ERROR("target '%s' not defined", CMD_ARGV[0]);
etm_dummy.c:29handle_etm_dummy_config_command()
command_print(CMD, "target '%s' isn't an ARM", CMD_ARGV[0]);
faux.c:59faux_flash_bank_command()
faux.c:61faux_flash_bank_command()
LOG_ERROR("target '%s' not defined", CMD_ARGV[5]);
fespi.c:152fespi_flash_bank_command()
fileio.c:120nand_fileio_parse_args()
command_print(CMD, "#%s: not probed", CMD_ARGV[0]);
fileio.c:124nand_fileio_parse_args()
fileio.c:126nand_fileio_parse_args()
fileio.c:135nand_fileio_parse_args()
if (!strcmp(CMD_ARGV[i], "oob_raw"))
fileio.c:137nand_fileio_parse_args()
else if (!strcmp(CMD_ARGV[i], "oob_only"))
fileio.c:139nand_fileio_parse_args()
else if (sw_ecc && !strcmp(CMD_ARGV[i], "oob_softecc"))
fileio.c:141nand_fileio_parse_args()
else if (sw_ecc && !strcmp(CMD_ARGV[i], "oob_softecc_kw"))
fileio.c:144nand_fileio_parse_args()
command_print(CMD, "unknown option: %s", CMD_ARGV[i]);
fileio.c:150nand_fileio_parse_args()
fm3.c:67fm3_flash_bank_command()
if (strcmp(CMD_ARGV[5], "mb9bfxx1.cpu") == 0) {
fm3.c:70fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx2.cpu") == 0) {
fm3.c:73fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx3.cpu") == 0) {
fm3.c:76fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx4.cpu") == 0) {
fm3.c:79fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx5.cpu") == 0) {
fm3.c:82fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx6.cpu") == 0) {
fm3.c:85fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx7.cpu") == 0) {
fm3.c:88fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9bfxx8.cpu") == 0) {
fm3.c:91fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx1.cpu") == 0) { /* Flash type '2' */
fm3.c:94fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx2.cpu") == 0) {
fm3.c:97fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx3.cpu") == 0) {
fm3.c:100fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx4.cpu") == 0) {
fm3.c:103fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx5.cpu") == 0) {
fm3.c:106fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx6.cpu") == 0) {
fm3.c:109fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx7.cpu") == 0) {
fm3.c:112fm3_flash_bank_command()
} else if (strcmp(CMD_ARGV[5], "mb9afxx8.cpu") == 0) {
fm3.c:119fm3_flash_bank_command()
LOG_ERROR("unknown fm3 variant: %s", CMD_ARGV[5]);
fm4.c:664fm4_flash_bank_command()
variant = CMD_ARGV[6];
ftdi.c:713ftdi_handle_device_desc_command()
ftdi.c:724ftdi_handle_channel_command()
ftdi.c:736ftdi_handle_layout_init_command()
ftdi.c:737ftdi_handle_layout_init_command()
ftdi.c:754ftdi_handle_layout_signal_command()
if (strcmp("-data", CMD_ARGV[i]) == 0) {
ftdi.c:756ftdi_handle_layout_signal_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], data_mask);
ftdi.c:757ftdi_handle_layout_signal_command()
} else if (strcmp("-ndata", CMD_ARGV[i]) == 0) {
ftdi.c:759ftdi_handle_layout_signal_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], data_mask);
ftdi.c:760ftdi_handle_layout_signal_command()
} else if (strcmp("-input", CMD_ARGV[i]) == 0) {
ftdi.c:762ftdi_handle_layout_signal_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], input_mask);
ftdi.c:763ftdi_handle_layout_signal_command()
} else if (strcmp("-ninput", CMD_ARGV[i]) == 0) {
ftdi.c:765ftdi_handle_layout_signal_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], input_mask);
ftdi.c:766ftdi_handle_layout_signal_command()
} else if (strcmp("-oe", CMD_ARGV[i]) == 0) {
ftdi.c:768ftdi_handle_layout_signal_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], oe_mask);
ftdi.c:769ftdi_handle_layout_signal_command()
} else if (strcmp("-noe", CMD_ARGV[i]) == 0) {
ftdi.c:771ftdi_handle_layout_signal_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], oe_mask);
ftdi.c:772ftdi_handle_layout_signal_command()
} else if (!strcmp("-alias", CMD_ARGV[i]) ||
ftdi.c:773ftdi_handle_layout_signal_command()
!strcmp("-nalias", CMD_ARGV[i])) {
ftdi.c:774ftdi_handle_layout_signal_command()
if (!strcmp("-nalias", CMD_ARGV[i])) {
ftdi.c:778ftdi_handle_layout_signal_command()
struct signal *sig = find_signal_by_name(CMD_ARGV[i + 1]);
ftdi.c:780ftdi_handle_layout_signal_command()
LOG_ERROR("signal %s is not defined", CMD_ARGV[i + 1]);
ftdi.c:790ftdi_handle_layout_signal_command()
LOG_ERROR("unknown option '%s'", CMD_ARGV[i]);
ftdi.c:796ftdi_handle_layout_signal_command()
ftdi.c:798ftdi_handle_layout_signal_command()
ftdi.c:800ftdi_handle_layout_signal_command()
LOG_ERROR("failed to create signal %s", CMD_ARGV[0]);
ftdi.c:820ftdi_handle_set_signal_command()
ftdi.c:822ftdi_handle_set_signal_command()
LOG_ERROR("interface configuration doesn't define signal '%s'", CMD_ARGV[0]);
ftdi.c:826ftdi_handle_set_signal_command()
switch (*CMD_ARGV[1]) {
ftdi.c:832ftdi_handle_set_signal_command()
if (CMD_ARGV[1][1] == '\0') {
ftdi.c:833ftdi_handle_set_signal_command()
ftdi.c:838ftdi_handle_set_signal_command()
LOG_ERROR("unknown signal level '%s', use 0, 1 or z", CMD_ARGV[1]);
ftdi.c:852ftdi_handle_get_signal_command()
ftdi.c:854ftdi_handle_get_signal_command()
command_print(CMD, "interface configuration doesn't define signal '%s'", CMD_ARGV[0]);
ftdi.c:884ftdi_handle_vid_pid_command()
ftdi.c:885ftdi_handle_vid_pid_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[i + 1], ftdi_pid[i >> 1]);
ftdi.c:907ftdi_handle_tdo_sample_edge_command()
n = nvp_name2value(nvp_ftdi_jtag_modes, CMD_ARGV[0]);
gatemate.c:279gatemate_pld_create_command()
if (strcmp(CMD_ARGV[2], "-chain-position") != 0)
gatemate.c:282gatemate_pld_create_command()
gatemate.c:284gatemate_pld_create_command()
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[3]);
gdb_server.c:4016handle_gdb_memory_map_command()
gdb_server.c:4025handle_gdb_flash_program_command()
gdb_server.c:4034handle_gdb_report_data_abort_command()
gdb_server.c:4043handle_gdb_report_register_access_error()
gdb_server.c:4053handle_gdb_breakpoint_override_command()
if (strcmp(CMD_ARGV[0], "hard") == 0)
gdb_server.c:4055handle_gdb_breakpoint_override_command()
else if (strcmp(CMD_ARGV[0], "soft") == 0)
gdb_server.c:4057handle_gdb_breakpoint_override_command()
else if (strcmp(CMD_ARGV[0], "disable") == 0)
gdb_server.c:4075handle_gdb_target_description_command()
gowin.c:483gowin_read_status_command_handler()
gowin.c:485gowin_read_status_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
gowin.c:503gowin_read_user_register_command_handler()
gowin.c:505gowin_read_user_register_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
gowin.c:523gowin_reload_command_handler()
gowin.c:525gowin_reload_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
gowin.c:571gowin_pld_create_command()
if (strcmp(CMD_ARGV[2], "-chain-position") != 0)
gowin.c:574gowin_pld_create_command()
gowin.c:576gowin_pld_create_command()
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[3]);
hello.c:19handle_foo_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
hello.c:24handle_foo_command()
hello.c:71handle_hello_args()
*name = CMD_ARGV[0];
hla_interface.c:219hl_interface_handle_device_desc_command()
hla_interface.c:239hl_interface_handle_layout_command()
return (strcmp(hl_if.layout->name, CMD_ARGV[0]) != 0)
hla_interface.c:245hl_interface_handle_layout_command()
if (strcmp(l->name, CMD_ARGV[0]) == 0) {
hla_interface.c:251hl_interface_handle_layout_command()
LOG_ERROR("No adapter layout '%s' found", CMD_ARGV[0]);
hla_interface.c:269hl_interface_handle_vid_pid_command()
hla_interface.c:270hl_interface_handle_vid_pid_command()
hla_interface.c:290hl_interface_handle_stlink_backend_command()
else if (strcmp(CMD_ARGV[0], "usb") == 0) {
hla_interface.c:294hl_interface_handle_stlink_backend_command()
} else if (strcmp(CMD_ARGV[0], "tcp") == 0) {
hla_interface.c:297hl_interface_handle_stlink_backend_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[1], stlink_tcp_port);
hla_interface.c:317interface_handle_hla_command()
intel.c:246intel_set_bscan_command_handler()
intel.c:248intel_set_bscan_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
intel.c:252intel_set_bscan_command_handler()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], boundary_scan_length);
intel.c:271intel_set_check_pos_command_handler()
intel.c:273intel_set_check_pos_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
intel.c:277intel_set_check_pos_command_handler()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[1], checkpos);
intel.c:294intel_pld_create_command()
if (strcmp(CMD_ARGV[2], "-chain-position") != 0)
intel.c:297intel_pld_create_command()
intel.c:299intel_pld_create_command()
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[3]);
intel.c:305intel_pld_create_command()
if (strcmp(CMD_ARGV[4], "-family") != 0)
intel.c:308intel_pld_create_command()
if (strcmp(CMD_ARGV[5], "cycloneiii") == 0) {
intel.c:310intel_pld_create_command()
} else if (strcmp(CMD_ARGV[5], "cycloneiv") == 0) {
intel.c:312intel_pld_create_command()
} else if (strcmp(CMD_ARGV[5], "cyclonev") == 0) {
intel.c:314intel_pld_create_command()
} else if (strcmp(CMD_ARGV[5], "cyclone10") == 0) {
intel.c:316intel_pld_create_command()
} else if (strcmp(CMD_ARGV[5], "arriaii") == 0) {
ipdbg.c:839handle_ipdbg_start_command()
if (strcmp(CMD_ARGV[i], "-port") == 0) {
ipdbg.c:840handle_ipdbg_start_command()
COMMAND_PARSE_ADDITIONAL_NUMBER(u16, i, port, "port number");
ipdbg.c:841handle_ipdbg_start_command()
} else if (strcmp(CMD_ARGV[i], "-tool") == 0) {
ipdbg.c:842handle_ipdbg_start_command()
COMMAND_PARSE_ADDITIONAL_NUMBER(u8, i, tool, "tool");
ipdbg.c:844handle_ipdbg_start_command()
command_print(CMD, "Unknown argument: %s", CMD_ARGV[i]);
ipdbg.c:877handle_ipdbg_stop_command()
if (strcmp(CMD_ARGV[i], "-tool") == 0) {
ipdbg.c:878handle_ipdbg_stop_command()
COMMAND_PARSE_ADDITIONAL_NUMBER(u8, i, tool, "tool");
ipdbg.c:880handle_ipdbg_stop_command()
command_print(CMD, "Unknown argument: %s", CMD_ARGV[i]);
ipdbg.c:934handle_ipdbg_cfg_queuing_command()
if (strcmp(CMD_ARGV[i], "-size") == 0) {
ipdbg.c:935handle_ipdbg_cfg_queuing_command()
COMMAND_PARSE_ADDITIONAL_NUMBER(uint, i, size, "size");
ipdbg.c:937handle_ipdbg_cfg_queuing_command()
command_print(CMD, "Unknown argument: %s", CMD_ARGV[i]);
ipdbg.c:1035handle_ipdbg_create_hub_command()
const char *hub_name = CMD_ARGV[0];
ipdbg.c:1038handle_ipdbg_create_hub_command()
if (strcmp(CMD_ARGV[i], "-tap") == 0) {
ipdbg.c:1039handle_ipdbg_create_hub_command()
if (i + 1 >= CMD_ARGC || CMD_ARGV[i + 1][0] == '-') {
ipdbg.c:1043handle_ipdbg_create_hub_command()
ipdbg.c:1045handle_ipdbg_create_hub_command()
command_print(CMD, "Tap %s unknown", CMD_ARGV[i + 1]);
ipdbg.c:1049handle_ipdbg_create_hub_command()
} else if (strcmp(CMD_ARGV[i], "-ir") == 0) {
ipdbg.c:1050handle_ipdbg_create_hub_command()
COMMAND_PARSE_ADDITIONAL_NUMBER(u32, i, user_instruction, "ir_value to select hub");
ipdbg.c:1052handle_ipdbg_create_hub_command()
COMMAND_PARSE_OPTIONAL_NUMBER(u8, i, data_register_length);
ipdbg.c:1059handle_ipdbg_create_hub_command()
} else if (strcmp(CMD_ARGV[i], "-pld") == 0) {
ipdbg.c:1061handle_ipdbg_create_hub_command()
if (i >= CMD_ARGC || CMD_ARGV[i][0] == '-')
ipdbg.c:1063handle_ipdbg_create_hub_command()
ipdbg.c:1065handle_ipdbg_create_hub_command()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[i]);
ipdbg.c:1068handle_ipdbg_create_hub_command()
ipdbg.c:1087handle_ipdbg_create_hub_command()
} else if (strcmp(CMD_ARGV[i], "-vir") == 0) {
ipdbg.c:1088handle_ipdbg_create_hub_command()
COMMAND_PARSE_OPTIONAL_NUMBER(u32, i, virtual_ir_value);
ipdbg.c:1089handle_ipdbg_create_hub_command()
COMMAND_PARSE_OPTIONAL_NUMBER(u32, i, virtual_ir_length);
ipdbg.c:1090handle_ipdbg_create_hub_command()
COMMAND_PARSE_OPTIONAL_NUMBER(u32, i, virtual_ir_instruction);
ipdbg.c:1093handle_ipdbg_create_hub_command()
command_print(CMD, "Unknown argument: %s", CMD_ARGV[i]);
jlink.c:982jlink_usb_command()
jlink.c:985jlink_usb_command()
command_print(CMD, "Invalid USB address: %s", CMD_ARGV[0]);
jlink.c:1064jlink_handle_jlink_jtag_command()
jlink.c:1074jlink_handle_jlink_jtag_command()
command_print(CMD, "Invalid argument: %s", CMD_ARGV[0]);
jlink.c:1110jlink_handle_target_power_command()
jlink.c:1431jlink_handle_config_usb_address_command()
jlink.c:1465jlink_handle_config_target_power_command()
if (!strcmp(CMD_ARGV[0], "on")) {
jlink.c:1467jlink_handle_config_target_power_command()
} else if (!strcmp(CMD_ARGV[0], "off")) {
jlink.c:1470jlink_handle_config_target_power_command()
command_print(CMD, "Invalid argument: %s", CMD_ARGV[0]);
jlink.c:1504jlink_handle_config_mac_address_command()
str = CMD_ARGV[0];
jlink.c:1590jlink_handle_config_ip_address_command()
if (!string_to_ip(CMD_ARGV[0], ip_address, &i)) {
jlink.c:1595jlink_handle_config_ip_address_command()
len = strlen(CMD_ARGV[0]);
jlink.c:1599jlink_handle_config_ip_address_command()
if (CMD_ARGV[0][i] != '/') {
jlink.c:1604jlink_handle_config_ip_address_command()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[0] + i + 1, subnet_bits);
jlink.c:1606jlink_handle_config_ip_address_command()
if (!string_to_ip(CMD_ARGV[1], (uint8_t *)&subnet_mask, &i)) {
jlink.c:1712jlink_handle_emucom_write_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], channel);
jlink.c:1714jlink_handle_emucom_write_command()
tmp = strlen(CMD_ARGV[1]);
jlink.c:1728jlink_handle_emucom_write_command()
dummy = unhexify(buf, CMD_ARGV[1], tmp / 2);
jlink.c:1771jlink_handle_emucom_read_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], channel);
jlink.c:1772jlink_handle_emucom_read_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], length);
jtagspi.c:39jtagspi_flash_bank_command()
if (strcmp(CMD_ARGV[6], "-pld") == 0) {
jtagspi.c:42jtagspi_flash_bank_command()
jtagspi.c:55jtagspi_flash_bank_command()
LOG_ERROR("pld device '#%s' is out of bounds or unknown", CMD_ARGV[7]);
jtagspi.c:59jtagspi_flash_bank_command()
jtagspi.c:249jtagspi_handle_set()
strncpy(info->devname, CMD_ARGV[index++], sizeof(info->devname) - 1);
jtagspi.c:252jtagspi_handle_set()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[index++], temp);
jtagspi.c:259jtagspi_handle_set()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[index++], temp);
jtagspi.c:268jtagspi_handle_set()
jtagspi.c:275jtagspi_handle_set()
jtagspi.c:277jtagspi_handle_set()
jtagspi.c:286jtagspi_handle_set()
jtagspi.c:291jtagspi_handle_set()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[index++], temp);
jtagspi.c:300jtagspi_handle_set()
jtagspi.c:387jtagspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[1], num_read);
jtagspi.c:388jtagspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[2], cmd_byte);
jtagspi.c:391jtagspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[i + 3], write_buffer[i]);
jtagspi.c:431jtagspi_handle_always_4byte()
COMMAND_PARSE_BOOL(CMD_ARGV[1], jtagspi_info->always_4byte, "on", "off");
kinetis.c:942kinetis_flash_bank_command()
retval = kinetis_chip_options(k_chip, CMD_ARGC - 6, CMD_ARGV + 6);
kinetis.c:3163kinetis_nvm_partition()
if (strcmp(CMD_ARGV[0], "dataflash") == 0)
kinetis.c:3165kinetis_nvm_partition()
else if (strcmp(CMD_ARGV[0], "eebkp") == 0)
kinetis.c:3168kinetis_nvm_partition()
kinetis.c:3225kinetis_nvm_partition()
kinetis.c:3228kinetis_nvm_partition()
kinetis.c:3229kinetis_nvm_partition()
kinetis.c:3256kinetis_nvm_partition()
kinetis.c:3298kinetis_fcf_source_handler()
if (strcmp(CMD_ARGV[0], "write") == 0)
kinetis.c:3300kinetis_fcf_source_handler()
else if (strcmp(CMD_ARGV[0], "protection") == 0)
kinetis.c:3324kinetis_fopt_handler()
lattice.c:420lattice_pld_create_command()
if (strcmp(CMD_ARGV[2], "-chain-position") != 0)
lattice.c:423lattice_pld_create_command()
lattice.c:425lattice_pld_create_command()
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[3]);
lattice.c:432lattice_pld_create_command()
if (strcmp(CMD_ARGV[4], "-family") != 0)
lattice.c:435lattice_pld_create_command()
if (strcasecmp(CMD_ARGV[5], "ecp2") == 0) {
lattice.c:437lattice_pld_create_command()
} else if (strcasecmp(CMD_ARGV[5], "ecp3") == 0) {
lattice.c:439lattice_pld_create_command()
} else if (strcasecmp(CMD_ARGV[5], "ecp5") == 0) {
lattice.c:441lattice_pld_create_command()
} else if (strcasecmp(CMD_ARGV[5], "certus") == 0) {
lattice.c:471lattice_read_usercode_register_command_handler()
lattice.c:473lattice_read_usercode_register_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
lattice.c:499lattice_set_preload_command_handler()
lattice.c:501lattice_set_preload_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
lattice.c:505lattice_set_preload_command_handler()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], preload_length);
lattice.c:524lattice_write_usercode_register_command_handler()
lattice.c:526lattice_write_usercode_register_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
lattice.c:530lattice_write_usercode_register_command_handler()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], usercode);
lattice.c:548lattice_read_status_command_handler()
lattice.c:550lattice_read_status_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
lattice.c:583lattice_refresh_command_handler()
lattice.c:585lattice_refresh_command_handler()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
log.c:201handle_debug_level_command()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], new_level);
log.c:221handle_log_output_command()
if (CMD_ARGC == 1 && strcmp(CMD_ARGV[0], "default") != 0) {
log.c:222handle_log_output_command()
file = fopen(CMD_ARGV[0], "w");
log.c:224handle_log_output_command()
command_print(CMD, "failed to open output log \"%s\"", CMD_ARGV[0]);
log.c:227handle_log_output_command()
command_print(CMD, "set log_output to \"%s\"", CMD_ARGV[0]);
lpc2000.c:920lpc2000_flash_bank_command()
if (strcmp(CMD_ARGV[6], "lpc2000_v1") == 0) {
lpc2000.c:922lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc2000_v2") == 0) {
lpc2000.c:924lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc1700") == 0 || strcmp(CMD_ARGV[6], "lpc4000") == 0) {
lpc2000.c:926lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc1800") == 0 || strcmp(CMD_ARGV[6], "lpc4300") == 0) {
lpc2000.c:928lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc800") == 0) {
lpc2000.c:930lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc1100") == 0) {
lpc2000.c:932lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc1500") == 0) {
lpc2000.c:934lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "lpc54100") == 0) {
lpc2000.c:936lpc2000_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "auto") == 0) {
lpc2000.c:939lpc2000_flash_bank_command()
LOG_ERROR("unknown LPC2000 variant: %s", CMD_ARGV[6]);
lpc2000.c:951lpc2000_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[7], lpc2000_info->cclk);
lpc2000.c:955lpc2000_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], temp_base);
lpc2000.c:962lpc2000_flash_bank_command()
if (strcmp(CMD_ARGV[8], "calc_checksum") == 0)
lpc2000.c:966lpc2000_flash_bank_command()
lpc288x.c:178lpc288x_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], lpc288x_info->cclk);
lpc2900.c:546lpc2900_handle_read_custom_command()
const char *filename = CMD_ARGV[1];
lpc2900.c:583lpc2900_handle_password_command()
lpc2900_info->risky = !strcmp(CMD_ARGV[1], ISS_PASSWORD);
lpc2900.c:631lpc2900_handle_write_custom_command()
const char *filename = CMD_ARGV[1];
lpc2900.c:632lpc2900_handle_write_custom_command()
const char *type = (CMD_ARGC >= 3) ? CMD_ARGV[2] : NULL;
lpc2900.c:720lpc2900_handle_secure_sector_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], first);
lpc2900.c:721lpc2900_handle_secure_sector_command()
lpc2900.c:901lpc2900_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], clk_sys_fmc);
lpc3180.c:35lpc3180_nand_device_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], osc_freq);
lpc3180.c:1279handle_lpc3180_select_command()
lpc3180.c:1282handle_lpc3180_select_command()
command_print(CMD, "nand device '#%s' is out of bounds", CMD_ARGV[0]);
lpc3180.c:1289handle_lpc3180_select_command()
if (strcmp(CMD_ARGV[1], "mlc") == 0)
lpc3180.c:1291handle_lpc3180_select_command()
else if (strcmp(CMD_ARGV[1], "slc") == 0) {
lpc3180.c:1293handle_lpc3180_select_command()
if (CMD_ARGC == 3 && strcmp(CMD_ARGV[2], "bulk") == 0)
lpc32xx.c:67lpc32xx_nand_device_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], osc_freq);
lpc32xx.c:1747handle_lpc32xx_select_command()
lpc32xx.c:1751handle_lpc32xx_select_command()
lpc32xx.c:1758handle_lpc32xx_select_command()
if (strcmp(CMD_ARGV[1], "mlc") == 0) {
lpc32xx.c:1761handle_lpc32xx_select_command()
} else if (strcmp(CMD_ARGV[1], "slc") == 0) {
max32xxx.c:91max32xxx_flash_bank_command()
max32xxx.c:92max32xxx_flash_bank_command()
max32xxx.c:93max32xxx_flash_bank_command()
max32xxx.c:94max32xxx_flash_bank_command()
max32xxx.c:97max32xxx_flash_bank_command()
max32xxx.c:788max32xxx_handle_protection_set_command()
if (sscanf(CMD_ARGV[1], "0x%"SCNx32, &addr) != 1) {
max32xxx.c:796max32xxx_handle_protection_set_command()
if (sscanf(CMD_ARGV[2], "0x%"SCNx32, &len) != 1) {
max32xxx.c:844max32xxx_handle_protection_clr_command()
if (sscanf(CMD_ARGV[1], "0x%"SCNx32, &addr) != 1) {
max32xxx.c:852max32xxx_handle_protection_clr_command()
if (sscanf(CMD_ARGV[2], "0x%"SCNx32, &len) != 1) {
mdr.c:72mdr_flash_bank_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[6], mdr_info->mem_type);
mdr.c:73mdr_flash_bank_command()
mdr.c:74mdr_flash_bank_command()
mips32.c:1481mips32_cp0_get_reg_by_name()
mips32.c:1483mips32_cp0_get_reg_by_name()
command_print(CMD, "Error: Register '%s' not found", CMD_ARGV[0]);
mips32.c:1512mips32_cp0_get_reg_by_number()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], cp0_reg);
mips32.c:1513mips32_cp0_get_reg_by_number()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], cp0_sel);
mips32.c:1542mips32_cp0_set_reg_by_name()
mips32.c:1544mips32_cp0_set_reg_by_name()
command_print(CMD, "Error: Register '%s' not found", CMD_ARGV[0]);
mips32.c:1550mips32_cp0_set_reg_by_name()
mips32.c:1580mips32_cp0_set_reg_by_name()
CMD_ARGV[0], cp0_regs->reg, cp0_regs->sel, value);
mips32.c:1599mips32_cp0_set_reg_by_number()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], cp0_reg);
mips32.c:1600mips32_cp0_set_reg_by_number()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], cp0_sel);
mips32.c:1601mips32_cp0_set_reg_by_number()
mips32.c:1669mips32_handle_cp0_command()
tmp = *CMD_ARGV[0];
mips32.c:2144mips32_dsp_get_register()
mips32.c:2146mips32_dsp_get_register()
command_print(CMD, "ERROR: register '%s' not found", CMD_ARGV[0]);
mips32.c:2152mips32_dsp_get_register()
command_print(CMD, "ERROR: Could not access dsp register %s", CMD_ARGV[0]);
mips32.c:2174mips32_dsp_set_register()
mips32.c:2176mips32_dsp_set_register()
command_print(CMD, "ERROR: register '%s' not found", CMD_ARGV[0]);
mips32.c:2180mips32_dsp_set_register()
mips32.c:2184mips32_dsp_set_register()
command_print(CMD, "Error: could not write to dsp register %s", CMD_ARGV[0]);
mips32.c:2232mips32_handle_dsp_command()
tmp = *CMD_ARGV[0];
mips32.c:2318mips32_handle_scan_delay_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], ejtag_info->scan_delay);
mips_m4k.c:1358mips_m4k_handle_cp0_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], cp0_reg);
mips_m4k.c:1359mips_m4k_handle_cp0_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], cp0_sel);
mips_m4k.c:1375mips_m4k_handle_cp0_command()
mips_m4k.c:1398mips_m4k_handle_scan_delay_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], ejtag_info->scan_delay);
mips_mips64.c:1129handle_mips64mode32()
COMMAND_PARSE_BOOL(CMD_ARGV[0], mips64->mips64mode32, "on", "off");
mrvlqspi.c:936mrvlqspi_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], mrvlqspi_info->reg_base);
msp432.c:497msp432_mass_erase_command()
if (strcmp(CMD_ARGV[1], "main") == 0)
msp432.c:499msp432_mass_erase_command()
else if (strcmp(CMD_ARGV[1], "all") == 0)
msp432.c:551msp432_bsl_command()
if (strcmp(CMD_ARGV[1], "lock") == 0)
msp432.c:553msp432_bsl_command()
else if (strcmp(CMD_ARGV[1], "unlock") == 0)
msp432p4.c:359msp432p4_handle_erase_sector()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], dst_address);
mx3.c:70imx31_nand_device_command()
hwecc_needed = strcmp(CMD_ARGV[2], "hwecc");
mxc.c:95mxc_nand_device_command()
if (strcmp(CMD_ARGV[2], "mx25") == 0) {
mxc.c:99mxc_nand_device_command()
} else if (strcmp(CMD_ARGV[2], "mx27") == 0) {
mxc.c:103mxc_nand_device_command()
} else if (strcmp(CMD_ARGV[2], "mx31") == 0) {
mxc.c:107mxc_nand_device_command()
} else if (strcmp(CMD_ARGV[2], "mx35") == 0) {
mxc.c:116mxc_nand_device_command()
hwecc_needed = strcmp(CMD_ARGV[3], "hwecc");
mxc.c:131mxc_nand_device_command()
if (CMD_ARGC > 4 && strcmp(CMD_ARGV[4], "biswap") == 0) {
mxc.c:149handle_mxc_biswap_command()
command_print(CMD, "invalid nand device number or name: %s", CMD_ARGV[0]);
mxc.c:155handle_mxc_biswap_command()
if (strcmp(CMD_ARGV[1], "enable") == 0)
niietcm4.c:390niietcm4_handle_uflash_read_byte_command()
niietcm4.c:396niietcm4_handle_uflash_read_byte_command()
if (strcmp("info", CMD_ARGV[0]) == 0)
niietcm4.c:398niietcm4_handle_uflash_read_byte_command()
else if (strcmp("main", CMD_ARGV[0]) == 0)
niietcm4.c:403niietcm4_handle_uflash_read_byte_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], uflash_addr);
niietcm4.c:420niietcm4_handle_uflash_read_byte_command()
"value = 0x%02" PRIx32 ".", CMD_ARGV[0], uflash_addr, uflash_data);
niietcm4.c:442niietcm4_handle_uflash_write_byte_command()
niietcm4.c:448niietcm4_handle_uflash_write_byte_command()
if (strcmp("info", CMD_ARGV[0]) == 0)
niietcm4.c:450niietcm4_handle_uflash_write_byte_command()
else if (strcmp("main", CMD_ARGV[0]) == 0)
niietcm4.c:455niietcm4_handle_uflash_write_byte_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], uflash_addr);
niietcm4.c:456niietcm4_handle_uflash_write_byte_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], uflash_data);
niietcm4.c:463niietcm4_handle_uflash_write_byte_command()
"Please wait ... ", CMD_ARGV[0], uflash_addr, uflash_data);
niietcm4.c:536niietcm4_handle_uflash_erase_command()
niietcm4.c:541niietcm4_handle_uflash_erase_command()
if (strcmp("info", CMD_ARGV[0]) == 0)
niietcm4.c:543niietcm4_handle_uflash_erase_command()
else if (strcmp("main", CMD_ARGV[0]) == 0)
niietcm4.c:548niietcm4_handle_uflash_erase_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], first);
niietcm4.c:549niietcm4_handle_uflash_erase_command()
niietcm4.c:556niietcm4_handle_uflash_erase_command()
command_print(CMD, "Erase %s userflash pages %u through %u done!", CMD_ARGV[0], first, last);
niietcm4.c:579niietcm4_handle_uflash_protect_check_command()
niietcm4.c:582niietcm4_handle_uflash_protect_check_command()
if (strcmp("info", CMD_ARGV[0]) == 0)
niietcm4.c:584niietcm4_handle_uflash_protect_check_command()
else if (strcmp("main", CMD_ARGV[0]) == 0)
niietcm4.c:670niietcm4_handle_uflash_protect_command()
niietcm4.c:673niietcm4_handle_uflash_protect_command()
if (strcmp("info", CMD_ARGV[0]) == 0)
niietcm4.c:675niietcm4_handle_uflash_protect_command()
else if (strcmp("main", CMD_ARGV[0]) == 0)
niietcm4.c:681niietcm4_handle_uflash_protect_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], first);
niietcm4.c:682niietcm4_handle_uflash_protect_command()
niietcm4.c:685niietcm4_handle_uflash_protect_command()
if (strcmp("on", CMD_ARGV[3]) == 0) {
niietcm4.c:687niietcm4_handle_uflash_protect_command()
CMD_ARGV[0], first, last);
niietcm4.c:689niietcm4_handle_uflash_protect_command()
} else if (strcmp("off", CMD_ARGV[3]) == 0) {
niietcm4.c:691niietcm4_handle_uflash_protect_command()
CMD_ARGV[0], first, last);
niietcm4.c:722niietcm4_handle_bflash_info_remap_command()
niietcm4.c:725niietcm4_handle_bflash_info_remap_command()
if (strcmp("on", CMD_ARGV[0]) == 0) {
niietcm4.c:728niietcm4_handle_bflash_info_remap_command()
} else if (strcmp("off", CMD_ARGV[0]) == 0) {
niietcm4.c:772niietcm4_handle_extmem_cfg_command()
niietcm4.c:775niietcm4_handle_extmem_cfg_command()
if (strcmp("gpioa", CMD_ARGV[0]) == 0)
niietcm4.c:777niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpiob", CMD_ARGV[0]) == 0)
niietcm4.c:779niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpioc", CMD_ARGV[0]) == 0)
niietcm4.c:781niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpiod", CMD_ARGV[0]) == 0)
niietcm4.c:783niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpioe", CMD_ARGV[0]) == 0)
niietcm4.c:785niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpiof", CMD_ARGV[0]) == 0)
niietcm4.c:787niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpiog", CMD_ARGV[0]) == 0)
niietcm4.c:789niietcm4_handle_extmem_cfg_command()
else if (strcmp("gpioh", CMD_ARGV[0]) == 0)
niietcm4.c:795niietcm4_handle_extmem_cfg_command()
niietcm4.c:800niietcm4_handle_extmem_cfg_command()
if (strcmp("func1", CMD_ARGV[2]) == 0)
niietcm4.c:802niietcm4_handle_extmem_cfg_command()
else if (strcmp("func3", CMD_ARGV[2]) == 0)
niietcm4.c:811niietcm4_handle_extmem_cfg_command()
"Please wait ...", CMD_ARGV[0], CMD_ARGV[1], CMD_ARGV[2]);
niietcm4.c:849niietcm4_handle_extmem_boot_command()
niietcm4.c:853niietcm4_handle_extmem_boot_command()
if (strcmp("on", CMD_ARGV[0]) == 0) {
niietcm4.c:856niietcm4_handle_extmem_boot_command()
} else if (strcmp("off", CMD_ARGV[0]) == 0) {
npcx.c:315npcx_flash_bank_command()
fiu = CMD_ARGV[6];
numicro.c:1147numicro_handle_read_isp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
numicro.c:1174numicro_handle_write_isp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
numicro.c:1175numicro_handle_write_isp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], ispdat);
opendous.c:155opendous_handle_opendous_type_command()
opendous_type = strdup(CMD_ARGV[0]);
opendous.c:181opendous_handle_opendous_hw_jtag_command()
int request_version = atoi(CMD_ARGV[0]);
openocd.c:62handler_version_command()
if (strcmp("git", CMD_ARGV[0]))
openocd.c:188handle_add_script_search_dir_command()
or1k.c:1261or1k_tap_select_command_handler()
if (!strcmp(CMD_ARGV[0], or1k_tap->name)) {
or1k.c:1269or1k_tap_select_command_handler()
LOG_ERROR("%s unknown, no tap selected", CMD_ARGV[0]);
or1k.c:1300or1k_du_select_command_handler()
if (!strcmp(CMD_ARGV[0], or1k_du->name)) {
or1k.c:1306or1k_du_select_command_handler()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[1], options);
or1k.c:1317or1k_du_select_command_handler()
LOG_ERROR("%s unknown, no debug unit selected", CMD_ARGV[0]);
or1k.c:1348or1k_addreg_command_handler()
or1k.c:1350or1k_addreg_command_handler()
new_reg.name = strdup(CMD_ARGV[0]);
or1k.c:1352or1k_addreg_command_handler()
new_reg.feature = strdup(CMD_ARGV[2]);
or1k.c:1353or1k_addreg_command_handler()
new_reg.group = strdup(CMD_ARGV[3]);
orion.c:119orion_nand_device_command()
pic32mm.c:950pic32mm_handle_pgm_word_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
pic32mm.c:951pic32mm_handle_pgm_word_command()
pic32mm.c:959pic32mm_handle_pgm_word_command()
command_print(CMD, "flash address '%s' is out of bounds", CMD_ARGV[0]);
pic32mx.c:834pic32mx_handle_pgm_word_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
pic32mx.c:835pic32mx_handle_pgm_word_command()
pic32mx.c:843pic32mx_handle_pgm_word_command()
command_print(CMD, "flash address '%s' is out of bounds", CMD_ARGV[0]);
pld.c:169handle_pld_create_command()
if (strcmp(CMD_ARGV[1], pld_drivers[i]->name) == 0) {
pld.c:176handle_pld_create_command()
LOG_ERROR("pld driver '%s' not found", CMD_ARGV[1]);
pld.c:180handle_pld_create_command()
pld.c:181handle_pld_create_command()
LOG_ERROR("pld device with name '%s' already exists", CMD_ARGV[0]);
pld.c:197handle_pld_create_command()
pld.c:201handle_pld_create_command()
pld_device->name = strdup(CMD_ARGV[0]);
pld.c:212handle_pld_create_command()
LOG_ERROR("couldn't register '%s' commands", CMD_ARGV[1]);
pld.c:260handle_pld_load_command()
pld.c:262handle_pld_load_command()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
pld.c:267handle_pld_load_command()
if (stat(CMD_ARGV[1], &input_stat) == -1) {
pld.c:268handle_pld_load_command()
LOG_ERROR("couldn't stat() %s: %s", CMD_ARGV[1], strerror(errno));
pld.c:273handle_pld_load_command()
LOG_ERROR("%s is a directory", CMD_ARGV[1]);
pld.c:278handle_pld_load_command()
LOG_ERROR("Empty file %s", CMD_ARGV[1]);
pld.c:282handle_pld_load_command()
retval = p->driver->load(p, CMD_ARGV[1]);
pld.c:285handle_pld_load_command()
pld.c:292handle_pld_load_command()
psoc4.c:616psoc4_handle_flash_autoerase_command()
psoc6.c:985psoc6_handle_reset_to_entry()
qn908x.c:379qn908x_flash_bank_command()
if (strcmp(CMD_ARGV[6], "calc_checksum")) {
qn908x.c:1044qn908x_handle_mass_erase_command()
if (strcmp("keep_lock", CMD_ARGV[0]))
renesas_rpchf.c:420rpchf_flash_bank_command()
riscv.c:2341riscv_set_command_timeout_sec()
int timeout = atoi(CMD_ARGV[0]);
riscv.c:2343riscv_set_command_timeout_sec()
LOG_ERROR("%s is not a valid integer argument for command.", CMD_ARGV[0]);
riscv.c:2358riscv_set_reset_timeout_sec()
int timeout = atoi(CMD_ARGV[0]);
riscv.c:2360riscv_set_reset_timeout_sec()
LOG_ERROR("%s is not a valid integer argument for command.", CMD_ARGV[0]);
riscv.c:2383riscv_set_mem_access()
if (strcmp("progbuf", CMD_ARGV[i]) == 0) {
riscv.c:2385riscv_set_mem_access()
} else if (strcmp("sysbus", CMD_ARGV[i]) == 0) {
riscv.c:2387riscv_set_mem_access()
} else if (strcmp("abstract", CMD_ARGV[i]) == 0) {
riscv.c:2391riscv_set_mem_access()
"Must be one of: 'progbuf', 'sysbus' or 'abstract'.", CMD_ARGV[i]);
riscv.c:2404riscv_set_mem_access()
if (strcmp("progbuf", CMD_ARGV[i]) == 0)
riscv.c:2406riscv_set_mem_access()
else if (strcmp("sysbus", CMD_ARGV[i]) == 0)
riscv.c:2408riscv_set_mem_access()
else if (strcmp("abstract", CMD_ARGV[i]) == 0)
riscv.c:2426riscv_set_enable_virtual()
riscv.c:2567riscv_set_expose_csrs()
ret = parse_ranges(&info->expose_csr, CMD_ARGV[i], "csr", 0xfff);
riscv.c:2587riscv_set_expose_custom()
ret = parse_ranges(&info->expose_custom, CMD_ARGV[i], "custom", 0x3fff);
riscv.c:2601riscv_authdata_read()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], index);
riscv.c:2640riscv_authdata_write()
riscv.c:2642riscv_authdata_write()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], index);
riscv.c:2643riscv_authdata_write()
riscv.c:2678riscv_dmi_read()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
riscv.c:2701riscv_dmi_write()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
riscv.c:2702riscv_dmi_write()
riscv.c:2722riscv_reset_delays()
riscv.c:2738riscv_set_ir()
riscv.c:2740riscv_set_ir()
if (!strcmp(CMD_ARGV[0], "idcode"))
riscv.c:2742riscv_set_ir()
else if (!strcmp(CMD_ARGV[0], "dtmcs"))
riscv.c:2744riscv_set_ir()
else if (!strcmp(CMD_ARGV[0], "dmi"))
riscv.c:2759riscv_resume_order()
if (!strcmp(CMD_ARGV[0], "normal")) {
riscv.c:2761riscv_resume_order()
} else if (!strcmp(CMD_ARGV[0], "reversed")) {
riscv.c:2764riscv_resume_order()
LOG_ERROR("Unsupported resume order: %s", CMD_ARGV[0]);
riscv.c:2780riscv_use_bscan_tunnel()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], irwidth);
riscv.c:2782riscv_use_bscan_tunnel()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], irwidth);
riscv.c:2783riscv_use_bscan_tunnel()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[1], tunnel_type);
riscv.c:2803riscv_set_enable_virt2phys()
riscv.c:2813riscv_set_ebreakm()
riscv.c:2823riscv_set_ebreaks()
riscv.c:2833riscv_set_ebreaku()
rsl10.c:686rsl10_lock_command()
LOG_INFO("Keys used: %s %s %s %s", CMD_ARGV[0], CMD_ARGV[1], CMD_ARGV[2], CMD_ARGV[3]);
rsl10.c:689rsl10_lock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], user_key[0]);
rsl10.c:690rsl10_lock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], user_key[1]);
rsl10.c:691rsl10_lock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], user_key[2]);
rsl10.c:692rsl10_lock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[3], user_key[3]);
rsl10.c:733rsl10_unlock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], user_key[0]);
rsl10.c:734rsl10_unlock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], user_key[1]);
rsl10.c:735rsl10_unlock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], user_key[2]);
rsl10.c:736rsl10_unlock_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[3], user_key[3]);
rtt_server.c:132handle_rtt_start_command()
rtt_server.c:135handle_rtt_start_command()
const char *hello_message = CMD_ARGV[2];
rtt_server.c:148handle_rtt_start_command()
rtt_server.c:163handle_rtt_stop_command()
semihosting_common.c:1852handle_common_semihosting_command()
semihosting_common.c:1901handle_common_semihosting_redirect_command()
if (strcmp(CMD_ARGV[0], "disable") == 0) {
semihosting_common.c:1905handle_common_semihosting_redirect_command()
} else if (strcmp(CMD_ARGV[0], "tcp") == 0) {
semihosting_common.c:1909handle_common_semihosting_redirect_command()
port = CMD_ARGV[1];
semihosting_common.c:1913handle_common_semihosting_redirect_command()
if (strcmp(CMD_ARGV[2], "debug") == 0)
semihosting_common.c:1915handle_common_semihosting_redirect_command()
else if (strcmp(CMD_ARGV[2], "stdio") == 0)
semihosting_common.c:1917handle_common_semihosting_redirect_command()
else if (strcmp(CMD_ARGV[2], "all") != 0)
semihosting_common.c:1981handle_common_semihosting_fileio_command()
semihosting_common.c:2007handle_common_semihosting_cmdline()
semihosting->cmdline = CMD_ARGC > 0 ? strdup(CMD_ARGV[0]) : NULL;
semihosting_common.c:2010handle_common_semihosting_cmdline()
char *cmdline = alloc_printf("%s %s", semihosting->cmdline, CMD_ARGV[i]);
semihosting_common.c:2044handle_common_semihosting_resumable_exit_command()
semihosting_common.c:2102handle_common_semihosting_basedir_command()
semihosting->basedir = strdup(CMD_ARGV[0]);
server.c:767handle_shutdown_command()
if (!strcmp(CMD_ARGV[0], "error")) {
server.c:781handle_poll_period_command()
server.c:796handle_bindto_command()
bindto_name = strdup(CMD_ARGV[0]);
server.c:856server_port_command()
server.c:879server_pipe_command()
*out = strdup(CMD_ARGV[0]);
sh_qspi.c:883sh_qspi_flash_bank_command()
if ((CMD_ARGC == 7) && strcmp(CMD_ARGV[6], "cs0")) {
sh_qspi.c:884sh_qspi_flash_bank_command()
LOG_ERROR("Unknown arg: %s", CMD_ARGV[6]);
smp.c:110default_handle_smp_command()
if (!strcmp(CMD_ARGV[0], "on")) {
smp.c:117default_handle_smp_command()
if (!strcmp(CMD_ARGV[0], "off")) {
smp.c:141handle_smp_gdb_command()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], coreid);
stlink_usb.c:5002stlink_dap_vid_pid()
stlink_usb.c:5003stlink_dap_vid_pid()
stlink_usb.c:5021stlink_dap_backend_command()
else if (strcmp(CMD_ARGV[0], "usb") == 0) {
stlink_usb.c:5025stlink_dap_backend_command()
} else if (strcmp(CMD_ARGV[0], "tcp") == 0) {
stlink_usb.c:5028stlink_dap_backend_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[1], stlink_tcp_port);
stlink_usb.c:5047stlink_dap_cmd_command()
stlink_usb.c:5058stlink_dap_cmd_command()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[i + 1], byte);
stm32f1x.c:1511stm32x_handle_options_write_command()
stm32f1x.c:1514stm32x_handle_options_write_command()
if (strcmp("SWWDG", CMD_ARGV[0]) == 0)
stm32f1x.c:1516stm32x_handle_options_write_command()
else if (strcmp("HWWDG", CMD_ARGV[0]) == 0)
stm32f1x.c:1518stm32x_handle_options_write_command()
else if (strcmp("NORSTSTOP", CMD_ARGV[0]) == 0)
stm32f1x.c:1520stm32x_handle_options_write_command()
else if (strcmp("RSTSTOP", CMD_ARGV[0]) == 0)
stm32f1x.c:1522stm32x_handle_options_write_command()
else if (strcmp("NORSTSTNDBY", CMD_ARGV[0]) == 0)
stm32f1x.c:1524stm32x_handle_options_write_command()
else if (strcmp("RSTSTNDBY", CMD_ARGV[0]) == 0)
stm32f1x.c:1526stm32x_handle_options_write_command()
else if (strcmp("USEROPT", CMD_ARGV[0]) == 0) {
stm32f1x.c:1529stm32x_handle_options_write_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[1], useropt);
stm32f1x.c:1531stm32x_handle_options_write_command()
stm32f1x.c:1533stm32x_handle_options_write_command()
if (strcmp("BOOT0", CMD_ARGV[0]) == 0)
stm32f1x.c:1535stm32x_handle_options_write_command()
else if (strcmp("BOOT1", CMD_ARGV[0]) == 0)
stm32f1x.c:1542stm32x_handle_options_write_command()
stm32f2x.c:1637stm32f2x_handle_options_write_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[2], boot_addr0);
stm32f2x.c:1638stm32f2x_handle_options_write_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[3], boot_addr1);
stm32f2x.c:1644stm32f2x_handle_options_write_command()
COMMAND_PARSE_NUMBER(u16, CMD_ARGV[1], user_options);
stm32f2x.c:1697stm32f2x_handle_optcr2_write_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], optcr2_pcrop);
stm32f2x.c:1719stm32x_handle_otp_command()
if (strcmp(CMD_ARGV[1], "enable") == 0) {
stm32f2x.c:1721stm32x_handle_otp_command()
} else if (strcmp(CMD_ARGV[1], "disable") == 0) {
stm32f2x.c:1723stm32x_handle_otp_command()
} else if (strcmp(CMD_ARGV[1], "show") == 0) {
stm32g0x.c:1013stm32x_handle_options_write_command()
stm32g0x.c:1016stm32x_handle_options_write_command()
if (strcmp("BOREN", CMD_ARGV[0]) == 0)
stm32g0x.c:1018stm32x_handle_options_write_command()
else if (strcmp("NOBOREN", CMD_ARGV[0]) == 0)
stm32g0x.c:1020stm32x_handle_options_write_command()
else if (strcmp("BORFLEV", CMD_ARGV[0]) == 0) {
stm32g0x.c:1023stm32x_handle_options_write_command()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[1], bor_level);
stm32g0x.c:1026stm32x_handle_options_write_command()
stm32g0x.c:1027stm32x_handle_options_write_command()
} else if (strcmp("BORRLEV", CMD_ARGV[0]) == 0) {
stm32g0x.c:1030stm32x_handle_options_write_command()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[1], bor_level);
stm32g0x.c:1033stm32x_handle_options_write_command()
stm32g0x.c:1034stm32x_handle_options_write_command()
} else if (strcmp("NORSTSTOP", CMD_ARGV[0]) == 0)
stm32g0x.c:1036stm32x_handle_options_write_command()
else if (strcmp("RSTSTOP", CMD_ARGV[0]) == 0)
stm32g0x.c:1038stm32x_handle_options_write_command()
else if (strcmp("NORSTSTNDBY", CMD_ARGV[0]) == 0)
stm32g0x.c:1040stm32x_handle_options_write_command()
else if (strcmp("RSTSTNDBY", CMD_ARGV[0]) == 0)
stm32g0x.c:1042stm32x_handle_options_write_command()
else if (strcmp("NORSTSHDW", CMD_ARGV[0]) == 0)
stm32g0x.c:1044stm32x_handle_options_write_command()
else if (strcmp("RSTSHDW", CMD_ARGV[0]) == 0)
stm32g0x.c:1046stm32x_handle_options_write_command()
else if (strcmp("IDWGSW", CMD_ARGV[0]) == 0)
stm32g0x.c:1048stm32x_handle_options_write_command()
else if (strcmp("IDWGHW", CMD_ARGV[0]) == 0)
stm32g0x.c:1050stm32x_handle_options_write_command()
else if (strcmp("IDWGSTOP", CMD_ARGV[0]) == 0)
stm32g0x.c:1052stm32x_handle_options_write_command()
else if (strcmp("NOIDWGSTOP", CMD_ARGV[0]) == 0)
stm32g0x.c:1054stm32x_handle_options_write_command()
else if (strcmp("IDWGSTDBY", CMD_ARGV[0]) == 0)
stm32g0x.c:1056stm32x_handle_options_write_command()
else if (strcmp("NOIDWGSTDBY", CMD_ARGV[0]) == 0)
stm32g0x.c:1058stm32x_handle_options_write_command()
else if (strcmp("WWDGSW", CMD_ARGV[0]) == 0)
stm32g0x.c:1060stm32x_handle_options_write_command()
else if (strcmp("WWDGHW", CMD_ARGV[0]) == 0)
stm32g0x.c:1062stm32x_handle_options_write_command()
else if (strcmp("PARITY", CMD_ARGV[0]) == 0)
stm32g0x.c:1064stm32x_handle_options_write_command()
else if (strcmp("NOPARITY", CMD_ARGV[0]) == 0)
stm32g0x.c:1066stm32x_handle_options_write_command()
else if (strcmp("BOOTSEL", CMD_ARGV[0]) == 0)
stm32g0x.c:1068stm32x_handle_options_write_command()
else if (strcmp("NOBOOTSEL", CMD_ARGV[0]) == 0)
stm32g0x.c:1070stm32x_handle_options_write_command()
else if (strcmp("BOOT1", CMD_ARGV[0]) == 0)
stm32g0x.c:1072stm32x_handle_options_write_command()
else if (strcmp("NOBOOT1", CMD_ARGV[0]) == 0)
stm32g0x.c:1074stm32x_handle_options_write_command()
else if (strcmp("BOOT0", CMD_ARGV[0]) == 0)
stm32g0x.c:1076stm32x_handle_options_write_command()
else if (strcmp("NOBOOT0", CMD_ARGV[0]) == 0)
stm32g0x.c:1081stm32x_handle_options_write_command()
stm32g4x.c:1025stm32l4_handle_option_read_command()
reg_offset = strtoul(CMD_ARGV[1], NULL, 16);
stm32g4x.c:1053stm32l4_handle_option_write_command()
reg_offset = strtoul(CMD_ARGV[1], NULL, 16);
stm32g4x.c:1054stm32l4_handle_option_write_command()
value = strtoul(CMD_ARGV[2], NULL, 16);
stm32g4x.c:1056stm32l4_handle_option_write_command()
mask = strtoul(CMD_ARGV[3], NULL, 16);
stm32h7x.c:1112stm32x_handle_option_read_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], reg_offset);
stm32h7x.c:1135stm32x_handle_option_write_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], reg_offset);
stm32h7x.c:1136stm32x_handle_option_write_command()
stm32h7x.c:1138stm32x_handle_option_write_command()
stm32l4x.c:2301stm32l4_handle_option_read_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], reg_offset);
stm32l4x.c:2327stm32l4_handle_option_write_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], reg_offset);
stm32l4x.c:2328stm32l4_handle_option_write_command()
stm32l4x.c:2331stm32l4_handle_option_write_command()
stm32l4x.c:2370stm32l4_handle_trustzone_command()
stm32l4x.c:2511stm32l4_handle_wrp_info_command()
if (strcmp(CMD_ARGV[1], "bank1") == 0)
stm32l4x.c:2513stm32l4_handle_wrp_info_command()
else if (strcmp(CMD_ARGV[1], "bank2") == 0)
stm32l4x.c:2579stm32l4_handle_otp_command()
if (strcmp(CMD_ARGV[1], "enable") == 0)
stm32l4x.c:2581stm32l4_handle_otp_command()
else if (strcmp(CMD_ARGV[1], "disable") == 0)
stm32l4x.c:2583stm32l4_handle_otp_command()
else if (strcmp(CMD_ARGV[1], "show") == 0)
stm32l5x.c:1002stm32l4_handle_option_read_command()
reg_addr += strtoul(CMD_ARGV[1], NULL, 16);
stm32l5x.c:1029stm32l4_handle_option_write_command()
reg_addr += strtoul(CMD_ARGV[1], NULL, 16);
stm32l5x.c:1030stm32l4_handle_option_write_command()
value = strtoul(CMD_ARGV[2], NULL, 16);
stm32l5x.c:1032stm32l4_handle_option_write_command()
mask = strtoul(CMD_ARGV[3], NULL, 16);
stm8.c:2106stm8_handle_enable_step_irq_command()
stm8.c:2122stm8_handle_enable_stm8l_command()
stmqspi.c:215stmqspi_flash_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], io_base);
stmqspi.c:643stmqspi_handle_set()
strncpy(stmqspi_info->devname, CMD_ARGV[index++], sizeof(stmqspi_info->devname) - 1);
stmqspi.c:646stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[index++], stmqspi_info->dev.size_in_bytes);
stmqspi.c:652stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[index++], stmqspi_info->dev.pagesize);
stmqspi.c:659stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[index++], stmqspi_info->dev.read_cmd);
stmqspi.c:666stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[index++], stmqspi_info->dev.qread_cmd);
stmqspi.c:684stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[index++], stmqspi_info->dev.pprog_cmd);
stmqspi.c:693stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[index++], stmqspi_info->dev.chip_erase_cmd);
stmqspi.c:698stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[index++], stmqspi_info->dev.sectorsize);
stmqspi.c:707stmqspi_handle_set()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[index++], stmqspi_info->dev.erase_cmd);
stmqspi.c:805stmqspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[1], num_read);
stmqspi.c:806stmqspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[2], cmd_byte);
stmqspi.c:863stmqspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[count], data);
stmqspi.c:875stmqspi_handle_cmd()
COMMAND_PARSE_NUMBER(u8, CMD_ARGV[count], data);
str7x.c:200str7x_flash_bank_command()
if (strcmp(CMD_ARGV[6], "STR71x") == 0)
str7x.c:202str7x_flash_bank_command()
else if (strcmp(CMD_ARGV[6], "STR73x") == 0) {
str7x.c:205str7x_flash_bank_command()
} else if (strcmp(CMD_ARGV[6], "STR75x") == 0) {
str7x.c:209str7x_flash_bank_command()
LOG_ERROR("unknown STR7x variant: '%s'", CMD_ARGV[6]);
str9x.c:604str9x_handle_flash_config_command()
str9x.c:605str9x_handle_flash_config_command()
str9x.c:606str9x_handle_flash_config_command()
str9x.c:607str9x_handle_flash_config_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[4], nbbadr);
str9xpec.c:898str9xpec_handle_flash_options_cmap_command()
if (strcmp(CMD_ARGV[1], "bank1") == 0)
str9xpec.c:920str9xpec_handle_flash_options_lvdthd_command()
if (strcmp(CMD_ARGV[1], "2.7v") == 0)
str9xpec.c:942str9xpec_handle_flash_options_lvdsel_command()
if (strcmp(CMD_ARGV[1], "vdd_vddq") == 0)
str9xpec.c:964str9xpec_handle_flash_options_lvdwarn_command()
if (strcmp(CMD_ARGV[1], "vdd_vddq") == 0)
svf.c:409handle_svf_command()
const struct nvp *n = nvp_name2value(svf_cmd_opts, CMD_ARGV[i]);
svf.c:412handle_svf_command()
svf_addcycles = atoi(CMD_ARGV[i + 1]);
svf.c:414handle_svf_command()
command_print(CMD, "addcycles: %s out of range", CMD_ARGV[i + 1]);
svf.c:424handle_svf_command()
svf.c:426handle_svf_command()
command_print(CMD, "Tap: %s unknown", CMD_ARGV[i+1]);
svf.c:436handle_svf_command()
LOG_INFO("DEPRECATED flag '%s'; use '-%s'", CMD_ARGV[i], CMD_ARGV[i]);
svf.c:443handle_svf_command()
LOG_INFO("DEPRECATED flag '%s'; use '-%s'", CMD_ARGV[i], CMD_ARGV[i]);
svf.c:450handle_svf_command()
LOG_INFO("DEPRECATED flag '%s'; use '-%s'", CMD_ARGV[i], CMD_ARGV[i]);
svf.c:457handle_svf_command()
LOG_INFO("DEPRECATED flag '%s'; use '-%s'", CMD_ARGV[i], CMD_ARGV[i]);
svf.c:468handle_svf_command()
svf_fd = fopen(CMD_ARGV[i], "r");
svf.c:471handle_svf_command()
command_print(CMD, "open(\"%s\"): %s", CMD_ARGV[i], strerror(err));
svf.c:475handle_svf_command()
LOG_USER("svf processing file: \"%s\"", CMD_ARGV[i]);
swim.c:69handle_swim_newtap_command()
tap->chip = strdup(CMD_ARGV[0]);
swim.c:70handle_swim_newtap_command()
tap->tapname = strdup(CMD_ARGV[1]);
swim.c:71handle_swim_newtap_command()
tap->dotted_name = alloc_printf("%s.%s", CMD_ARGV[0], CMD_ARGV[1]);
target.c:2818handle_targets_command()
retval = find_target(CMD, CMD_ARGV[0]);
target.c:3082handle_reg_command()
if ((CMD_ARGV[0][0] >= '0') && (CMD_ARGV[0][0] <= '9')) {
target.c:3084handle_reg_command()
target.c:3108handle_reg_command()
target.c:3120handle_reg_command()
if ((CMD_ARGC == 1) || ((CMD_ARGC == 2) && !((CMD_ARGV[1][0] >= '0')
target.c:3121handle_reg_command()
&& (CMD_ARGV[1][0] <= '9')))) {
target.c:3122handle_reg_command()
if ((CMD_ARGC == 2) && (strcmp(CMD_ARGV[1], "force") == 0))
target.c:3146handle_reg_command()
target.c:3169handle_reg_command()
command_print(CMD, "register %s not found in current target", CMD_ARGV[0]);
target.c:3194handle_poll_command()
target.c:3209handle_wait_halt_command()
int retval = parse_uint(CMD_ARGV[0], &ms);
target.c:3274handle_halt_command()
retval = parse_uint(CMD_ARGV[0], &wait_local);
target.c:3303handle_reset_command()
target.c:3327handle_resume_command()
target.c:3347handle_step_command()
target.c:3443handle_md_command()
bool physical = strcmp(CMD_ARGV[0], "phys") == 0;
target.c:3448handle_md_command()
target.c:3456handle_md_command()
target.c:3460handle_md_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], count);
target.c:3550handle_mw_command()
bool physical = strcmp(CMD_ARGV[0], "phys") == 0;
target.c:3554handle_mw_command()
target.c:3562handle_mw_command()
target.c:3565handle_mw_command()
target.c:3569handle_mw_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[2], count);
target.c:3610handle_mbatch_command()
command_print_sameline(cmd, "mbatch(%s):", CMD_ARGV[0]);
target.c:3614handle_mbatch_command()
const char *pCmd = CMD_ARGV[i];
target.c:3696parse_load_image_command()
target.c:3705parse_load_image_command()
target.c:3707parse_load_image_command()
target.c:3737handle_load_image_command()
if (image_open(&image, CMD_ARGV[0], (CMD_ARGC >= 3) ? CMD_ARGV[2] : NULL) != ERROR_OK)
target.c:3814handle_dump_image_command()
target.c:3815handle_dump_image_command()
target.c:3822handle_dump_image_command()
target.c:3896handle_verify_image_command_internal()
target.c:3906handle_verify_image_command_internal()
retval = image_open(&image, CMD_ARGV[0], (CMD_ARGC == 3) ? CMD_ARGV[2] : NULL);
target.c:4107handle_bp_command()
target.c:4108handle_bp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], length);
target.c:4112handle_bp_command()
if (strcmp(CMD_ARGV[2], "hw") == 0) {
target.c:4114handle_bp_command()
target.c:4115handle_bp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], length);
target.c:4118handle_bp_command()
} else if (strcmp(CMD_ARGV[2], "hw_ctx") == 0) {
target.c:4120handle_bp_command()
target.c:4121handle_bp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], length);
target.c:4128handle_bp_command()
target.c:4129handle_bp_command()
target.c:4130handle_bp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], length);
target.c:4147handle_rbp_command()
if (!strcmp(CMD_ARGV[0], "all")) {
target.c:4156handle_rbp_command()
target.c:4199handle_wp_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[4], data_mask);
target.c:4203handle_wp_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[3], data_value);
target.c:4209handle_wp_command()
switch (CMD_ARGV[2][0]) {
target.c:4220handle_wp_command()
LOG_TARGET_ERROR(target, "invalid watchpoint mode ('%c')", CMD_ARGV[2][0]);
target.c:4225handle_wp_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], length);
target.c:4226handle_wp_command()
target.c:4249handle_rwp_command()
if (!strcmp(CMD_ARGV[0], "all")) {
target.c:4258handle_rwp_command()
target.c:4281handle_virt2phys_command()
target.c:4435handle_profile_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], offset);
target.c:4442handle_profile_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], start_address);
target.c:4443handle_profile_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[3], end_address);
target.c:4502handle_profile_command()
write_gmon(samples, num_of_samples, CMD_ARGV[1],
target.c:4504handle_profile_command()
command_print(CMD, "Wrote %s", CMD_ARGV[1]);
target.c:4524handle_target_read_memory()
target.c:4528handle_target_read_memory()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[1], width_bits);
target.c:4532handle_target_read_memory()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[2], count);
target.c:4537handle_target_read_memory()
if (strcmp(CMD_ARGV[3], "phys")) {
target.c:4538handle_target_read_memory()
command_print(CMD, "invalid argument '%s', must be 'phys'", CMD_ARGV[3]);
target.c:5379handle_target_examine()
if (strcmp(CMD_ARGV[0], "allow-defer"))
target.c:5463handle_target_reset()
const struct nvp *n = nvp_name2value(nvp_assert, CMD_ARGV[0]);
target.c:5465handle_target_reset()
target.c:5471handle_target_reset()
target.c:5519handle_target_wait_state()
target.c:5521handle_target_wait_state()
target.c:5526handle_target_wait_state()
target.c:6140handle_target_smp()
target.c:6259handle_fast_load_image_command()
retval = image_open(&image, CMD_ARGV[0], (CMD_ARGC >= 3) ? CMD_ARGV[2] : NULL);
target.c:6448handle_report_flash_progress()
target.c:6472handle_run_until_stop_fast()
COMMAND_PARSE_NUMBER(s32, CMD_ARGV[0], timeout);
target.c:6490handle_wait_for_stop()
COMMAND_PARSE_NUMBER(s32, CMD_ARGV[0], timeout);
target.c:6516handle_test_mem_access_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], test_size);
target_request.c:258handle_target_request_debugmsgs_command()
if (!strcmp(CMD_ARGV[0], "enable") || !strcmp(CMD_ARGV[0], "charmsg")) {
target_request.c:264handle_target_request_debugmsgs_command()
charmsg_mode = !strcmp(CMD_ARGV[0], "charmsg");
target_request.c:265handle_target_request_debugmsgs_command()
} else if (!strcmp(CMD_ARGV[0], "disable")) {
tcl.c:60handle_nand_info_command()
tcl.c:65handle_nand_info_command()
tcl.c:66handle_nand_info_command()
tcl.c:76handle_nand_info_command()
command_print(CMD, "#%s: not probed", CMD_ARGV[0]);
tcl.c:160handle_nand_erase_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[1], offset);
tcl.c:164handle_nand_erase_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[2], length);
tcl.c:181handle_nand_erase_command()
CMD_ARGV[0], p->device->name);
tcl.c:204handle_nand_check_bad_blocks_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[1], offset);
tcl.c:209handle_nand_check_bad_blocks_command()
COMMAND_PARSE_NUMBER(ulong, CMD_ARGV[2], length);
tcl.c:253handle_nand_write_command()
tcl.c:263handle_nand_write_command()
tcl.c:321handle_nand_verify_command()
tcl.c:381handle_nand_raw_access_command()
command_print(CMD, "#%s: not probed", CMD_ARGV[0]);
tcl.c:386handle_nand_raw_access_command()
tcl.c:510create_nand_device()
target = get_target(CMD_ARGV[1]);
tcl.c:512create_nand_device()
LOG_ERROR("invalid target %s", CMD_ARGV[1]);
tcl.c:562handle_nand_device_command()
const char *bank_name = *CMD_ARGV++;
tcl.c:565handle_nand_device_command()
const char *driver_name = CMD_ARGV[0];
tcl.c:567handle_nand_device_command()
tcl.c:25flash_command_get_bank_probe_optional()
const char *name = CMD_ARGV[name_index];
tcl.c:70handle_flash_info_command()
if (strcmp("sectors", CMD_ARGV[1]) == 0)
tcl.c:172handle_flash_probe_command()
command_print(CMD, "flash bank '#%s' is out of bounds", CMD_ARGV[0]);
tcl.c:197handle_flash_erase_check_command()
tcl.c:241handle_flash_erase_address_command()
if (strcmp("pad", CMD_ARGV[0]) == 0)
tcl.c:243handle_flash_erase_address_command()
else if (strcmp("unlock", CMD_ARGV[0]) == 0)
tcl.c:248handle_flash_erase_address_command()
tcl.c:253handle_flash_erase_address_command()
tcl.c:254handle_flash_erase_address_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], length);
tcl.c:302handle_flash_erase_command()
tcl.c:303handle_flash_erase_command()
if (strcmp(CMD_ARGV[2], "last") == 0)
tcl.c:306handle_flash_erase_command()
tcl.c:356handle_flash_protect_command()
tcl.c:357handle_flash_protect_command()
if (strcmp(CMD_ARGV[2], "last") == 0)
tcl.c:360handle_flash_protect_command()
tcl.c:363handle_flash_protect_command()
tcl.c:406handle_flash_write_image_command()
if (strcmp(CMD_ARGV[0], "erase") == 0) {
tcl.c:408handle_flash_write_image_command()
tcl.c:411handle_flash_write_image_command()
} else if (strcmp(CMD_ARGV[0], "unlock") == 0) {
tcl.c:413handle_flash_write_image_command()
tcl.c:433handle_flash_write_image_command()
tcl.c:441handle_flash_write_image_command()
retval = image_open(&image, CMD_ARGV[0], (CMD_ARGC == 3) ? CMD_ARGV[2] : NULL);
tcl.c:454handle_flash_write_image_command()
"in %fs (%0.3f KiB/s)", written, CMD_ARGV[0],
tcl.c:485handle_flash_verify_image_command()
tcl.c:493handle_flash_verify_image_command()
retval = image_open(&image, CMD_ARGV[0], (CMD_ARGC == 3) ? CMD_ARGV[2] : NULL);
tcl.c:506handle_flash_verify_image_command()
"in %fs (%0.3f KiB/s)", verified, CMD_ARGV[0],
tcl.c:528handle_flash_fill_command()
tcl.c:529handle_flash_fill_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[1], pattern);
tcl.c:530handle_flash_fill_command()
tcl.c:678handle_flash_md_command()
tcl.c:682handle_flash_md_command()
tcl.c:752handle_flash_write_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], offset);
tcl.c:760handle_flash_write_bank_command()
tcl.c:837handle_flash_write_bank_command()
length, CMD_ARGV[1], bank->bank_number, offset,
tcl.c:869handle_flash_read_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], offset);
tcl.c:880handle_flash_read_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[3], length);
tcl.c:901handle_flash_read_bank_command()
tcl.c:919handle_flash_read_bank_command()
written, CMD_ARGV[1], p->bank_number, offset,
tcl.c:950handle_flash_verify_bank_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], offset);
tcl.c:958handle_flash_verify_bank_command()
tcl.c:1021handle_flash_verify_bank_command()
length, CMD_ARGV[1], p->bank_number, offset,
tcl.c:1068handle_flash_padded_value_command()
tcl.c:1251handle_flash_bank_command()
const char *bank_name = *CMD_ARGV++;
tcl.c:1254handle_flash_bank_command()
struct target *target = get_target(CMD_ARGV[5]);
tcl.c:1256handle_flash_bank_command()
LOG_ERROR("target '%s' not defined", CMD_ARGV[5]);
tcl.c:1260handle_flash_bank_command()
const char *driver_name = CMD_ARGV[0];
tcl.c:1289handle_flash_bank_command()
COMMAND_PARSE_NUMBER(target_addr, CMD_ARGV[1], c->base);
tcl.c:1290handle_flash_bank_command()
tcl.c:1291handle_flash_bank_command()
tcl.c:1292handle_flash_bank_command()
tcl.c:82handle_jtag_command_drscan_fields()
tcl.c:92handle_jtag_command_drscan_fields()
tcl.c:118handle_jtag_command_drscan()
tcl.c:120handle_jtag_command_drscan()
command_print(CMD, "Tap '%s' could not be found", CMD_ARGV[0]);
tcl.c:130handle_jtag_command_drscan()
if (CMD_ARGC > 3 && !strcmp("-endstate", CMD_ARGV[CMD_ARGC - 2])) {
tcl.c:131handle_jtag_command_drscan()
const char *state_name = CMD_ARGV[CMD_ARGC - 1];
tcl.c:185handle_jtag_command_pathmove()
states[i] = tap_state_by_name(CMD_ARGV[i]);
tcl.c:187handle_jtag_command_pathmove()
command_print(CMD, "endstate: %s invalid", CMD_ARGV[i]);
tcl.c:318handle_jtag_configure()
const struct nvp *n = nvp_name2value(nvp_config_opts, CMD_ARGV[i]);
tcl.c:327handle_jtag_configure()
const struct nvp *event = nvp_name2value(nvp_jtag_tap_event, CMD_ARGV[i + 1]);
tcl.c:329handle_jtag_configure()
tcl.c:358handle_jtag_configure()
tcl.c:394handle_jtag_newtap_args()
tap->chip = strdup(CMD_ARGV[0]);
tcl.c:395handle_jtag_newtap_args()
tap->tapname = strdup(CMD_ARGV[1]);
tcl.c:396handle_jtag_newtap_args()
tcl.c:402handle_jtag_newtap_args()
CMD_ARGV += 2;
tcl.c:416handle_jtag_newtap_args()
tcl.c:418handle_jtag_newtap_args()
tcl.c:440handle_jtag_newtap_args()
tcl.c:442handle_jtag_newtap_args()
tcl.c:451handle_jtag_newtap_args()
tcl.c:453handle_jtag_newtap_args()
tcl.c:462handle_jtag_newtap_args()
tcl.c:464handle_jtag_newtap_args()
tcl.c:473handle_jtag_newtap_args()
tcl.c:475handle_jtag_newtap_args()
tcl.c:492handle_jtag_newtap_args()
tcl.c:494handle_jtag_newtap_args()
tcl.c:498handle_jtag_newtap_args()
tcl.c:635handle_jtag_tap_enabler()
tcl.c:637handle_jtag_tap_enabler()
command_print(CMD, "Tap '%s' could not be found", CMD_ARGV[0]);
tcl.c:850handle_jtag_ntrst_delay_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], delay);
tcl.c:864handle_jtag_ntrst_assert_width_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], delay);
tcl.c:880handle_jtag_rclk_command()
tcl.c:906handle_runtest_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], num_clocks);
tcl.c:939handle_irscan_command()
if (strcmp("-endstate", CMD_ARGV[CMD_ARGC - 2]) == 0) {
tcl.c:940handle_irscan_command()
tcl.c:945handle_irscan_command()
tcl.c:963handle_irscan_command()
tcl.c:966handle_irscan_command()
command_print(CMD, "Tap: %s unknown", CMD_ARGV[i*2]);
tcl.c:971handle_irscan_command()
retval = parse_u64(CMD_ARGV[i * 2 + 1], &value);
tcl.c:1009handle_verify_ircapture_command()
tcl.c:1026handle_verify_jtag_command()
tcl.c:1043handle_tms_sequence_command()
if (strcmp(CMD_ARGV[0], "short") == 0)
tcl.c:1045handle_tms_sequence_command()
else if (strcmp(CMD_ARGV[0], "long") == 0)
tcl.c:1065handle_jtag_flush_queue_sleep()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], sleep_ms);
tcl.c:1078handle_wait_srst_deassert()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[0], timeout_ms);
tcl.c:29handle_rtt_setup_command()
selected_id = CMD_ARGV[2];
tcl.c:42handle_rtt_setup_command()
COMMAND_PARSE_NUMBER(target_addr, CMD_ARGV[0], address);
tcl.c:43handle_rtt_setup_command()
tcl.c:92handle_rtt_polling_interval_command()
COMMAND_PARSE_NUMBER(uint, CMD_ARGV[0], interval);
tms470.c:285tms470_handle_flash_keyset_command()
int start = (strncmp(CMD_ARGV[i], "0x", 2) == 0) ? 2 : 0;
tms470.c:287tms470_handle_flash_keyset_command()
if (sscanf(&CMD_ARGV[i][start], "%" SCNx32 "", &flash_keys[i]) != 1) {
tms470.c:289tms470_handle_flash_keyset_command()
tms470.c:290tms470_handle_flash_keyset_command()
LOG_ERROR("could not process flash key %s", CMD_ARGV[i]);
tms470.c:335tms470_handle_osc_megahertz_command()
sscanf(CMD_ARGV[0], "%d", &osc_mhz);
tms470.c:358tms470_handle_plldis_command()
sscanf(CMD_ARGV[0], "%d", &plldis);
trace.c:53handle_trace_point_command()
if (!strcmp(CMD_ARGV[0], "clear")) {
trace.c:71handle_trace_point_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
trace.c:88handle_trace_history_command()
if (!strcmp(CMD_ARGV[0], "clear")) {
trace.c:95handle_trace_history_command()
transport.c:196transport_list_parse()
if (strcmp(t->name, CMD_ARGV[i]) != 0)
transport.c:198transport_list_parse()
argv[j++] = strdup(CMD_ARGV[i]);
transport.c:202transport_list_parse()
LOG_ERROR("no such transport '%s'", CMD_ARGV[i]);
transport.c:279handle_transport_select()
if (!strcmp(session->name, CMD_ARGV[0])) {
transport.c:299handle_transport_select()
if (!strcmp(allowed_transports[i], CMD_ARGV[0])) {
transport.c:300handle_transport_select()
int retval = transport_select(CMD_CTX, CMD_ARGV[0]);
transport.c:307handle_transport_select()
command_print(CMD, "Debug adapter doesn't support '%s' transport", CMD_ARGV[0]);
ulink.c:2235ulink_download_firmware_handler()
LOG_INFO("Downloading ULINK firmware image %s", CMD_ARGV[0]);
ulink.c:2238ulink_download_firmware_handler()
usb_blaster.c:905ublast_handle_vid_pid_command()
usb_blaster.c:906ublast_handle_vid_pid_command()
usb_blaster.c:912ublast_handle_vid_pid_command()
usb_blaster.c:913ublast_handle_vid_pid_command()
usb_blaster.c:924ublast_handle_pin_command()
const char * const pin_name = CMD_ARGV[0];
usb_blaster.c:954ublast_handle_pin_command()
const char * const pin_value = CMD_ARGV[1];
usb_blaster.c:992ublast_handle_lowlevel_drv_command()
usb_blaster.c:1002ublast_firmware_command()
virtex2.c:275virtex2_handle_refresh_command()
virtex2.c:277virtex2_handle_refresh_command()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
virtex2.c:292virtex2_handle_read_stat_command()
virtex2.c:294virtex2_handle_read_stat_command()
command_print(CMD, "pld device '#%s' is out of bounds or unknown", CMD_ARGV[0]);
virtex2.c:349virtex2_handle_set_instuction_codes_command()
virtex2.c:351virtex2_handle_set_instuction_codes_command()
command_print(CMD, "pld device '#%s' is unknown", CMD_ARGV[0]);
virtex2.c:360virtex2_handle_set_instuction_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[1], instr_codes.cfg_out);
virtex2.c:361virtex2_handle_set_instuction_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[2], instr_codes.cfg_in);
virtex2.c:362virtex2_handle_set_instuction_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[3], instr_codes.jprog_b);
virtex2.c:363virtex2_handle_set_instuction_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[4], instr_codes.jstart);
virtex2.c:364virtex2_handle_set_instuction_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[5], instr_codes.jshutdown);
virtex2.c:369virtex2_handle_set_instuction_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[6 + i], instr_codes.user[i]);
virtex2.c:381virtex2_handle_set_user_codes_command()
virtex2.c:383virtex2_handle_set_user_codes_command()
command_print(CMD, "pld device '#%s' is unknown", CMD_ARGV[0]);
virtex2.c:394virtex2_handle_set_user_codes_command()
COMMAND_PARSE_NUMBER(u64, CMD_ARGV[1 + i], user[i]);
virtex2.c:405virtex2_pld_create_command()
if (strcmp(CMD_ARGV[2], "-chain-position") != 0)
virtex2.c:408virtex2_pld_create_command()
virtex2.c:410virtex2_pld_create_command()
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[3]);
virtex2.c:423virtex2_pld_create_command()
if (CMD_ARGC >= 5 && strcmp(CMD_ARGV[4], "-no_jstart") == 0)
virtual.c:53virtual_flash_bank_command()
const char *bank_name = CMD_ARGV[6];
vsllink.c:478vsllink_handle_usb_vid_command()
vsllink.c:487vsllink_handle_usb_pid_command()
vsllink.c:497vsllink_handle_usb_bulkin_command()
vsllink.c:510vsllink_handle_usb_bulkout_command()
vsllink.c:523vsllink_handle_usb_interface_command()
x86_32_common.c:1396handle_iod_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
x86_32_common.c:1456handle_iow_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], address);
x86_32_common.c:1458handle_iow_command()
xcf.c:761xcf_handle_ccb_command()
xcf.c:763xcf_handle_ccb_command()
if (strcmp("external", CMD_ARGV[0]) == 0)
xcf.c:765xcf_handle_ccb_command()
else if (strcmp("internal", CMD_ARGV[0]) == 0)
xcf.c:767xcf_handle_ccb_command()
else if (strcmp("serial", CMD_ARGV[0]) == 0)
xcf.c:769xcf_handle_ccb_command()
else if (strcmp("parallel", CMD_ARGV[0]) == 0)
xcf.c:771xcf_handle_ccb_command()
else if (strcmp("slave", CMD_ARGV[0]) == 0)
xcf.c:773xcf_handle_ccb_command()
else if (strcmp("master", CMD_ARGV[0]) == 0)
xcf.c:775xcf_handle_ccb_command()
else if (strcmp("40", CMD_ARGV[0]) == 0)
xcf.c:777xcf_handle_ccb_command()
else if (strcmp("20", CMD_ARGV[0]) == 0)
xcf.c:782xcf_handle_ccb_command()
xds110.c:2007xds110_handle_supply_voltage_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], voltage);
xmc4xxx.c:1260xmc4xxx_handle_flash_password_command()
xmc4xxx.c:1265xmc4xxx_handle_flash_password_command()
xmc4xxx.c:1291xmc4xxx_handle_flash_unprotect_command()
xscale.c:3041xscale_handle_debug_handler_command()
target = get_target(CMD_ARGV[0]);
xscale.c:3043xscale_handle_debug_handler_command()
LOG_ERROR("target '%s' not defined", CMD_ARGV[0]);
xscale.c:3052xscale_handle_debug_handler_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], handler_address);
xscale.c:3076xscale_handle_cache_clean_address_command()
target = get_target(CMD_ARGV[0]);
xscale.c:3078xscale_handle_cache_clean_address_command()
LOG_ERROR("target '%s' not defined", CMD_ARGV[0]);
xscale.c:3086xscale_handle_cache_clean_address_command()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], cache_clean_address);
xscale.c:3158xscale_handle_mmu_command()
xscale.c:3191xscale_handle_idcache_command()
xscale.c:3244xscale_handle_vector_catch_command()
if (strcmp(CMD_ARGV[0], "all") == 0) {
xscale.c:3247xscale_handle_vector_catch_command()
} else if (strcmp(CMD_ARGV[0], "none") == 0) {
xscale.c:3255xscale_handle_vector_catch_command()
if (strcmp(CMD_ARGV[CMD_ARGC], vec_ids[i].name))
xscale.c:3261xscale_handle_vector_catch_command()
LOG_ERROR("No vector '%s'", CMD_ARGV[CMD_ARGC]);
xscale.c:3314xscale_handle_vector_table_command()
xscale.c:3316xscale_handle_vector_table_command()
xscale.c:3321xscale_handle_vector_table_command()
if (!err && strcmp(CMD_ARGV[0], "low") == 0) {
xscale.c:3324xscale_handle_vector_table_command()
} else if (!err && (strcmp(CMD_ARGV[0], "high") == 0)) {
xscale.c:3355xscale_handle_trace_buffer_command()
if (strcmp("enable", CMD_ARGV[0]) == 0)
xscale.c:3357xscale_handle_trace_buffer_command()
else if (strcmp("disable", CMD_ARGV[0]) == 0)
xscale.c:3364xscale_handle_trace_buffer_command()
if (strcmp("fill", CMD_ARGV[1]) == 0) {
xscale.c:3367xscale_handle_trace_buffer_command()
COMMAND_PARSE_NUMBER(int, CMD_ARGV[2], buffcount);
xscale.c:3375xscale_handle_trace_buffer_command()
} else if (strcmp("wrap", CMD_ARGV[1]) == 0)
xscale.c:3427xscale_handle_trace_image_command()
xscale.c:3431xscale_handle_trace_image_command()
if (image_open(xscale->trace.image, CMD_ARGV[0],
xscale.c:3432xscale_handle_trace_image_command()
(CMD_ARGC >= 3) ? CMD_ARGV[2] : NULL) != ERROR_OK) {
xscale.c:3468xscale_handle_dump_trace_command()
xscale.c:3523xscale_handle_cp15()
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], reg_no);
xscale.c:3567xscale_handle_cp15()
xsvf.c:237handle_xsvf_command()
const char *filename = CMD_ARGV[1];
xsvf.c:239handle_xsvf_command()
if (strcmp(CMD_ARGV[0], "plain") != 0) {
xsvf.c:240handle_xsvf_command()
xsvf.c:242handle_xsvf_command()
command_print(CMD, "Tap: %s unknown", CMD_ARGV[0]);
xsvf.c:255handle_xsvf_command()
if ((CMD_ARGC > 2) && (strcmp(CMD_ARGV[2], "virt2") == 0)) {
xsvf.c:258handle_xsvf_command()
xsvf.c:261handle_xsvf_command()
if ((CMD_ARGC > 2) && (strcmp(CMD_ARGV[2], "quiet") == 0))
xtensa.c:3532xtensa_cmd_exe_do()
const char *parm = CMD_ARGV[0];
xtensa.c:3570xtensa_cmd_exe_do()
LOG_TARGET_DEBUG(target, "execute stub: %s", CMD_ARGV[0]);
xtensa.c:3604xtensa_cmd_xtdef_do()
const char *core_name = CMD_ARGV[0];
xtensa.c:3637xtensa_cmd_xtopt_do()
const char *opt_name = CMD_ARGV[0];
xtensa.c:3638xtensa_cmd_xtopt_do()
int opt_val = strtol(CMD_ARGV[1], NULL, 0);
xtensa.c:3717xtensa_cmd_xtopt_do()
LOG_WARNING("Unknown xtensa command ignored: \"xtopt %s %s\"", CMD_ARGV[0], CMD_ARGV[1]);
xtensa.c:3741xtensa_cmd_xtmem_do()
const char *mem_name = CMD_ARGV[0];
xtensa.c:3777xtensa_cmd_xtmem_do()
cachep->line_size = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:3778xtensa_cmd_xtmem_do()
cachep->size = strtoul(CMD_ARGV[2], NULL, 0);
xtensa.c:3779xtensa_cmd_xtmem_do()
cachep->way_count = strtoul(CMD_ARGV[3], NULL, 0);
xtensa.c:3781xtensa_cmd_xtmem_do()
strtoul(CMD_ARGV[4], NULL, 0) : 0;
xtensa.c:3786xtensa_cmd_xtmem_do()
memcfgp->base = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:3787xtensa_cmd_xtmem_do()
memcfgp->size = strtoul(CMD_ARGV[2], NULL, 0);
xtensa.c:3807xtensa_cmd_xtmpu_do()
unsigned int nfgseg = strtoul(CMD_ARGV[0], NULL, 0);
xtensa.c:3808xtensa_cmd_xtmpu_do()
unsigned int minsegsize = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:3809xtensa_cmd_xtmpu_do()
unsigned int lockable = strtoul(CMD_ARGV[2], NULL, 0);
xtensa.c:3810xtensa_cmd_xtmpu_do()
unsigned int execonly = strtoul(CMD_ARGV[3], NULL, 0);
xtensa.c:3846xtensa_cmd_xtmmu_do()
unsigned int nirefillentries = strtoul(CMD_ARGV[0], NULL, 0);
xtensa.c:3847xtensa_cmd_xtmmu_do()
unsigned int ndrefillentries = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:3873xtensa_cmd_xtreg_do()
int32_t numregs = strtoul(CMD_ARGV[0], NULL, 0);
xtensa.c:3907xtensa_cmd_xtreg_do()
const char *regname = CMD_ARGV[0];
xtensa.c:3908xtensa_cmd_xtreg_do()
unsigned int regnum = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:3930xtensa_cmd_xtreg_do()
if (strcmp(CMD_ARGV[0], xtensa_regs[ridx].name) == 0) {
xtensa.c:3942xtensa_cmd_xtreg_do()
rptr->name = strdup(CMD_ARGV[0]);
xtensa.c:4038xtensa_cmd_xtregfmt_do()
if (!strcasecmp(CMD_ARGV[0], "sparse")) {
xtensa.c:4040xtensa_cmd_xtregfmt_do()
} else if (!strcasecmp(CMD_ARGV[0], "contiguous")) {
xtensa.c:4043xtensa_cmd_xtregfmt_do()
unsigned int numgregs = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:4089xtensa_cmd_perfmon_enable_do()
unsigned int counter_id = strtoul(CMD_ARGV[0], NULL, 0);
xtensa.c:4095xtensa_cmd_perfmon_enable_do()
config.select = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:4102xtensa_cmd_perfmon_enable_do()
config.mask = strtoul(CMD_ARGV[2], NULL, 0);
xtensa.c:4110xtensa_cmd_perfmon_enable_do()
config.kernelcnt = strtoul(CMD_ARGV[3], NULL, 0);
xtensa.c:4118xtensa_cmd_perfmon_enable_do()
config.tracelevel = strtoul(CMD_ARGV[4], NULL, 0);
xtensa.c:4145xtensa_cmd_perfmon_dump_do()
counter_id = strtol(CMD_ARGV[0], NULL, 0);
xtensa.c:4200xtensa_cmd_mask_interrupts_do()
if (!strcasecmp(CMD_ARGV[0], "off"))
xtensa.c:4202xtensa_cmd_mask_interrupts_do()
else if (!strcasecmp(CMD_ARGV[0], "on"))
xtensa.c:4226xtensa_cmd_smpbreak_do()
if (!strcasecmp(CMD_ARGV[0], "none")) {
xtensa.c:4228xtensa_cmd_smpbreak_do()
} else if (!strcasecmp(CMD_ARGV[i], "BreakIn")) {
xtensa.c:4230xtensa_cmd_smpbreak_do()
} else if (!strcasecmp(CMD_ARGV[i], "BreakOut")) {
xtensa.c:4232xtensa_cmd_smpbreak_do()
} else if (!strcasecmp(CMD_ARGV[i], "RunStallIn")) {
xtensa.c:4234xtensa_cmd_smpbreak_do()
} else if (!strcasecmp(CMD_ARGV[i], "DebugModeOut")) {
xtensa.c:4236xtensa_cmd_smpbreak_do()
} else if (!strcasecmp(CMD_ARGV[i], "BreakInOut")) {
xtensa.c:4238xtensa_cmd_smpbreak_do()
} else if (!strcasecmp(CMD_ARGV[i], "RunStall")) {
xtensa.c:4241xtensa_cmd_smpbreak_do()
command_print(CMD, "Unknown arg %s", CMD_ARGV[i]);
xtensa.c:4277xtensa_cmd_dm_rw_do()
uint32_t addr = strtoul(CMD_ARGV[0], NULL, 0);
xtensa.c:4287xtensa_cmd_dm_rw_do()
uint32_t addr = strtoul(CMD_ARGV[0], NULL, 0);
xtensa.c:4288xtensa_cmd_dm_rw_do()
uint32_t val = strtoul(CMD_ARGV[1], NULL, 0);
xtensa.c:4317xtensa_cmd_tracestart_do()
if ((!strcasecmp(CMD_ARGV[i], "pc")) && CMD_ARGC > i) {
xtensa.c:4320xtensa_cmd_tracestart_do()
cfg.stoppc = strtol(CMD_ARGV[i], &e, 0);
xtensa.c:4324xtensa_cmd_tracestart_do()
} else if ((!strcasecmp(CMD_ARGV[i], "after")) && CMD_ARGC > i) {
xtensa.c:4326xtensa_cmd_tracestart_do()
cfg.after = strtol(CMD_ARGV[i], NULL, 0);
xtensa.c:4327xtensa_cmd_tracestart_do()
} else if (!strcasecmp(CMD_ARGV[i], "ins")) {
xtensa.c:4329xtensa_cmd_tracestart_do()
} else if (!strcasecmp(CMD_ARGV[i], "words")) {
xtensa.c:4332xtensa_cmd_tracestart_do()
command_print(CMD, "Did not understand %s", CMD_ARGV[i]);
xtensa.c:4480xtensa_cmd_tracedump()

Data Use

Functions reading command_invocation::argv
command_invocation::argv
all items filtered out