Lines Matching refs:nm
535 const struct qstr *nm) in matches_name() argument
558 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in matches_name()
560 if (nlen == nm->len) in matches_name()
562 else if (nlen < nm->len) in matches_name()
705 const struct qstr *nm) in resolve_collision() argument
709 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
770 err = matches_name(c, &(*zn)->zbranch[*n], nm); in resolve_collision()
792 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
823 const struct qstr *nm) in fallible_matches_name() argument
851 err = memcmp(dent->name, nm->name, min_t(int, nlen, nm->len)); in fallible_matches_name()
853 if (nlen == nm->len) in fallible_matches_name()
855 else if (nlen < nm->len) in fallible_matches_name()
894 const struct qstr *nm, int adding) in fallible_resolve_collision() argument
899 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
943 err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); in fallible_resolve_collision()
974 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
1804 void *node, const struct qstr *nm) in do_lookup_nm() argument
1809 dbg_tnc("name '%.*s' key %s", nm->len, nm->name, DBGKEY(key)); in do_lookup_nm()
1822 err = resolve_collision(c, key, &znode, &n, nm); in do_lookup_nm()
1852 void *node, const struct qstr *nm) in ubifs_tnc_lookup_nm() argument
1866 if (nm->len == len && !memcmp(dent->name, nm->name, len)) in ubifs_tnc_lookup_nm()
1873 return do_lookup_nm(c, key, node, nm); in ubifs_tnc_lookup_nm()
2295 int lnum, int offs, int len, const struct qstr *nm) in ubifs_tnc_add_nm() argument
2301 dbg_tnc("LEB %d:%d, name '%.*s', key %s", lnum, offs, nm->len, nm->name, in ubifs_tnc_add_nm()
2312 nm, 1); in ubifs_tnc_add_nm()
2314 found = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_add_nm()
2531 const struct qstr *nm) in ubifs_tnc_remove_nm() argument
2537 dbg_tnc("%.*s, key %s", nm->len, nm->name, DBGKEY(key)); in ubifs_tnc_remove_nm()
2545 nm, 0); in ubifs_tnc_remove_nm()
2547 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_remove_nm()
2686 struct qstr nm = { .name = NULL }; in ubifs_tnc_remove_ino() local
2699 xent = ubifs_tnc_next_ent(c, &key1, &nm); in ubifs_tnc_remove_ino()
2711 nm.name = xent->name; in ubifs_tnc_remove_ino()
2712 nm.len = le16_to_cpu(xent->nlen); in ubifs_tnc_remove_ino()
2713 err = ubifs_tnc_remove_nm(c, &key1, &nm); in ubifs_tnc_remove_ino()
2764 const struct qstr *nm) in ubifs_tnc_next_ent() argument
2772 dbg_tnc("%s %s", nm->name ? (char *)nm->name : "(lowest)", DBGKEY(key)); in ubifs_tnc_next_ent()
2780 if (nm->name) { in ubifs_tnc_next_ent()
2783 err = resolve_collision(c, key, &znode, &n, nm); in ubifs_tnc_next_ent()