Lines Matching refs:nm

522 			const struct qstr *nm)  in matches_name()  argument
545 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name()
547 if (nlen == nm->len) in matches_name()
549 else if (nlen < nm->len) in matches_name()
692 const struct qstr *nm) in resolve_collision() argument
696 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
757 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
779 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
810 const struct qstr *nm) in fallible_matches_name() argument
838 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name()
840 if (nlen == nm->len) in fallible_matches_name()
842 else if (nlen < nm->len) in fallible_matches_name()
881 const struct qstr *nm, int adding) in fallible_resolve_collision() argument
886 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
930 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); in fallible_resolve_collision()
961 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
1796 void *node, const struct qstr *nm) in do_lookup_nm() argument
1801 dbg_tnck(key, "name '%.*s' key ", nm->len, nm->name); in do_lookup_nm()
1814 err = resolve_collision(c, key, &znode, &n, nm); in do_lookup_nm()
1844 void *node, const struct qstr *nm) in ubifs_tnc_lookup_nm() argument
1858 if (nm->len == len && !memcmp(dent->name, nm->name, len)) in ubifs_tnc_lookup_nm()
1865 return do_lookup_nm(c, key, node, nm); in ubifs_tnc_lookup_nm()
2286 int lnum, int offs, int len, const struct qstr *nm) in ubifs_tnc_add_nm() argument
2293 lnum, offs, nm->len, nm->name); in ubifs_tnc_add_nm()
2303 nm, 1); in ubifs_tnc_add_nm()
2305 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2521 const struct qstr *nm) in ubifs_tnc_remove_nm() argument
2527 dbg_tnck(key, "%.*s, key ", nm->len, nm->name); in ubifs_tnc_remove_nm()
2535 nm, 0); in ubifs_tnc_remove_nm()
2537 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_remove_nm()
2676 struct qstr nm = { .name = NULL }; in ubifs_tnc_remove_ino() local
2689 xent = ubifs_tnc_next_ent(c, &key1, &nm); in ubifs_tnc_remove_ino()
2701 nm.name = xent->name; in ubifs_tnc_remove_ino()
2702 nm.len = le16_to_cpu(xent->nlen); in ubifs_tnc_remove_ino()
2703 err = ubifs_tnc_remove_nm(c, &key1, &nm); in ubifs_tnc_remove_ino()
2754 const struct qstr *nm) in ubifs_tnc_next_ent() argument
2762 dbg_tnck(key, "%s ", nm->name ? (char *)nm->name : "(lowest)"); in ubifs_tnc_next_ent()
2770 if (nm->name) { in ubifs_tnc_next_ent()
2773 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_next_ent()