/openbsd/sys/crypto/ |
H A D | chachapoly.c | 134 uint64_t le_nonce = htole64(nonce); in chacha20poly1305_encrypt() 149 b.lens[0] = htole64(ad_len); in chacha20poly1305_encrypt() 150 b.lens[1] = htole64(src_len); in chacha20poly1305_encrypt() 178 uint64_t le_nonce = htole64(nonce); in chacha20poly1305_decrypt() 195 b.lens[0] = htole64(ad_len); in chacha20poly1305_decrypt() 196 b.lens[1] = htole64(dst_len); in chacha20poly1305_decrypt()
|
/openbsd/sbin/fdisk/ |
H A D | gpt.c | 366 sig = htole64(gh.gh_sig); in GPT_print() 704 legh.gh_sig = htole64(GPTSIGNATURE); in GPT_write() 708 legh.gh_lba_self = htole64(GPTSECTOR); in GPT_write() 709 legh.gh_lba_alt = htole64(altgh); in GPT_write() 710 legh.gh_lba_start = htole64(gh.gh_lba_start); in GPT_write() 711 legh.gh_lba_end = htole64(gh.gh_lba_end); in GPT_write() 713 legh.gh_part_lba = htole64(GPTSECTOR + 1); in GPT_write() 726 legp[pn].gp_attrs = htole64(gp[pn].gp_attrs); in GPT_write() 738 legh.gh_lba_self = htole64(altgh); in GPT_write() 739 legh.gh_lba_alt = htole64(GPTSECTOR); in GPT_write() [all …]
|
H A D | part.c | 1022 t = htole64(prt->prt_bs - off); in PRT_prt_to_dp() 1026 t = htole64(UINT32_MAX); in PRT_prt_to_dp() 1028 t = htole64(prt->prt_ns); in PRT_prt_to_dp()
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | emul.c | 59 t = htole64(p[0]); in swap_quad() 60 p[0] = htole64(p[1]); in swap_quad()
|
/openbsd/sys/dev/pci/drm/include/asm/ |
H A D | byteorder.h | 24 #define cpu_to_le64(x) htole64(x)
|
/openbsd/sys/dev/pci/ |
H A D | if_qwx_pci.c | 2483 c->rlen = htole64(len); in qwx_mhi_init_event_rings() 2504 c->rbase = htole64(paddr); in qwx_mhi_init_cmd_ring() 2505 c->rp = htole64(paddr); in qwx_mhi_init_cmd_ring() 2506 c->wp = htole64(paddr); in qwx_mhi_init_cmd_ring() 2507 c->rlen = htole64(len); in qwx_mhi_init_cmd_ring() 2556 c->wp = htole64(ring->wp); in qwx_mhi_cmd_ring_submit() 2678 e->ptr = htole64(paddr); in qwx_mhi_submit_xfer() 2725 c->rbase = htole64(paddr); in qwx_mhi_start_channel() 2726 c->rp = htole64(ring->rp); in qwx_mhi_start_channel() 2727 c->wp = htole64(ring->wp); in qwx_mhi_start_channel() [all …]
|
H A D | if_qwz_pci.c | 2390 c->rlen = htole64(len); in qwz_mhi_init_event_rings() 2411 c->rbase = htole64(paddr); in qwz_mhi_init_cmd_ring() 2412 c->rp = htole64(paddr); in qwz_mhi_init_cmd_ring() 2413 c->wp = htole64(paddr); in qwz_mhi_init_cmd_ring() 2414 c->rlen = htole64(len); in qwz_mhi_init_cmd_ring() 2463 c->wp = htole64(ring->wp); in qwz_mhi_cmd_ring_submit() 2585 e->ptr = htole64(paddr); in qwz_mhi_submit_xfer() 2632 c->rbase = htole64(paddr); in qwz_mhi_start_channel() 2633 c->rp = htole64(ring->rp); in qwz_mhi_start_channel() 2634 c->wp = htole64(ring->wp); in qwz_mhi_start_channel() [all …]
|
H A D | if_nxe.c | 1099 ctx->ctx_cmd_consumer_addr = htole64(dva + sizeof(dmamem->ctx)); in nxe_up() 1112 htole64(NXE_DMA_DVA(sc->sc_cmd_ring->nr_dmamem)); in nxe_up() 1122 htole64(NXE_DMA_DVA(sc->sc_status_ring->nr_dmamem)); in nxe_up() 1138 ring->r_addr = htole64(NXE_DMA_DVA(nr->nr_dmamem)); in nxe_up() 1360 txd->tx_addr_4 = htole64(segs[3].ds_addr); in nxe_start() 1363 txd->tx_addr_3 = htole64(segs[2].ds_addr); in nxe_start() 1366 txd->tx_addr_2 = htole64(segs[1].ds_addr); in nxe_start() 1369 txd->tx_addr_1 = htole64(segs[0].ds_addr); in nxe_start() 1533 rxd->rx_addr = htole64(pkt->pkt_dmap->dm_segs[0].ds_addr); in nxe_rx_start()
|
H A D | if_stgereg.h | 611 htole64(FRAG_ADDR(__ds->ds_dmamap->dm_segs[0].ds_addr + 2) |\ 614 htole64((uint64_t)STGE_CDRXADDR((sc), STGE_NEXTRX((x)))); \
|
H A D | if_bnxt.c | 1393 txring[idx].addr = htole64(map->dm_segs[0].ds_addr); in bnxt_start() 1482 htole64(bs->bs_map->dm_segs[i].ds_addr); in bnxt_start() 2208 rxring[p].addr = htole64(bs->bs_map->dm_segs[0].ds_addr); in bnxt_rx_fill_slots() 2437 req->resp_addr = htole64(BNXT_DMA_DVA(softc->sc_cmd_resp)); in bnxt_hwrm_cmd_hdr_init() 2468 htole64(BNXT_DMA_DVA(softc->sc_cmd_resp)); in _hwrm_send_message() 3054 req.page_tbl_addr = htole64(ring->paddr); in bnxt_hwrm_ring_alloc() 3119 req.stats_dma_addr = htole64(paddr); in bnxt_hwrm_stat_ctx_alloc() 3192 req.mc_tbl_addr = htole64(mc_addr); in bnxt_hwrm_cfa_l2_set_rx_mask() 3250 req.l2_filter_id = htole64(vnic->filter_id); in bnxt_hwrm_free_filter() 3271 req.ring_grp_tbl_addr = htole64(rss_table); in bnxt_hwrm_vnic_rss_cfg() [all …]
|
H A D | if_casvar.h | 182 #define CAS_DMA_WRITE(v) htole64(v)
|
H A D | if_stge.c | 541 htole64(FRAG_ADDR(dmamap->dm_segs[seg].ds_addr) | in stge_start() 575 tfd->tfd_control = htole64(tfc); in stge_start() 1105 sc->sc_txdescs[i].tfd_next = htole64( in stge_init() 1107 sc->sc_txdescs[i].tfd_control = htole64(TFD_TFDDone); in stge_init()
|
H A D | if_iwx.c | 676 htole64(dram->fw[fw_cnt].paddr); in iwx_init_fw_sec() 691 htole64(dram->fw[fw_cnt].paddr); in iwx_init_fw_sec() 1032 htole64(sc->rxq.free_desc_dma.paddr); in iwx_ctxt_info_gen3_init() 1046 htole64(sc->prph_scratch_dma.paddr); in iwx_ctxt_info_gen3_init() 1050 htole64(sc->rxq.stat_dma.paddr); in iwx_ctxt_info_gen3_init() 2926 cmd_v0.byte_cnt_addr = htole64(0); in iwx_disable_txq() 2927 cmd_v0.tfdq_addr = htole64(0); in iwx_disable_txq() 5938 addr = htole64(paddr); in iwx_send_cmd() 6400 paddr = htole64(data->cmd_paddr); in iwx_tx() 6416 paddr = htole64(seg->ds_addr); in iwx_tx() [all …]
|
H A D | mfii.c | 61 #define MFII_REQ_MFA(_a) htole64((_a) | MFII_REQ_TYPE_MFA) 2044 iiq->timestamp = htole64(getuptime()); in mfii_initialise_firmware() 2056 init->mif_qinfo_new_addr = htole64(MFII_DMA_DVA(m)); in mfii_initialise_firmware() 2606 ce->sg_addr = htole64(ccb->ccb_sgl_dva); in mfii_load_ccb() 2619 sge->sg_addr = htole64(dmap->dm_segs[i].ds_addr); in mfii_load_ccb()
|
/openbsd/sys/dev/ic/ |
H A D | aic7xxx_cam.h | 84 #define aic_htole64(x) htole64(x)
|
H A D | mfi.c | 470 qinfo->miq_rq_addr = htole64(MFIMEM_DVA(sc->sc_pcq) + in mfi_initialize_firmware() 473 qinfo->miq_pi_addr = htole64(MFIMEM_DVA(sc->sc_pcq) + in mfi_initialize_firmware() 476 qinfo->miq_ci_addr = htole64(MFIMEM_DVA(sc->sc_pcq) + in mfi_initialize_firmware() 481 init->mif_qinfo_new_addr = htole64(ccb->ccb_pframe + MFI_FRAME_SIZE); in mfi_initialize_firmware() 1038 io->mif_lba = htole64(blockno); in mfi_scsi_io() 1039 io->mif_sense_addr = htole64(ccb->ccb_psense); in mfi_scsi_io() 1122 pf->mpf_sense_addr = htole64(ccb->ccb_psense); in mfi_scsi_ld() 1253 sgl->sg64[i].addr = htole64(sgd[i].ds_addr); in mfi_default_sgd_load() 2702 sgl->sg_skinny[i].addr = htole64(sgd[i].ds_addr); in mfi_skinny_sgd_load() 2761 pf->mpf_sense_addr = htole64(ccb->ccb_psense); in mfi_pd_scsi_cmd()
|
/openbsd/sys/sys/ |
H A D | endian.h | 58 #define htole64(x) __htole64(x) macro
|
/openbsd/sys/dev/usb/ |
H A D | xhci.c | 1536 sdev->ep_ctx[xp->dci-1]->deqp = htole64( in xhci_context_setup() 1773 pte[i] = htole64( in xhci_scratchpad_alloc() 1849 trb->trb_paddr = htole64(ring->dma.paddr); in xhci_ring_reset() 2064 trb.trb_paddr = htole64(addr); in xhci_cmd_configure_ep() 2120 trb.trb_paddr = htole64(addr); in xhci_cmd_set_tr_deq_async() 2167 trb.trb_paddr = htole64(addr); in xhci_cmd_set_address() 2966 trb->trb_paddr = htole64(DMAADDR(&xfer->dmabuf, 0)); in xhci_device_ctrl_start() 3077 trb0->trb_paddr = htole64(DMAADDR(&xfer->dmabuf, 0)); in xhci_device_generic_start() 3101 trb->trb_paddr = htole64(paddr); in xhci_device_generic_start() 3270 trb->trb_paddr = htole64(paddr); in xhci_device_isoc_start() [all …]
|
/openbsd/sys/arch/hppa/dev/ |
H A D | astro.c | 289 r->tlb_pdir_base = htole64(VM_PAGE_TO_PHYS(m)); in astro_attach() 727 *tte_ptr = htole64(tte); in iommu_enter() 759 *tte_ptr = htole64(tte & ~IOTTE_V); in iommu_remove()
|
H A D | elroy.c | 553 *(volatile u_int64_t *)h = htole64(vv); in elroy_w8() 642 *p = htole64(*a++); in elroy_wm_8() 687 vv = htole64(vv); in elroy_sm_8() 869 *p++ = htole64(data); in elroy_wr_8() 995 vv = htole64(vv); in elroy_sr_8()
|
/openbsd/lib/libcrypto/sha/ |
H A D | sha3.c | 97 st[i] = htole64(st[i]); in sha3_keccakf()
|
/openbsd/lib/libc/hash/ |
H A D | siphash.c | 115 r = htole64(SipHash_End(ctx, rc, rf)); in SipHash_Final()
|
/openbsd/usr.sbin/mkuboot/ |
H A D | copy_elf.c | 32 #define h2elfoff(x) htole64(x)
|
/openbsd/usr.bin/rsync/ |
H A D | io.c | 407 nv = htole64(val); in io_write_ulong()
|
/openbsd/sys/arch/octeon/dev/ |
H A D | octcrypto.c | 882 block[7] = htole64((64 + len) * 8); in octcrypto_hmac() 907 block[7] = htole64((64 + 16) * 8); in octcrypto_hmac()
|