Lines Matching refs:sfe
600 xfs_attr_sf_entry_t *sfe; in xfs_attr_shortform_add() local
615 sfe = &sf->list[0]; in xfs_attr_shortform_add()
616 for (i = 0; i < sf->hdr.count; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_add()
618 if (sfe->namelen != args->namelen) in xfs_attr_shortform_add()
620 if (memcmp(args->name, sfe->nameval, args->namelen) != 0) in xfs_attr_shortform_add()
622 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_add()
628 offset = (char *)sfe - (char *)sf; in xfs_attr_shortform_add()
632 sfe = (xfs_attr_sf_entry_t *)((char *)sf + offset); in xfs_attr_shortform_add()
634 sfe->namelen = args->namelen; in xfs_attr_shortform_add()
635 sfe->valuelen = args->valuelen; in xfs_attr_shortform_add()
636 sfe->flags = XFS_ATTR_NSP_ARGS_TO_ONDISK(args->flags); in xfs_attr_shortform_add()
637 memcpy(sfe->nameval, args->name, args->namelen); in xfs_attr_shortform_add()
638 memcpy(&sfe->nameval[args->namelen], args->value, args->valuelen); in xfs_attr_shortform_add()
672 xfs_attr_sf_entry_t *sfe; in xfs_attr_shortform_remove() local
683 sfe = &sf->list[0]; in xfs_attr_shortform_remove()
685 for (i = 0; i < end; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), in xfs_attr_shortform_remove()
687 size = XFS_ATTR_SF_ENTSIZE(sfe); in xfs_attr_shortform_remove()
688 if (sfe->namelen != args->namelen) in xfs_attr_shortform_remove()
690 if (memcmp(sfe->nameval, args->name, args->namelen) != 0) in xfs_attr_shortform_remove()
692 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_remove()
743 xfs_attr_sf_entry_t *sfe; in xfs_attr_shortform_lookup() local
752 sfe = &sf->list[0]; in xfs_attr_shortform_lookup()
754 sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_lookup()
755 if (sfe->namelen != args->namelen) in xfs_attr_shortform_lookup()
757 if (memcmp(args->name, sfe->nameval, args->namelen) != 0) in xfs_attr_shortform_lookup()
759 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_lookup()
778 struct xfs_attr_sf_entry *sfe; in xfs_attr_shortform_getvalue() local
783 sfe = &sf->list[0]; in xfs_attr_shortform_getvalue()
785 sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_getvalue()
786 if (sfe->namelen != args->namelen) in xfs_attr_shortform_getvalue()
788 if (memcmp(args->name, sfe->nameval, args->namelen) != 0) in xfs_attr_shortform_getvalue()
790 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_getvalue()
792 return xfs_attr_copy_value(args, &sfe->nameval[args->namelen], in xfs_attr_shortform_getvalue()
793 sfe->valuelen); in xfs_attr_shortform_getvalue()
809 struct xfs_attr_sf_entry *sfe; in xfs_attr_shortform_to_leaf() local
849 sfe = &sf->list[0]; in xfs_attr_shortform_to_leaf()
851 nargs.name = sfe->nameval; in xfs_attr_shortform_to_leaf()
852 nargs.namelen = sfe->namelen; in xfs_attr_shortform_to_leaf()
853 nargs.value = &sfe->nameval[nargs.namelen]; in xfs_attr_shortform_to_leaf()
854 nargs.valuelen = sfe->valuelen; in xfs_attr_shortform_to_leaf()
855 nargs.hashval = xfs_da_hashname(sfe->nameval, in xfs_attr_shortform_to_leaf()
856 sfe->namelen); in xfs_attr_shortform_to_leaf()
857 nargs.flags = XFS_ATTR_NSP_ONDISK_TO_ARGS(sfe->flags); in xfs_attr_shortform_to_leaf()
864 sfe = XFS_ATTR_SF_NEXTENTRY(sfe); in xfs_attr_shortform_to_leaf()