Lines Matching refs:mp
753 kdbtab_t *mp; in kdb_defcmd() local
788 mp = &kdb_macro->cmd; in kdb_defcmd()
789 mp->func = kdb_exec_defcmd; in kdb_defcmd()
790 mp->minlen = 0; in kdb_defcmd()
791 mp->flags = KDB_ENABLE_ALWAYS_SAFE; in kdb_defcmd()
792 mp->name = kdb_strdup(argv[1], GFP_KDB); in kdb_defcmd()
793 if (!mp->name) in kdb_defcmd()
795 mp->usage = kdb_strdup(argv[2], GFP_KDB); in kdb_defcmd()
796 if (!mp->usage) in kdb_defcmd()
798 mp->help = kdb_strdup(argv[3], GFP_KDB); in kdb_defcmd()
799 if (!mp->help) in kdb_defcmd()
801 if (mp->usage[0] == '"') { in kdb_defcmd()
802 strcpy(mp->usage, argv[2]+1); in kdb_defcmd()
803 mp->usage[strlen(mp->usage)-1] = '\0'; in kdb_defcmd()
805 if (mp->help[0] == '"') { in kdb_defcmd()
806 strcpy(mp->help, argv[3]+1); in kdb_defcmd()
807 mp->help[strlen(mp->help)-1] = '\0'; in kdb_defcmd()
814 kfree(mp->usage); in kdb_defcmd()
816 kfree(mp->name); in kdb_defcmd()