Lines Matching refs:name_loc

832 	xfs_attr_leaf_name_local_t *name_loc;  in xfs_attr_shortform_allfit()  local
848 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
849 if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
851 if (be16_to_cpu(name_loc->valuelen) >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
854 + name_loc->namelen in xfs_attr_shortform_allfit()
855 + be16_to_cpu(name_loc->valuelen); in xfs_attr_shortform_allfit()
876 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_to_shortform() local
933 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
934 nargs.name = name_loc->nameval; in xfs_attr3_leaf_to_shortform()
935 nargs.namelen = name_loc->namelen; in xfs_attr3_leaf_to_shortform()
936 nargs.value = &name_loc->nameval[nargs.namelen]; in xfs_attr3_leaf_to_shortform()
937 nargs.valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr3_leaf_to_shortform()
1225 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_add_work() local
1290 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1291 name_loc->namelen = args->namelen; in xfs_attr3_leaf_add_work()
1292 name_loc->valuelen = cpu_to_be16(args->valuelen); in xfs_attr3_leaf_add_work()
1293 memcpy((char *)name_loc->nameval, args->name, args->namelen); in xfs_attr3_leaf_add_work()
1294 memcpy((char *)&name_loc->nameval[args->namelen], args->value, in xfs_attr3_leaf_add_work()
1295 be16_to_cpu(name_loc->valuelen)); in xfs_attr3_leaf_add_work()
2156 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_lookup_int() local
2221 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2222 if (name_loc->namelen != args->namelen) in xfs_attr3_leaf_lookup_int()
2224 if (memcmp(args->name, name_loc->nameval, in xfs_attr3_leaf_lookup_int()
2265 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_getvalue() local
2276 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2277 ASSERT(name_loc->namelen == args->namelen); in xfs_attr3_leaf_getvalue()
2278 ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); in xfs_attr3_leaf_getvalue()
2279 valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr3_leaf_getvalue()
2289 memcpy(args->value, &name_loc->nameval[args->namelen], valuelen); in xfs_attr3_leaf_getvalue()
2490 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_entsize() local
2496 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2497 size = xfs_attr_leaf_entsize_local(name_loc->namelen, in xfs_attr_leaf_entsize()
2498 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_entsize()
2549 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr3_leaf_clearflag() local
2572 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2573 namelen = name_loc->namelen; in xfs_attr3_leaf_clearflag()
2574 name = (char *)name_loc->nameval; in xfs_attr3_leaf_clearflag()
2677 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr3_leaf_flipflags() local
2719 name_loc = xfs_attr3_leaf_name_local(leaf1, args->index); in xfs_attr3_leaf_flipflags()
2720 namelen1 = name_loc->namelen; in xfs_attr3_leaf_flipflags()
2721 name1 = (char *)name_loc->nameval; in xfs_attr3_leaf_flipflags()
2728 name_loc = xfs_attr3_leaf_name_local(leaf2, args->index2); in xfs_attr3_leaf_flipflags()
2729 namelen2 = name_loc->namelen; in xfs_attr3_leaf_flipflags()
2730 name2 = (char *)name_loc->nameval; in xfs_attr3_leaf_flipflags()