Lines Matching refs:hdr
22 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_entsize() argument
28 count += hdr->i8count ? XFS_INO64_SIZE : XFS_INO32_SIZE; /* ino # */ in xfs_dir2_sf_entsize()
34 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sf_entsize() argument
37 return xfs_dir2_sf_entsize(hdr, len) + sizeof(uint8_t); in xfs_dir3_sf_entsize()
42 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_nextentry() argument
46 ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); in xfs_dir2_sf_nextentry()
51 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sf_nextentry() argument
55 ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); in xfs_dir3_sf_nextentry()
111 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_get_ino() argument
114 if (hdr->i8count) in xfs_dir2_sf_get_ino()
122 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_put_ino() argument
128 if (hdr->i8count) in xfs_dir2_sf_put_ino()
136 struct xfs_dir2_sf_hdr *hdr) in xfs_dir2_sf_get_parent_ino() argument
138 return xfs_dir2_sf_get_ino(hdr, hdr->parent); in xfs_dir2_sf_get_parent_ino()
143 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_put_parent_ino() argument
146 xfs_dir2_sf_put_ino(hdr, hdr->parent, ino); in xfs_dir2_sf_put_parent_ino()
157 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sfe_get_ino() argument
160 return xfs_dir2_sf_get_ino(hdr, &sfep->name[sfep->namelen]); in xfs_dir2_sfe_get_ino()
165 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sfe_put_ino() argument
169 xfs_dir2_sf_put_ino(hdr, &sfep->name[sfep->namelen], ino); in xfs_dir2_sfe_put_ino()
174 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sfe_get_ino() argument
177 return xfs_dir2_sf_get_ino(hdr, &sfep->name[sfep->namelen + 1]); in xfs_dir3_sfe_get_ino()
182 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sfe_put_ino() argument
186 xfs_dir2_sf_put_ino(hdr, &sfep->name[sfep->namelen + 1], ino); in xfs_dir3_sfe_put_ino()
291 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_dot_entry_p() argument
294 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr)); in xfs_dir2_data_dot_entry_p()
299 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_dotdot_entry_p() argument
302 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_data_dotdot_entry_p()
308 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_first_entry_p() argument
311 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_data_first_entry_p()
318 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_ftype_data_dotdot_entry_p() argument
321 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_ftype_data_dotdot_entry_p()
327 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_ftype_data_first_entry_p() argument
330 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_ftype_data_first_entry_p()
337 struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_dot_entry_p() argument
340 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr)); in xfs_dir3_data_dot_entry_p()
345 struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_dotdot_entry_p() argument
348 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr) + in xfs_dir3_data_dotdot_entry_p()
354 struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_first_entry_p() argument
357 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr) + in xfs_dir3_data_first_entry_p()
363 xfs_dir2_data_bestfree_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_bestfree_p() argument
365 return hdr->bestfree; in xfs_dir2_data_bestfree_p()
369 xfs_dir3_data_bestfree_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_bestfree_p() argument
371 return ((struct xfs_dir3_data_hdr *)hdr)->best_free; in xfs_dir3_data_bestfree_p()
375 xfs_dir2_data_entry_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_entry_p() argument
378 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr)); in xfs_dir2_data_entry_p()
382 xfs_dir2_data_unused_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_unused_p() argument
385 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr)); in xfs_dir2_data_unused_p()
389 xfs_dir3_data_entry_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_entry_p() argument
392 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr)); in xfs_dir3_data_entry_p()
396 xfs_dir3_data_unused_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_unused_p() argument
399 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr)); in xfs_dir3_data_unused_p()
437 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_dir2_leaf_hdr_from_disk()
438 to->back = be32_to_cpu(from->hdr.info.back); in xfs_dir2_leaf_hdr_from_disk()
439 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
440 to->count = be16_to_cpu(from->hdr.count); in xfs_dir2_leaf_hdr_from_disk()
441 to->stale = be16_to_cpu(from->hdr.stale); in xfs_dir2_leaf_hdr_from_disk()
455 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_dir2_leaf_hdr_to_disk()
456 to->hdr.info.back = cpu_to_be32(from->back); in xfs_dir2_leaf_hdr_to_disk()
457 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
458 to->hdr.count = cpu_to_be16(from->count); in xfs_dir2_leaf_hdr_to_disk()
459 to->hdr.stale = cpu_to_be16(from->stale); in xfs_dir2_leaf_hdr_to_disk()
469 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_dir3_leaf_hdr_from_disk()
470 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_dir3_leaf_hdr_from_disk()
471 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk()
489 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_dir3_leaf_hdr_to_disk()
490 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_dir3_leaf_hdr_to_disk()
491 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir3_leaf_hdr_to_disk()
517 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC)); in xfs_da2_node_hdr_from_disk()
518 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_da2_node_hdr_from_disk()
519 to->back = be32_to_cpu(from->hdr.info.back); in xfs_da2_node_hdr_from_disk()
520 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da2_node_hdr_from_disk()
521 to->count = be16_to_cpu(from->hdr.__count); in xfs_da2_node_hdr_from_disk()
522 to->level = be16_to_cpu(from->hdr.__level); in xfs_da2_node_hdr_from_disk()
531 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_da2_node_hdr_to_disk()
532 to->hdr.info.back = cpu_to_be32(from->back); in xfs_da2_node_hdr_to_disk()
533 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da2_node_hdr_to_disk()
534 to->hdr.__count = cpu_to_be16(from->count); in xfs_da2_node_hdr_to_disk()
535 to->hdr.__level = cpu_to_be16(from->level); in xfs_da2_node_hdr_to_disk()
545 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da3_node_hdr_from_disk()
546 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_da3_node_hdr_from_disk()
547 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_da3_node_hdr_from_disk()
548 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_da3_node_hdr_from_disk()
561 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_da3_node_hdr_to_disk()
562 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_da3_node_hdr_to_disk()
563 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
641 to->magic = be32_to_cpu(from->hdr.magic); in xfs_dir2_free_hdr_from_disk()
642 to->firstdb = be32_to_cpu(from->hdr.firstdb); in xfs_dir2_free_hdr_from_disk()
643 to->nvalid = be32_to_cpu(from->hdr.nvalid); in xfs_dir2_free_hdr_from_disk()
644 to->nused = be32_to_cpu(from->hdr.nused); in xfs_dir2_free_hdr_from_disk()
655 to->hdr.magic = cpu_to_be32(from->magic); in xfs_dir2_free_hdr_to_disk()
656 to->hdr.firstdb = cpu_to_be32(from->firstdb); in xfs_dir2_free_hdr_to_disk()
657 to->hdr.nvalid = cpu_to_be32(from->nvalid); in xfs_dir2_free_hdr_to_disk()
658 to->hdr.nused = cpu_to_be32(from->nused); in xfs_dir2_free_hdr_to_disk()
668 to->magic = be32_to_cpu(hdr3->hdr.magic); in xfs_dir3_free_hdr_from_disk()
685 hdr3->hdr.magic = cpu_to_be32(from->magic); in xfs_dir3_free_hdr_to_disk()