Lines Matching refs:argc

407 int kdb_set(int argc, const char **argv)  in kdb_set()  argument
415 if (argc == 3) { in kdb_set()
417 argc--; in kdb_set()
420 if (argc != 2) in kdb_set()
491 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument
522 if (*nextarg > argc) in kdbgetaddrarg()
574 if ((*nextarg > argc) in kdbgetaddrarg()
599 if ((*nextarg > argc) in kdbgetaddrarg()
670 static int kdb_exec_defcmd(int argc, const char **argv);
699 static int kdb_defcmd(int argc, const char **argv) in kdb_defcmd() argument
708 if (argc == 0) { in kdb_defcmd()
726 if (argc != 3) in kdb_defcmd()
781 static int kdb_exec_defcmd(int argc, const char **argv) in kdb_exec_defcmd() argument
788 if (argc != 0) in kdb_exec_defcmd()
918 static int argc; in kdb_parse() local
935 argc = 0; /* no repeat */ in kdb_parse()
939 argc = 0; in kdb_parse()
959 if (argc >= MAXARGC - 1) { in kdb_parse()
964 argv[argc++] = cpp; in kdb_parse()
995 if (!argc) in kdb_parse()
1002 argc = 0; /* avoid repeat on endefcmd */ in kdb_parse()
1041 if (!kdb_check_flags(tp->flags, kdb_cmd_enabled, argc <= 1)) in kdb_parse()
1045 result = (*tp->func)(argc-1, (const char **)argv); in kdb_parse()
1053 argc = tp->flags & KDB_REPEAT_NO_ARGS ? 1 : 0; in kdb_parse()
1054 if (argv[argc]) in kdb_parse()
1055 *(argv[argc]) = '\0'; in kdb_parse()
1113 static int kdb_reboot(int argc, const char **argv) in kdb_reboot() argument
1541 static int kdb_md(int argc, const char **argv) in kdb_md() argument
1564 if (argc == 2 || (argc == 0 && last_addr != 0)) in kdb_md()
1596 if (argc == 0) { in kdb_md()
1609 if (argc) { in kdb_md()
1612 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, in kdb_md()
1616 if (argc > nextarg+2) in kdb_md()
1619 if (argc >= nextarg) { in kdb_md()
1629 if (argc >= nextarg+1) { in kdb_md()
1739 static int kdb_mm(int argc, const char **argv) in kdb_mm() argument
1751 if (argc < 2) in kdb_mm()
1755 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); in kdb_mm()
1759 if (nextarg > argc) in kdb_mm()
1761 diag = kdbgetaddrarg(argc, argv, &nextarg, &contents, NULL, NULL); in kdb_mm()
1765 if (nextarg != argc + 1) in kdb_mm()
1782 static int kdb_go(int argc, const char **argv) in kdb_go() argument
1795 if (argc == 1) { in kdb_go()
1797 diag = kdbgetaddrarg(argc, argv, &nextarg, in kdb_go()
1801 } else if (argc) { in kdb_go()
1827 static int kdb_rd(int argc, const char **argv) in kdb_rd() argument
1897 static int kdb_rm(int argc, const char **argv) in kdb_rm() argument
1908 if (argc != 2) in kdb_rm()
1964 static int kdb_sr(int argc, const char **argv) in kdb_sr() argument
1969 if (argc != 1) in kdb_sr()
1989 static int kdb_ef(int argc, const char **argv) in kdb_ef() argument
1996 if (argc != 1) in kdb_ef()
2000 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); in kdb_ef()
2013 static int kdb_lsmod(int argc, const char **argv) in kdb_lsmod() argument
2017 if (argc != 0) in kdb_lsmod()
2060 static int kdb_env(int argc, const char **argv) in kdb_env() argument
2077 static int kdb_dmesg(int argc, const char **argv) in kdb_dmesg() argument
2089 if (argc > 2) in kdb_dmesg()
2091 if (argc) { in kdb_dmesg()
2096 if (argc > 1) { in kdb_dmesg()
2164 static int kdb_disable_nmi(int argc, const char *argv[]) in kdb_disable_nmi() argument
2237 static int kdb_cpu(int argc, const char **argv) in kdb_cpu() argument
2242 if (argc == 0) { in kdb_cpu()
2247 if (argc != 1) in kdb_cpu()
2333 static int kdb_ps(int argc, const char **argv) in kdb_ps() argument
2339 if (argc == 0) in kdb_ps()
2344 mask = argc ? argv[1] : kdbgetenv("PS"); in kdb_ps()
2370 static int kdb_pid(int argc, const char **argv) in kdb_pid() argument
2376 if (argc > 1) in kdb_pid()
2379 if (argc) { in kdb_pid()
2402 static int kdb_kgdb(int argc, const char **argv) in kdb_kgdb() argument
2410 static int kdb_help(int argc, const char **argv) in kdb_help() argument
2434 static int kdb_kill(int argc, const char **argv) in kdb_kill() argument
2440 if (argc != 2) in kdb_kill()
2494 static int kdb_summary(int argc, const char **argv) in kdb_summary() argument
2499 if (argc) in kdb_summary()
2536 static int kdb_per_cpu(int argc, const char **argv) in kdb_per_cpu() argument
2542 if (argc < 1 || argc > 3) in kdb_per_cpu()
2545 diag = kdbgetaddrarg(argc, argv, &nextarg, &symaddr, NULL, NULL); in kdb_per_cpu()
2549 if (argc >= 2) { in kdb_per_cpu()
2559 if (argc >= 3) { in kdb_per_cpu()
2606 static int kdb_grep_help(int argc, const char **argv) in kdb_grep_help() argument