Home
last modified time | relevance | path

Searched refs:ltohs (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/pcfs/fstyp/
H A Dfstyp.c107 #define PC_BPSEC(h) ltohs((h)->bs.bps[0])
108 #define PC_RESSEC(h) ltohs((h)->bs.res_sec[0])
109 #define PC_NROOTENT(h) ltohs((h)->bs.rdirents[0])
110 #define PC_NSEC(h) ltohs((h)->bs.numsect[0])
225 h->bs.fatsec = ltohs(h->bs.fatsec); in read_bootsec()
226 h->bs.spt = ltohs(h->bs.spt); in read_bootsec()
227 h->bs.nhead = ltohs(h->bs.nhead); in read_bootsec()
232 h->bs32.f_flags = ltohs(h->bs32.f_flags); in read_bootsec()
234 h->bs32.f_infosector = ltohs(h->bs32.f_infosector); in read_bootsec()
235 h->bs32.f_backupboot = ltohs(h->bs32.f_backupboot); in read_bootsec()
/illumos-gate/usr/src/common/fs/
H A Dpcfs.c143 (pcfsp->f_bpb.bs_num_fats * ltohs(pcfsp->f_bpb.bs_spf)) + in bpcfs_mountroot()
144 ltohs(pcfsp->f_bpb.bs_resv_sectors); in bpcfs_mountroot()
146 ltohs(pcfsp->f_bpb.bs_num_root_entries) * in bpcfs_mountroot()
154 ncluster = (((ulong_t)ltohs(pcfsp->f_bpb.bs_siv) ? in bpcfs_mountroot()
155 (ulong_t)ltohs(pcfsp->f_bpb.bs_siv) : in bpcfs_mountroot()
175 ltohs(pcfsp->f_bpb.bs_resv_sectors) + pcfsp->f_adjust; in bpcfs_mountroot()
426 sectn = (fat_index / SECSIZ) + ltohs(pcfsp->f_bpb.bs_resv_sectors) in fat_map()
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dpc_label.h103 #define ltohs(S) (*((ushort_t *)(&(S)))) macro
111 #define ltohs(S) ((getbyte(S, 1) << 8) | getbyte(S, 0))
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dpcfs_common.c494 if (ltohs(mb.signature) != BOOTSECSIG) { in findPartitionOffset()
497 ltohs(mb.signature)); in findPartitionOffset()
598 if (ltohs(extmboot.signature) != MBB_MAGIC) { in findPartitionOffset()
H A Dbpb.c193 if (ltohs(ubpb.mb.signature) != BOOTSECSIG) { in readBPB()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.c133 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
/illumos-gate/usr/src/cmd/fstyp/
H A Dfstyp.c327 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c1677 hi16 = ltohs(ep->un.pcd_scluster_hi); in pc_getstartcluster()
1678 lo16 = ltohs(ep->pcd_scluster_lo); in pc_getstartcluster()
1682 return (ltohs(ep->pcd_scluster_lo)); in pc_getstartcluster()
H A Dpc_alloc.c379 cn = ltohs(*(pc_cluster16_t *)fp); in pc_getcluster()
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c654 if (ltohs(mb.signature) != BOOTSECSIG) { in seek_partn()
793 if (ltohs(extmboot.signature) != MBB_MAGIC) { in seek_partn()
1836 if (ltohs(ubpb.mb.signature) != BOOTSECSIG) { in read_existing_bpb()