Lines Matching refs:nm
561 * @nm: name to match
564 * @nm. Returns %NAME_MATCHES if it does, %NAME_LESS if the name referred by
565 * @zbr is less than @nm, and %NAME_GREATER if it is greater than @nm. In case
569 const struct fscrypt_name *nm)
592 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm)));
594 if (nlen == fname_len(nm))
596 else if (nlen < fname_len(nm))
727 * @nm: name of the entry
732 * %0 is returned if @nm is not found and @zn and @n are set to the previous
733 * entry, i.e. to the entry after which @nm could follow if it were in TNC.
739 const struct fscrypt_name *nm)
743 err = matches_name(c, &(*zn)->zbranch[*n], nm);
804 err = matches_name(c, &(*zn)->zbranch[*n], nm);
826 err = matches_name(c, &znode->zbranch[nn], nm);
844 * @nm: name to match
850 * @nm. Returns %NAME_MATCHES it does, %NAME_LESS if the name referred by @zbr
851 * is less than @nm, %NAME_GREATER if it is greater than @nm, and @NOT_ON_MEDIA
857 const struct fscrypt_name *nm)
885 err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm)));
887 if (nlen == fname_len(nm))
889 else if (nlen < fname_len(nm))
909 * @nm: name of directory entry
918 * o if @nm was found, %1 is returned and @zn and @n are set to the found
920 * o if we are @adding and @nm was not found, %0 is returned;
921 * o if we are not @adding and @nm was not found, but a dangling branch was
928 const struct fscrypt_name *nm,
934 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm);
978 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm);
1009 err = fallible_matches_name(c, &znode->zbranch[nn], nm);
1838 * @nm: node name
1847 void *node, const struct fscrypt_name *nm)
1865 err = resolve_collision(c, key, &znode, &n, nm);
1886 * @nm: node name
1895 void *node, const struct fscrypt_name *nm)
1909 if (fname_len(nm) == len && !memcmp(dent->name, fname_name(nm), len))
1917 return do_lookup_nm(c, key, node, nm);
2441 * @nm: node name
2448 const struct fscrypt_name *nm)
2464 nm, 1);
2466 found = resolve_collision(c, key, &znode, &n, nm);
2679 * @nm: directory entry name
2684 const struct fscrypt_name *nm)
2698 nm, 0);
2700 err = resolve_collision(c, key, &znode, &n, nm);
2907 struct fscrypt_name nm = {0};
2920 xent = ubifs_tnc_next_ent(c, &key1, &nm);
2935 fname_name(&nm) = xent->name;
2936 fname_len(&nm) = le16_to_cpu(xent->nlen);
2937 err = ubifs_tnc_remove_nm(c, &key1, &nm);
2969 * @nm: name of last entry found or %NULL
2972 * after the given key (@key) if there is one. @nm is used to resolve
2976 * @nm->name has to be %NULL. In this case the semantics of this function is a
2990 const struct fscrypt_name *nm)
3006 if (fname_len(nm) > 0) {
3011 nm, 0);
3013 err = resolve_collision(c, key, &znode, &n, nm);