Lines Matching refs:nm

538 			const struct fscrypt_name *nm)  in matches_name()  argument
561 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name()
563 if (nlen == fname_len(nm)) in matches_name()
565 else if (nlen < fname_len(nm)) in matches_name()
708 const struct fscrypt_name *nm) in resolve_collision() argument
712 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
773 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
795 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
826 const struct fscrypt_name *nm) in fallible_matches_name() argument
854 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name()
856 if (nlen == fname_len(nm)) in fallible_matches_name()
858 else if (nlen < fname_len(nm)) in fallible_matches_name()
897 const struct fscrypt_name *nm, in fallible_resolve_collision() argument
903 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
947 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); in fallible_resolve_collision()
978 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
1816 void *node, const struct fscrypt_name *nm) in do_lookup_nm() argument
1834 err = resolve_collision(c, key, &znode, &n, nm); in do_lookup_nm()
1864 void *node, const struct fscrypt_name *nm) in ubifs_tnc_lookup_nm() argument
1878 if (fname_len(nm) == len && !memcmp(dent->name, fname_name(nm), len)) in ubifs_tnc_lookup_nm()
1886 return do_lookup_nm(c, key, node, nm); in ubifs_tnc_lookup_nm()
2417 const struct fscrypt_name *nm) in ubifs_tnc_add_nm() argument
2433 nm, 1); in ubifs_tnc_add_nm()
2435 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2653 const struct fscrypt_name *nm) in ubifs_tnc_remove_nm() argument
2667 nm, 0); in ubifs_tnc_remove_nm()
2669 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_remove_nm()
2876 struct fscrypt_name nm = {0}; in ubifs_tnc_remove_ino() local
2889 xent = ubifs_tnc_next_ent(c, &key1, &nm); in ubifs_tnc_remove_ino()
2904 fname_name(&nm) = xent->name; in ubifs_tnc_remove_ino()
2905 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_tnc_remove_ino()
2906 err = ubifs_tnc_remove_nm(c, &key1, &nm); in ubifs_tnc_remove_ino()
2959 const struct fscrypt_name *nm) in ubifs_tnc_next_ent() argument
2975 if (fname_len(nm) > 0) { in ubifs_tnc_next_ent()
2980 nm, 0); in ubifs_tnc_next_ent()
2982 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_next_ent()