Lines Matching refs:hdr
37 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_entsize() argument
43 count += hdr->i8count ? sizeof(xfs_dir2_ino8_t) : in xfs_dir2_sf_entsize()
50 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sf_entsize() argument
53 return xfs_dir2_sf_entsize(hdr, len) + sizeof(__uint8_t); in xfs_dir3_sf_entsize()
58 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_nextentry() argument
62 ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); in xfs_dir2_sf_nextentry()
67 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sf_nextentry() argument
71 ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); in xfs_dir3_sf_nextentry()
127 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_get_ino() argument
130 if (hdr->i8count) in xfs_dir2_sf_get_ino()
138 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_put_ino() argument
144 if (hdr->i8count) in xfs_dir2_sf_put_ino()
152 struct xfs_dir2_sf_hdr *hdr) in xfs_dir2_sf_get_parent_ino() argument
154 return xfs_dir2_sf_get_ino(hdr, &hdr->parent); in xfs_dir2_sf_get_parent_ino()
159 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sf_put_parent_ino() argument
162 xfs_dir2_sf_put_ino(hdr, &hdr->parent, ino); in xfs_dir2_sf_put_parent_ino()
173 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sfe_get_ino() argument
176 return xfs_dir2_sf_get_ino(hdr, in xfs_dir2_sfe_get_ino()
182 struct xfs_dir2_sf_hdr *hdr, in xfs_dir2_sfe_put_ino() argument
186 xfs_dir2_sf_put_ino(hdr, in xfs_dir2_sfe_put_ino()
192 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sfe_get_ino() argument
195 return xfs_dir2_sf_get_ino(hdr, in xfs_dir3_sfe_get_ino()
201 struct xfs_dir2_sf_hdr *hdr, in xfs_dir3_sfe_put_ino() argument
205 xfs_dir2_sf_put_ino(hdr, in xfs_dir3_sfe_put_ino()
311 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_dot_entry_p() argument
314 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr)); in xfs_dir2_data_dot_entry_p()
319 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_dotdot_entry_p() argument
322 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_data_dotdot_entry_p()
328 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_first_entry_p() argument
331 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_data_first_entry_p()
338 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_ftype_data_dotdot_entry_p() argument
341 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_ftype_data_dotdot_entry_p()
347 struct xfs_dir2_data_hdr *hdr) in xfs_dir2_ftype_data_first_entry_p() argument
350 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr) + in xfs_dir2_ftype_data_first_entry_p()
357 struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_dot_entry_p() argument
360 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr)); in xfs_dir3_data_dot_entry_p()
365 struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_dotdot_entry_p() argument
368 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr) + in xfs_dir3_data_dotdot_entry_p()
374 struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_first_entry_p() argument
377 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr) + in xfs_dir3_data_first_entry_p()
383 xfs_dir2_data_bestfree_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_bestfree_p() argument
385 return hdr->bestfree; in xfs_dir2_data_bestfree_p()
389 xfs_dir3_data_bestfree_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_bestfree_p() argument
391 return ((struct xfs_dir3_data_hdr *)hdr)->best_free; in xfs_dir3_data_bestfree_p()
395 xfs_dir2_data_entry_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_entry_p() argument
398 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr)); in xfs_dir2_data_entry_p()
402 xfs_dir2_data_unused_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir2_data_unused_p() argument
405 ((char *)hdr + sizeof(struct xfs_dir2_data_hdr)); in xfs_dir2_data_unused_p()
409 xfs_dir3_data_entry_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_entry_p() argument
412 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr)); in xfs_dir3_data_entry_p()
416 xfs_dir3_data_unused_p(struct xfs_dir2_data_hdr *hdr) in xfs_dir3_data_unused_p() argument
419 ((char *)hdr + sizeof(struct xfs_dir3_data_hdr)); in xfs_dir3_data_unused_p()
457 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_dir2_leaf_hdr_from_disk()
458 to->back = be32_to_cpu(from->hdr.info.back); in xfs_dir2_leaf_hdr_from_disk()
459 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
460 to->count = be16_to_cpu(from->hdr.count); in xfs_dir2_leaf_hdr_from_disk()
461 to->stale = be16_to_cpu(from->hdr.stale); in xfs_dir2_leaf_hdr_from_disk()
475 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_dir2_leaf_hdr_to_disk()
476 to->hdr.info.back = cpu_to_be32(from->back); in xfs_dir2_leaf_hdr_to_disk()
477 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
478 to->hdr.count = cpu_to_be16(from->count); in xfs_dir2_leaf_hdr_to_disk()
479 to->hdr.stale = cpu_to_be16(from->stale); in xfs_dir2_leaf_hdr_to_disk()
489 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_dir3_leaf_hdr_from_disk()
490 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_dir3_leaf_hdr_from_disk()
491 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk()
509 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_dir3_leaf_hdr_to_disk()
510 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_dir3_leaf_hdr_to_disk()
511 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir3_leaf_hdr_to_disk()
537 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC)); in xfs_da2_node_hdr_from_disk()
538 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_da2_node_hdr_from_disk()
539 to->back = be32_to_cpu(from->hdr.info.back); in xfs_da2_node_hdr_from_disk()
540 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da2_node_hdr_from_disk()
541 to->count = be16_to_cpu(from->hdr.__count); in xfs_da2_node_hdr_from_disk()
542 to->level = be16_to_cpu(from->hdr.__level); in xfs_da2_node_hdr_from_disk()
551 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_da2_node_hdr_to_disk()
552 to->hdr.info.back = cpu_to_be32(from->back); in xfs_da2_node_hdr_to_disk()
553 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da2_node_hdr_to_disk()
554 to->hdr.__count = cpu_to_be16(from->count); in xfs_da2_node_hdr_to_disk()
555 to->hdr.__level = cpu_to_be16(from->level); in xfs_da2_node_hdr_to_disk()
565 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da3_node_hdr_from_disk()
566 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_da3_node_hdr_from_disk()
567 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_da3_node_hdr_from_disk()
568 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_da3_node_hdr_from_disk()
581 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_da3_node_hdr_to_disk()
582 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_da3_node_hdr_to_disk()
583 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
661 to->magic = be32_to_cpu(from->hdr.magic); in xfs_dir2_free_hdr_from_disk()
662 to->firstdb = be32_to_cpu(from->hdr.firstdb); in xfs_dir2_free_hdr_from_disk()
663 to->nvalid = be32_to_cpu(from->hdr.nvalid); in xfs_dir2_free_hdr_from_disk()
664 to->nused = be32_to_cpu(from->hdr.nused); in xfs_dir2_free_hdr_from_disk()
675 to->hdr.magic = cpu_to_be32(from->magic); in xfs_dir2_free_hdr_to_disk()
676 to->hdr.firstdb = cpu_to_be32(from->firstdb); in xfs_dir2_free_hdr_to_disk()
677 to->hdr.nvalid = cpu_to_be32(from->nvalid); in xfs_dir2_free_hdr_to_disk()
678 to->hdr.nused = cpu_to_be32(from->nused); in xfs_dir2_free_hdr_to_disk()
688 to->magic = be32_to_cpu(hdr3->hdr.magic); in xfs_dir3_free_hdr_from_disk()
705 hdr3->hdr.magic = cpu_to_be32(from->magic); in xfs_dir3_free_hdr_to_disk()