Searched refs:htobe32 (Results 1 - 25 of 54) sorted by relevance

123

/netbsd-6-1-5-RELEASE/sys/arch/amiga/stand/bootblock/elf2bb/
H A Delf2bb.c149 dprintf(("%04x sections, offset %08x\n", htobe16(eh->e_shnum), htobe32(eh->e_shoff)));
159 sh = (Elf32_Shdr *)(image + htobe32(eh->e_shoff));
160 shstrtab = (char *)(image + htobe32(sh[htobe16(eh->e_shstrndx)].sh_offset));
168 htobe32(sh[i].sh_name), shstrtab + htobe32(sh[i].sh_name),
169 htobe32(sh[i].sh_type),
170 htobe32(sh[i].sh_flags), htobe32(sh[i].sh_addr),
171 htobe32(sh[i].sh_offset), htobe32(s
[all...]
H A Dchksum.c52 sum += htobe32(block[i]);
/netbsd-6-1-5-RELEASE/distrib/cdrom/macppc_mkboothfs/
H A Dmkboothfs.c80 dm.sbBlkCount = htobe32(0); /* XXX */
95 pme.pmMapBlkCnt = htobe32(1);
96 pme.pmPyPartStart = htobe32(1);
97 pme.pmPartBlkCnt = htobe32(1);
98 pme.pmDataCnt = htobe32(1);
101 pme.pmPartStatus = htobe32(0x3b);
102 pme.pmBootSize = htobe32(MACPPC_BOOT_BLOCK_MAX_SIZE);
103 pme.pmBootLoad = htobe32(0x4000);
104 pme.pmBootEntry = htobe32(0x4000);
114 pme.pmPyPartStart = htobe32(
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/installboot/arch/
H A Dmacppc.c117 dm.sbBlkCount = htobe32(0);
150 pme.pmMapBlkCnt = htobe32(2);
151 pme.pmPyPartStart = htobe32(1);
152 pme.pmPartBlkCnt = htobe32(2);
153 pme.pmDataCnt = htobe32(2);
156 pme.pmPartStatus = htobe32(0x37);
167 pme.pmMapBlkCnt = htobe32(2);
168 pme.pmPyPartStart = htobe32(4);
169 pme.pmPartBlkCnt = htobe32(0x7fffffff);
170 pme.pmDataCnt = htobe32(
[all...]
H A Dsparc.c124 *((uint32_t *)bb) = htobe32(SUN_MAGIC);
125 *((uint32_t *)bb + 1) = htobe32(SUN4_BASTART);
H A Dhp300.c119 if (label->d_magic != htobe32(DISKMAGIC) ||
120 label->d_magic2 != htobe32(DISKMAGIC) ||
173 lifdir->dir_addr = htobe32(addr + boot_offset
H A Dnext68k.c195 if (next68klabel->cd_boot_blkno[0] != (int32_t)htobe32(b0)) {
196 next68klabel->cd_boot_blkno[0] = htobe32(b0);
199 if (next68klabel->cd_boot_blkno[1] != (int32_t)htobe32(b1)) {
200 next68klabel->cd_boot_blkno[1] = htobe32(b1);
H A Dhp700.c167 if (label.l.d_magic != htobe32(DISKMAGIC) ||
168 label.l.d_magic2 != htobe32(DISKMAGIC) ||
H A Damiga.c167 sum += htobe32(block[i]);
/netbsd-6-1-5-RELEASE/sys/arch/hp300/stand/mkboot/
H A Dmkboot.c158 lifd[1].dir_addr = htobe32(0);
159 lifd[1].dir_length = htobe32(0);
161 lifd[1].dir_exec = htobe32(0);
166 lifv.vol_addr = htobe32(btolifs(LIF_DIRSTART));
168 lifv.vol_dirsize = htobe32(btolifs(LIF_DIRSIZE));
176 lifd[0].dir_addr = htobe32(btolifs(LIF_FILESTART));
177 lifd[0].dir_length = htobe32(n);
180 lifd[0].dir_exec = htobe32(loadpoint);
181 lifv.vol_length = htobe32(be32toh(lifd[0].dir_addr) +
190 lifd[1].dir_addr = htobe32(lif
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/mips/atheros/
H A Dar_console.c86 while (!(uart[com_lsr] & htobe32(LSR_TXRDY)))
89 uart[com_data] = htobe32(c);
98 while (!(uart[com_lsr] & htobe32(LSR_RXRDY)))
110 while (!(uart[com_lsr] & htobe32(LSR_TSRE)))
/netbsd-6-1-5-RELEASE/sys/arch/hp700/stand/mkboot/
H A Dmkboot.c169 lifv->vol_addr = htobe32(hp700_btolifs(HP700_LIF_DIRSTART));
171 lifv->vol_dirsize = htobe32(hp700_btolifs(HP700_LIF_DIRSIZE));
173 lifv->vol_number = htobe32(1);
174 lifv->vol_lastvol = htobe32(1);
177 lifv->ipl_addr = htobe32(HP700_LIF_FILESTART);
187 lifd[optind].dir_addr = htobe32(hp700_btolifs(pos));
190 lifv->ipl_entry = htobe32(loadpoint + entry);
191 lifv->ipl_size = htobe32(hp700_lifstob(n));
196 lifd[optind].dir_implement = htobe32(loadpoint + entry);
201 lifd[optind].dir_length = htobe32(
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/mips/rmi/
H A Drmixl_com.c177 com0addr[com_lctl] = htobe32(LCR_DLAB);
178 com0addr[com_dlbl] = htobe32(rate & 0xff);
179 com0addr[com_dlbh] = htobe32(rate >> 8);
180 com0addr[com_lctl] = htobe32(LCR_8BITS); /* XXX */
181 com0addr[com_mcr] = htobe32(MCR_DTR|MCR_RTS);
182 com0addr[com_fifo] = htobe32(
197 com0addr[com_data] = htobe32((uint32_t)c);
/netbsd-6-1-5-RELEASE/sys/arch/sgimips/stand/sgivol/
H A Dsgivol.c355 volhdr->magic = htobe32(SGI_BOOT_BLOCK_MAGIC);
384 volhdr->dp.dp_nretries = htobe32(22);
387 htobe32(st.st_size / SGI_BOOT_BLOCK_BLOCKSIZE);
389 volhdr->partitions[10].blocks = htobe32(lbl.d_secperunit);
392 volhdr->partitions[10].type = htobe32(SGI_PTYPE_VOLUME);
393 volhdr->partitions[8].blocks = htobe32(volhdr_size);
395 volhdr->partitions[8].type = htobe32(SGI_PTYPE_VOLHDR);
398 htobe32((st.st_size / SGI_BOOT_BLOCK_BLOCKSIZE) - volhdr_size);
400 volhdr->partitions[0].blocks = htobe32(lbl.d_secperunit - volhdr_size);
402 volhdr->partitions[0].first = htobe32(volhdr_siz
[all...]
/netbsd-6-1-5-RELEASE/sys/crypto/nist_ctr_drbg/
H A Dnist_ctr_drbg.h100 return htobe32(x);
/netbsd-6-1-5-RELEASE/distrib/cdrom/macppc_installboot/
H A Dinstallboot.c175 bbinfop->bbi_block_count = htobe32(nblk);
176 bbinfop->bbi_block_size = htobe32(blocks[0].blocksize);
178 bbinfop->bbi_block_table[blk_i] = htobe32(blocks[blk_i].block);
/netbsd-6-1-5-RELEASE/sys/ufs/ffs/
H A Dffs_appleufs.c147 appleufs->ul_magic = htobe32(APPLEUFS_LABEL_MAGIC);
148 appleufs->ul_version = htobe32(APPLEUFS_LABEL_VERSION);
149 appleufs->ul_time = htobe32((u_int32_t)t);
/netbsd-6-1-5-RELEASE/sys/dev/ic/
H A Ddpt.c862 cp->cp_dataaddr = htobe32(xfer->dm_segs[0].ds_addr);
863 cp->cp_datalen = htobe32(xfer->dm_segs[0].ds_len);
872 sg->sg_addr = htobe32(ds->ds_addr);
873 sg->sg_len = htobe32(ds->ds_len);
875 cp->cp_dataaddr = htobe32(CCB_OFF(sc, ccb) +
878 cp->cp_datalen = htobe32(i * sizeof(struct eata_sg));
962 cp->cp_stataddr = htobe32(sc->sc_stppa);
984 htobe32(sc->sc_dmamap->dm_segs[0].ds_addr +
1067 cp->cp_stataddr = htobe32(sc->sc_stppa);
1068 cp->cp_dataaddr = htobe32(s
[all...]
H A Dsiopvar_common.h211 (((sc)->features & SF_CHIP_BE) ? htobe32((x)) : htole32((x)))
/netbsd-6-1-5-RELEASE/lib/libbluetooth/
H A Dsdp_record.c131 handle = htobe32(handle);
190 handle = htobe32(handle);
/netbsd-6-1-5-RELEASE/sys/arch/hpc/stand/include/machine/
H A Dendian.h163 #define htobe32(x) (x) macro
179 #define htobe32(x) bswap32((uint32_t)(x))
195 #define be32toh(x) htobe32(x)
/netbsd-6-1-5-RELEASE/sys/sys/
H A Dendian.h143 #define htobe32(x) (x) macro
159 #define htobe32(x) bswap32(__CAST(uint32_t, (x)))
175 #define be32toh(x) htobe32(x)
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c557 apm32 = htobe32(total_partitions);
560 apm32 = htobe32(sector_start);
562 apm32 = htobe32(nsectors);
657 apm32 = htobe32(diskStructure.totalSectors *
/netbsd-6-1-5-RELEASE/tools/m68k-elf2aout/sys/
H A Dexec_aout.h103 ((ex).a_midmag = htobe32((uint32_t) \
/netbsd-6-1-5-RELEASE/sys/fs/efs/
H A Defs_subr.c97 ocksum = htobe32(efs_sb_checksum(esb, 0));
98 ncksum = htobe32(efs_sb_checksum(esb, 1));
395 dex->ex_words[0] = htobe32(ex->ex_bn);
397 dex->ex_words[1] = htobe32(ex->ex_offset);

Completed in 153 milliseconds

123