Lines Matching refs:nm
532 const struct fscrypt_name *nm) in matches_name() argument
555 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in matches_name()
557 if (nlen == fname_len(nm)) in matches_name()
559 else if (nlen < fname_len(nm)) in matches_name()
702 const struct fscrypt_name *nm) in resolve_collision() argument
706 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
767 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
789 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
820 const struct fscrypt_name *nm) in fallible_matches_name() argument
848 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); in fallible_matches_name()
850 if (nlen == fname_len(nm)) in fallible_matches_name()
852 else if (nlen < fname_len(nm)) in fallible_matches_name()
891 const struct fscrypt_name *nm, in fallible_resolve_collision() argument
897 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
941 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); in fallible_resolve_collision()
972 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
1810 void *node, const struct fscrypt_name *nm) in do_lookup_nm() argument
1828 err = resolve_collision(c, key, &znode, &n, nm); in do_lookup_nm()
1858 void *node, const struct fscrypt_name *nm) in ubifs_tnc_lookup_nm() argument
1872 if (fname_len(nm) == len && !memcmp(dent->name, fname_name(nm), len)) in ubifs_tnc_lookup_nm()
1880 return do_lookup_nm(c, key, node, nm); in ubifs_tnc_lookup_nm()
2411 const struct fscrypt_name *nm) in ubifs_tnc_add_nm() argument
2427 nm, 1); in ubifs_tnc_add_nm()
2429 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2647 const struct fscrypt_name *nm) in ubifs_tnc_remove_nm() argument
2661 nm, 0); in ubifs_tnc_remove_nm()
2663 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_remove_nm()
2870 struct fscrypt_name nm = {0}; in ubifs_tnc_remove_ino() local
2883 xent = ubifs_tnc_next_ent(c, &key1, &nm); in ubifs_tnc_remove_ino()
2897 fname_name(&nm) = xent->name; in ubifs_tnc_remove_ino()
2898 fname_len(&nm) = le16_to_cpu(xent->nlen); in ubifs_tnc_remove_ino()
2899 err = ubifs_tnc_remove_nm(c, &key1, &nm); in ubifs_tnc_remove_ino()
2950 const struct fscrypt_name *nm) in ubifs_tnc_next_ent() argument
2966 if (fname_len(nm) > 0) { in ubifs_tnc_next_ent()
2971 nm, 0); in ubifs_tnc_next_ent()
2973 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_next_ent()