• Home
  • Raw
  • Download

Lines Matching refs:from

128 	xfs_dir2_inou_t		*from)  in xfs_dir2_sf_get_ino()  argument
131 return get_unaligned_be64(&from->i8.i) & 0x00ffffffffffffffULL; in xfs_dir2_sf_get_ino()
133 return get_unaligned_be32(&from->i4.i); in xfs_dir2_sf_get_ino()
455 struct xfs_dir2_leaf *from) in xfs_dir2_leaf_hdr_from_disk() argument
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()
470 struct xfs_dir3_icleaf_hdr *from) in xfs_dir2_leaf_hdr_to_disk() argument
472 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
473 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_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()
485 struct xfs_dir2_leaf *from) in xfs_dir3_leaf_hdr_from_disk() argument
487 struct xfs_dir3_leaf_hdr *hdr3 = (struct xfs_dir3_leaf_hdr *)from; in xfs_dir3_leaf_hdr_from_disk()
502 struct xfs_dir3_icleaf_hdr *from) in xfs_dir3_leaf_hdr_to_disk() argument
506 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk()
507 from->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_to_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()
512 hdr3->count = cpu_to_be16(from->count); in xfs_dir3_leaf_hdr_to_disk()
513 hdr3->stale = cpu_to_be16(from->stale); in xfs_dir3_leaf_hdr_to_disk()
535 struct xfs_da_intnode *from) in xfs_da2_node_hdr_from_disk() argument
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()
548 struct xfs_da3_icnode_hdr *from) in xfs_da2_node_hdr_to_disk() argument
550 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da2_node_hdr_to_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()
561 struct xfs_da_intnode *from) in xfs_da3_node_hdr_from_disk() argument
563 struct xfs_da3_node_hdr *hdr3 = (struct xfs_da3_node_hdr *)from; in xfs_da3_node_hdr_from_disk()
565 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da3_node_hdr_from_disk()
576 struct xfs_da3_icnode_hdr *from) in xfs_da3_node_hdr_to_disk() argument
580 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_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()
584 hdr3->__count = cpu_to_be16(from->count); in xfs_da3_node_hdr_to_disk()
585 hdr3->__level = cpu_to_be16(from->level); in xfs_da3_node_hdr_to_disk()
659 struct xfs_dir2_free *from) in xfs_dir2_free_hdr_from_disk() argument
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()
671 struct xfs_dir3_icfree_hdr *from) in xfs_dir2_free_hdr_to_disk() argument
673 ASSERT(from->magic == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_hdr_to_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()
684 struct xfs_dir2_free *from) in xfs_dir3_free_hdr_from_disk() argument
686 struct xfs_dir3_free_hdr *hdr3 = (struct xfs_dir3_free_hdr *)from; in xfs_dir3_free_hdr_from_disk()
699 struct xfs_dir3_icfree_hdr *from) in xfs_dir3_free_hdr_to_disk() argument
703 ASSERT(from->magic == XFS_DIR3_FREE_MAGIC); in xfs_dir3_free_hdr_to_disk()
705 hdr3->hdr.magic = cpu_to_be32(from->magic); in xfs_dir3_free_hdr_to_disk()
706 hdr3->firstdb = cpu_to_be32(from->firstdb); in xfs_dir3_free_hdr_to_disk()
707 hdr3->nvalid = cpu_to_be32(from->nvalid); in xfs_dir3_free_hdr_to_disk()
708 hdr3->nused = cpu_to_be32(from->nused); in xfs_dir3_free_hdr_to_disk()