Lines Matching refs:sfe

561 	xfs_attr_sf_entry_t *sfe;  in xfs_attr_shortform_add()  local
576 sfe = &sf->list[0]; in xfs_attr_shortform_add()
577 for (i = 0; i < sf->hdr.count; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_add()
579 if (sfe->namelen != args->namelen) in xfs_attr_shortform_add()
581 if (memcmp(args->name, sfe->nameval, args->namelen) != 0) in xfs_attr_shortform_add()
583 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_add()
589 offset = (char *)sfe - (char *)sf; in xfs_attr_shortform_add()
593 sfe = (xfs_attr_sf_entry_t *)((char *)sf + offset); in xfs_attr_shortform_add()
595 sfe->namelen = args->namelen; in xfs_attr_shortform_add()
596 sfe->valuelen = args->valuelen; in xfs_attr_shortform_add()
597 sfe->flags = XFS_ATTR_NSP_ARGS_TO_ONDISK(args->flags); in xfs_attr_shortform_add()
598 memcpy(sfe->nameval, args->name, args->namelen); in xfs_attr_shortform_add()
599 memcpy(&sfe->nameval[args->namelen], args->value, args->valuelen); in xfs_attr_shortform_add()
633 xfs_attr_sf_entry_t *sfe; in xfs_attr_shortform_remove() local
644 sfe = &sf->list[0]; in xfs_attr_shortform_remove()
646 for (i = 0; i < end; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), in xfs_attr_shortform_remove()
648 size = XFS_ATTR_SF_ENTSIZE(sfe); in xfs_attr_shortform_remove()
649 if (sfe->namelen != args->namelen) in xfs_attr_shortform_remove()
651 if (memcmp(sfe->nameval, args->name, args->namelen) != 0) in xfs_attr_shortform_remove()
653 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_remove()
704 xfs_attr_sf_entry_t *sfe; in xfs_attr_shortform_lookup() local
713 sfe = &sf->list[0]; in xfs_attr_shortform_lookup()
715 sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_lookup()
716 if (sfe->namelen != args->namelen) in xfs_attr_shortform_lookup()
718 if (memcmp(args->name, sfe->nameval, args->namelen) != 0) in xfs_attr_shortform_lookup()
720 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_lookup()
735 xfs_attr_sf_entry_t *sfe; in xfs_attr_shortform_getvalue() local
740 sfe = &sf->list[0]; in xfs_attr_shortform_getvalue()
742 sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_getvalue()
743 if (sfe->namelen != args->namelen) in xfs_attr_shortform_getvalue()
745 if (memcmp(args->name, sfe->nameval, args->namelen) != 0) in xfs_attr_shortform_getvalue()
747 if (!xfs_attr_namesp_match(args->flags, sfe->flags)) in xfs_attr_shortform_getvalue()
750 args->valuelen = sfe->valuelen; in xfs_attr_shortform_getvalue()
753 if (args->valuelen < sfe->valuelen) { in xfs_attr_shortform_getvalue()
754 args->valuelen = sfe->valuelen; in xfs_attr_shortform_getvalue()
757 args->valuelen = sfe->valuelen; in xfs_attr_shortform_getvalue()
758 memcpy(args->value, &sfe->nameval[args->namelen], in xfs_attr_shortform_getvalue()
776 struct xfs_attr_sf_entry *sfe; in xfs_attr_shortform_to_leaf() local
831 sfe = &sf->list[0]; in xfs_attr_shortform_to_leaf()
833 nargs.name = sfe->nameval; in xfs_attr_shortform_to_leaf()
834 nargs.namelen = sfe->namelen; in xfs_attr_shortform_to_leaf()
835 nargs.value = &sfe->nameval[nargs.namelen]; in xfs_attr_shortform_to_leaf()
836 nargs.valuelen = sfe->valuelen; in xfs_attr_shortform_to_leaf()
837 nargs.hashval = xfs_da_hashname(sfe->nameval, in xfs_attr_shortform_to_leaf()
838 sfe->namelen); in xfs_attr_shortform_to_leaf()
839 nargs.flags = XFS_ATTR_NSP_ONDISK_TO_ARGS(sfe->flags); in xfs_attr_shortform_to_leaf()
846 sfe = XFS_ATTR_SF_NEXTENTRY(sfe); in xfs_attr_shortform_to_leaf()