Lines Matching refs:nm
523 const struct qstr *nm) in matches_name() argument
546 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name()
548 if (nlen == nm->len) in matches_name()
550 else if (nlen < nm->len) in matches_name()
693 const struct qstr *nm) in resolve_collision() argument
697 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
758 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
780 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
811 const struct qstr *nm) in fallible_matches_name() argument
839 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name()
841 if (nlen == nm->len) in fallible_matches_name()
843 else if (nlen < nm->len) in fallible_matches_name()
882 const struct qstr *nm, int adding) in fallible_resolve_collision() argument
887 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
931 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); in fallible_resolve_collision()
962 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
1793 void *node, const struct qstr *nm) in do_lookup_nm() argument
1798 dbg_tnck(key, "name '%.*s' key ", nm->len, nm->name); in do_lookup_nm()
1811 err = resolve_collision(c, key, &znode, &n, nm); in do_lookup_nm()
1841 void *node, const struct qstr *nm) in ubifs_tnc_lookup_nm() argument
1855 if (nm->len == len && !memcmp(dent->name, nm->name, len)) in ubifs_tnc_lookup_nm()
1862 return do_lookup_nm(c, key, node, nm); in ubifs_tnc_lookup_nm()
2283 int lnum, int offs, int len, const struct qstr *nm) in ubifs_tnc_add_nm() argument
2290 lnum, offs, nm->len, nm->name); in ubifs_tnc_add_nm()
2300 nm, 1); in ubifs_tnc_add_nm()
2302 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2518 const struct qstr *nm) in ubifs_tnc_remove_nm() argument
2524 dbg_tnck(key, "%.*s, key ", nm->len, nm->name); in ubifs_tnc_remove_nm()
2532 nm, 0); in ubifs_tnc_remove_nm()
2534 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_remove_nm()
2673 struct qstr nm = { .name = NULL }; in ubifs_tnc_remove_ino() local
2686 xent = ubifs_tnc_next_ent(c, &key1, &nm); in ubifs_tnc_remove_ino()
2698 nm.name = xent->name; in ubifs_tnc_remove_ino()
2699 nm.len = le16_to_cpu(xent->nlen); in ubifs_tnc_remove_ino()
2700 err = ubifs_tnc_remove_nm(c, &key1, &nm); in ubifs_tnc_remove_ino()
2751 const struct qstr *nm) in ubifs_tnc_next_ent() argument
2759 dbg_tnck(key, "%s ", nm->name ? (char *)nm->name : "(lowest)"); in ubifs_tnc_next_ent()
2767 if (nm->name) { in ubifs_tnc_next_ent()
2770 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_next_ent()