Lines Matching refs:sf
526 xfs_attr_shortform_t *sf; in xfs_attr_shortform_add() local
541 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_add()
542 sfe = &sf->list[0]; in xfs_attr_shortform_add()
543 for (i = 0; i < sf->hdr.count; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_add()
555 offset = (char *)sfe - (char *)sf; in xfs_attr_shortform_add()
558 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_add()
559 sfe = (xfs_attr_sf_entry_t *)((char *)sf + offset); in xfs_attr_shortform_add()
566 sf->hdr.count++; in xfs_attr_shortform_add()
567 be16_add_cpu(&sf->hdr.totsize, size); in xfs_attr_shortform_add()
598 xfs_attr_shortform_t *sf; in xfs_attr_shortform_remove() local
609 sf = (xfs_attr_shortform_t *)dp->i_afp->if_u1.if_data; in xfs_attr_shortform_remove()
610 sfe = &sf->list[0]; in xfs_attr_shortform_remove()
611 end = sf->hdr.count; in xfs_attr_shortform_remove()
630 totsize = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_remove()
632 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_shortform_remove()
633 sf->hdr.count--; in xfs_attr_shortform_remove()
634 be16_add_cpu(&sf->hdr.totsize, -size); in xfs_attr_shortform_remove()
669 xfs_attr_shortform_t *sf; in xfs_attr_shortform_lookup() local
678 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_lookup()
679 sfe = &sf->list[0]; in xfs_attr_shortform_lookup()
680 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_lookup()
700 xfs_attr_shortform_t *sf; in xfs_attr_shortform_getvalue() local
705 sf = (xfs_attr_shortform_t *)args->dp->i_afp->if_u1.if_data; in xfs_attr_shortform_getvalue()
706 sfe = &sf->list[0]; in xfs_attr_shortform_getvalue()
707 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_getvalue()
738 xfs_attr_shortform_t *sf; in xfs_attr_shortform_to_leaf() local
751 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_to_leaf()
752 size = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_to_leaf()
756 sf = (xfs_attr_shortform_t *)tmpbuffer; in xfs_attr_shortform_to_leaf()
797 sfe = &sf->list[0]; in xfs_attr_shortform_to_leaf()
798 for (i = 0; i < sf->hdr.count; i++) { in xfs_attr_shortform_to_leaf()