Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/usr.sbin/btxld/
H A Delfh.c50 htole32(SET_ME), /* e_entry */
63 htole32(PT_LOAD), /* p_type */
65 htole32(SET_ME), /* p_vaddr */
66 htole32(SET_ME), /* p_paddr */
68 htole32(SET_ME), /* p_memsz */
70 htole32(0x1000) /* p_align */
80 htole32(0x1000) /* p_align */
85 0, htole32(SHT_NULL), 0, 0, 0, 0, htole32(SHN_UNDEF), 0, 0, 0
88 htole32(1), /* sh_name */
100 htole32(0xb), /* sh_name */
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm_sf.c156 htole32(IWM_SF_MCAST_IDLE_TIMER_DEF)
159 htole32(IWM_SF_BA_AGING_TIMER_DEF),
160 htole32(IWM_SF_BA_IDLE_TIMER_DEF)
164 htole32(IWM_SF_TX_RE_IDLE_TIMER_DEF)
183 htole32(IWM_SF_MCAST_AGING_TIMER),
184 htole32(IWM_SF_MCAST_IDLE_TIMER)
187 htole32(IWM_SF_BA_AGING_TIMER),
188 htole32(IWM_SF_BA_IDLE_TIMER)
191 htole32(IWM_SF_TX_RE_AGING_TIMER),
192 htole32(IWM_SF_TX_RE_IDLE_TIMER)
[all …]
H A Dif_iwm_mac_ctxt.c274 cmd->action = htole32(action); in iwm_mac_ctxt_cmd_common()
276 cmd->mac_type = htole32(IWM_FW_MAC_TYPE_BSS_STA); in iwm_mac_ctxt_cmd_common()
287 cmd->tsf_id = htole32(IWM_DEFAULT_TSFID); in iwm_mac_ctxt_cmd_common()
327 cmd->cck_rates = htole32(cck_ack_rates); in iwm_mac_ctxt_cmd_common()
328 cmd->ofdm_rates = htole32(ofdm_ack_rates); in iwm_mac_ctxt_cmd_common()
429 ctxt_sta->dtim_time = htole32(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta()
436 ctxt_sta->is_assoc = htole32(1); in iwm_mac_ctxt_cmd_fill_sta()
438 ctxt_sta->is_assoc = htole32(0); in iwm_mac_ctxt_cmd_fill_sta()
449 ctxt_sta->bi = htole32(ni->ni_intval); in iwm_mac_ctxt_cmd_fill_sta()
456 ctxt_sta->listen_interval = htole32(10); in iwm_mac_ctxt_cmd_fill_sta()
[all …]
H A Dif_iwm_scan.c184 return htole32(IWM_PHY_BAND_24); in iwm_scan_rxon_flags()
186 return htole32(IWM_PHY_BAND_5); in iwm_scan_rxon_flags()
209 return htole32(IWM_RATE_6M_PLCP | tx_ant); in iwm_scan_rate_n_flags()
326 chan->iter_interval = htole32(0); in iwm_lmac_scan_fill_channels()
505 scan_config->legacy_rates = htole32(rates | in iwm_config_umac_scan()
513 scan_config->out_of_channel_time = htole32(0); in iwm_config_umac_scan()
514 scan_config->suspend_time = htole32(0); in iwm_config_umac_scan()
750 req->scan_prio = htole32(IWM_SCAN_PRIORITY_HIGH); in iwm_lmac_scan()
752 req->iter_num = htole32(1); in iwm_lmac_scan()
792 htole32(IWM_LMAC_SCAN_FLAG_PRE_CONNECTION); in iwm_lmac_scan()
[all …]
H A Dif_iwm_sta.c152 htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id, ivp->color)), in iwm_sta_send_to_fw()
154 .station_flags_msk = htole32(IWM_STA_FLG_FAT_EN_MSK | in iwm_sta_send_to_fw()
166 htole32(1 << iwm_ac_to_tx_fifo[ac]); in iwm_sta_send_to_fw()
172 htole32(agg_size << IWM_STA_FLG_MAX_AGG_SIZE_SHIFT); in iwm_sta_send_to_fw()
174 htole32(mpdu_dens << IWM_STA_FLG_AGG_MPDU_DENS_SHIFT); in iwm_sta_send_to_fw()
216 htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id, ivp->color)); in iwm_drain_sta()
219 cmd.station_flags = drain ? htole32(IWM_STA_FLG_DRAIN_FLOW) : 0; in iwm_drain_sta()
220 cmd.station_flags_msk = htole32(IWM_STA_FLG_DRAIN_FLOW); in iwm_drain_sta()
280 tfd_queue_msk |= htole32(1 << iwm_ac_to_tx_fifo[ac]); in iwm_rm_sta()
322 cmd.mac_id_n_color = htole32(IWM_FW_CMD_ID_AND_COLOR(mac_id, color)); in iwm_add_int_sta_common()
[all …]
H A Dif_iwm_time_event.c191 if (notif->action & htole32(IWM_TE_V2_NOTIF_HOST_EVENT_START)) in iwm_te_handle_notif()
357 time_cmd.action = htole32(IWM_FW_CTXT_ACTION_ADD); in iwm_protect_session()
359 htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id, ivp->color)); in iwm_protect_session()
360 time_cmd.id = htole32(IWM_TE_BSS_STA_AGGRESSIVE_ASSOC); in iwm_protect_session()
362 time_cmd.apply_time = htole32(0); in iwm_protect_session()
365 time_cmd.max_delay = htole32(max_delay); in iwm_protect_session()
367 time_cmd.interval = htole32(1); in iwm_protect_session()
368 time_cmd.duration = htole32(duration); in iwm_protect_session()
417 time_cmd.id = htole32(sc->sc_time_event_uid); in iwm_stop_session_protection()
418 time_cmd.action = htole32(IWM_FW_CTXT_ACTION_REMOVE); in iwm_stop_session_protection()
[all …]
H A Dif_iwm_phy_ctxt.c179 cmd->id_and_color = htole32(IWM_FW_CMD_ID_AND_COLOR(ctxt->id, in iwm_phy_ctxt_cmd_hdr()
181 cmd->action = htole32(action); in iwm_phy_ctxt_cmd_hdr()
182 cmd->apply_time = htole32(apply_time); in iwm_phy_ctxt_cmd_hdr()
231 cmd->rxchain_info = htole32(iwm_get_valid_rx_ant(sc) << in iwm_phy_ctxt_cmd_data()
233 cmd->rxchain_info |= htole32(idle_cnt << IWM_PHY_RX_CHAIN_CNT_POS); in iwm_phy_ctxt_cmd_data()
234 cmd->rxchain_info |= htole32(active_cnt << in iwm_phy_ctxt_cmd_data()
237 cmd->txchain_info = htole32(iwm_get_valid_tx_ant(sc)); in iwm_phy_ctxt_cmd_data()
H A Dif_iwm_binding.c168 = htole32(IWM_FW_CMD_ID_AND_COLOR(phyctxt->id, phyctxt->color)); in iwm_binding_cmd()
169 cmd.action = htole32(action); in iwm_binding_cmd()
170 cmd.phy = htole32(IWM_FW_CMD_ID_AND_COLOR(phyctxt->id, phyctxt->color)); in iwm_binding_cmd()
173 cmd.macs[i] = htole32(IWM_FW_CTXT_INVALID); in iwm_binding_cmd()
175 cmd.macs[i] = htole32(IWM_FW_CMD_ID_AND_COLOR(data->ids[i], in iwm_binding_cmd()
/freebsd/sys/dev/rtwn/rtl8812a/
H A Dr12a_tx.c80 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_ht40()
96 txd->txdw3 |= htole32(R12A_TXDW3_CTS2SELF); in r12a_tx_protection()
99 txd->txdw3 |= htole32(R12A_TXDW3_RTSEN); in r12a_tx_protection()
274 txd->txdw2 |= htole32(R12A_TXDW2_AGGEN); in r12a_fill_tx_desc()
280 txd->txdw2 |= htole32(R12A_TXDW2_AGGBK); in r12a_fill_tx_desc()
327 txd->txdw3 |= htole32(R12A_TXDW3_DRVRATE); in r12a_fill_tx_desc()
387 txd->txdw3 |= htole32(R12A_TXDW3_DRVRATE); in r12a_fill_tx_desc_raw()
396 txd->txdw9 |= htole32(SM(R12A_TXDW9_SEQ, in r12a_fill_tx_desc_raw()
408 txd->txdw1 = htole32( in r12a_fill_tx_desc_null()
411 txd->txdw3 = htole32(R12A_TXDW3_DRVRATE); in r12a_fill_tx_desc_null()
[all …]
H A Dr12a_beacon.c71 txd->txdw1 = htole32(SM(R12A_TXDW1_QSEL, R12A_TXDW1_QSEL_BEACON)); in r12a_beacon_init()
72 txd->txdw1 |= htole32(SM(R12A_TXDW1_MACID, RTWN_MACID_BC)); in r12a_beacon_init()
74 txd->txdw3 = htole32(R12A_TXDW3_DRVRATE); in r12a_beacon_init()
75 txd->txdw3 |= htole32(SM(R12A_TXDW3_SEQ_SEL, id)); in r12a_beacon_init()
77 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, RTWN_RIDX_CCK1)); in r12a_beacon_init()
79 txd->txdw6 = htole32(SM(R21A_TXDW6_MBSSID, id)); in r12a_beacon_init()
87 txd->txdw4 &= ~htole32(R12A_TXDW4_DATARATE_M); in r12a_beacon_set_rate()
89 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, in r12a_beacon_set_rate()
92 txd->txdw4 = htole32(SM(R12A_TXDW4_DATARATE, RTWN_RIDX_CCK1)); in r12a_beacon_set_rate()
/freebsd/sys/dev/rtwn/rtl8192c/
H A Dr92c_tx.c74 txd->txdw4 |= htole32(R92C_TXDW4_DATA_BW40); in r92c_tx_set_ht40()
88 txd->txdw4 |= htole32(R92C_TXDW4_CTS2SELF); in r92c_tx_protection()
91 txd->txdw4 |= htole32(R92C_TXDW4_RTSEN); in r92c_tx_protection()
178 txd->txdw5 |= htole32(R92C_TXDW5_SGI); in r92c_tx_set_sgi()
183 txd->txdw5 |= htole32(R92C_TXDW5_SGI); in r92c_tx_set_sgi()
192 txd->txdw1 |= htole32(R92C_TXDW1_AGGEN); in r92c_tx_enable_ampdu()
194 txd->txdw1 |= htole32(R92C_TXDW1_AGGBK); in r92c_tx_enable_ampdu()
202 txd->txdw4 |= htole32(R92C_TXDW4_HWSEQ_EN); in r92c_tx_setup_hwseq()
406 txd->txdw1 = htole32( in r92c_fill_tx_desc_null()
409 txd->txdw4 = htole32(R92C_TXDW4_DRVRATE); in r92c_fill_tx_desc_null()
[all …]
H A Dr92c_beacon.c61 txd->txdw1 |= htole32( in r92c_beacon_init()
66 txd->txdw4 |= htole32(R92C_TXDW4_DRVRATE); in r92c_beacon_init()
67 txd->txdw4 |= htole32(SM(R92C_TXDW4_SEQ_SEL, id)); in r92c_beacon_init()
68 txd->txdw4 |= htole32(SM(R92C_TXDW4_PORT_ID, id)); in r92c_beacon_init()
69 txd->txdw5 |= htole32(SM(R92C_TXDW5_DATARATE, RTWN_RIDX_CCK1)); in r92c_beacon_init()
/freebsd/sys/dev/virtio/gpu/
H A Dvirtio_gpu.c601 s.req.r.x = htole32(x); in vtgpu_set_scanout()
602 s.req.r.y = htole32(y); in vtgpu_set_scanout()
603 s.req.r.width = htole32(width); in vtgpu_set_scanout()
604 s.req.r.height = htole32(height); in vtgpu_set_scanout()
639 s.req.r.x = htole32(x); in vtgpu_transfer_to_host_2d()
640 s.req.r.y = htole32(y); in vtgpu_transfer_to_host_2d()
641 s.req.r.width = htole32(width); in vtgpu_transfer_to_host_2d()
642 s.req.r.height = htole32(height); in vtgpu_transfer_to_host_2d()
678 s.req.r.x = htole32(x); in vtgpu_resource_flush()
679 s.req.r.y = htole32(y); in vtgpu_resource_flush()
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme_ctrlr_cmd.c49 cmd->cdw10 = htole32(1); in nvme_ctrlr_cmd_identify_controller()
70 cmd->nsid = htole32(nsid); in nvme_ctrlr_cmd_identify_namespace()
178 cmd->cdw10 = htole32(feature); in nvme_ctrlr_cmd_set_feature()
179 cmd->cdw11 = htole32(cdw11); in nvme_ctrlr_cmd_set_feature()
180 cmd->cdw12 = htole32(cdw12); in nvme_ctrlr_cmd_set_feature()
181 cmd->cdw13 = htole32(cdw13); in nvme_ctrlr_cmd_set_feature()
182 cmd->cdw14 = htole32(cdw14); in nvme_ctrlr_cmd_set_feature()
183 cmd->cdw15 = htole32(cdw15); in nvme_ctrlr_cmd_set_feature()
200 cmd->cdw10 = htole32(feature); in nvme_ctrlr_cmd_get_feature()
201 cmd->cdw11 = htole32(cdw11); in nvme_ctrlr_cmd_get_feature()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_inode_cnv.c135 if (extra & htole32(EXT3_EPOCH_MASK)) in ext2_decode_extra_time()
262 ei->e2di_size = htole32(ip->i_size); in ext2_i2ei()
264 ei->e2di_size_high = htole32(ip->i_size >> 32); in ext2_i2ei()
265 ei->e2di_atime = htole32(ip->i_atime); in ext2_i2ei()
266 ei->e2di_mtime = htole32(ip->i_mtime); in ext2_i2ei()
267 ei->e2di_ctime = htole32(ip->i_ctime); in ext2_i2ei()
281 ei->e2di_crtime = htole32(ip->i_birthtime); in ext2_i2ei()
301 ei->e2di_flags |= htole32(EXT4_HUGE_FILE); in ext2_i2ei()
306 ei->e2di_facl = htole32(ip->i_facl & 0xffffffff); in ext2_i2ei()
308 ei->e2di_gen = htole32(ip->i_gen); in ext2_i2ei()
[all …]
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_cmd.c36 cmd.ofst = htole32(offset); in nvmf_cmd_get_property()
57 cmd.value.u32.low = htole32(value); in nvmf_cmd_set_property()
66 cmd.ofst = htole32(offset); in nvmf_cmd_set_property()
103 cmd.cdw10 = htole32(2); in nvmf_cmd_identify_active_namespaces()
104 cmd.nsid = htole32(id); in nvmf_cmd_identify_active_namespaces()
129 cmd.cdw10 = htole32(0); in nvmf_cmd_identify_namespace()
130 cmd.nsid = htole32(id); in nvmf_cmd_identify_namespace()
158 cmd.nsid = htole32(nsid); in nvmf_cmd_get_log_page()
160 cmd.cdw11 = htole32(numd >> 16); in nvmf_cmd_get_log_page()
161 cmd.cdw12 = htole32(offset); in nvmf_cmd_get_log_page()
[all …]
/freebsd/sys/cam/nvme/
H A Dnvme_all.c70 nvmeio->cmd.nsid = htole32(nsid); in nvme_ns_cmd()
71 nvmeio->cmd.cdw10 = htole32(cdw10); in nvme_ns_cmd()
72 nvmeio->cmd.cdw11 = htole32(cdw11); in nvme_ns_cmd()
73 nvmeio->cmd.cdw12 = htole32(cdw12); in nvme_ns_cmd()
74 nvmeio->cmd.cdw13 = htole32(cdw13); in nvme_ns_cmd()
75 nvmeio->cmd.cdw14 = htole32(cdw14); in nvme_ns_cmd()
76 nvmeio->cmd.cdw15 = htole32(cdw15); in nvme_ns_cmd()
/freebsd/sys/dev/mwl/
H A Dmwlhal.c874 return htole32(w); in cvtChannelFlags()
895 pCmd->Mode = htole32(mode); in mwl_hal_setchannelswitchie()
1326 pCmd->Set = htole32(ena); in mwl_hal_setpowersave_sta()
1533 htole32(sp->stream); in mwl_hal_bastream_destroy()
1605 pCmd->Option = htole32(mode); in mwl_hal_setaggampduratemode()
1645 pCmd->Enable = htole32(ena); in mwl_hal_setcfend()
1661 pCmd->Enable = htole32(ena); in mwl_hal_setdwds()
1869 pCmd->CWMax = htole32(CWmax); in mwl_hal_setedcaparams()
1870 pCmd->CWMin = htole32(CWmin); in mwl_hal_setedcaparams()
2242 pCmd->Value = htole32(*val); in getRFReg()
[all …]
/freebsd/sys/dev/usb/
H A Dusb_pf.c438 up->up_totlen = htole32(totlen); in usbpf_xfertap()
439 up->up_busunit = htole32(temp); in usbpf_xfertap()
448 up->up_flags = htole32(temp); in usbpf_xfertap()
450 up->up_status = htole32(temp); in usbpf_xfertap()
452 up->up_error = htole32(temp); in usbpf_xfertap()
454 up->up_interval = htole32(temp); in usbpf_xfertap()
455 up->up_frames = htole32(nframes); in usbpf_xfertap()
461 up->up_endpoint = htole32(temp); in usbpf_xfertap()
484 uf->length = htole32(length); in usbpf_xfertap()
495 uf->flags |= htole32( in usbpf_xfertap()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dacpi.c455 facs.Version = htole32(2); in build_facs()
472 fadt.Facs = htole32(0); /* patched by basl */ in build_fadt()
473 fadt.Dsdt = htole32(0); /* patched by basl */ in build_fadt()
475 fadt.SmiCommand = htole32(SMI_CMD); in build_fadt()
478 fadt.Pm1aEventBlock = htole32(PM1A_EVT_ADDR); in build_fadt()
480 fadt.PmTimerBlock = htole32(IO_PMTMR); in build_fadt()
481 fadt.Gpe0Block = htole32(IO_GPE0_BLK); in build_fadt()
552 hpet.Id = htole32(hpet_capabilities); in build_hpet()
579 madt.Address = htole32(BHYVE_ADDRESS_LAPIC); in build_madt()
580 madt.Flags = htole32(ACPI_MADT_PCAT_COMPAT); in build_madt()
[all …]
H A Dqemu_loader.c90 element->entry.cmd_le = htole32(QEMU_LOADER_CMD_ALLOC); in qemu_loader_alloc()
92 element->entry.alloc.alignment_le = htole32(alignment); in qemu_loader_alloc()
121 element->entry.cmd_le = htole32(QEMU_LOADER_CMD_ADD_CHECKSUM); in qemu_loader_add_checksum()
123 element->entry.add_checksum.off_le = htole32(off); in qemu_loader_add_checksum()
124 element->entry.add_checksum.start_le = htole32(start); in qemu_loader_add_checksum()
125 element->entry.add_checksum.len_le = htole32(len); in qemu_loader_add_checksum()
149 element->entry.cmd_le = htole32(QEMU_LOADER_CMD_ADD_POINTER); in qemu_loader_add_pointer()
154 element->entry.add_pointer.off_le = htole32(off); in qemu_loader_add_pointer()
/freebsd/sys/dev/usb/controller/
H A Duhci.c241 htole32(UHCI_TD_PID_IN)) { in uhci_mem_layout_fixup()
421 htole32(buf_res.physaddr) | in uhci_init_qh()
422 htole32(UHCI_PTR_QH); in uhci_init_qh()
440 htole32(buf_res.physaddr) | in uhci_init_td()
441 htole32(UHCI_PTR_TD); in uhci_init_td()
552 td_x->td_token = htole32(0); in uhci_init()
553 td_x->td_buffer = htole32(0); in uhci_init()
1522 if ((temp->td_token & htole32(UHCI_TD_PID)) == htole32(UHCI_TD_PID_IN)) { in uhci_setup_standard_chain_sub()
2084 td_token = htole32(td_token); in uhci_device_isoc_open()
2195 td->td_status = htole32 in uhci_device_isoc_enter()
[all …]
/freebsd/sys/dev/netmap/
H A Dif_re_netmap.h114 desc->rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr)); in re_netmap_txsync()
115 desc->rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr)); in re_netmap_txsync()
122 desc->rl_cmdstat = htole32(cmd); in re_netmap_txsync()
253 desc->rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr)); in re_netmap_rxsync()
254 desc->rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr)); in re_netmap_rxsync()
259 desc->rl_cmdstat = htole32(cmd); in re_netmap_rxsync()
308 desc[i].rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr)); in re_netmap_tx_init()
309 desc[i].rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr)); in re_netmap_tx_init()
343 desc[nic_i].rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr)); in re_netmap_rx_init()
344 desc[nic_i].rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr)); in re_netmap_rx_init()
[all …]
/freebsd/sys/dev/usb/net/
H A Dif_urndis.c300 msg.ibuf.filter = htole32(sc->sc_filter); in urndis_attach()
641 msg_filter.filter = htole32(sc->sc_filter); in urndis_ctrl_handle_reset()
662 msg.rm_len = htole32(sizeof(msg)); in urndis_ctrl_init()
665 msg.rm_ver_minor = htole32(1); in urndis_ctrl_init()
699 msg.rm_len = htole32(sizeof(msg)); in urndis_ctrl_halt()
728 msg->rm_len = htole32(len); in urndis_ctrl_query()
730 msg->rm_oid = htole32(oid); in urndis_ctrl_query()
732 msg->rm_infobuflen = htole32(datalen); in urndis_ctrl_query()
774 msg->rm_len = htole32(len); in urndis_ctrl_set()
776 msg->rm_oid = htole32(oid); in urndis_ctrl_set()
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.c212 0x100, htole32(1)); in _hwrm_send_message()
1688 req.enables = htole32(0); in bnxt_hwrm_ring_alloc()
1689 req.fbo = htole32(0); in bnxt_hwrm_ring_alloc()
1704 req.enables |= htole32( in bnxt_hwrm_ring_alloc()
1715 req.enables |= htole32( in bnxt_hwrm_ring_alloc()
1730 req.enables |= htole32( in bnxt_hwrm_ring_alloc()
1743 req.enables |= htole32( in bnxt_hwrm_ring_alloc()
1994 req.mask = htole32(mask); in bnxt_hwrm_cfa_l2_set_rx_mask()
2262 req.enables = htole32( in bnxt_hwrm_nvm_find_dir_entry()
2310 req.len = htole32(length); in bnxt_hwrm_nvm_read()
[all …]

12345678910>>...12