/freebsd/sys/dev/gve/ |
H A D | gve_adminq.c | 266 .queue_resources_addr = htobe64(qres_dma->bus_addr), in gve_adminq_create_rx_queue() 273 htobe64(rx->desc_ring_mem.bus_addr); in gve_adminq_create_rx_queue() 275 htobe64(rx->data_ring_mem.bus_addr); in gve_adminq_create_rx_queue() 284 htobe64(rx->dqo.compl_ring_mem.bus_addr); in gve_adminq_create_rx_queue() 286 htobe64(rx->desc_ring_mem.bus_addr); in gve_adminq_create_rx_queue() 333 .queue_resources_addr = htobe64(qres_dma->bus_addr), in gve_adminq_create_tx_queue() 334 .tx_ring_addr = htobe64(tx->desc_ring_mem.bus_addr), in gve_adminq_create_tx_queue() 346 htobe64(tx->dqo.compl_ring_mem.bus_addr); in gve_adminq_create_tx_queue() 384 .parameter_value = htobe64(mtu), in gve_adminq_set_mtu() 427 aq_cmd.describe_device.device_descriptor_addr = htobe64( in gve_adminq_describe_device() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller50.sh | 109 *(uint64_t*)0x20000248 = htobe64(0); 110 *(uint64_t*)0x20000250 = htobe64(1); 117 *(uint64_t*)0x20000088 = htobe64(0); 118 *(uint64_t*)0x20000090 = htobe64(1);
|
H A D | syzkaller20.sh | 82 *(uint64_t*)0x20000008 = htobe64(0); 83 *(uint64_t*)0x20000010 = htobe64(1);
|
H A D | syzkaller60.sh | 88 *(uint64_t*)0x20000188 = htobe64(0); 89 *(uint64_t*)0x20000190 = htobe64(1);
|
H A D | syzkaller12.sh | 154 *(uint64_t*)0x20000188 = htobe64(0); 155 *(uint64_t*)0x20000190 = htobe64(1);
|
H A D | syzkaller19.sh | 138 *(uint64_t*)0x20000188 = htobe64(0); 139 *(uint64_t*)0x20000190 = htobe64(1);
|
H A D | syzkaller51.sh | 128 *(uint64_t*)0x20000048 = htobe64(0); 129 *(uint64_t*)0x20000050 = htobe64(1);
|
H A D | syzkaller15.sh | 162 NONFAILING(*(uint64_t*)0x10000188 = htobe64(0)); 163 NONFAILING(*(uint64_t*)0x10000190 = htobe64(1));
|
H A D | syzkaller55.sh | 122 *(uint64_t*)0x20000088 = htobe64(0); 123 *(uint64_t*)0x20000090 = htobe64(1);
|
/freebsd/sys/dev/ath/ |
H A D | if_ath_tdma.c | 517 t.rx_tsf = htobe64(rstamp); in ath_tdma_update() 518 t.beacon_tsf = htobe64(le64toh(ni->ni_tstamp.tsf)); in ath_tdma_update() 519 t.tsf64 = htobe64(tsf); in ath_tdma_update() 520 t.nextslot_tsf = htobe64(nextslot); in ath_tdma_update() 530 t.nexttbtt = htobe64(nexttbtt_full); in ath_tdma_update() 531 t.next_slot = htobe64(nextslot); in ath_tdma_update() 596 t.tsf64_old = htobe64(tsf); in ath_tdma_update() 597 t.tsf64_new = htobe64(tsf + tsfdelta); in ath_tdma_update()
|
/freebsd/sbin/ggate/shared/ |
H A D | ggate.h | 154 cinit->gc_flags = htobe64(cinit->gc_flags); in g_gate_swap2n_cinit() 174 sinit->gs_mediasize = htobe64(sinit->gs_mediasize); in g_gate_swap2n_sinit() 195 hdr->gh_offset = htobe64(hdr->gh_offset); in g_gate_swap2n_hdr() 197 hdr->gh_seq = htobe64(hdr->gh_seq); in g_gate_swap2n_hdr()
|
/freebsd/sys/powerpc/aim/ |
H A D | moea64_native.c | 396 pt->pte_hi = htobe64(ptehi); in moea64_pte_unset_locked() 457 pt->pte_hi = htobe64(ptehi); in moea64_pte_replace_inval_native() 462 pt->pte_lo = htobe64(properpt.pte_lo); in moea64_pte_replace_inval_native() 464 pt->pte_hi = htobe64(properpt.pte_hi); /* Release lock */ in moea64_pte_replace_inval_native() 489 pt->pte_hi = htobe64(properpt.pte_hi); in moea64_pte_replace_native() 621 moea64_part_table[0].pagetab = htobe64( in moea64_bootstrap_native() 729 "r" (htobe64(bitmask)), "r" (htobe64(LPTE_LOCKED)), in atomic_pte_lock() 808 pt->pte_lo = htobe64(pvo_pt->pte_lo); in moea64_insert_to_pteg_native() 810 pt->pte_hi = htobe64(pvo_pt->pte_hi); in moea64_insert_to_pteg_native()
|
H A D | mmu_radix.c | 845 *(u_long *)(ptep) = htobe64((u_long)((pte) | PG_V | RPTE_LEAF)); \ 851 *(u_long *)(ptep) = htobe64((u_long)(pa|RPTE_VALID|RPTE_SHIFT)); \ 923 *pte = htobe64(pa | RPTE_VALID | RPTE_LEAF | RPTE_EAA_R | \ in mmu_radix_kenter() 1018 if (!atomic_cmpset_long(pte, htobe64(origpte), htobe64(newpte))) in pmap_nofault() 1866 *pte = htobe64(pages | RPTE_VALID | RPTE_SHIFT); in mmu_radix_setup_pagetables() 1869 *pte = htobe64(pages | RPTE_VALID | RPTE_SHIFT); in mmu_radix_setup_pagetables() 1885 *pte = htobe64(pages | RPTE_VALID | RPTE_SHIFT); in mmu_radix_setup_pagetables() 2141 isa3_parttab[lpid].pagetab = htobe64(pagetab); in mmu_parttab_update() 2142 isa3_parttab[lpid].proctab = htobe64(proctab); in mmu_parttab_update() 2185 htobe64(RTS_SIZE | DMAP_TO_PHYS((vm_offset_t)kernel_pmap->pm_pml1) | in mmu_radix_proctab_init() [all …]
|
/freebsd/lib/libutil/ |
H A D | quotafile.c | 388 dqb64.dqb_bhardlimit = htobe64(dqb->dqb_bhardlimit); in quota_write64() 389 dqb64.dqb_bsoftlimit = htobe64(dqb->dqb_bsoftlimit); in quota_write64() 390 dqb64.dqb_curblocks = htobe64(dqb->dqb_curblocks); in quota_write64() 391 dqb64.dqb_ihardlimit = htobe64(dqb->dqb_ihardlimit); in quota_write64() 392 dqb64.dqb_isoftlimit = htobe64(dqb->dqb_isoftlimit); in quota_write64() 393 dqb64.dqb_curinodes = htobe64(dqb->dqb_curinodes); in quota_write64() 394 dqb64.dqb_btime = htobe64(dqb->dqb_btime); in quota_write64() 395 dqb64.dqb_itime = htobe64(dqb->dqb_itime); in quota_write64()
|
/freebsd/sys/powerpc/pseries/ |
H A D | phyp_vscsi.c | 519 login->max_cmd_length = htobe64(256); in vscsi_srp_login() 526 crq.iu_data = htobe64(xp->sc->srp_iu_phys + xp->srp_iu_offset); in vscsi_srp_login() 565 cmd->lun = htobe64(CAM_EXTLUN_BYTE_SWIZZLE(ccb->ccb_h.target_lun)); in vscsi_task_management() 581 crq.iu_data = htobe64(xp->sc->srp_iu_phys + xp->srp_iu_offset); in vscsi_task_management() 630 cmd->lun = htobe64(CAM_EXTLUN_BYTE_SWIZZLE(ccb->ccb_h.target_lun)); in vscsi_scsi_command() 649 chunk_addr = htobe64(xp->sc->srp_iu_phys + xp->srp_iu_offset + 20 + in vscsi_scsi_command() 661 chunk_addr = htobe64(segs[i].ds_addr); in vscsi_scsi_command() 691 chunk_addr = htobe64(segs[0].ds_addr); in vscsi_scsi_command() 709 crq.iu_data = htobe64(xp->sc->srp_iu_phys + xp->srp_iu_offset); in vscsi_scsi_command() 811 mad_adapter_info.buffer = htobe64(xp->sc->srp_iu_phys + xp->srp_iu_offset + 24); in vscsi_setup_bus() [all …]
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | qp.c | 140 bseg->addr = htobe64((uint64_t) wr->bind_mw.bind_info.addr); in set_bind_seg() 141 bseg->length = htobe64(wr->bind_mw.bind_info.length); in set_bind_seg() 158 rseg->raddr = htobe64(remote_addr); in set_raddr_seg() 166 aseg->swap_add = htobe64(wr->wr.atomic.swap); in set_atomic_seg() 167 aseg->compare = htobe64(wr->wr.atomic.compare_add); in set_atomic_seg() 169 aseg->swap_add = htobe64(wr->wr.atomic.compare_add); in set_atomic_seg() 189 dseg->addr = htobe64(sg->addr); in __set_data_seg() 195 dseg->addr = htobe64(sg->addr); in set_data_seg()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | qp.c | 191 rseg->raddr = htobe64(remote_addr); in set_raddr_seg() 202 aseg->swap_add = htobe64(swap); in set_atomic_seg() 203 aseg->compare = htobe64(compare_add); in set_atomic_seg() 205 aseg->swap_add = htobe64(compare_add); in set_atomic_seg() 222 dseg->addr = htobe64(sg->addr + offset); in set_data_ptr_seg() 230 dseg->addr = htobe64(sg->addr); in set_data_ptr_seg_atomic() 432 data->klm.address = htobe64(bind_info->addr); in set_umr_data_seg() 469 mkey->start_addr = htobe64(bind_info->addr); in set_umr_mkey_seg() 470 mkey->len = htobe64(bind_info->length); in set_umr_mkey_seg() 487 ctrl->mkey_mask = htobe64(MLX5_WQE_UMR_CTRL_MKEY_MASK_FREE | in set_umr_control_seg() [all …]
|
/freebsd/contrib/ofed/include/ |
H A D | byteorder.h | 46 #define cpu_to_be64 htobe64 60 #define cpu_to_be64p(x) htobe64(*((uint64_t *)x))
|
/freebsd/contrib/openbsm/compat/ |
H A D | endian.h | 127 #define htobe64(x) bswap64((x)) macro 141 #define htobe64(x) ((uint64_t)(x)) macro
|
/freebsd/sys/sys/ |
H A D | _endian.h | 108 #define htobe64(x) __bswap64((x)) 122 #define htobe64(x) ((uint64_t)(x)) 106 #define htobe64( global() macro 120 #define htobe64( global() macro
|
/freebsd/tests/include/ |
H A D | sys_endian_test.c | 103 #define H64(x) htobe64(x) in ATF_TC_BODY() 113 #define O64(x) htobe64(x) in ATF_TC_BODY()
|
H A D | endian_test.c | 106 #define H64(x) htobe64(x) in ATF_TC_BODY() 116 #define O64(x) htobe64(x) in ATF_TC_BODY()
|
/freebsd/sys/netpfil/pf/ |
H A D | pflow.c | 676 flow1->flow_packets = htobe64(st->packets[0]); in copy_flow_ipfix_4_data() 677 flow2->flow_packets = htobe64(st->packets[1]); in copy_flow_ipfix_4_data() 678 flow1->flow_octets = htobe64(st->bytes[0]); in copy_flow_ipfix_4_data() 679 flow2->flow_octets = htobe64(st->bytes[1]); in copy_flow_ipfix_4_data() 686 flow1->flow_start = flow2->flow_start = htobe64((time_second - in copy_flow_ipfix_4_data() 689 flow1->flow_start = flow2->flow_start = htobe64((pf_get_time() - in copy_flow_ipfix_4_data() 691 flow1->flow_finish = flow2->flow_finish = htobe64((pf_get_time() - in copy_flow_ipfix_4_data() 715 flow1->flow_packets = htobe64(st->packets[0]); in copy_flow_ipfix_6_data() 716 flow2->flow_packets = htobe64(st->packets[1]); in copy_flow_ipfix_6_data() 717 flow1->flow_octets = htobe64(st->bytes[0]); in copy_flow_ipfix_6_data() [all …]
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | addrinfo.c | 116 sib->sib_sid = htobe64(((uint64_t) ps << 16) + be16toh(port)); in ucma_set_sid() 119 sib->sib_sid_mask = htobe64(RDMA_IB_IP_PS_MASK); in ucma_set_sid() 121 sib->sib_sid_mask |= htobe64(RDMA_IB_IP_PORT_MASK); in ucma_set_sid()
|
/freebsd/sys/opencrypto/ |
H A D | ktls_ocf.c | 320 ad->seq = htobe64(m->m_epg_seqno); in ktls_ocf_tls_cbc_encrypt() 521 ad.seq = htobe64(seqno); in ktls_ocf_tls_cbc_decrypt() 578 *(uint64_t *)(crp->crp_iv + 4) ^= htobe64(m->m_epg_seqno); in ktls_ocf_tls12_aead_encrypt() 584 ad->seq = htobe64(m->m_epg_seqno); in ktls_ocf_tls12_aead_encrypt() 662 *(uint64_t *)(crp.crp_iv + 4) ^= htobe64(seqno); in ktls_ocf_tls12_aead_decrypt() 671 ad.seq = htobe64(seqno); in ktls_ocf_tls12_aead_decrypt() 805 *(uint64_t *)(crp->crp_iv + 4) ^= htobe64(m->m_epg_seqno); in ktls_ocf_tls13_aead_encrypt() 884 *(uint64_t *)(crp.crp_iv + 4) ^= htobe64(seqno); in ktls_ocf_tls13_aead_decrypt() 939 *(uint64_t *)(crp.crp_iv + 4) ^= htobe64(seqno); in ktls_ocf_tls13_aead_recrypt()
|