Home
last modified time | relevance | path

Searched refs:htole32 (Results 1 – 25 of 181) sorted by relevance

12345678

/openbsd/src/sys/dev/pci/bktr/
Dbktr_core.c2473 *(*dma_prog)++ = htole32(OP_SKIP | OP_SOL | start_skip); in split()
2478 *(*dma_prog)++ = htole32(operation | flag | (width * pixel_width - skip)); in split()
2480 *(*dma_prog)++ = htole32(*target_buffer); in split()
2503 *(*dma_prog)++ = htole32(OP_SKIP | OP_SOL | start_skip); in split()
2508 *(*dma_prog)++ = htole32(operation | flag | in split()
2511 *(*dma_prog)++ = htole32(*target_buffer); in split()
2516 *(*dma_prog)++ = htole32(operation | flag2 | in split()
2592 *dma_prog++ = htole32(OP_SYNC | BKTR_RESYNC |BKTR_VRE); in rgb_vbi_prog()
2593 *dma_prog++ = htole32(0); in rgb_vbi_prog()
2599 *dma_prog++ = htole32(OP_SYNC | BKTR_FM1); in rgb_vbi_prog()
[all …]
/openbsd/src/sys/dev/ic/
Dacx100.c145 (conf)->fw_ring_end[0] = htole32(end); \
146 (conf)->fw_ring_end[1] = htole32(end + 8); \
344 mem_map.wep_cache_start = htole32(letoh32(mem_map.code_end) + 4); in acx100_init_wep()
345 mem_map.wep_cache_end = htole32(letoh32(mem_map.code_end) + 4); in acx100_init_wep()
407 mem_map.fw_desc_start = htole32(txring_start); in acx100_init_fw_ring()
415 ring.fw_ring_size = htole32(ACX100_FW_TXRING_SIZE + in acx100_init_fw_ring()
419 ring.fw_txring_addr = htole32(txring_start); in acx100_init_fw_ring()
423 ring.fw_rxring_addr = htole32(rxring_start); in acx100_init_fw_ring()
460 htole32(MEMBLK_ALIGN(letoh32(mem_map.fw_desc_end) + 4)); in acx100_init_memory()
484 mem.opt = htole32(ACX100_MEMOPT_MEMBLOCK | ACX100_MEMOPT_HOSTDESC); in acx100_init_memory()
[all …]
Dqwx.c1396 desc->u.ipq8074.msdu_start.info1 = htole32(info); in qwx_hw_ipq8074_rx_desc_set_msdu_len()
1607 desc->u.qcn9074.msdu_start.info1 = htole32(info); in qwx_hw_qcn9074_rx_desc_set_msdu_len()
1805 desc->u.wcn6855.msdu_start.info1 = htole32(info); in qwx_hw_wcn6855_rx_desc_set_msdu_len()
2374 .pipenum = htole32(0),
2375 .pipedir = htole32(PIPEDIR_OUT),
2376 .nentries = htole32(32),
2377 .nbytes_max = htole32(2048),
2378 .flags = htole32(CE_ATTR_FLAGS),
2379 .reserved = htole32(0),
2384 .pipenum = htole32(1),
[all …]
Dmtd8xx.c386 f->td_tcw = htole32(map->dm_segs[i].ds_len); in mtd_encap()
390 f->td_tcw |= htole32(TCW_FD | TCW_CRC | TCW_PAD); in mtd_encap()
392 f->td_tsw = htole32(TSW_OWN); in mtd_encap()
393 f->td_buf = htole32(map->dm_segs[i].ds_addr); in mtd_encap()
403 sc->mtd_ldata->mtd_tx_list[cur].td_tcw |= htole32(TCW_LD | TCW_IC); in mtd_encap()
406 htole32(TCW_EIC | TCW_RTLC); in mtd_encap()
411 sc->mtd_ldata->mtd_tx_list[*txidx].td_tsw = htole32(TSW_OWN); in mtd_encap()
413 htole32(total_len << TCW_PKTS_SHIFT); in mtd_encap()
443 ld->mtd_tx_list[i].td_next = htole32( in mtd_list_tx_init()
469 ld->mtd_rx_list[i].rd_next = htole32( in mtd_list_rx_init()
[all …]
Doosiop.c373 sc->sc_scr[addr / 4 + 0] = htole32(dcmd); in oosiop_relocate_io()
377 sc->sc_scr[addr / 4 + 1] = htole32(dsps + sc->sc_scrbase); in oosiop_relocate_io()
392 sc->sc_scr[addr / 4] = htole32(dcmd); in oosiop_relocate_tc()
404 sc->sc_scr[addr / 4 + 1] = htole32(dsps + sc->sc_scrbase); in oosiop_relocate_tc()
415 sc->sc_scr[addr / 4] = htole32(dcmd); in oosiop_fixup_select()
422 sc->sc_scr[addr / 4 + 1] = htole32(dst); in oosiop_fixup_jump()
434 sc->sc_scr[addr / 4 + 0] = htole32(dcmd); in oosiop_fixup_move()
435 sc->sc_scr[addr / 4 + 1] = htole32(dsps); in oosiop_fixup_move()
445 sc->sc_scr[i] = htole32(oosiop_script[i]); in oosiop_load_script()
490 htole32(0x09000000 | in oosiop_setup_sgdma()
[all …]
Dbwfm.c1628 dcmd->hdr.cmd = htole32(cmd); in bwfm_proto_bcdc_query_dcmd()
1629 dcmd->hdr.len = htole32(*len); in bwfm_proto_bcdc_query_dcmd()
1633 dcmd->hdr.flags = htole32(dcmd->hdr.flags); in bwfm_proto_bcdc_query_dcmd()
1668 dcmd->hdr.cmd = htole32(cmd); in bwfm_proto_bcdc_set_dcmd()
1669 dcmd->hdr.len = htole32(len); in bwfm_proto_bcdc_set_dcmd()
1673 dcmd->hdr.flags = htole32(dcmd->hdr.flags); in bwfm_proto_bcdc_set_dcmd()
1807 data = htole32(data); in bwfm_fwvar_cmd_set_int()
1854 data = htole32(data); in bwfm_fwvar_var_set_int()
2043 params->ssid.len = htole32(ic->ic_des_esslen); in bwfm_connect()
2047 params->scan.nprobes = htole32(-1); in bwfm_connect()
[all …]
Ddc.c907 sframe->dc_data = htole32(sc->sc_listmap->dm_segs[0].ds_addr + in dc_setfilt_21143()
909 sframe->dc_ctl = htole32(DC_SFRAME_LEN | DC_TXCTL_SETUP | in dc_setfilt_21143()
929 sp[h >> 4] |= htole32(1 << (h & 0xF)); in dc_setfilt_21143()
939 sp[h >> 4] |= htole32(1 << (h & 0xF)); in dc_setfilt_21143()
952 sframe->dc_status = htole32(DC_TXSTAT_OWN); in dc_setfilt_21143()
1093 sframe->dc_data = htole32(sc->sc_listmap->dm_segs[0].ds_addr + in dc_setfilt_xircom()
1095 sframe->dc_ctl = htole32(DC_SFRAME_LEN | DC_TXCTL_SETUP | in dc_setfilt_xircom()
1116 sp[h >> 4] |= htole32(1 << (h & 0xF)); in dc_setfilt_xircom()
1126 sp[h >> 4] |= htole32(1 << (h & 0xF)); in dc_setfilt_xircom()
1136 sframe->dc_status = htole32(DC_TXSTAT_OWN); in dc_setfilt_xircom()
[all …]
/openbsd/src/sys/dev/usb/
Dif_urndis.c391 filter = htole32(sc->sc_filter); in urndis_ctrl_handle_reset()
449 msg->rm_type = htole32(REMOTE_NDIS_INITIALIZE_MSG); in urndis_ctrl_init()
450 msg->rm_len = htole32(sizeof(*msg)); in urndis_ctrl_init()
451 msg->rm_rid = htole32(0); in urndis_ctrl_init()
452 msg->rm_ver_major = htole32(1); in urndis_ctrl_init()
453 msg->rm_ver_minor = htole32(1); in urndis_ctrl_init()
454 msg->rm_max_xfersz = htole32(RNDIS_BUFSZ); in urndis_ctrl_init()
495 msg->rm_type = htole32(REMOTE_NDIS_HALT_MSG); in urndis_ctrl_halt()
496 msg->rm_len = htole32(sizeof(*msg)); in urndis_ctrl_halt()
529 msg->rm_type = htole32(REMOTE_NDIS_QUERY_MSG); in urndis_ctrl_query()
[all …]
Duhci.c398 std->td.td_link = htole32(UHCI_PTR_T); in uhci_init()
399 std->td.td_status = htole32(0); /* inactive */ in uhci_init()
400 std->td.td_token = htole32(0); in uhci_init()
401 std->td.td_buffer = htole32(0); in uhci_init()
408 lsqh->qh.qh_hlink = htole32(UHCI_PTR_T); /* end of QH chain */ in uhci_init()
410 lsqh->qh.qh_elink = htole32(std->physaddr | UHCI_PTR_TD); in uhci_init()
418 bsqh->qh.qh_hlink = htole32(lsqh->physaddr | UHCI_PTR_QH); in uhci_init()
420 bsqh->qh.qh_elink = htole32(UHCI_PTR_T); in uhci_init()
428 chsqh->qh.qh_hlink = htole32(bsqh->physaddr | UHCI_PTR_QH); in uhci_init()
430 chsqh->qh.qh_elink = htole32(UHCI_PTR_T); in uhci_init()
[all …]
Dohci.c504 tdflags = htole32( in ohci_alloc_std_chain()
538 cur->td.td_cbp = htole32(dataphys); in ohci_alloc_std_chain()
540 cur->td.td_nexttd = htole32(next->physaddr); in ohci_alloc_std_chain()
541 cur->td.td_be = htole32(dataphys + curlen - 1); in ohci_alloc_std_chain()
563 cur->td.td_nexttd = htole32(next->physaddr); in ohci_alloc_std_chain()
750 sc->sc_ctrl_head->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
758 sc->sc_bulk_head->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
766 sc->sc_isoc_head->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
779 sed->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
785 sed->ed.ed_nexted = htole32(psed->physaddr); in ohci_init()
[all …]
Dehci.c365 sc->sc_flist[i] = htole32(EHCI_LINK_TERMINATE); in ehci_init()
400 sqh->qh.qh_link = htole32(EHCI_LINK_TERMINATE); in ehci_init()
405 sqh->qh.qh_link = htole32(sqh->next->physaddr | in ehci_init()
408 sqh->qh.qh_endp = htole32(EHCI_QH_SET_EPS(EHCI_QH_SPEED_HIGH)); in ehci_init()
409 sqh->qh.qh_endphub = htole32(EHCI_QH_SET_MULT(1)); in ehci_init()
410 sqh->qh.qh_curqtd = htole32(EHCI_LINK_TERMINATE); in ehci_init()
411 sqh->qh.qh_qtd.qtd_next = htole32(EHCI_LINK_TERMINATE); in ehci_init()
412 sqh->qh.qh_qtd.qtd_altnext = htole32(EHCI_LINK_TERMINATE); in ehci_init()
413 sqh->qh.qh_qtd.qtd_status = htole32(EHCI_QTD_HALTED); in ehci_init()
421 sc->sc_flist[j] = htole32(EHCI_LINK_QH | sc->sc_islots[ in ehci_init()
[all …]
Dif_urtwn.c512 sc->sc_rxtap.wr_ihdr.it_present = htole32(URTWN_RX_RADIOTAP_PRESENT); in urtwn_attach()
516 sc->sc_txtap.wt_ihdr.it_present = htole32(URTWN_TX_RADIOTAP_PRESENT); in urtwn_attach()
820 val = htole32(val); in urtwn_write_4()
1464 txd->txdw1 |= htole32(SM(R92C_TXDW1_CIPHER, in urtwn_tx_fill_desc()
1471 txd->txdw0 |= htole32( in urtwn_tx_fill_desc()
1476 txd->txdw0 |= htole32(R92C_TXDW0_BMCAST); in urtwn_tx_fill_desc()
1486 txd->txdw1 |= htole32( in urtwn_tx_fill_desc()
1490 txd->txdw2 |= htole32(R88E_TXDW2_AGGBK); in urtwn_tx_fill_desc()
1492 txd->txdw2 |= htole32(R92C_TXDW2_CCX_RPT); in urtwn_tx_fill_desc()
1494 txd->txdw1 |= htole32( in urtwn_tx_fill_desc()
[all …]
Dxhci.c390 sc->sc_erst.segs[0].er_size = htole32(XHCI_MAX_EVTS); in xhci_init()
1529 sdev->ep_ctx[xp->dci-1]->info_lo = htole32(xhci_pipe_interval(pipe)); in xhci_context_setup()
1530 sdev->ep_ctx[xp->dci-1]->info_hi = htole32( in xhci_context_setup()
1535 sdev->ep_ctx[xp->dci-1]->txinfo = htole32(xhci_get_txinfo(sc, pipe)); in xhci_context_setup()
1542 sdev->input_ctx->add_flags = htole32(XHCI_INCTX_MASK_DCI(xp->dci)); in xhci_context_setup()
1545 sdev->slot_ctx->info_lo = htole32( in xhci_context_setup()
1549 sdev->slot_ctx->info_hi = htole32(XHCI_SCTX_RHPORT(rhport)); in xhci_context_setup()
1562 sdev->slot_ctx->info_lo |= htole32(XHCI_SCTX_HUB(1)); in xhci_context_setup()
1563 sdev->slot_ctx->info_hi |= htole32(XHCI_SCTX_NPORTS(nports)); in xhci_context_setup()
1566 sdev->slot_ctx->info_lo |= htole32(XHCI_SCTX_MTT(1)); in xhci_context_setup()
[all …]
Dif_rsu.c296 sc->sc_rxtap.wr_ihdr.it_present = htole32(RSU_RX_RADIOTAP_PRESENT); in rsu_attach()
300 sc->sc_txtap.wt_ihdr.it_present = htole32(RSU_TX_RADIOTAP_PRESENT); in rsu_attach()
556 val = htole32(val); in rsu_write_4()
713 txd->txdw0 = htole32( in rsu_fw_cmd()
717 txd->txdw1 = htole32(SM(R92S_TXDW1_QSEL, R92S_TXDW1_QSEL_H2C)); in rsu_fw_cmd()
983 cmd.active = htole32(1); in rsu_site_survey()
984 cmd.limit = htole32(48); in rsu_site_survey()
987 cmd.ssidlen = htole32(ic->ic_des_esslen); in rsu_site_survey()
1026 bss->ssid.ssidlen = htole32(ni->ni_esslen); in rsu_join_bss()
1029 bss->privacy = htole32(1); in rsu_join_bss()
[all …]
/openbsd/src/regress/sys/arch/sparc64/emul-ldqstq/asi/
Dasi.c133 q->x4 = htole32(frp->f_reg32[0]); in c_stqa_asi()
134 q->x3 = htole32(frp->f_reg32[0 + 1]); in c_stqa_asi()
135 q->x2 = htole32(frp->f_reg32[0 + 2]); in c_stqa_asi()
136 q->x1 = htole32(frp->f_reg32[0 + 3]); in c_stqa_asi()
159 frp->f_reg32[0] = htole32(q->x4); in c_ldqa_asi()
160 frp->f_reg32[0 + 1] = htole32(q->x3); in c_ldqa_asi()
161 frp->f_reg32[0 + 2] = htole32(q->x2); in c_ldqa_asi()
162 frp->f_reg32[0 + 3] = htole32(q->x1); in c_ldqa_asi()
/openbsd/src/sys/dev/pci/
Dif_ipw.c285 sc->sc_rxtap.wr_ihdr.it_present = htole32(IPW_RX_RADIOTAP_PRESENT); in ipw_attach()
289 sc->sc_txtap.wt_ihdr.it_present = htole32(IPW_TX_RADIOTAP_PRESENT); in ipw_attach()
541 sbd->bd->physaddr = htole32(sbuf->map->dm_segs[0].ds_addr); in ipw_dma_alloc()
542 sbd->bd->len = htole32(MCLBYTES); in ipw_dma_alloc()
881 sbd->bd->physaddr = htole32(sbuf->map->dm_segs[0].ds_addr); in ipw_data_intr()
888 sbd->bd->physaddr = htole32(sbuf->map->dm_segs[0].ds_addr); in ipw_data_intr()
1088 sc->cmd.type = htole32(type); in ipw_cmd()
1089 sc->cmd.subtype = htole32(0); in ipw_cmd()
1090 sc->cmd.len = htole32(len); in ipw_cmd()
1091 sc->cmd.seq = htole32(0); in ipw_cmd()
[all …]
Dif_txp.c186 p2 = htole32(p2); in txp_attachhook()
666 if (rxd->rx_stat & htole32(RX_STAT_VLAN)) { in txp_rx_reclaim()
672 if (rxd->rx_stat & htole32(RX_STAT_IPCKSUMBAD)) in txp_rx_reclaim()
674 else if (rxd->rx_stat & htole32(RX_STAT_IPCKSUMGOOD)) in txp_rx_reclaim()
677 if (rxd->rx_stat & htole32(RX_STAT_TCPCKSUMBAD)) in txp_rx_reclaim()
679 else if (rxd->rx_stat & htole32(RX_STAT_TCPCKSUMGOOD)) in txp_rx_reclaim()
682 if (rxd->rx_stat & htole32(RX_STAT_UDPCKSUMBAD)) in txp_rx_reclaim()
684 else if (rxd->rx_stat & htole32(RX_STAT_UDPCKSUMGOOD)) in txp_rx_reclaim()
710 *r->r_roff = htole32(woff); in txp_rx_reclaim()
771 hv->hv_rx_buf_write_idx = htole32(TXP_IDX2OFFSET(i)); in txp_rxbuf_reclaim()
[all …]
Dif_iwx.c935 ctxt_info->control.control_flags = htole32(control_flags); in iwx_ctxt_info_init()
1028 prph_sc_ctrl->control.control_flags = htole32(control_flags); in iwx_ctxt_info_gen3_init()
1048 ctxt_info_gen3->prph_scratch_size = htole32(scratch_size); in iwx_ctxt_info_gen3_init()
2841 cmd_v0.cb_size = htole32(IWX_TFD_QUEUE_CB_SIZE(num_slots)); in iwx_enable_txq()
2849 cmd_v3.operation = htole32(IWX_SCD_QUEUE_ADD); in iwx_enable_txq()
2852 cmd_v3.u.add.cb_size = htole32(IWX_TFD_QUEUE_CB_SIZE(num_slots)); in iwx_enable_txq()
2853 cmd_v3.u.add.flags = htole32(0); in iwx_enable_txq()
2854 cmd_v3.u.add.sta_mask = htole32(1 << sta_id); in iwx_enable_txq()
2925 cmd_v0.cb_size = htole32(0); in iwx_disable_txq()
2933 cmd_v3.operation = htole32(IWX_SCD_QUEUE_REMOVE); in iwx_disable_txq()
[all …]
Dif_iwm.c2852 time_cmd.action = htole32(IWM_FW_CTXT_ACTION_ADD); in iwm_protect_session()
2854 htole32(IWM_FW_CMD_ID_AND_COLOR(in->in_id, in->in_color)); in iwm_protect_session()
2855 time_cmd.id = htole32(IWM_TE_BSS_STA_AGGRESSIVE_ASSOC); in iwm_protect_session()
2857 time_cmd.apply_time = htole32(0); in iwm_protect_session()
2860 time_cmd.max_delay = htole32(max_delay); in iwm_protect_session()
2862 time_cmd.interval = htole32(1); in iwm_protect_session()
2863 time_cmd.duration = htole32(duration); in iwm_protect_session()
2887 time_cmd.action = htole32(IWM_FW_CTXT_ACTION_REMOVE); in iwm_unprotect_session()
2889 htole32(IWM_FW_CMD_ID_AND_COLOR(in->in_id, in->in_color)); in iwm_unprotect_session()
2890 time_cmd.id = htole32(sc->sc_time_event_uid); in iwm_unprotect_session()
[all …]
Dif_bnxt.c1442 txhi->mss = htole32(outlen); in bnxt_start()
1461 txhi->cfa_meta = htole32(m->m_pkthdr.ether_vtag | in bnxt_start()
1537 if ((!!(cmpl->info3_v & htole32(CMPL_BASE_V))) != (!!v_bit)) in bnxt_cpr_next_cmpl()
2067 req.enables |= htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_DUPLEX); in bnxt_media_change()
2073 htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESTART_AUTONEG); in bnxt_media_change()
2075 htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_MODE); in bnxt_media_change()
2078 req.flags |= htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_FORCE); in bnxt_media_change()
2080 req.flags |= htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESET_PHY); in bnxt_media_change()
2096 req.enables |= htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_MODE | in bnxt_media_autonegotiate()
2098 req.flags |= htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESTART_AUTONEG); in bnxt_media_autonegotiate()
[all …]
Dif_rtwn.c430 sc->sc_rxtap.wr_ihdr.it_present = htole32(RTWN_RX_RADIOTAP_PRESENT); in rtwn_pci_attach()
434 sc->sc_txtap.wt_ihdr.it_present = htole32(RTWN_TX_RADIOTAP_PRESENT); in rtwn_pci_attach()
475 desc->rxdw0 = htole32(SM(R92C_RXDW0_PKTLEN, len) | in rtwn_setup_rx_desc()
477 desc->rxbufaddr = htole32(addr); in rtwn_setup_rx_desc()
480 desc->rxdw0 |= htole32(R92C_RXDW0_OWN); in rtwn_setup_rx_desc()
669 desc->nextdescaddr = htole32(tx_ring->map->dm_segs[0].ds_addr in rtwn_alloc_tx_list()
778 val = htole32(val); in rtwn_pci_write_4()
1020 if (htole32(txd->txdw0) & R92C_TXDW0_OWN) { in rtwn_tx()
1024 txd->txdw0 = htole32( in rtwn_tx()
1029 txd->txdw0 |= htole32(R92C_TXDW0_BMCAST); in rtwn_tx()
[all …]
Dif_vr.c772 htole32(sc->sc_listmap.vrm_map->dm_segs[0].ds_addr + in vr_list_rx_init()
1007 cur_tx->vr_ptr->vr_status = htole32(VR_TXSTAT_OWN); in vr_txeof()
1230 vr_ctl |= htole32(VR_TXCTL_INSERTTAG); in vr_encap()
1252 f->vr_ctl = htole32(txmap->dm_segs[i].ds_len | VR_TXCTL_TLINK | in vr_encap()
1255 f->vr_ctl |= htole32(VR_TXCTL_FIRSTFRAG); in vr_encap()
1256 f->vr_status = htole32(vr_status); in vr_encap()
1257 f->vr_data = htole32(txmap->dm_segs[i].ds_addr); in vr_encap()
1258 f->vr_next = htole32(c->vr_nextdesc->vr_paddr | intdisable); in vr_encap()
1266 f->vr_ctl = htole32((VR_MIN_FRAMELEN - txmap->dm_mapsize) | in vr_encap()
1268 f->vr_status = htole32(vr_status); in vr_encap()
[all …]
Dif_wpi.c347 sc->sc_rxtap.wr_ihdr.it_present = htole32(WPI_RX_RADIOTAP_PRESENT); in wpi_radiotap_attach()
351 sc->sc_txtap.wt_ihdr.it_present = htole32(WPI_TX_RADIOTAP_PRESENT); in wpi_radiotap_attach()
692 ring->desc[i] = htole32(data->map->dm_segs[0].ds_addr); in wpi_alloc_rx_ring()
765 sc->shared->txbase[qid] = htole32(ring->desc_dma.paddr); in wpi_alloc_tx_ring()
1069 sc->rxon.filter &= ~htole32(WPI_FILTER_BSS); in wpi_newstate()
1238 ring->desc[ring->cur] = htole32(data->map->dm_segs[0].ds_addr); in wpi_rx_done()
1249 ring->desc[ring->cur] = htole32(data->map->dm_segs[0].ds_addr); in wpi_rx_done()
1787 tx->lifetime = htole32(WPI_LIFETIME_INFINITE); in wpi_tx()
1814 tx->flags = htole32(flags); in wpi_tx()
1847 desc->flags = htole32(WPI_PAD32(m->m_pkthdr.len) << 28 | in wpi_tx()
[all …]
/openbsd/src/sys/arch/hppa/dev/
Delroy.c262 elroy_write32(&r->arb_mask, htole32(ELROY_ARB_ENABLE)); in elroy_conf_read()
264 htole32(ELROY_ERRCFG_SMART | ELROY_ERRCFG_CM)); in elroy_conf_read()
265 elroy_write32(&r->control, (control | htole32(ELROY_CONTROL_CE)) & in elroy_conf_read()
266 ~htole32(ELROY_CONTROL_HF)); in elroy_conf_read()
268 elroy_write32(&r->pci_conf_addr, htole32(tag | reg)); in elroy_conf_read()
273 htole32(ELROY_CONTROL_CE|ELROY_CONTROL_CL)); in elroy_conf_read()
297 elroy_write32(&r->arb_mask, htole32(ELROY_ARB_ENABLE)); in elroy_conf_write()
299 htole32(ELROY_ERRCFG_SMART | ELROY_ERRCFG_CM)); in elroy_conf_write()
300 elroy_write32(&r->control, (control | htole32(ELROY_CONTROL_CE)) & in elroy_conf_write()
301 ~htole32(ELROY_CONTROL_HF)); in elroy_conf_write()
[all …]
Dapic.c87 elroy_write32(&r->apic_addr, htole32(reg)); in apic_write()
88 elroy_write32(&r->apic_data, htole32(val)); in apic_write()
95 elroy_write32(&r->apic_addr, htole32(reg)); in apic_read()
217 htole32((31 - irq) & APIC_ENT0_VEC)); in apic_intr_establish()
250 htole32((31 - APIC_INT_IRQ(ih)) & APIC_ENT0_VEC)); in apic_intr()

12345678