/freebsd/tools/tools/ath/athalq/ |
H A D | main.c | 147 if (be16toh(a->hdr.len) > buflen) { in main() 149 argv[0], be16toh(a->hdr.len), in main() 154 switch (be16toh(a->hdr.op)) { in main() 206 be16toh(a->hdr.op), in main() 207 be16toh(a->hdr.len)); in main() 213 buflen -= (be16toh(a->hdr.len) in main() 216 &buf[be16toh(a->hdr.len) + sizeof(struct if_ath_alq_hdr)], in main() 217 READBUF_SIZE - (be16toh(a->hdr.len) in main()
|
H A D | ar5210_ds.c | 160 switch (be16toh(a->hdr.op)) { in ar5210_alq_payload() 175 be16toh(a->hdr.op), be16toh(a->hdr.len)); in ar5210_alq_payload()
|
H A D | ar5211_ds.c | 161 switch (be16toh(a->hdr.op)) { in ar5211_alq_payload() 176 be16toh(a->hdr.op), be16toh(a->hdr.len)); in ar5211_alq_payload()
|
H A D | ar5212_ds.c | 207 switch (be16toh(a->hdr.op)) { in ar5212_alq_payload() 222 be16toh(a->hdr.op), be16toh(a->hdr.len)); in ar5212_alq_payload()
|
/freebsd/contrib/ofed/libibumad/ |
H A D | umad_str.c | 144 uint16_t status = be16toh(_status); in umad_common_mad_status_str() 167 uint16_t status = be16toh(_status); in umad_sa_mad_status_str() 193 switch(be16toh(attr_id)) { in umad_common_attr_str() 207 switch(be16toh(attr_id)) { in umad_sm_attr_str() 253 switch(be16toh(attr_id)) { in umad_sa_attr_str() 307 switch(be16toh(attr_id)) { in umad_cm_attr_str()
|
/freebsd/lib/libkvm/ |
H A D | kvm_powerpc.c | 66 if (be16toh(eh->e_type) != ET_CORE) in valid_elf_header() 68 if (be16toh(eh->e_machine) != EM_PPC) in valid_elf_header() 121 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs() 154 nph = be16toh(vm->eh->e_phnum); in powerpc_va2off() 158 ph = (void *)((uintptr_t)ph + be16toh(vm->eh->e_phentsize)); in powerpc_va2off()
|
/freebsd/sbin/ggate/shared/ |
H A D | ggate.h | 129 ver->gv_version = be16toh(ver->gv_version); in g_gate_swap2h_version() 130 ver->gv_error = be16toh(ver->gv_error); in g_gate_swap2h_version() 146 cinit->gc_nconn = be16toh(cinit->gc_nconn); in g_gate_swap2h_cinit() 166 sinit->gs_error = be16toh(sinit->gs_error); in g_gate_swap2h_sinit() 187 hdr->gh_error = be16toh(hdr->gh_error); in g_gate_swap2h_hdr()
|
/freebsd/sys/dev/gve/ |
H A D | gve_adminq.c | 65 uint16_t option_length = be16toh(option->option_length); in gve_parse_device_option() 66 uint16_t option_id = be16toh(option->option_id); in gve_parse_device_option() 160 char *desc_end = (char *)descriptor + be16toh(descriptor->total_length); in gve_process_device_options() 161 const int num_options = be16toh(descriptor->num_device_options); in gve_process_device_options() 169 (char *)(dev_opt + 1) + be16toh(dev_opt->option_length) > desc_end) { in gve_process_device_options() 180 dev_opt = (void *)((char *)(dev_opt + 1) + be16toh(dev_opt->option_length)); in gve_process_device_options() 399 be16toh(dev_op_jumbo_frames->max_mtu)); in gve_enable_supported_features() 400 priv->max_mtu = be16toh(dev_op_jumbo_frames->max_mtu); in gve_enable_supported_features() 482 priv->num_event_counters = be16toh(desc->counters); in gve_adminq_describe_device() 483 priv->default_num_queues = be16toh(desc->default_num_queues); in gve_adminq_describe_device() [all …]
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 84 nm_prdis("ip total length %u", be16toh(ip->tot_len)); in gso_fix_segment() 87 iph->id = htobe16(be16toh(iph->id) + idx); in gso_fix_segment() 88 nm_prdis("ip identification %u", be16toh(iph->id)); in gso_fix_segment() 93 nm_prdis("IP csum %x", be16toh(iph->check)); in gso_fix_segment() 131 nm_prdis("TCP/UDP csum %x", be16toh(*check)); in gso_fix_segment() 286 ethertype = be16toh(*((uint16_t *) in bdg_mismatch_datapath()
|
/freebsd/contrib/ofed/include/ |
H A D | byteorder.h | 51 #define be16_to_cpu be16toh 52 #define __be16_to_cpu be16toh 65 #define be16_to_cpup(x) be16toh(*((uint16_t *)x))
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | cq.c | 291 wqe_index = be16toh(cqe->wqe_index); in mlx4_parse_cqe() 296 wqe_index = be16toh(cqe->wqe_index); in mlx4_parse_cqe() 346 wc->slid = be16toh(cqe->rlid); in mlx4_parse_cqe() 356 wc->sl = be16toh(cqe->sl_vid) >> 13; in mlx4_parse_cqe() 358 wc->sl = be16toh(cqe->sl_vid) >> 12; in mlx4_parse_cqe() 612 return (uint32_t)be16toh(cq->cqe->rlid); in mlx4_cq_read_wc_slid() 620 return be16toh(cq->cqe->sl_vid) >> 13; in mlx4_cq_read_wc_sl() 622 return be16toh(cq->cqe->sl_vid) >> 12; in mlx4_cq_read_wc_sl() 743 mlx4_free_srq_wqe(srq, be16toh(cqe->wqe_index)); in __mlx4_cq_clean() 747 mlx4_free_srq_wqe(srq, be16toh(cqe->wqe_index)); in __mlx4_cq_clean()
|
/freebsd/contrib/libfido2/openbsd-compat/ |
H A D | openbsd-compat.h | 21 #define be16toh(x) OSSwapBigToHostInt16((x)) macro 35 #define be16toh(x) ntohs((x)) macro
|
/freebsd/tools/tools/vt/mkkfont/ |
H A D | mkkfont.c | 96 be32toh(fm.vfm_src), be16toh(fm.vfm_dst), in print_mappings() 97 be16toh(fm.vfm_len)); in print_mappings()
|
/freebsd/sys/kern/ |
H A D | kern_uuid.c | 278 id->time.x.low, id->time.x.mid, id->time.x.hi, be16toh(id->seq), in snprintf_uuid() 279 be16toh(id->node[0]), be16toh(id->node[1]), be16toh(id->node[2])); in snprintf_uuid()
|
/freebsd/contrib/openbsm/compat/ |
H A D | endian.h | 132 #define be16toh(x) bswap16((x)) macro 146 #define be16toh(x) ((uint16_t)(x)) macro
|
/freebsd/sys/sys/ |
H A D | _endian.h | 113 #define be16toh(x) __bswap16((x)) 127 #define be16toh(x) ((uint16_t)(x)) 111 #define be16toh( global() macro 125 #define be16toh( global() macro
|
/freebsd/tests/include/ |
H A D | sys_endian_test.c | 70 #define H16(x) be16toh(x) in ATF_TC_BODY() 80 #define O16(x) be16toh(x) in ATF_TC_BODY()
|
H A D | endian_test.c | 73 #define H16(x) be16toh(x) in ATF_TC_BODY() 83 #define O16(x) be16toh(x) in ATF_TC_BODY()
|
/freebsd/sys/geom/label/ |
H A D | g_label_gpt.c | 60 ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str); in sbuf_nprintf_utf16() 64 c = (bo == BIG_ENDIAN) ? be16toh(*str) in sbuf_nprintf_utf16()
|
/freebsd/sys/dev/usb/net/ |
H A D | if_usie.c | 850 len = be16toh(rxd->hip.len) & USIE_HIP_IP_LEN_MASK; in usie_if_rx_callback() 861 (be16toh(rxd->desc_type) & USIE_TYPE_MASK) != USIE_IP_RX) { in usie_if_rx_callback() 871 switch (be16toh(rxd->ethhdr.ether_type)) { in usie_if_rx_callback() 1103 hip->id, be16toh(hip->len), actlen, pad); in usie_if_status_cb() 1117 be16toh(lsi->len)); in usie_if_status_cb() 1469 switch (be16toh(cns->obj)) { in usie_cns_rsp() 1482 sc->sc_rssi = be16toh(*(int16_t *)(cns + 1)); in usie_cns_rsp() 1551 be16toh(hip->len), hip->id, hip->param); in usie_hip_rsp() 1565 be16toh(cns->obj), cns->op, cns->rsv0, in usie_hip_rsp() 1577 j = be16toh(hip->len); in usie_hip_rsp()
|
/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_tls.c | 917 tgr->tls_vmajor = be16toh(tls_hdr_pkt->version) >> 8; in do_rx_tls_cmp() 918 tgr->tls_vminor = be16toh(tls_hdr_pkt->version) & 0xff; in do_rx_tls_cmp() 1024 if (be16toh(hdr->version) != tls_ofld->rx_version) { in do_rx_data_tls() 1026 __func__, toep->tid, be16toh(hdr->version)); in do_rx_data_tls() 1030 if (be16toh(hdr->length) < sizeof(*hdr)) { in do_rx_data_tls() 1032 __func__, toep->tid, be16toh(hdr->length)); in do_rx_data_tls() 1038 if (len < be16toh(hdr->length)) { in do_rx_data_tls() 1040 __func__, toep->tid, len, be16toh(hdr->length)); in do_rx_data_tls() 1065 __func__, toep->tid, hdr->type, be16toh(hdr->length)); in do_rx_data_tls()
|
/freebsd/sys/dev/cxgbe/cxgbei/ |
H A D | cxgbei.c | 201 uint16_t len_ddp = be16toh(cpl->pdu_len_ddp); in do_rx_iscsi_hdr() 202 uint16_t len = be16toh(cpl->len); in do_rx_iscsi_hdr() 240 MPASS(m->m_pkthdr.len == be16toh(cpl->len) + sizeof(*cpl)); in do_rx_iscsi_data() 277 be16toh(cpl->len), icp); in do_rx_iscsi_data() 468 pdu_len = be16toh(cpl->len); /* includes everything. */ in do_rx_iscsi_ddp() 592 uint16_t len = be16toh(cpl->len); in do_rx_iscsi_cmp() 621 pdu_len = G_ISCSI_PDU_LEN(be16toh(cpl->pdu_len_ddp)); in do_rx_iscsi_cmp()
|
/freebsd/tools/build/cross-build/include/mac/sys/ |
H A D | endian.h | 64 #define be16toh(x) bswap16((x)) macro 78 #define be16toh(x) ((uint16_t)(x)) macro
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | cq.c | 152 wqe_ctr = be16toh(cqe->wqe_counter); in handle_responder_lazy() 195 wqe_ctr = be16toh(cqe->wqe_counter); in handle_responder() 250 wc->slid = be16toh(cqe->slid); in handle_responder() 556 wqe_ctr = be16toh(cqe64->wqe_counter); in mlx5_parse_cqe() 654 wqe_ctr = be16toh(cqe64->wqe_counter); in mlx5_parse_cqe() 668 wqe_ctr = be16toh(cqe64->wqe_counter); in mlx5_parse_cqe() 1158 return (uint32_t)be16toh(cq->cqe64->slid); in mlx5_cq_read_wc_slid() 1193 return be16toh(cq->cqe64->vlan_info); in mlx5_cq_read_wc_cvlan() 1348 be16toh(cqe64->wqe_counter)); in free_res_cqe() 1355 be16toh(cqe64->wqe_counter)); in free_res_cqe()
|
/freebsd/sys/compat/linuxkpi/common/include/asm/ |
H A D | byteorder.h | 64 #define __be16_to_cpu(x) be16toh(x) 89 #define __be16_to_cpup(x) be16toh(*((const uint16_t *)(x)))
|