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()
1792 void *node, const struct qstr *nm) in do_lookup_nm() argument
1797 dbg_tnck(key, "name '%.*s' key ", nm->len, nm->name); in do_lookup_nm()
1810 err = resolve_collision(c, key, &znode, &n, nm); in do_lookup_nm()
1840 void *node, const struct qstr *nm) in ubifs_tnc_lookup_nm() argument
1854 if (nm->len == len && !memcmp(dent->name, nm->name, len)) in ubifs_tnc_lookup_nm()
1861 return do_lookup_nm(c, key, node, nm); in ubifs_tnc_lookup_nm()
2282 int lnum, int offs, int len, const struct qstr *nm) in ubifs_tnc_add_nm() argument
2289 lnum, offs, nm->len, nm->name); in ubifs_tnc_add_nm()
2299 nm, 1); in ubifs_tnc_add_nm()
2301 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2517 const struct qstr *nm) in ubifs_tnc_remove_nm() argument
2523 dbg_tnck(key, "%.*s, key ", nm->len, nm->name); in ubifs_tnc_remove_nm()
2531 nm, 0); in ubifs_tnc_remove_nm()
2533 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_remove_nm()
2672 struct qstr nm = { .name = NULL }; in ubifs_tnc_remove_ino() local
2685 xent = ubifs_tnc_next_ent(c, &key1, &nm); in ubifs_tnc_remove_ino()
2697 nm.name = xent->name; in ubifs_tnc_remove_ino()
2698 nm.len = le16_to_cpu(xent->nlen); in ubifs_tnc_remove_ino()
2699 err = ubifs_tnc_remove_nm(c, &key1, &nm); in ubifs_tnc_remove_ino()
2750 const struct qstr *nm) in ubifs_tnc_next_ent() argument
2758 dbg_tnck(key, "%s ", nm->name ? (char *)nm->name : "(lowest)"); in ubifs_tnc_next_ent()
2766 if (nm->name) { in ubifs_tnc_next_ent()
2769 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_next_ent()