Searched refs:mp (Results 1 – 2 of 2) sorted by relevance
636 if (!mk->mp) { in add_sysfs_param()638 mk->mp = kzalloc(sizeof(*mk->mp), GFP_KERNEL); in add_sysfs_param()639 if (!mk->mp) in add_sysfs_param()641 mk->mp->grp.name = "parameters"; in add_sysfs_param()643 mk->mp->grp.attrs = kzalloc(sizeof(mk->mp->grp.attrs[0]), in add_sysfs_param()646 if (!mk->mp->grp.attrs) in add_sysfs_param()651 new_mp = krealloc(mk->mp, in add_sysfs_param()652 sizeof(*mk->mp) + in add_sysfs_param()653 sizeof(mk->mp->attrs[0]) * (mk->mp->num + 1), in add_sysfs_param()657 mk->mp = new_mp; in add_sysfs_param()[all …]
753 kdbtab_t *mp; in kdb_defcmd() local788 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()[all …]