Lines Matching refs:SWAP32

51 #define	SWAP32(x) (((x) & 0xff) << 24 | ((x) & 0xff00) << 8 | \  macro
53 #define SWAP64(x) (SWAP32((x) >> 32) & 0xffffffff | SWAP32(x) << 32)
56 #define SWAP32(x) (x) macro
158 otp->tag_loc = SWAP32(itp->tag_loc); in maketag()
195 tloc = SWAP32(tp->tag_loc); in verifytag()
275 p->ext_len = SWAP32(p->ext_len); in ud_swap_ext_ad()
276 p->ext_loc = SWAP32(p->ext_loc); in ud_swap_ext_ad()
289 p->itag_prnde = SWAP32(p->itag_prnde); in ud_swap_icb_tag()
293 p->itag_lb_loc = SWAP32(p->itag_lb_loc); in ud_swap_icb_tag()
301 p->sad_ext_len = SWAP32(p->sad_ext_len); in ud_swap_short_ad()
302 p->sad_ext_loc = SWAP32(p->sad_ext_loc); in ud_swap_short_ad()
308 p->lad_ext_len = SWAP32(p->lad_ext_len); in ud_swap_long_ad()
309 p->lad_ext_loc = SWAP32(p->lad_ext_loc); in ud_swap_long_ad()
316 p->pvd_vdsn = SWAP32(p->pvd_vdsn); in ud_swap_pri_vol_desc()
317 p->pvd_pvdn = SWAP32(p->pvd_pvdn); in ud_swap_pri_vol_desc()
322 p->pvd_csl = SWAP32(p->pvd_csl); in ud_swap_pri_vol_desc()
323 p->pvd_mcsl = SWAP32(p->pvd_mcsl); in ud_swap_pri_vol_desc()
329 p->pvd_pvdsl = SWAP32(p->pvd_pvdsl); in ud_swap_pri_vol_desc()
336 p->iuvd_vdsn = SWAP32(p->iuvd_vdsn); in ud_swap_iuvd()
344 p->vdp_vdsn = SWAP32(p->vdp_vdsn); in ud_swap_vdp()
360 p->pd_vdsn = SWAP32(p->pd_vdsn); in ud_swap_part_desc()
364 p->pd_acc_type = SWAP32(p->pd_acc_type); in ud_swap_part_desc()
365 p->pd_part_start = SWAP32(p->pd_part_start); in ud_swap_part_desc()
366 p->pd_part_length = SWAP32(p->pd_part_length); in ud_swap_part_desc()
382 p->lvd_vdsn = SWAP32(p->lvd_vdsn); in ud_swap_log_desc()
383 p->lvd_log_bsize = SWAP32(p->lvd_log_bsize); in ud_swap_log_desc()
386 p->lvd_mtbl_len = SWAP32(p->lvd_mtbl_len); in ud_swap_log_desc()
387 p->lvd_num_pmaps = SWAP32(p->lvd_num_pmaps); in ud_swap_log_desc()
395 p->ua_vdsn = SWAP32(p->ua_vdsn); in ud_swap_unall_desc()
396 p->ua_nad = SWAP32(p->ua_nad); in ud_swap_unall_desc()
405 p->lvid_int_type = SWAP32(p->lvid_int_type); in ud_swap_lvint()
407 p->lvid_npart = SWAP32(p->lvid_npart); in ud_swap_lvint()
408 p->lvid_liu = SWAP32(p->lvid_liu); in ud_swap_lvint()
410 p->lvid_fst[0] = SWAP32(p->lvid_fst[0]); in ud_swap_lvint()
411 p->lvid_fst[1] = SWAP32(p->lvid_fst[1]); in ud_swap_lvint()
415 lvup->lvidiu_nfiles = SWAP32(lvup->lvidiu_nfiles); in ud_swap_lvint()
416 lvup->lvidiu_ndirs = SWAP32(lvup->lvidiu_ndirs); in ud_swap_lvint()
428 p->fsd_cs_list = SWAP32(p->fsd_cs_list); in ud_swap_fileset_desc()
429 p->fsd_mcs_list = SWAP32(p->fsd_mcs_list); in ud_swap_fileset_desc()
430 p->fsd_fs_no = SWAP32(p->fsd_fs_no); in ud_swap_fileset_desc()
431 p->fsd_fsd_no = SWAP32(p->fsd_fsd_no); in ud_swap_fileset_desc()
454 p->aed_rev_ael = SWAP32(p->aed_rev_ael); in ud_swap_alloc_ext()
455 p->aed_len_aed = SWAP32(p->aed_len_aed); in ud_swap_alloc_ext()
461 p->sbd_nbits = SWAP32(p->sbd_nbits); in ud_swap_space_bitmap()
462 p->sbd_nbytes = SWAP32(p->sbd_nbytes); in ud_swap_space_bitmap()
474 p->fe_len_adesc = SWAP32(p->fe_len_adesc); in ud_swap_file_entry()
475 p->fe_len_ear = SWAP32(p->fe_len_ear); in ud_swap_file_entry()
498 p->fe_uid = SWAP32(p->fe_uid); in ud_swap_file_entry()
499 p->fe_gid = SWAP32(p->fe_gid); in ud_swap_file_entry()
500 p->fe_perms = SWAP32(p->fe_perms); in ud_swap_file_entry()
502 p->fe_rec_len = SWAP32(p->fe_rec_len); in ud_swap_file_entry()
508 p->fe_ckpoint = SWAP32(p->fe_ckpoint); in ud_swap_file_entry()
513 p->fe_len_adesc = SWAP32(p->fe_len_adesc); in ud_swap_file_entry()
514 p->fe_len_ear = SWAP32(p->fe_len_ear); in ud_swap_file_entry()