Lines Matching refs:name_loc
981 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_shortform_allfit() local
997 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
998 if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
1000 if (be16_to_cpu(name_loc->valuelen) >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
1002 bytes += xfs_attr_sf_entsize_byname(name_loc->namelen, in xfs_attr_shortform_allfit()
1003 be16_to_cpu(name_loc->valuelen)); in xfs_attr_shortform_allfit()
1100 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_to_shortform() local
1155 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
1156 nargs.name = name_loc->nameval; in xfs_attr3_leaf_to_shortform()
1157 nargs.namelen = name_loc->namelen; in xfs_attr3_leaf_to_shortform()
1158 nargs.value = &name_loc->nameval[nargs.namelen]; in xfs_attr3_leaf_to_shortform()
1159 nargs.valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr3_leaf_to_shortform()
1445 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_add_work() local
1511 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1512 name_loc->namelen = args->namelen; in xfs_attr3_leaf_add_work()
1513 name_loc->valuelen = cpu_to_be16(args->valuelen); in xfs_attr3_leaf_add_work()
1514 memcpy((char *)name_loc->nameval, args->name, args->namelen); in xfs_attr3_leaf_add_work()
1515 memcpy((char *)&name_loc->nameval[args->namelen], args->value, in xfs_attr3_leaf_add_work()
1516 be16_to_cpu(name_loc->valuelen)); in xfs_attr3_leaf_add_work()
2372 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_lookup_int() local
2438 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2439 if (!xfs_attr_match(args, name_loc->namelen, in xfs_attr3_leaf_lookup_int()
2440 name_loc->nameval, entry->flags)) in xfs_attr3_leaf_lookup_int()
2478 struct xfs_attr_leaf_name_local *name_loc; in xfs_attr3_leaf_getvalue() local
2488 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2489 ASSERT(name_loc->namelen == args->namelen); in xfs_attr3_leaf_getvalue()
2490 ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); in xfs_attr3_leaf_getvalue()
2492 &name_loc->nameval[args->namelen], in xfs_attr3_leaf_getvalue()
2493 be16_to_cpu(name_loc->valuelen)); in xfs_attr3_leaf_getvalue()
2685 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_entsize() local
2691 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2692 size = xfs_attr_leaf_entsize_local(name_loc->namelen, in xfs_attr_leaf_entsize()
2693 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_entsize()
2744 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr3_leaf_clearflag() local
2767 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2768 namelen = name_loc->namelen; in xfs_attr3_leaf_clearflag()
2769 name = (char *)name_loc->nameval; in xfs_attr3_leaf_clearflag()
2866 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr3_leaf_flipflags() local
2908 name_loc = xfs_attr3_leaf_name_local(leaf1, args->index); in xfs_attr3_leaf_flipflags()
2909 namelen1 = name_loc->namelen; in xfs_attr3_leaf_flipflags()
2910 name1 = (char *)name_loc->nameval; in xfs_attr3_leaf_flipflags()
2917 name_loc = xfs_attr3_leaf_name_local(leaf2, args->index2); in xfs_attr3_leaf_flipflags()
2918 namelen2 = name_loc->namelen; in xfs_attr3_leaf_flipflags()
2919 name2 = (char *)name_loc->nameval; in xfs_attr3_leaf_flipflags()