| /netbsd/src/usr.sbin/installboot/arch/ |
| D | macppc.c | 121 dm.sbBlkCount = htobe32(0); in writeapplepartmap() 154 pme.pmMapBlkCnt = htobe32(2); in writeapplepartmap() 155 pme.pmPyPartStart = htobe32(1); in writeapplepartmap() 156 pme.pmPartBlkCnt = htobe32(2); in writeapplepartmap() 157 pme.pmDataCnt = htobe32(2); in writeapplepartmap() 160 pme.pmPartStatus = htobe32(0x37); in writeapplepartmap() 171 pme.pmMapBlkCnt = htobe32(2); in writeapplepartmap() 172 pme.pmPyPartStart = htobe32(4); in writeapplepartmap() 173 pme.pmPartBlkCnt = htobe32(0x7fffffff); in writeapplepartmap() 174 pme.pmDataCnt = htobe32(0x7fffffff); in writeapplepartmap() [all …]
|
| D | next68k.c | 199 if (next68klabel->cd_boot_blkno[0] != (int32_t)htobe32(b0)) { in next68k_setboot() 200 next68klabel->cd_boot_blkno[0] = htobe32(b0); in next68k_setboot() 203 if (next68klabel->cd_boot_blkno[1] != (int32_t)htobe32(b1)) { in next68k_setboot() 204 next68klabel->cd_boot_blkno[1] = htobe32(b1); in next68k_setboot()
|
| D | sparc.c | 128 *((uint32_t *)bb) = htobe32(SUN_MAGIC); in sparc_setheader() 129 *((uint32_t *)bb + 1) = htobe32(SUN4_BASTART); in sparc_setheader()
|
| D | hp300.c | 197 if (label->d_magic != htobe32(DISKMAGIC) || in hp300_setboot() 198 label->d_magic2 != htobe32(DISKMAGIC) || in hp300_setboot() 253 htobe32(boot_offset / HP300_SECTSIZE + addr); in hp300_setboot()
|
| D | amiga.c | 133 block[1] = htobe32(0); in amiga_setboot() 134 block[1] = htobe32(0xffffffff - chksum(block, sumlen)); in amiga_setboot()
|
| D | hppa.c | 171 if (label.l.d_magic != htobe32(DISKMAGIC) || in hppa_setboot() 172 label.l.d_magic2 != htobe32(DISKMAGIC) || in hppa_setboot()
|
| /netbsd/src/sys/arch/hp300/stand/mkboot/ |
| D | mkboot.c | 158 lifd[1].dir_addr = htobe32(0); in main() 159 lifd[1].dir_length = htobe32(0); in main() 161 lifd[1].dir_exec = htobe32(0); in main() 167 lifv.vol_addr = htobe32(hp300_btolifs(HP300_LIF_DIRSTART)); in main() 169 lifv.vol_dirsize = htobe32(hp300_btolifs(HP300_LIF_DIRSIZE)); in main() 178 lifd[0].dir_addr = htobe32(hp300_btolifs(HP300_LIF_FILESTART)); in main() 179 lifd[0].dir_length = htobe32(nsec); in main() 182 lifd[0].dir_exec = htobe32(loadpoint); in main() 183 lifv.vol_length = htobe32(be32toh(lifd[0].dir_addr) + in main() 193 lifd[1].dir_addr = htobe32(lifv.vol_length); in main() [all …]
|
| /netbsd/src/sys/arch/sgimips/stand/sgivol/ |
| D | sgivol.c | 337 volhdr->magic = htobe32(SGI_BOOT_BLOCK_MAGIC); in init_volhdr() 366 volhdr->dp.dp_nretries = htobe32(22); in init_volhdr() 369 htobe32(st.st_size / SGI_BOOT_BLOCK_BLOCKSIZE); in init_volhdr() 371 volhdr->partitions[10].blocks = htobe32(lbl.d_secperunit); in init_volhdr() 374 volhdr->partitions[10].type = htobe32(SGI_PTYPE_VOLUME); in init_volhdr() 375 volhdr->partitions[8].blocks = htobe32(volhdr_size); in init_volhdr() 377 volhdr->partitions[8].type = htobe32(SGI_PTYPE_VOLHDR); in init_volhdr() 380 htobe32((st.st_size / SGI_BOOT_BLOCK_BLOCKSIZE) - volhdr_size); in init_volhdr() 382 volhdr->partitions[0].blocks = htobe32(lbl.d_secperunit - volhdr_size); in init_volhdr() 384 volhdr->partitions[0].first = htobe32(volhdr_size); in init_volhdr() [all …]
|
| /netbsd/src/sys/arch/mips/rmi/ |
| D | rmixl_com.c | 163 com0addr[com_lctl] = htobe32(LCR_DLAB); in rmixl_putchar_init() 164 com0addr[com_dlbl] = htobe32(rate & 0xff); in rmixl_putchar_init() 165 com0addr[com_dlbh] = htobe32(rate >> 8); in rmixl_putchar_init() 166 com0addr[com_lctl] = htobe32(LCR_8BITS); /* XXX */ in rmixl_putchar_init() 167 com0addr[com_mcr] = htobe32(MCR_DTR|MCR_RTS); in rmixl_putchar_init() 168 com0addr[com_fifo] = htobe32( in rmixl_putchar_init() 183 com0addr[com_data] = htobe32((uint32_t)c); in rmixl_putchar()
|
| /netbsd/src/sys/arch/mips/atheros/ |
| D | ar_console.c | 86 while (!(uart[com_lsr] & htobe32(LSR_TXRDY))) in earlycons_putc() 89 uart[com_data] = htobe32(c); in earlycons_putc() 98 while (!(uart[com_lsr] & htobe32(LSR_RXRDY))) in earlycons_getc() 110 while (!(uart[com_lsr] & htobe32(LSR_TSRE))) in earlycons_flush()
|
| /netbsd/src/usr.bin/mkubootimage/ |
| D | mkubootimage.c | 327 size_buf[0] = htobe32(st.st_size); in generate_header_uimg() 328 size_buf[1] = htobe32(0); in generate_header_uimg() 344 hdr->ih_magic = htobe32(image_magic); in generate_header_uimg() 345 hdr->ih_time = htobe32(repro_time ? repro_time : st.st_mtime); in generate_header_uimg() 346 hdr->ih_size = htobe32(dsize); in generate_header_uimg() 347 hdr->ih_load = htobe32(image_loadaddr); in generate_header_uimg() 348 hdr->ih_ep = htobe32(image_entrypoint); in generate_header_uimg() 349 hdr->ih_dcrc = htobe32(crc); in generate_header_uimg() 356 hdr->ih_hcrc = htobe32(crc); in generate_header_uimg() 428 size_buf[0] = htobe32(st.st_size); in write_image() [all …]
|
| /netbsd/src/sys/dev/ic/ |
| D | dpt.c | 871 cp->cp_dataaddr = htobe32(xfer->dm_segs[0].ds_addr); in dpt_ccb_map() 872 cp->cp_datalen = htobe32(xfer->dm_segs[0].ds_len); in dpt_ccb_map() 881 sg->sg_addr = htobe32(ds->ds_addr); in dpt_ccb_map() 882 sg->sg_len = htobe32(ds->ds_len); in dpt_ccb_map() 884 cp->cp_dataaddr = htobe32(CCB_OFF(sc, ccb) + in dpt_ccb_map() 887 cp->cp_datalen = htobe32(i * sizeof(struct eata_sg)); in dpt_ccb_map() 971 cp->cp_stataddr = htobe32(sc->sc_stppa); in dpt_scsipi_request() 993 htobe32(sc->sc_dmamap->dm_segs[0].ds_addr + in dpt_scsipi_request() 1076 cp->cp_stataddr = htobe32(sc->sc_stppa); in dpt_hba_inquire() 1077 cp->cp_dataaddr = htobe32(sc->sc_scrpa); in dpt_hba_inquire() [all …]
|
| /netbsd/src/sys/ufs/ffs/ |
| D | ffs_appleufs.c | 143 appleufs->ul_magic = htobe32(APPLEUFS_LABEL_MAGIC); in ffs_appleufs_set() 144 appleufs->ul_version = htobe32(APPLEUFS_LABEL_VERSION); in ffs_appleufs_set() 145 appleufs->ul_time = htobe32((u_int32_t)t); in ffs_appleufs_set()
|
| /netbsd/src/crypto/external/cpl/trousers/dist/src/include/ |
| D | portable_endian.h | 26 # define htobe32(x) OSSwapHostToBigInt32(x) macro 70 # define htobe32(x) htonl(x) macro 88 # define htobe32(x) (x) macro
|
| /netbsd/src/sys/dev/pci/ |
| D | if_mcx.c | 4276 in->cmd_field_select = htobe32( in mcx_iff() 4287 ctx->vp_mtu = htobe32(sc->sc_hardmtu); in mcx_iff() 4406 mbin->cmd_eq_ctx.eq_uar_size = htobe32( in mcx_create_eq() 4702 mbin->cmd_cq_ctx.cq_uar_size = htobe32( in mcx_create_cq() 4704 mbin->cmd_cq_ctx.cq_eqn = htobe32(eqn); in mcx_create_cq() 4705 mbin->cmd_cq_ctx.cq_period_max_count = htobe32( in mcx_create_cq() 4774 in->cmd_cqn = htobe32(cq->cq_n); in mcx_destroy_cq() 4854 mbin->rq_flags = htobe32(rq_flags); in mcx_create_rq() 4855 mbin->rq_cqn = htobe32(cqn); in mcx_create_rq() 4857 mbin->rq_wq.wq_pd = htobe32(sc->sc_pd); in mcx_create_rq() [all …]
|
| /netbsd/src/sys/arch/macppc/stand/installboot/ |
| D | installboot.c | 186 bbinfop->bbi_block_count = htobe32(nblk); in main() 187 bbinfop->bbi_block_size = htobe32(blocks[0].blocksize); in main() 191 bbinfop->bbi_block_table[blk_i] = htobe32(block); in main()
|
| /netbsd/src/usr.sbin/makefs/cd9660/ |
| D | cd9660_eltorito.c | 605 apm32 = htobe32(total_partitions); in cd9660_write_apm_partition_entry() 608 apm32 = htobe32(sector_start); in cd9660_write_apm_partition_entry() 610 apm32 = htobe32(nsectors); in cd9660_write_apm_partition_entry() 622 apm32 = htobe32(nsectors); in cd9660_write_apm_partition_entry() 625 apm32 = htobe32(part_status); in cd9660_write_apm_partition_entry() 716 apm32 = htobe32(diskStructure->totalSectors * in cd9660_write_boot()
|
| /netbsd/src/sys/dev/usb/ |
| D | if_athn_usb.c | 1321 addrs[j] = htobe32(addr); in athn_usb_read_rom() 1343 DPRINTFN(DBG_FN, sc, "addr %#x\n", htobe32(addr)); in athn_usb_read() 1348 addr = htobe32(addr); in athn_usb_read() 1370 usc->usc_wbuf[usc->usc_wcount].addr = htobe32(addr); in athn_usb_write() 1371 usc->usc_wbuf[usc->usc_wcount].val = htobe32(val); in athn_usb_write() 1496 intr_mask = htobe32(AR_IMR_SWBA); in athn_usb_newstate_cb() 1502 intr_mask = htobe32(AR_IMR_BMISS); in athn_usb_newstate_cb() 1710 rate.capflags |= htobe32(AR_RC_HT_FLAG); in athn_usb_create_node() 1714 rate.capflags |= htobe32(AR_RC_40_FLAG); in athn_usb_create_node() 1716 rate.capflags |= htobe32(AR_RC_SGI_FLAG); in athn_usb_create_node() [all …]
|
| /netbsd/src/sys/arch/hpc/stand/include/machine/ |
| D | endian.h | 163 #define htobe32(x) (x) macro 179 #define htobe32(x) bswap32((uint32_t)(x)) 195 #define be32toh(x) htobe32(x)
|
| /netbsd/src/lib/libbluetooth/ |
| D | sdp_record.c | 131 handle = htobe32(handle); in sdp_record_update() 190 handle = htobe32(handle); in sdp_record_remove()
|
| /netbsd/src/sys/dev/marvell/ |
| D | mvcesa.c | 243 ses->ses_key[5] = htobe32(ses->ses_key[5]); in mvcesa_newsession() 244 ses->ses_key[4] = htobe32(ses->ses_key[4]); in mvcesa_newsession() 245 ses->ses_key[3] = htobe32(ses->ses_key[3]); in mvcesa_newsession() 246 ses->ses_key[2] = htobe32(ses->ses_key[2]); in mvcesa_newsession() 250 ses->ses_key[1] = htobe32(ses->ses_key[1]); in mvcesa_newsession() 251 ses->ses_key[0] = htobe32(ses->ses_key[0]); in mvcesa_newsession()
|
| /netbsd/src/sys/fs/efs/ |
| D | efs_subr.c | 99 ocksum = htobe32(efs_sb_checksum(esb, 0)); in efs_sb_validate() 100 ncksum = htobe32(efs_sb_checksum(esb, 1)); in efs_sb_validate() 397 dex->ex_words[0] = htobe32(ex->ex_bn); in efs_extent_to_dextent() 399 dex->ex_words[1] = htobe32(ex->ex_offset); in efs_extent_to_dextent()
|
| /netbsd/src/sys/sys/ |
| D | endian.h | 145 #define htobe32(x) __CAST(uint32_t, (x)) macro 161 #define htobe32(x) bswap32(__CAST(uint32_t, (x))) 177 #define be32toh(x) htobe32(x)
|
| /netbsd/src/external/bsd/mdocml/dist/ |
| D | test-be32toh.c | 10 return htobe32(be32toh(0x3a7d0cdb)) != 0x3a7d0cdb; in main()
|
| /netbsd/src/external/bsd/tmux/dist/compat/ |
| D | imsg-buffer.c | 37 #undef htobe32 38 #define htobe32 htonl macro 198 v = htobe32(value); in ibuf_add_n32() 312 v = htobe32(value); in ibuf_set_n32()
|