Home
last modified time | relevance | path

Searched refs:htobe16 (Results 1 – 25 of 52) sorted by relevance

123

/netbsd/src/sys/arch/hp300/stand/mkboot/
Dmkboot.c157 lifd[1].dir_type = htobe16(0xFFFF); in main()
160 lifd[1].dir_flag = htobe16(0x00FF); in main()
165 lifv.vol_id = htobe16(HP300_VOL_ID); in main()
168 lifv.vol_oct = htobe16(HP300_VOL_OCT); in main()
170 lifv.vol_version = htobe16(1); in main()
177 lifd[0].dir_type = htobe16(HP300_DIR_TYPE); in main()
181 lifd[0].dir_flag = htobe16(HP300_DIR_FLAG); in main()
192 lifd[1].dir_type = htobe16(HP300_DIR_TYPE); in main()
196 lifd[1].dir_flag = htobe16(HP300_DIR_FLAG); in main()
209 lifd[2].dir_type = htobe16(HP300_DIR_TYPE); in main()
[all …]
/netbsd/src/sys/arch/macppc/stand/fixcoff/
Dfixcoff.c171 *(uint16_t *)aoh.magic = htobe16(RS6K_AOUTHDR_ZMAGIC); in main()
178 *(uint16_t *)(aoh.o_snentry) = htobe16(i+1); in main()
179 *(uint16_t *)(aoh.o_sntext) = htobe16(i+1); in main()
181 *(uint16_t *)(aoh.o_sndata) = htobe16(i+1); in main()
183 *(uint16_t *)(aoh.o_snbss) = htobe16(i+1); in main()
/netbsd/src/sys/arch/sgimips/stand/sgivol/
Dsgivol.c338 volhdr->root = htobe16(0); in init_volhdr()
339 volhdr->swap = htobe16(1); in init_volhdr()
350 htobe16(st.st_size / (SGIVOL_NBTOOL_NSECS * SGIVOL_NBTOOL_NTRACKS)); in init_volhdr()
352 volhdr->dp.dp_cyls = htobe16(lbl.d_ncylinders); in init_volhdr()
356 volhdr->dp.dp_trks0 = htobe16(SGIVOL_NBTOOL_NTRACKS); in init_volhdr()
357 volhdr->dp.dp_secs = htobe16(SGIVOL_NBTOOL_NSECS); in init_volhdr()
358 volhdr->dp.dp_secbytes = htobe16(SGI_BOOT_BLOCK_BLOCKSIZE); in init_volhdr()
359 volhdr->dp.dp_interleave = htobe16(1); in init_volhdr()
361 volhdr->dp.dp_trks0 = htobe16(lbl.d_ntracks); in init_volhdr()
362 volhdr->dp.dp_secs = htobe16(lbl.d_nsectors); in init_volhdr()
[all …]
/netbsd/src/sys/dev/pci/
Dif_mcx.c2846 htobe16(MCX_CMD_QUERY_PAGES_BOOT)) != 0) { in mcx_attach()
2862 htobe16(MCX_CMD_QUERY_PAGES_INIT)) != 0) { in mcx_attach()
2873 htobe16(MCX_CMD_QUERY_PAGES_REGULAR)) != 0) { in mcx_attach()
3081 mcx_teardown_hca(sc, htobe16(MCX_CMD_TEARDOWN_HCA_GRACEFUL)); in mcx_attach()
3354 in->cmd_opcode = htobe16(MCX_CMD_ENABLE_HCA); in mcx_enable_hca()
3355 in->cmd_op_mod = htobe16(0); in mcx_enable_hca()
3356 in->cmd_function_id = htobe16(0); in mcx_enable_hca()
3392 in->cmd_opcode = htobe16(MCX_CMD_TEARDOWN_HCA); in mcx_teardown_hca()
3393 in->cmd_op_mod = htobe16(0); in mcx_teardown_hca()
3641 in->cmd_opcode = htobe16(MCX_CMD_ACCESS_REG); in mcx_access_hca_reg()
[all …]
/netbsd/src/usr.sbin/installboot/arch/
Dmacppc.c119 dm.sbSig = htobe16(APPLE_DRVR_MAP_MAGIC); in writeapplepartmap()
120 dm.sbBlockSize = htobe16(512); in writeapplepartmap()
153 pme.pmSig = htobe16(APPLE_PART_MAP_ENTRY_MAGIC); in writeapplepartmap()
170 pme.pmSig = htobe16(APPLE_PART_MAP_ENTRY_MAGIC); in writeapplepartmap()
Dalpha.c411 bb16[BB_ADJUST_OFFSET + 2] = htobe16(SUN_DKMAGIC) - bb16[254]; in sun_bootstrap()
453 if (bb16[254] != htobe16(SUN_DKMAGIC)) in check_sparc()
455 htobe16(SUN_DKMAGIC)); in check_sparc()
Dnext68k.c223 *checksum = htobe16(nextstep_checksum (next68klabel, in next68k_setboot()
/netbsd/src/sys/net/agr/
Dif_agrether_hash.c90 if (etype == htobe16(ETHERTYPE_VLAN)) { in agrether_hashmbuf()
111 if (etype == htobe16(ETHERTYPE_IP)) { in agrether_hashmbuf()
126 } else if (etype == htobe16(ETHERTYPE_IPV6)) { in agrether_hashmbuf()
Dieee8023ad_lacp.c187 info->lip_systemid.lsi_prio = htobe16(LACP_SYSTEM_PRIO); in lacp_fill_actorinfo()
190 info->lip_portid.lpi_prio = htobe16(LACP_PORT_PRIO); in lacp_fill_actorinfo()
191 info->lip_portid.lpi_portno = htobe16(port->port_ifp->if_index); in lacp_fill_actorinfo()
223 du->ldu_eh.ether_type = htobe16(ETHERTYPE_SLOWPROTOCOLS); in lacp_xmit_lacpdu()
700 return htobe16(key); in lacp_compose_key()
/netbsd/src/crypto/external/cpl/trousers/dist/src/include/
Dportable_endian.h21 # define htobe16(x) OSSwapHostToBigInt16(x) macro
65 # define htobe16(x) htons(x) macro
83 # define htobe16(x) (x) macro
/netbsd/src/sys/dev/gpib/
Dcs80bus.c296 ssm.c_refm = htobe16(REF_MASK); in cs80reset()
297 ssm.c_fefm = htobe16(FEF_MASK); in cs80reset()
298 ssm.c_aefm = htobe16(AEF_MASK); in cs80reset()
299 ssm.c_iefm = htobe16(IEF_MASK); in cs80reset()
/netbsd/src/sys/ufs/ffs/
Dffs_appleufs.c69 res += htobe16(*(u_char *)p<<8); in ffs_appleufs_cksum()
146 appleufs->ul_namelen = htobe16(namelen); in ffs_appleufs_set()
/netbsd/src/sys/arch/hpc/stand/include/machine/
Dendian.h162 #define htobe16(x) (x) macro
178 #define htobe16(x) bswap16((uint16_t)(x))
194 #define be16toh(x) htobe16(x)
/netbsd/src/sys/arch/evbarm/mpcsa/
Dmpcsa_leds.c199 return (sc->sc_pinstate & htobe16(1U << pin)) ? 1 : 0; in mpcsa_leds_pin_read()
214 sc->sc_pinstate |= htobe16(1U << pin); in mpcsa_leds_pin_write()
216 sc->sc_pinstate &= htobe16(~(1U << pin)); in mpcsa_leds_pin_write()
/netbsd/src/sys/dev/ic/
Dqemufwcfg.c52 #define FWCFG_SEL_SWAP htobe16
57 #define FWCFG_SEL_SWAP htobe16
Dtpm.c510 command.hdr.tag = htobe16(TPM_TAG_RQU_COMMAND); in tpm12_rng()
650 command.hdr.tag = htobe16(TPM2_ST_NO_SESSIONS); in tpm20_rng()
653 command.bytesRequested = htobe16(sizeof(response.bytes)); in tpm20_rng()
/netbsd/src/sys/sys/
Dendian.h144 #define htobe16(x) __CAST(uint16_t, (x)) macro
160 #define htobe16(x) bswap16(__CAST(uint16_t, (x)))
176 #define be16toh(x) htobe16(x)
/netbsd/src/external/bsd/tmux/dist/compat/
Dimsg-buffer.c35 #undef htobe16
36 #define htobe16 htons macro
185 v = htobe16(value); in ibuf_add_n16()
299 v = htobe16(value); in ibuf_set_n16()
/netbsd/src/lib/libbluetooth/
Dsdp_session.c187 pdu.tid = htobe16(ss->tid); in _sdp_send_pdu()
188 pdu.len = htobe16(len); in _sdp_send_pdu()
/netbsd/src/usr.sbin/makefs/cd9660/
Dcd9660_eltorito.c599 apm16 = htobe16(0x504d); in cd9660_write_apm_partition_entry()
710 apm16 = htobe16(0x4552); in cd9660_write_boot()
713 apm16 = htobe16(512); in cd9660_write_boot()
720 apm16 = htobe16(1); in cd9660_write_boot()
/netbsd/src/sys/arch/amiga/stand/bootblock/elf2bb/
Delf2bb.c291 *(uint16_t *)(buffer + 14) /* reltab */ = htobe16(tsz + dsz); in main()
367 tmp16 = htobe16(value); in main()
397 tmp16 = htobe16(addrdiff); in main()
/netbsd/src/sys/dev/usb/
Dif_athn_usb.c1046 htc->payload_len = htobe16(sizeof(*msg) + len); in athn_usb_htc_msg()
1049 msg->msg_id = htobe16(msg_id); in athn_usb_htc_msg()
1175 msg.svc_id = htobe16(svc_id); in athn_usb_htc_connect_svc()
1256 htc->payload_len = htobe16(sizeof(*wmi) + ilen); in athn_usb_wmi_xcmd()
1259 wmi->cmd_id = htobe16(cmd_id); in athn_usb_wmi_xcmd()
1261 wmi->seq_no = htobe16(usc->usc_wmi_seq_no); in athn_usb_wmi_xcmd()
1687 sta.associd = htobe16(ni->ni_associd); in athn_usb_create_node()
1694 sta.flags |= htobe16(AR_HTC_STA_HT); in athn_usb_create_node()
1783 mode = htobe16(IEEE80211_IS_CHAN_2GHZ(curchan) ? in athn_usb_switch_chan()
1999 htc->payload_len = htobe16(sizeof(*bcn) + m->m_pkthdr.len); in athn_usb_swba()
[all …]
/netbsd/src/sys/dev/pci/ixgbe/
Dif_fdir.c135 input.formatted.vlan_id = htobe16(mp->m_pkthdr.ether_vtag); in ixgbe_atr()
/netbsd/src/tools/compat/
Dcompat_defs.h1100 #define htobe16(x) (x) macro
1119 #define htobe16(x) bswap16((u_int16_t)(x)) macro
1138 #define be16toh(x) htobe16(x)
/netbsd/src/sys/arch/dreamcast/dev/maple/
Dmmemcard.c466 sc->sc_reqr.block = htobe16(pt->pt_info.minblk); in mmem_intr()
832 sc->sc_reqr.block = htobe16(bp->b_rawblkno); in mmemstart_bp()
864 sc->sc_reqw.block = htobe16(bp->b_rawblkno); in mmemstart_write2()

123