Lines Matching refs:name_loc

613 	xfs_attr_leaf_name_local_t *name_loc;  in xfs_attr_shortform_allfit()  local
627 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, i); in xfs_attr_shortform_allfit()
628 if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
630 if (INT_GET(name_loc->valuelen, ARCH_CONVERT) >= XFS_ATTR_SF_ENTSIZE_MAX) in xfs_attr_shortform_allfit()
633 + name_loc->namelen in xfs_attr_shortform_allfit()
634 + INT_GET(name_loc->valuelen, ARCH_CONVERT); in xfs_attr_shortform_allfit()
647 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_to_shortform() local
692 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, i); in xfs_attr_leaf_to_shortform()
693 nargs.name = (char *)name_loc->nameval; in xfs_attr_leaf_to_shortform()
694 nargs.namelen = name_loc->namelen; in xfs_attr_leaf_to_shortform()
695 nargs.value = (char *)&name_loc->nameval[nargs.namelen]; in xfs_attr_leaf_to_shortform()
696 nargs.valuelen = INT_GET(name_loc->valuelen, ARCH_CONVERT); in xfs_attr_leaf_to_shortform()
948 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_add_work() local
1022 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, args->index); in xfs_attr_leaf_add_work()
1023 name_loc->namelen = args->namelen; in xfs_attr_leaf_add_work()
1024 INT_SET(name_loc->valuelen, ARCH_CONVERT, args->valuelen); in xfs_attr_leaf_add_work()
1025 memcpy((char *)name_loc->nameval, args->name, args->namelen); in xfs_attr_leaf_add_work()
1026 memcpy((char *)&name_loc->nameval[args->namelen], args->value, in xfs_attr_leaf_add_work()
1027 INT_GET(name_loc->valuelen, ARCH_CONVERT)); in xfs_attr_leaf_add_work()
1837 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_lookup_int() local
1907 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, probe); in xfs_attr_leaf_lookup_int()
1908 if (name_loc->namelen != args->namelen) in xfs_attr_leaf_lookup_int()
1910 if (memcmp(args->name, (char *)name_loc->nameval, in xfs_attr_leaf_lookup_int()
1957 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_getvalue() local
1969 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, args->index); in xfs_attr_leaf_getvalue()
1970 ASSERT(name_loc->namelen == args->namelen); in xfs_attr_leaf_getvalue()
1971 ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); in xfs_attr_leaf_getvalue()
1972 valuelen = INT_GET(name_loc->valuelen, ARCH_CONVERT); in xfs_attr_leaf_getvalue()
1982 memcpy(args->value, &name_loc->nameval[args->namelen], valuelen); in xfs_attr_leaf_getvalue()
2215 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_entsize() local
2222 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, index); in xfs_attr_leaf_entsize()
2223 size = XFS_ATTR_LEAF_ENTSIZE_LOCAL(name_loc->namelen, in xfs_attr_leaf_entsize()
2224 INT_GET(name_loc->valuelen, in xfs_attr_leaf_entsize()
2267 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_list_int() local
2337 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, i); in xfs_attr_leaf_list_int()
2341 (int)name_loc->namelen + 1; in xfs_attr_leaf_list_int()
2344 (char *)name_loc->nameval, in xfs_attr_leaf_list_int()
2345 (int)name_loc->namelen, in xfs_attr_leaf_list_int()
2346 (int)INT_GET(name_loc->valuelen, in xfs_attr_leaf_list_int()
2451 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_clearflag() local
2476 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf, args->index); in xfs_attr_leaf_clearflag()
2477 namelen = name_loc->namelen; in xfs_attr_leaf_clearflag()
2478 name = (char *)name_loc->nameval; in xfs_attr_leaf_clearflag()
2577 xfs_attr_leaf_name_local_t *name_loc; in xfs_attr_leaf_flipflags() local
2622 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf1, args->index); in xfs_attr_leaf_flipflags()
2623 namelen1 = name_loc->namelen; in xfs_attr_leaf_flipflags()
2624 name1 = (char *)name_loc->nameval; in xfs_attr_leaf_flipflags()
2631 name_loc = XFS_ATTR_LEAF_NAME_LOCAL(leaf2, args->index2); in xfs_attr_leaf_flipflags()
2632 namelen2 = name_loc->namelen; in xfs_attr_leaf_flipflags()
2633 name2 = (char *)name_loc->nameval; in xfs_attr_leaf_flipflags()