Lines Matching refs:SWAP32
53 #define SWAP32(x) (((x) & 0xff) << 24 | ((x) & 0xff00) << 8 | \ macro
55 #define SWAP64(x) (SWAP32((x) >> 32) & 0xffffffff | SWAP32(x) << 32)
58 #define SWAP32(x) (x) macro
160 otp->tag_loc = SWAP32(itp->tag_loc); in maketag()
197 tloc = SWAP32(tp->tag_loc); in verifytag()
277 p->ext_len = SWAP32(p->ext_len); in ud_swap_ext_ad()
278 p->ext_loc = SWAP32(p->ext_loc); in ud_swap_ext_ad()
291 p->itag_prnde = SWAP32(p->itag_prnde); in ud_swap_icb_tag()
295 p->itag_lb_loc = SWAP32(p->itag_lb_loc); in ud_swap_icb_tag()
303 p->sad_ext_len = SWAP32(p->sad_ext_len); in ud_swap_short_ad()
304 p->sad_ext_loc = SWAP32(p->sad_ext_loc); in ud_swap_short_ad()
310 p->lad_ext_len = SWAP32(p->lad_ext_len); in ud_swap_long_ad()
311 p->lad_ext_loc = SWAP32(p->lad_ext_loc); in ud_swap_long_ad()
318 p->pvd_vdsn = SWAP32(p->pvd_vdsn); in ud_swap_pri_vol_desc()
319 p->pvd_pvdn = SWAP32(p->pvd_pvdn); in ud_swap_pri_vol_desc()
324 p->pvd_csl = SWAP32(p->pvd_csl); in ud_swap_pri_vol_desc()
325 p->pvd_mcsl = SWAP32(p->pvd_mcsl); in ud_swap_pri_vol_desc()
331 p->pvd_pvdsl = SWAP32(p->pvd_pvdsl); in ud_swap_pri_vol_desc()
338 p->iuvd_vdsn = SWAP32(p->iuvd_vdsn); in ud_swap_iuvd()
346 p->vdp_vdsn = SWAP32(p->vdp_vdsn); in ud_swap_vdp()
362 p->pd_vdsn = SWAP32(p->pd_vdsn); in ud_swap_part_desc()
366 p->pd_acc_type = SWAP32(p->pd_acc_type); in ud_swap_part_desc()
367 p->pd_part_start = SWAP32(p->pd_part_start); in ud_swap_part_desc()
368 p->pd_part_length = SWAP32(p->pd_part_length); in ud_swap_part_desc()
384 p->lvd_vdsn = SWAP32(p->lvd_vdsn); in ud_swap_log_desc()
385 p->lvd_log_bsize = SWAP32(p->lvd_log_bsize); in ud_swap_log_desc()
388 p->lvd_mtbl_len = SWAP32(p->lvd_mtbl_len); in ud_swap_log_desc()
389 p->lvd_num_pmaps = SWAP32(p->lvd_num_pmaps); in ud_swap_log_desc()
397 p->ua_vdsn = SWAP32(p->ua_vdsn); in ud_swap_unall_desc()
398 p->ua_nad = SWAP32(p->ua_nad); in ud_swap_unall_desc()
407 p->lvid_int_type = SWAP32(p->lvid_int_type); in ud_swap_lvint()
409 p->lvid_npart = SWAP32(p->lvid_npart); in ud_swap_lvint()
410 p->lvid_liu = SWAP32(p->lvid_liu); in ud_swap_lvint()
412 p->lvid_fst[0] = SWAP32(p->lvid_fst[0]); in ud_swap_lvint()
413 p->lvid_fst[1] = SWAP32(p->lvid_fst[1]); in ud_swap_lvint()
417 lvup->lvidiu_nfiles = SWAP32(lvup->lvidiu_nfiles); in ud_swap_lvint()
418 lvup->lvidiu_ndirs = SWAP32(lvup->lvidiu_ndirs); in ud_swap_lvint()
430 p->fsd_cs_list = SWAP32(p->fsd_cs_list); in ud_swap_fileset_desc()
431 p->fsd_mcs_list = SWAP32(p->fsd_mcs_list); in ud_swap_fileset_desc()
432 p->fsd_fs_no = SWAP32(p->fsd_fs_no); in ud_swap_fileset_desc()
433 p->fsd_fsd_no = SWAP32(p->fsd_fsd_no); in ud_swap_fileset_desc()
456 p->aed_rev_ael = SWAP32(p->aed_rev_ael); in ud_swap_alloc_ext()
457 p->aed_len_aed = SWAP32(p->aed_len_aed); in ud_swap_alloc_ext()
463 p->sbd_nbits = SWAP32(p->sbd_nbits); in ud_swap_space_bitmap()
464 p->sbd_nbytes = SWAP32(p->sbd_nbytes); in ud_swap_space_bitmap()
476 p->fe_len_adesc = SWAP32(p->fe_len_adesc); in ud_swap_file_entry()
477 p->fe_len_ear = SWAP32(p->fe_len_ear); in ud_swap_file_entry()
500 p->fe_uid = SWAP32(p->fe_uid); in ud_swap_file_entry()
501 p->fe_gid = SWAP32(p->fe_gid); in ud_swap_file_entry()
502 p->fe_perms = SWAP32(p->fe_perms); in ud_swap_file_entry()
504 p->fe_rec_len = SWAP32(p->fe_rec_len); in ud_swap_file_entry()
510 p->fe_ckpoint = SWAP32(p->fe_ckpoint); in ud_swap_file_entry()
515 p->fe_len_adesc = SWAP32(p->fe_len_adesc); in ud_swap_file_entry()
516 p->fe_len_ear = SWAP32(p->fe_len_ear); in ud_swap_file_entry()