Lines Matching refs:name
44 char *name = strim(fqname); in aa_split_fqname() local
47 if (name[0] == ':') { in aa_split_fqname()
48 char *split = strchr(&name[1], ':'); in aa_split_fqname()
49 *ns_name = skip_spaces(&name[1]); in aa_split_fqname()
55 name = skip_spaces(split); in aa_split_fqname()
58 name = NULL; in aa_split_fqname()
60 if (name && *name == 0) in aa_split_fqname()
61 name = NULL; in aa_split_fqname()
63 return name; in aa_split_fqname()
87 const char *name = skipn_spaces(fqname, n); in aa_splitn_fqname() local
92 if (!name) in aa_splitn_fqname()
95 if (name[0] == ':') { in aa_splitn_fqname()
96 char *split = strnchr(&name[1], end - &name[1], ':'); in aa_splitn_fqname()
97 *ns_name = skipn_spaces(&name[1], end - &name[1]); in aa_splitn_fqname()
107 name = skipn_spaces(split, end - split); in aa_splitn_fqname()
110 name = NULL; in aa_splitn_fqname()
114 if (name && *name == 0) in aa_splitn_fqname()
115 name = NULL; in aa_splitn_fqname()
117 return name; in aa_splitn_fqname()
144 return str->name; in aa_str_alloc()
489 const char *name, gfp_t gfp) in aa_policy_init() argument
495 hname = aa_str_alloc(strlen(prefix) + strlen(name) + 3, gfp); in aa_policy_init()
497 sprintf(hname, "%s//%s", prefix, name); in aa_policy_init()
499 hname = aa_str_alloc(strlen(name) + 1, gfp); in aa_policy_init()
501 strcpy(hname, name); in aa_policy_init()
507 policy->name = basename(policy->hname); in aa_policy_init()