• Home
  • Raw
  • Download

Lines Matching refs:from

95 	struct xfs_attr_leafblock	*from)  in xfs_attr3_leaf_firstused_from_disk()  argument
99 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
100 hdr3 = (struct xfs_attr3_leaf_hdr *) from; in xfs_attr3_leaf_firstused_from_disk()
103 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk()
122 struct xfs_attr3_icleaf_hdr *from) in xfs_attr3_leaf_firstused_to_disk() argument
128 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
135 firstused = from->firstused; in xfs_attr3_leaf_firstused_to_disk()
137 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
141 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk()
153 struct xfs_attr_leafblock *from) in xfs_attr3_leaf_hdr_from_disk() argument
157 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk()
158 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk()
160 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk()
161 struct xfs_attr3_leaf_hdr *hdr3 = (struct xfs_attr3_leaf_hdr *)from; in xfs_attr3_leaf_hdr_from_disk()
168 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk()
177 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_attr3_leaf_hdr_from_disk()
178 to->back = be32_to_cpu(from->hdr.info.back); in xfs_attr3_leaf_hdr_from_disk()
179 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_attr3_leaf_hdr_from_disk()
180 to->count = be16_to_cpu(from->hdr.count); in xfs_attr3_leaf_hdr_from_disk()
181 to->usedbytes = be16_to_cpu(from->hdr.usedbytes); in xfs_attr3_leaf_hdr_from_disk()
182 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk()
183 to->holes = from->hdr.holes; in xfs_attr3_leaf_hdr_from_disk()
186 to->freemap[i].base = be16_to_cpu(from->hdr.freemap[i].base); in xfs_attr3_leaf_hdr_from_disk()
187 to->freemap[i].size = be16_to_cpu(from->hdr.freemap[i].size); in xfs_attr3_leaf_hdr_from_disk()
195 struct xfs_attr3_icleaf_hdr *from) in xfs_attr3_leaf_hdr_to_disk() argument
199 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk()
200 from->magic == XFS_ATTR3_LEAF_MAGIC); in xfs_attr3_leaf_hdr_to_disk()
202 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_hdr_to_disk()
205 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_attr3_leaf_hdr_to_disk()
206 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_attr3_leaf_hdr_to_disk()
207 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk()
208 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
209 hdr3->usedbytes = cpu_to_be16(from->usedbytes); in xfs_attr3_leaf_hdr_to_disk()
210 xfs_attr3_leaf_firstused_to_disk(geo, to, from); in xfs_attr3_leaf_hdr_to_disk()
211 hdr3->holes = from->holes; in xfs_attr3_leaf_hdr_to_disk()
215 hdr3->freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
216 hdr3->freemap[i].size = cpu_to_be16(from->freemap[i].size); in xfs_attr3_leaf_hdr_to_disk()
220 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_attr3_leaf_hdr_to_disk()
221 to->hdr.info.back = cpu_to_be32(from->back); in xfs_attr3_leaf_hdr_to_disk()
222 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk()
223 to->hdr.count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
224 to->hdr.usedbytes = cpu_to_be16(from->usedbytes); in xfs_attr3_leaf_hdr_to_disk()
225 xfs_attr3_leaf_firstused_to_disk(geo, to, from); in xfs_attr3_leaf_hdr_to_disk()
226 to->hdr.holes = from->holes; in xfs_attr3_leaf_hdr_to_disk()
230 to->hdr.freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
231 to->hdr.freemap[i].size = cpu_to_be16(from->freemap[i].size); in xfs_attr3_leaf_hdr_to_disk()