Lines Matching refs:name_loc

980 	xfs_attr_leaf_name_local_t *name_loc;  in xfs_attr_shortform_allfit()  local
996 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
997 if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
999 if (be16_to_cpu(name_loc->valuelen) >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
1001 bytes += xfs_attr_sf_entsize_byname(name_loc->namelen, in xfs_attr_shortform_allfit()
1002 be16_to_cpu(name_loc->valuelen)); in xfs_attr_shortform_allfit()
1099 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_to_shortform() local
1154 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
1155 nargs.name = name_loc->nameval; in xfs_attr3_leaf_to_shortform()
1156 nargs.namelen = name_loc->namelen; in xfs_attr3_leaf_to_shortform()
1157 nargs.value = &name_loc->nameval[nargs.namelen]; in xfs_attr3_leaf_to_shortform()
1158 nargs.valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr3_leaf_to_shortform()
1444 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_add_work() local
1510 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1511 name_loc->namelen = args->namelen; in xfs_attr3_leaf_add_work()
1512 name_loc->valuelen = cpu_to_be16(args->valuelen); in xfs_attr3_leaf_add_work()
1513 memcpy((char *)name_loc->nameval, args->name, args->namelen); in xfs_attr3_leaf_add_work()
1514 memcpy((char *)&name_loc->nameval[args->namelen], args->value, in xfs_attr3_leaf_add_work()
1515 be16_to_cpu(name_loc->valuelen)); in xfs_attr3_leaf_add_work()
2371 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_lookup_int() local
2437 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2438 if (!xfs_attr_match(args, name_loc->namelen, in xfs_attr3_leaf_lookup_int()
2439 name_loc->nameval, entry->flags)) in xfs_attr3_leaf_lookup_int()
2477 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_getvalue() local
2487 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2488 ASSERT(name_loc->namelen == args->namelen); in xfs_attr3_leaf_getvalue()
2489 ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); in xfs_attr3_leaf_getvalue()
2491 &name_loc->nameval[args->namelen], in xfs_attr3_leaf_getvalue()
2492 be16_to_cpu(name_loc->valuelen)); in xfs_attr3_leaf_getvalue()
2684 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_entsize() local
2690 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2691 size = xfs_attr_leaf_entsize_local(name_loc->namelen, in xfs_attr_leaf_entsize()
2692 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_entsize()
2743 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr3_leaf_clearflag() local
2766 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2767 namelen = name_loc->namelen; in xfs_attr3_leaf_clearflag()
2768 name = (char *)name_loc->nameval; in xfs_attr3_leaf_clearflag()
2865 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr3_leaf_flipflags() local
2907 name_loc = xfs_attr3_leaf_name_local(leaf1, args->index); in xfs_attr3_leaf_flipflags()
2908 namelen1 = name_loc->namelen; in xfs_attr3_leaf_flipflags()
2909 name1 = (char *)name_loc->nameval; in xfs_attr3_leaf_flipflags()
2916 name_loc = xfs_attr3_leaf_name_local(leaf2, args->index2); in xfs_attr3_leaf_flipflags()
2917 namelen2 = name_loc->namelen; in xfs_attr3_leaf_flipflags()
2918 name2 = (char *)name_loc->nameval; in xfs_attr3_leaf_flipflags()