• Home
  • Raw
  • Download

Lines Matching refs:name_loc

726 	xfs_attr_leaf_name_local_t *name_loc;  in xfs_attr_shortform_allfit()  local
739 name_loc = xfs_attr_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
740 if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
742 if (be16_to_cpu(name_loc->valuelen) >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
745 + name_loc->namelen in xfs_attr_shortform_allfit()
746 + be16_to_cpu(name_loc->valuelen); in xfs_attr_shortform_allfit()
763 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_to_shortform() local
826 name_loc = xfs_attr_leaf_name_local(leaf, i); in xfs_attr_leaf_to_shortform()
827 nargs.name = (char *)name_loc->nameval; in xfs_attr_leaf_to_shortform()
828 nargs.namelen = name_loc->namelen; in xfs_attr_leaf_to_shortform()
829 nargs.value = (char *)&name_loc->nameval[nargs.namelen]; in xfs_attr_leaf_to_shortform()
830 nargs.valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr_leaf_to_shortform()
1075 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_add_work() local
1144 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_add_work()
1145 name_loc->namelen = args->namelen; in xfs_attr_leaf_add_work()
1146 name_loc->valuelen = cpu_to_be16(args->valuelen); in xfs_attr_leaf_add_work()
1147 memcpy((char *)name_loc->nameval, args->name, args->namelen); in xfs_attr_leaf_add_work()
1148 memcpy((char *)&name_loc->nameval[args->namelen], args->value, in xfs_attr_leaf_add_work()
1149 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_add_work()
1921 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_lookup_int() local
1988 name_loc = xfs_attr_leaf_name_local(leaf, probe); in xfs_attr_leaf_lookup_int()
1989 if (name_loc->namelen != args->namelen) in xfs_attr_leaf_lookup_int()
1991 if (memcmp(args->name, (char *)name_loc->nameval, args->namelen) != 0) in xfs_attr_leaf_lookup_int()
2027 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_getvalue() local
2038 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_getvalue()
2039 ASSERT(name_loc->namelen == args->namelen); in xfs_attr_leaf_getvalue()
2040 ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); in xfs_attr_leaf_getvalue()
2041 valuelen = be16_to_cpu(name_loc->valuelen); in xfs_attr_leaf_getvalue()
2051 memcpy(args->value, &name_loc->nameval[args->namelen], valuelen); in xfs_attr_leaf_getvalue()
2273 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_entsize() local
2279 name_loc = xfs_attr_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2280 size = xfs_attr_leaf_entsize_local(name_loc->namelen, in xfs_attr_leaf_entsize()
2281 be16_to_cpu(name_loc->valuelen)); in xfs_attr_leaf_entsize()
2374 xfs_attr_leaf_name_local_t *name_loc = in xfs_attr_leaf_list_int() local
2379 (char *)name_loc->nameval, in xfs_attr_leaf_list_int()
2380 (int)name_loc->namelen, in xfs_attr_leaf_list_int()
2381 be16_to_cpu(name_loc->valuelen), in xfs_attr_leaf_list_int()
2382 (char *)&name_loc->nameval[name_loc->namelen]); in xfs_attr_leaf_list_int()
2447 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_clearflag() local
2471 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_clearflag()
2472 namelen = name_loc->namelen; in xfs_attr_leaf_clearflag()
2473 name = (char *)name_loc->nameval; in xfs_attr_leaf_clearflag()
2567 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_flipflags() local
2610 name_loc = xfs_attr_leaf_name_local(leaf1, args->index); in xfs_attr_leaf_flipflags()
2611 namelen1 = name_loc->namelen; in xfs_attr_leaf_flipflags()
2612 name1 = (char *)name_loc->nameval; in xfs_attr_leaf_flipflags()
2619 name_loc = xfs_attr_leaf_name_local(leaf2, args->index2); in xfs_attr_leaf_flipflags()
2620 namelen2 = name_loc->namelen; in xfs_attr_leaf_flipflags()
2621 name2 = (char *)name_loc->nameval; in xfs_attr_leaf_flipflags()