Lines Matching full:from

112 	uint8_t			*from)  in xfs_dir2_sf_get_ino()  argument
115 return get_unaligned_be64(from) & 0x00ffffffffffffffULL; in xfs_dir2_sf_get_ino()
117 return get_unaligned_be32(from); in xfs_dir2_sf_get_ino()
435 struct xfs_dir2_leaf *from) in xfs_dir2_leaf_hdr_from_disk() argument
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()
450 struct xfs_dir3_icleaf_hdr *from) in xfs_dir2_leaf_hdr_to_disk() argument
452 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
453 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_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()
465 struct xfs_dir2_leaf *from) in xfs_dir3_leaf_hdr_from_disk() argument
467 struct xfs_dir3_leaf_hdr *hdr3 = (struct xfs_dir3_leaf_hdr *)from; in xfs_dir3_leaf_hdr_from_disk()
482 struct xfs_dir3_icleaf_hdr *from) in xfs_dir3_leaf_hdr_to_disk() argument
486 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk()
487 from->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_to_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()
492 hdr3->count = cpu_to_be16(from->count); in xfs_dir3_leaf_hdr_to_disk()
493 hdr3->stale = cpu_to_be16(from->stale); in xfs_dir3_leaf_hdr_to_disk()
515 struct xfs_da_intnode *from) in xfs_da2_node_hdr_from_disk() argument
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()
528 struct xfs_da3_icnode_hdr *from) in xfs_da2_node_hdr_to_disk() argument
530 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da2_node_hdr_to_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()
541 struct xfs_da_intnode *from) in xfs_da3_node_hdr_from_disk() argument
543 struct xfs_da3_node_hdr *hdr3 = (struct xfs_da3_node_hdr *)from; in xfs_da3_node_hdr_from_disk()
545 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da3_node_hdr_from_disk()
556 struct xfs_da3_icnode_hdr *from) in xfs_da3_node_hdr_to_disk() argument
560 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_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()
564 hdr3->__count = cpu_to_be16(from->count); in xfs_da3_node_hdr_to_disk()
565 hdr3->__level = cpu_to_be16(from->level); in xfs_da3_node_hdr_to_disk()
639 struct xfs_dir2_free *from) in xfs_dir2_free_hdr_from_disk() argument
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()
651 struct xfs_dir3_icfree_hdr *from) in xfs_dir2_free_hdr_to_disk() argument
653 ASSERT(from->magic == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_hdr_to_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()
664 struct xfs_dir2_free *from) in xfs_dir3_free_hdr_from_disk() argument
666 struct xfs_dir3_free_hdr *hdr3 = (struct xfs_dir3_free_hdr *)from; in xfs_dir3_free_hdr_from_disk()
679 struct xfs_dir3_icfree_hdr *from) in xfs_dir3_free_hdr_to_disk() argument
683 ASSERT(from->magic == XFS_DIR3_FREE_MAGIC); in xfs_dir3_free_hdr_to_disk()
685 hdr3->hdr.magic = cpu_to_be32(from->magic); in xfs_dir3_free_hdr_to_disk()
686 hdr3->firstdb = cpu_to_be32(from->firstdb); in xfs_dir3_free_hdr_to_disk()
687 hdr3->nvalid = cpu_to_be32(from->nvalid); in xfs_dir3_free_hdr_to_disk()
688 hdr3->nused = cpu_to_be32(from->nused); in xfs_dir3_free_hdr_to_disk()