Lines Matching refs:argc

459 int kdb_set(int argc, const char **argv)  in kdb_set()  argument
467 if (argc == 3) { in kdb_set()
469 argc--; in kdb_set()
472 if (argc != 2) in kdb_set()
543 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument
574 if (*nextarg > argc) in kdbgetaddrarg()
626 if ((*nextarg > argc) in kdbgetaddrarg()
651 if ((*nextarg > argc) in kdbgetaddrarg()
722 static int kdb_exec_defcmd(int argc, const char **argv);
751 static int kdb_defcmd(int argc, const char **argv) in kdb_defcmd() argument
760 if (argc == 0) { in kdb_defcmd()
778 if (argc != 3) in kdb_defcmd()
833 static int kdb_exec_defcmd(int argc, const char **argv) in kdb_exec_defcmd() argument
840 if (argc != 0) in kdb_exec_defcmd()
970 static int argc; in kdb_parse() local
987 argc = 0; /* no repeat */ in kdb_parse()
991 argc = 0; in kdb_parse()
1011 if (argc >= MAXARGC - 1) { in kdb_parse()
1016 argv[argc++] = cpp; in kdb_parse()
1047 if (!argc) in kdb_parse()
1054 argc = 0; /* avoid repeat on endefcmd */ in kdb_parse()
1093 if (!kdb_check_flags(tp->flags, kdb_cmd_enabled, argc <= 1)) in kdb_parse()
1097 result = (*tp->func)(argc-1, (const char **)argv); in kdb_parse()
1105 argc = tp->flags & KDB_REPEAT_NO_ARGS ? 1 : 0; in kdb_parse()
1106 if (argv[argc]) in kdb_parse()
1107 *(argv[argc]) = '\0'; in kdb_parse()
1165 static int kdb_reboot(int argc, const char **argv) in kdb_reboot() argument
1594 static int kdb_md(int argc, const char **argv) in kdb_md() argument
1617 if (argc == 2 || (argc == 0 && last_addr != 0)) in kdb_md()
1649 if (argc == 0) { in kdb_md()
1662 if (argc) { in kdb_md()
1665 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, in kdb_md()
1669 if (argc > nextarg+2) in kdb_md()
1672 if (argc >= nextarg) { in kdb_md()
1682 if (argc >= nextarg+1) { in kdb_md()
1792 static int kdb_mm(int argc, const char **argv) in kdb_mm() argument
1804 if (argc < 2) in kdb_mm()
1808 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); in kdb_mm()
1812 if (nextarg > argc) in kdb_mm()
1814 diag = kdbgetaddrarg(argc, argv, &nextarg, &contents, NULL, NULL); in kdb_mm()
1818 if (nextarg != argc + 1) in kdb_mm()
1835 static int kdb_go(int argc, const char **argv) in kdb_go() argument
1848 if (argc == 1) { in kdb_go()
1850 diag = kdbgetaddrarg(argc, argv, &nextarg, in kdb_go()
1854 } else if (argc) { in kdb_go()
1880 static int kdb_rd(int argc, const char **argv) in kdb_rd() argument
1950 static int kdb_rm(int argc, const char **argv) in kdb_rm() argument
1961 if (argc != 2) in kdb_rm()
2017 static int kdb_sr(int argc, const char **argv) in kdb_sr() argument
2022 if (argc != 1) in kdb_sr()
2042 static int kdb_ef(int argc, const char **argv) in kdb_ef() argument
2049 if (argc != 1) in kdb_ef()
2053 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); in kdb_ef()
2065 static int kdb_env(int argc, const char **argv) in kdb_env() argument
2082 static int kdb_dmesg(int argc, const char **argv) in kdb_dmesg() argument
2094 if (argc > 2) in kdb_dmesg()
2096 if (argc) { in kdb_dmesg()
2101 if (argc > 1) { in kdb_dmesg()
2169 static int kdb_disable_nmi(int argc, const char *argv[]) in kdb_disable_nmi() argument
2242 static int kdb_cpu(int argc, const char **argv) in kdb_cpu() argument
2247 if (argc == 0) { in kdb_cpu()
2252 if (argc != 1) in kdb_cpu()
2338 static int kdb_ps(int argc, const char **argv) in kdb_ps() argument
2344 if (argc == 0) in kdb_ps()
2349 mask = argc ? argv[1] : kdbgetenv("PS"); in kdb_ps()
2375 static int kdb_pid(int argc, const char **argv) in kdb_pid() argument
2381 if (argc > 1) in kdb_pid()
2384 if (argc) { in kdb_pid()
2407 static int kdb_kgdb(int argc, const char **argv) in kdb_kgdb() argument
2415 static int kdb_help(int argc, const char **argv) in kdb_help() argument
2439 static int kdb_kill(int argc, const char **argv) in kdb_kill() argument
2445 if (argc != 2) in kdb_kill()
2499 static int kdb_summary(int argc, const char **argv) in kdb_summary() argument
2504 if (argc) in kdb_summary()
2541 static int kdb_per_cpu(int argc, const char **argv) in kdb_per_cpu() argument
2547 if (argc < 1 || argc > 3) in kdb_per_cpu()
2550 diag = kdbgetaddrarg(argc, argv, &nextarg, &symaddr, NULL, NULL); in kdb_per_cpu()
2554 if (argc >= 2) { in kdb_per_cpu()
2564 if (argc >= 3) { in kdb_per_cpu()
2611 static int kdb_grep_help(int argc, const char **argv) in kdb_grep_help() argument