Searched refs:ltohs (Results 1 – 10 of 10) sorted by relevance
109 #define PC_BPSEC(h) ltohs((h)->bs.bps[0])110 #define PC_RESSEC(h) ltohs((h)->bs.res_sec[0])111 #define PC_NROOTENT(h) ltohs((h)->bs.rdirents[0])112 #define PC_NSEC(h) ltohs((h)->bs.numsect[0])227 h->bs.fatsec = ltohs(h->bs.fatsec); in read_bootsec()228 h->bs.spt = ltohs(h->bs.spt); in read_bootsec()229 h->bs.nhead = ltohs(h->bs.nhead); in read_bootsec()234 h->bs32.f_flags = ltohs(h->bs32.f_flags); in read_bootsec()236 h->bs32.f_infosector = ltohs(h->bs32.f_infosector); in read_bootsec()237 h->bs32.f_backupboot = ltohs(h->bs32.f_backupboot); in read_bootsec()
145 (pcfsp->f_bpb.bs_num_fats * ltohs(pcfsp->f_bpb.bs_spf)) + in bpcfs_mountroot()146 ltohs(pcfsp->f_bpb.bs_resv_sectors); in bpcfs_mountroot()148 ltohs(pcfsp->f_bpb.bs_num_root_entries) * in bpcfs_mountroot()156 ncluster = (((ulong_t)ltohs(pcfsp->f_bpb.bs_siv) ? in bpcfs_mountroot()157 (ulong_t)ltohs(pcfsp->f_bpb.bs_siv) : in bpcfs_mountroot()177 ltohs(pcfsp->f_bpb.bs_resv_sectors) + pcfsp->f_adjust; in bpcfs_mountroot()428 sectn = (fat_index / SECSIZ) + ltohs(pcfsp->f_bpb.bs_resv_sectors) in fat_map()
105 #define ltohs(S) (*((ushort_t *)(&(S)))) macro113 #define ltohs(S) ((getbyte(S, 1) << 8) | getbyte(S, 0))
494 if (ltohs(mb.signature) != BOOTSECSIG) { in findPartitionOffset()497 ltohs(mb.signature)); in findPartitionOffset()598 if (ltohs(extmboot.signature) != MBB_MAGIC) { in findPartitionOffset()
193 if (ltohs(ubpb.mb.signature) != BOOTSECSIG) { in readBPB()
133 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
327 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
1672 hi16 = ltohs(ep->un.pcd_scluster_hi); in pc_getstartcluster()1673 lo16 = ltohs(ep->pcd_scluster_lo); in pc_getstartcluster()1677 return (ltohs(ep->pcd_scluster_lo)); in pc_getstartcluster()
379 cn = ltohs(*(pc_cluster16_t *)fp); in pc_getcluster()
652 if (ltohs(mb.signature) != BOOTSECSIG) { in seek_partn()791 if (ltohs(extmboot.signature) != MBB_MAGIC) { in seek_partn()1834 if (ltohs(ubpb.mb.signature) != BOOTSECSIG) { in read_existing_bpb()