Lines Matching refs:nm
560 * @nm: name to match
563 * @nm. Returns %NAME_MATCHES if it does, %NAME_LESS if the name referred by
564 * @zbr is less than @nm, and %NAME_GREATER if it is greater than @nm. In case
568 const struct fscrypt_name *nm)
591 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm)));
593 if (nlen == fname_len(nm))
595 else if (nlen < fname_len(nm))
726 * @nm: name of the entry
731 * %0 is returned if @nm is not found and @zn and @n are set to the previous
732 * entry, i.e. to the entry after which @nm could follow if it were in TNC.
738 const struct fscrypt_name *nm)
742 err = matches_name(c, &(*zn)->zbranch[*n], nm);
803 err = matches_name(c, &(*zn)->zbranch[*n], nm);
825 err = matches_name(c, &znode->zbranch[nn], nm);
843 * @nm: name to match
849 * @nm. Returns %NAME_MATCHES it does, %NAME_LESS if the name referred by @zbr
850 * is less than @nm, %NAME_GREATER if it is greater than @nm, and @NOT_ON_MEDIA
856 const struct fscrypt_name *nm)
884 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm)));
886 if (nlen == fname_len(nm))
888 else if (nlen < fname_len(nm))
908 * @nm: name of directory entry
917 * o if @nm was found, %1 is returned and @zn and @n are set to the found
919 * o if we are @adding and @nm was not found, %0 is returned;
920 * o if we are not @adding and @nm was not found, but a dangling branch was
927 const struct fscrypt_name *nm,
933 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm);
977 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm);
1008 err = fallible_matches_name(c, &znode->zbranch[nn], nm);
1837 * @nm: node name
1846 void *node, const struct fscrypt_name *nm)
1864 err = resolve_collision(c, key, &znode, &n, nm);
1885 * @nm: node name
1894 void *node, const struct fscrypt_name *nm)
1908 if (fname_len(nm) == len && !memcmp(dent->name, fname_name(nm), len))
1916 return do_lookup_nm(c, key, node, nm);
2440 * @nm: node name
2447 const struct fscrypt_name *nm)
2463 nm, 1);
2465 found = resolve_collision(c, key, &znode, &n, nm);
2678 * @nm: directory entry name
2683 const struct fscrypt_name *nm)
2697 nm, 0);
2699 err = resolve_collision(c, key, &znode, &n, nm);
2906 struct fscrypt_name nm = {0};
2919 xent = ubifs_tnc_next_ent(c, &key1, &nm);
2934 fname_name(&nm) = xent->name;
2935 fname_len(&nm) = le16_to_cpu(xent->nlen);
2936 err = ubifs_tnc_remove_nm(c, &key1, &nm);
2968 * @nm: name of last entry found or %NULL
2971 * after the given key (@key) if there is one. @nm is used to resolve
2975 * @nm->name has to be %NULL. In this case the semantics of this function is a
2989 const struct fscrypt_name *nm)
3005 if (fname_len(nm) > 0) {
3010 nm, 0);
3012 err = resolve_collision(c, key, &znode, &n, nm);