Home
last modified time | relevance | path

Searched refs:be16toh (Results 1 – 25 of 57) sorted by relevance

123

/netbsd/src/sys/arch/amiga/stand/bootblock/elf2bb/
Delf2bb.c149 dprintf(("%04x sections, offset %08x\n", be16toh(eh->e_shnum), in main()
151 if (be16toh(eh->e_type) != ET_REL) in main()
153 argv[0], be16toh(eh->e_type)); in main()
154 if (be16toh(eh->e_machine) != EM_68K) in main()
156 be16toh(eh->e_machine)); in main()
162 be32toh(sh[be16toh(eh->e_shstrndx)].sh_offset)); in main()
167 for (i = 0; i < be16toh(eh->e_shnum); ++i) { in main()
254 sect_offset = malloc(be16toh(eh->e_shnum) * sizeof(uint32_t)); in main()
255 for (i = 0, l = 0; i < be16toh(eh->e_shnum); ++i) { in main()
308 for (i = 0; i < be16toh(eh->e_shnum); ++i) { in main()
[all …]
/netbsd/src/sys/fs/efs/
Defs_subr.c73 cksum ^= be16toh(v); in efs_sb_checksum()
139 cgisize = be16toh(sbp->sb_cgisize); in efs_locate_inode()
207 ei->ei_mode = be16toh(ei->ei_di.di_mode); /*same as nbsd*/ in efs_sync_dinode_to_inode()
208 ei->ei_nlink = be16toh(ei->ei_di.di_nlink); in efs_sync_dinode_to_inode()
209 ei->ei_uid = be16toh(ei->ei_di.di_uid); in efs_sync_dinode_to_inode()
210 ei->ei_gid = be16toh(ei->ei_di.di_gid); in efs_sync_dinode_to_inode()
216 ei->ei_numextents = be16toh(ei->ei_di.di_numextents); in efs_sync_dinode_to_inode()
247 s += (ei->ei_mode != be16toh(ei->ei_di.di_mode)); in efs_is_inode_synced()
248 s += (ei->ei_nlink != be16toh(ei->ei_di.di_nlink)); in efs_is_inode_synced()
249 s += (ei->ei_uid != be16toh(ei->ei_di.di_uid)); in efs_is_inode_synced()
[all …]
Defs_vfsops.c100 if (be16toh(emp->em_sb.sb_dirty) != EFS_SB_CLEAN) { in efs_mount_common()
102 "run fsck_efs(8)\n", be16toh(emp->em_sb.sb_dirty)); in efs_mount_common()
329 sbp->f_ffree = be16toh(emp->em_sb.sb_cgisize) * in efs_statvfs()
330 be16toh(emp->em_sb.sb_ncg) * in efs_statvfs()
Defs_vnops.c211 if (be16toh(eip->ei_di.di_odev) != EFS_DINODE_ODEV_INVALID) { in efs_getattr()
212 dmaj = EFS_DINODE_ODEV_MAJ(be16toh(eip->ei_di.di_odev)); in efs_getattr()
213 dmin = EFS_DINODE_ODEV_MIN(be16toh(eip->ei_di.di_odev)); in efs_getattr()
344 if (be16toh(db->db_magic) != EFS_DIRBLK_MAGIC) { in efs_readdir()
393 switch (be16toh(edi.di_mode) & EFS_IFMT) { in efs_readdir()
/netbsd/src/sys/net/agr/
Dieee8023ad_lacp_debug.c71 be16toh(sysid->lsi_prio), in lacp_format_systemid()
82 be16toh(portid->lpi_prio), in lacp_format_portid()
83 be16toh(portid->lpi_portno)); in lacp_format_portid()
96 be16toh(peer->lip_key), in lacp_format_partner()
168 printf("maxdelay=%d\n", be16toh(du->ldu_collector.lci_maxdelay)); in lacp_dump_lacpdu()
/netbsd/src/crypto/external/cpl/trousers/dist/src/include/
Dportable_endian.h23 # define be16toh(x) OSSwapBigToHostInt16(x) macro
49 # define be16toh(x) betoh16(x) macro
67 # define be16toh(x) ntohs(x) macro
85 # define be16toh(x) (x) macro
/netbsd/src/sys/dev/ata/
Data_raid_adaptec.c137 (be16toh(info->configs[0].stripe_sectors) >> 1); in ata_raid_read_config_adaptec()
138 aai->aai_width = be16toh(info->configs[0].total_disks); in ata_raid_read_config_adaptec()
144 aai->aai_width = be16toh(info->configs[0].total_disks) in ata_raid_read_config_adaptec()
157 aai->aai_ndisks = be16toh(info->configs[0].total_disks); in ata_raid_read_config_adaptec()
/netbsd/src/usr.sbin/installboot/arch/
Dnext68k.c72 sum += be16toh(*buf++); in nextstep_checksum()
126 be16toh(*checksum)) { in next68k_setboot()
161 if (bootsize > be16toh(next68klabel->cd_front) * cd_secsize - in next68k_setboot()
167 fp = be16toh(next68klabel->cd_front); in next68k_setboot()
Dhp300.c200 be16toh(label->d_npartitions) > MAXMAXPARTITIONS) { in hp300_setboot()
205 i = be16toh(label->d_npartitions); in hp300_setboot()
Dhppa.c170 npart = be16toh(label.l.d_npartitions); in hppa_setboot()
/netbsd/src/sys/arch/macppc/stand/fixcoff/
Dfixcoff.c155 i = be16toh(*(uint16_t *)fh.f_magic); in main()
160 i = be16toh(*(uint16_t *)fh.f_opthdr); in main()
172 n = be16toh(*(uint16_t *)fh.f_nsect); in main()
/netbsd/src/usr.sbin/installboot/
Dsum.c102 be16toh(bb16[SUNSUM_OFFSET])); in set_sunsum()
103 printf("Recalculated Sun checksum: 0x%04x\n", be16toh(sum)); in set_sunsum()
/netbsd/src/sys/dev/ic/
Dtpm.c208 if (be16toh(response.tag) != TPM_TAG_RSP_COMMAND || in tpm12_suspend()
214 be16toh(response.tag), in tpm12_suspend()
307 if (be16toh(response.tag) != TPM2_ST_NO_SESSIONS || in tpm20_suspend()
312 be16toh(response.tag), in tpm20_suspend()
552 tag = be16toh(response.hdr.tag); in tpm12_rng()
692 tag = be16toh(response.hdr.tag); in tpm20_rng()
735 nbytes = be16toh(response.randomBytesSize); in tpm20_rng()
/netbsd/src/lib/libbluetooth/
Dsdp_session.c236 pdu.tid = be16toh(pdu.tid); in _sdp_recv_pdu()
237 pdu.len = be16toh(pdu.len); in _sdp_recv_pdu()
/netbsd/src/sys/arch/prep/stand/installboot/
Dinstallboot.c107 if (be16toh(eh.e_machine) != EM_PPC) { in load_boot()
112 for (i = 0; i < be16toh(eh.e_phnum); i++) { in load_boot()
/netbsd/src/external/bsd/tmux/dist/compat/
Dimsg-buffer.c41 #undef be16toh
42 #define be16toh ntohs macro
455 *value = be16toh(*value); in ibuf_get_n16()
/netbsd/src/lib/libc/net/
Dgetservbyport_r.c68 port = be16toh(port); in __weak_alias()
/netbsd/src/sys/dev/spi/
Dtmp121.c128 sreg = (int16_t)be16toh(reg); in tmp121temp_refresh()
/netbsd/src/sys/arch/prep/prep/
Dresidual.c327 printf("EC = %d\n", be16toh(res->EC)); in print_residual_device_info()
354 s = be16toh(vpd->EndianSwitchMethod); in print_residual_device_info()
358 s = be16toh(vpd->SpreadIOMethod); in print_residual_device_info()
401 printf("MaxNumCpus = %d\n", be16toh(res->MaxNumCpus)); in print_residual_device_info()
402 ncpus = be16toh(res->ActualNumCpus); in print_residual_device_info()
/netbsd/src/sys/ufs/ffs/
Dffs_appleufs.c97 n->ul_namelen = be16toh(o->ul_namelen); in ffs_appleufs_validate()
/netbsd/src/sys/dev/i2c/
Ddstemp.c186 ((uint64_t)(be16toh(data) >> 4) * 62500) + in dstemp_sensors_refresh()
Dadadc.c227 rdata = be16toh(rdata) >> 6; in adadc_sensors_refresh()
/netbsd/src/sys/dev/dkwedge/
Ddkwedge_apple.c52 #define SWAP16(x) ap->x = be16toh(ap->x)
/netbsd/src/sys/arch/sgimips/stand/sgivol/
Dsgivol.c307 printf("root part: %d\n", be16toh(volhdr->root)); in display_vol()
308 printf("swap part: %d\n", be16toh(volhdr->swap)); in display_vol()
/netbsd/src/sys/dev/isa/
Ddpt_isa.c310 if (be16toh(*(int16_t *)ec->ec_queuedepth) > DPT_ISA_MAXCCBS) in dpt_isa_attach()

123