Lines Matching refs:n

59 void ffs_csum_swap(struct csum *o, struct csum *n, int size);
60 void ffs_csumtotal_swap(struct csum_total *o, struct csum_total *n);
63 ffs_sb_swap(struct fs *o, struct fs *n) in ffs_sb_swap() argument
74 n32 = (u_int32_t *)n; in ffs_sb_swap()
78 n->fs_swuid = bswap64(o->fs_swuid); in ffs_sb_swap()
79 n->fs_cgrotor = bswap32(o->fs_cgrotor); /* Unused */ in ffs_sb_swap()
80 n->fs_old_cpc = bswap32(o->fs_old_cpc); in ffs_sb_swap()
86 n->fs_maxbsize = bswap32(o->fs_maxbsize); in ffs_sb_swap()
87 n->fs_sblockloc = bswap64(o->fs_sblockloc); in ffs_sb_swap()
88 ffs_csumtotal_swap(&o->fs_cstotal, &n->fs_cstotal); in ffs_sb_swap()
89 n->fs_time = bswap64(o->fs_time); in ffs_sb_swap()
90 n->fs_size = bswap64(o->fs_size); in ffs_sb_swap()
91 n->fs_dsize = bswap64(o->fs_dsize); in ffs_sb_swap()
92 n->fs_csaddr = bswap64(o->fs_csaddr); in ffs_sb_swap()
93 n->fs_pendingblocks = bswap64(o->fs_pendingblocks); in ffs_sb_swap()
94 n->fs_pendinginodes = bswap32(o->fs_pendinginodes); in ffs_sb_swap()
100 n->fs_snapinum[i] = bswap32(o->fs_snapinum[i]); in ffs_sb_swap()
101 n->fs_avgfilesize = bswap32(o->fs_avgfilesize); in ffs_sb_swap()
102 n->fs_avgfpdir = bswap32(o->fs_avgfpdir); in ffs_sb_swap()
104 n->fs_flags = bswap32(o->fs_flags); in ffs_sb_swap()
105 n->fs_contigsumsize = bswap32(o->fs_contigsumsize); in ffs_sb_swap()
106 n->fs_maxsymlinklen = bswap32(o->fs_maxsymlinklen); in ffs_sb_swap()
107 n->fs_old_inodefmt = bswap32(o->fs_old_inodefmt); in ffs_sb_swap()
108 n->fs_maxfilesize = bswap64(o->fs_maxfilesize); in ffs_sb_swap()
109 n->fs_qbmask = bswap64(o->fs_qbmask); in ffs_sb_swap()
110 n->fs_qfmask = bswap64(o->fs_qfmask); in ffs_sb_swap()
111 n->fs_state = bswap32(o->fs_state); in ffs_sb_swap()
112 n->fs_old_postblformat = bswap32(o->fs_old_postblformat); in ffs_sb_swap()
113 n->fs_old_nrpos = bswap32(o->fs_old_nrpos); in ffs_sb_swap()
114 n->fs_old_postbloff = bswap32(o->fs_old_postbloff); in ffs_sb_swap()
115 n->fs_old_rotbloff = bswap32(o->fs_old_rotbloff); in ffs_sb_swap()
117 n->fs_magic = bswap32(o->fs_magic); in ffs_sb_swap()
121 ffs_dinode1_swap(struct ufs1_dinode *o, struct ufs1_dinode *n) in ffs_dinode1_swap() argument
124 n->di_mode = bswap16(o->di_mode); in ffs_dinode1_swap()
125 n->di_nlink = bswap16(o->di_nlink); in ffs_dinode1_swap()
126 n->di_size = bswap64(o->di_size); in ffs_dinode1_swap()
127 n->di_atime = bswap32(o->di_atime); in ffs_dinode1_swap()
128 n->di_atimensec = bswap32(o->di_atimensec); in ffs_dinode1_swap()
129 n->di_mtime = bswap32(o->di_mtime); in ffs_dinode1_swap()
130 n->di_mtimensec = bswap32(o->di_mtimensec); in ffs_dinode1_swap()
131 n->di_ctime = bswap32(o->di_ctime); in ffs_dinode1_swap()
132 n->di_ctimensec = bswap32(o->di_ctimensec); in ffs_dinode1_swap()
133 memcpy(n->di_db, o->di_db, sizeof(n->di_db)); in ffs_dinode1_swap()
134 memcpy(n->di_ib, o->di_ib, sizeof(n->di_ib)); in ffs_dinode1_swap()
135 n->di_flags = bswap32(o->di_flags); in ffs_dinode1_swap()
136 n->di_blocks = bswap32(o->di_blocks); in ffs_dinode1_swap()
137 n->di_gen = bswap32(o->di_gen); in ffs_dinode1_swap()
138 n->di_uid = bswap32(o->di_uid); in ffs_dinode1_swap()
139 n->di_gid = bswap32(o->di_gid); in ffs_dinode1_swap()
143 ffs_dinode2_swap(struct ufs2_dinode *o, struct ufs2_dinode *n) in ffs_dinode2_swap() argument
145 n->di_mode = bswap16(o->di_mode); in ffs_dinode2_swap()
146 n->di_nlink = bswap16(o->di_nlink); in ffs_dinode2_swap()
147 n->di_uid = bswap32(o->di_uid); in ffs_dinode2_swap()
148 n->di_gid = bswap32(o->di_gid); in ffs_dinode2_swap()
149 n->di_blksize = bswap32(o->di_blksize); in ffs_dinode2_swap()
150 n->di_size = bswap64(o->di_size); in ffs_dinode2_swap()
151 n->di_blocks = bswap64(o->di_blocks); in ffs_dinode2_swap()
152 n->di_atime = bswap64(o->di_atime); in ffs_dinode2_swap()
153 n->di_atimensec = bswap32(o->di_atimensec); in ffs_dinode2_swap()
154 n->di_mtime = bswap64(o->di_mtime); in ffs_dinode2_swap()
155 n->di_mtimensec = bswap32(o->di_mtimensec); in ffs_dinode2_swap()
156 n->di_ctime = bswap64(o->di_ctime); in ffs_dinode2_swap()
157 n->di_ctimensec = bswap32(o->di_ctimensec); in ffs_dinode2_swap()
158 n->di_birthtime = bswap64(o->di_ctime); in ffs_dinode2_swap()
159 n->di_birthnsec = bswap32(o->di_ctimensec); in ffs_dinode2_swap()
160 n->di_gen = bswap32(o->di_gen); in ffs_dinode2_swap()
161 n->di_kernflags = bswap32(o->di_kernflags); in ffs_dinode2_swap()
162 n->di_flags = bswap32(o->di_flags); in ffs_dinode2_swap()
163 n->di_extsize = bswap32(o->di_extsize); in ffs_dinode2_swap()
164 memcpy(n->di_extb, o->di_extb, sizeof(n->di_extb)); in ffs_dinode2_swap()
165 memcpy(n->di_db, o->di_db, sizeof(n->di_db)); in ffs_dinode2_swap()
166 memcpy(n->di_ib, o->di_ib, sizeof(n->di_ib)); in ffs_dinode2_swap()
170 ffs_csum_swap(struct csum *o, struct csum *n, int size) in ffs_csum_swap() argument
176 nint = (u_int32_t*)n; in ffs_csum_swap()
183 ffs_csumtotal_swap(struct csum_total *o, struct csum_total *n) in ffs_csumtotal_swap() argument
185 n->cs_ndir = bswap64(o->cs_ndir); in ffs_csumtotal_swap()
186 n->cs_nbfree = bswap64(o->cs_nbfree); in ffs_csumtotal_swap()
187 n->cs_nifree = bswap64(o->cs_nifree); in ffs_csumtotal_swap()
188 n->cs_nffree = bswap64(o->cs_nffree); in ffs_csumtotal_swap()
195 ffs_cg_swap(struct cg *o, struct cg *n, struct fs *fs) in ffs_cg_swap() argument
202 n->cg_firstfield = bswap32(o->cg_firstfield); in ffs_cg_swap()
203 n->cg_magic = bswap32(o->cg_magic); in ffs_cg_swap()
204 n->cg_old_time = bswap32(o->cg_old_time); in ffs_cg_swap()
205 n->cg_cgx = bswap32(o->cg_cgx); in ffs_cg_swap()
206 n->cg_old_ncyl = bswap16(o->cg_old_ncyl); in ffs_cg_swap()
207 n->cg_old_niblk = bswap16(o->cg_old_niblk); in ffs_cg_swap()
208 n->cg_ndblk = bswap32(o->cg_ndblk); in ffs_cg_swap()
209 n->cg_cs.cs_ndir = bswap32(o->cg_cs.cs_ndir); in ffs_cg_swap()
210 n->cg_cs.cs_nbfree = bswap32(o->cg_cs.cs_nbfree); in ffs_cg_swap()
211 n->cg_cs.cs_nifree = bswap32(o->cg_cs.cs_nifree); in ffs_cg_swap()
212 n->cg_cs.cs_nffree = bswap32(o->cg_cs.cs_nffree); in ffs_cg_swap()
213 n->cg_rotor = bswap32(o->cg_rotor); in ffs_cg_swap()
214 n->cg_frotor = bswap32(o->cg_frotor); in ffs_cg_swap()
215 n->cg_irotor = bswap32(o->cg_irotor); in ffs_cg_swap()
217 n->cg_frsum[i] = bswap32(o->cg_frsum[i]); in ffs_cg_swap()
219 n->cg_old_btotoff = bswap32(o->cg_old_btotoff); in ffs_cg_swap()
220 n->cg_old_boff = bswap32(o->cg_old_boff); in ffs_cg_swap()
221 n->cg_iusedoff = bswap32(o->cg_iusedoff); in ffs_cg_swap()
222 n->cg_freeoff = bswap32(o->cg_freeoff); in ffs_cg_swap()
223 n->cg_nextfreeoff = bswap32(o->cg_nextfreeoff); in ffs_cg_swap()
224 n->cg_clustersumoff = bswap32(o->cg_clustersumoff); in ffs_cg_swap()
225 n->cg_clusteroff = bswap32(o->cg_clusteroff); in ffs_cg_swap()
226 n->cg_nclusterblks = bswap32(o->cg_nclusterblks); in ffs_cg_swap()
227 n->cg_niblk = bswap32(o->cg_niblk); in ffs_cg_swap()
228 n->cg_initediblk = bswap32(o->cg_initediblk); in ffs_cg_swap()
229 n->cg_time = bswap64(o->cg_time); in ffs_cg_swap()
234 if (n->cg_magic == CG_MAGIC) { in ffs_cg_swap()
235 btotoff = n->cg_old_btotoff; in ffs_cg_swap()
236 boff = n->cg_old_boff; in ffs_cg_swap()
237 clustersumoff = n->cg_clustersumoff; in ffs_cg_swap()
239 btotoff = bswap32(n->cg_old_btotoff); in ffs_cg_swap()
240 boff = bswap32(n->cg_old_boff); in ffs_cg_swap()
241 clustersumoff = bswap32(n->cg_clustersumoff); in ffs_cg_swap()
243 n32 = (u_int32_t *)((u_int8_t *)n + btotoff); in ffs_cg_swap()
245 n16 = (u_int16_t *)((u_int8_t *)n + boff); in ffs_cg_swap()
254 n32 = (u_int32_t *)((u_int8_t *)n + clustersumoff); in ffs_cg_swap()