Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/fs.d/pcfs/fstyp/
H A Dfstyp.c109 #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()
/titanic_41/usr/src/common/fs/
H A Dpcfs.c145 (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()
/titanic_41/usr/src/uts/common/sys/fs/
H A Dpc_label.h105 #define ltohs(S) (*((ushort_t *)(&(S)))) macro
113 #define ltohs(S) ((getbyte(S, 1) << 8) | getbyte(S, 0))
/titanic_41/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()
/titanic_41/usr/src/cmd/hal/utils/
H A Dfsutils.c133 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
/titanic_41/usr/src/cmd/fstyp/
H A Dfstyp.c327 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
/titanic_41/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c1672 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()
H A Dpc_alloc.c379 cn = ltohs(*(pc_cluster16_t *)fp); in pc_getcluster()
/titanic_41/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c652 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()