Lines Matching refs:name_loc
730 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_shortform_allfit() local
743 name_loc = xfs_attr_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
744 if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
746 if (be16_to_cpu(name_loc->valuelen) >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
749 + name_loc->namelen in xfs_attr_shortform_allfit()
750 + be16_to_cpu(name_loc->valuelen); in xfs_attr_shortform_allfit()
767 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_to_shortform() local
817 name_loc = xfs_attr_leaf_name_local(leaf, i); in xfs_attr_leaf_to_shortform()
818 nargs.name = name_loc->nameval; in xfs_attr_leaf_to_shortform()
819 nargs.namelen = name_loc->namelen; in xfs_attr_leaf_to_shortform()
820 nargs.value = &name_loc->nameval[nargs.namelen]; in xfs_attr_leaf_to_shortform()
821 nargs.valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr_leaf_to_shortform()
1066 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_add_work() local
1135 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_add_work()
1136 name_loc->namelen = args->namelen; in xfs_attr_leaf_add_work()
1137 name_loc->valuelen = cpu_to_be16(args->valuelen); in xfs_attr_leaf_add_work()
1138 memcpy((char *)name_loc->nameval, args->name, args->namelen); in xfs_attr_leaf_add_work()
1139 memcpy((char *)&name_loc->nameval[args->namelen], args->value, in xfs_attr_leaf_add_work()
1140 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_add_work()
1912 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_lookup_int() local
1979 name_loc = xfs_attr_leaf_name_local(leaf, probe); in xfs_attr_leaf_lookup_int()
1980 if (name_loc->namelen != args->namelen) in xfs_attr_leaf_lookup_int()
1982 if (memcmp(args->name, (char *)name_loc->nameval, args->namelen) != 0) in xfs_attr_leaf_lookup_int()
2018 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_getvalue() local
2029 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_getvalue()
2030 ASSERT(name_loc->namelen == args->namelen); in xfs_attr_leaf_getvalue()
2031 ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); in xfs_attr_leaf_getvalue()
2032 valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr_leaf_getvalue()
2042 memcpy(args->value, &name_loc->nameval[args->namelen], valuelen); in xfs_attr_leaf_getvalue()
2264 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_entsize() local
2270 name_loc = xfs_attr_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2271 size = xfs_attr_leaf_entsize_local(name_loc->namelen, in xfs_attr_leaf_entsize()
2272 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_entsize()
2365 xfs_attr_leaf_name_local_t *name_loc = in xfs_attr_leaf_list_int() local
2370 name_loc->nameval, in xfs_attr_leaf_list_int()
2371 (int)name_loc->namelen, in xfs_attr_leaf_list_int()
2372 be16_to_cpu(name_loc->valuelen), in xfs_attr_leaf_list_int()
2373 &name_loc->nameval[name_loc->namelen]); in xfs_attr_leaf_list_int()
2438 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_clearflag() local
2462 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_clearflag()
2463 namelen = name_loc->namelen; in xfs_attr_leaf_clearflag()
2464 name = (char *)name_loc->nameval; in xfs_attr_leaf_clearflag()
2558 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_flipflags() local
2601 name_loc = xfs_attr_leaf_name_local(leaf1, args->index); in xfs_attr_leaf_flipflags()
2602 namelen1 = name_loc->namelen; in xfs_attr_leaf_flipflags()
2603 name1 = (char *)name_loc->nameval; in xfs_attr_leaf_flipflags()
2610 name_loc = xfs_attr_leaf_name_local(leaf2, args->index2); in xfs_attr_leaf_flipflags()
2611 namelen2 = name_loc->namelen; in xfs_attr_leaf_flipflags()
2612 name2 = (char *)name_loc->nameval; in xfs_attr_leaf_flipflags()