Searched refs:htole32 (Results 1 - 25 of 209) sorted by relevance

123456789

/freebsd-11-stable/usr.sbin/btxld/
H A Delfh.c51 htole32(EV_CURRENT), /* e_version */
52 htole32(SET_ME), /* e_entry */
53 htole32(offsetof(struct elfh, p)), /* e_phoff */
54 htole32(offsetof(struct elfh, sh)), /* e_shoff */
65 htole32(PT_LOAD), /* p_type */
66 htole32(sizeof(elfhdr)), /* p_offset */
67 htole32(SET_ME), /* p_vaddr */
68 htole32(SET_ME), /* p_paddr */
69 htole32(SET_ME), /* p_filesz */
70 htole32(SET_M
[all...]
H A Dbtxld.c273 btxle.btx_entry = htole32(btxle.btx_entry);
412 ex.a_text = htole32(hdr->text);
414 ex.a_data = htole32(hdr->data);
415 ex.a_entry = htole32(hdr->entry);
422 eh.e.e_entry = htole32(hdr->entry);
423 eh.p[0].p_vaddr = eh.p[0].p_paddr = htole32(hdr->org);
424 eh.p[0].p_filesz = eh.p[0].p_memsz = htole32(hdr->text);
425 eh.p[1].p_offset = htole32(le32toh(eh.p[0].p_offset) +
428 htole32(roundup2(le32toh(eh.p[0].p_paddr) + le32toh(eh.p[0].p_memsz),
430 eh.p[1].p_filesz = eh.p[1].p_memsz = htole32(hd
[all...]
/freebsd-11-stable/usr.sbin/kgzip/
H A Delfhdr.c50 htole32(EV_CURRENT), /* e_version */
53 htole32(offsetof(struct kgz_elfhdr, sh)), /* e_shoff */
66 htole32(SHT_NULL), /* sh_type */
71 htole32(SHN_UNDEF), /* sh_link */
77 htole32(offsetof(struct kgz_shstrtab, symtab)), /* sh_name */
78 htole32(SHT_SYMTAB), /* sh_type */
81 htole32(offsetof(struct kgz_elfhdr, st)), /* sh_offset */
82 htole32(sizeof(Elf32_Sym) * KGZ_STNUM), /* sh_size */
83 htole32(KGZ_SH_STRTAB), /* sh_link */
84 htole32(
[all...]
H A Dkgzcmp.c95 ehdr.st[KGZ_ST_KGZ_NDATA].st_size = htole32(kh->nsize);
97 htole32(le32toh(ehdr.sh[KGZ_SH_DATA].sh_size) + kh->nsize);
102 khle.dload = htole32(khle.dload);
103 khle.dsize = htole32(khle.dsize);
104 khle.isize = htole32(khle.isize);
105 khle.entry = htole32(khle.entry);
106 khle.nsize = htole32(khle.nsize);
/freebsd-11-stable/sys/dev/iwm/
H A Dif_iwm_mac_ctxt.c274 cmd->id_and_color = htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id,
276 cmd->action = htole32(action);
278 cmd->mac_type = htole32(IWM_FW_MAC_TYPE_BSS_STA);
289 cmd->tsf_id = htole32(IWM_DEFAULT_TSFID);
324 cmd->cck_rates = htole32(cck_ack_rates);
325 cmd->ofdm_rates = htole32(ofdm_ack_rates);
328 = htole32((ic->ic_flags & IEEE80211_F_SHPREAMBLE)
331 = htole32((ic->ic_flags & IEEE80211_F_SHSLOT)
351 cmd->qos_flags |= htole32(IWM_MAC_QOS_FLG_UPDATE_EDCA);
354 cmd->protection_flags |= htole32(IWM_MAC_PROT_FLG_TGG_PROTEC
[all...]
H A Dif_iwm_scan.c196 return htole32(IWM_RATE_1M_PLCP | IWM_RATE_MCS_CCK_MSK |
199 return htole32(IWM_RATE_6M_PLCP | tx_ant);
244 chan->iter_interval = htole32(0);
245 chan->flags = htole32(IWM_UNIFIED_SCAN_CHANNEL_PARTIAL);
246 chan->flags |= htole32(IWM_SCAN_CHANNEL_NSSIDS(n_ssids));
250 chan->flags |= htole32(IWM_SCAN_CHANNEL_TYPE_ACTIVE);
289 chan->flags = htole32(IWM_SCAN_CHANNEL_UMAC_NSSIDS(n_ssids));
422 scan_config->tx_chains = htole32(iwm_mvm_get_valid_tx_ant(sc));
423 scan_config->rx_chains = htole32(iwm_mvm_get_valid_rx_ant(sc));
424 scan_config->legacy_rates = htole32(rate
[all...]
H A Dif_iwm_time_event.c194 time_cmd.action = htole32(IWM_FW_CTXT_ACTION_ADD);
196 htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id, ivp->color));
197 time_cmd.id = htole32(IWM_TE_BSS_STA_AGGRESSIVE_ASSOC);
199 time_cmd.apply_time = htole32(0);
202 time_cmd.max_delay = htole32(max_delay);
204 time_cmd.interval = htole32(1);
205 time_cmd.duration = htole32(duration);
H A Dif_iwm_sta.c159 htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id, ivp->color)),
161 .station_flags_msk = htole32(IWM_STA_FLG_FAT_EN_MSK |
173 htole32(1 << iwm_mvm_ac_to_tx_fifo[ac]);
179 htole32(agg_size << IWM_STA_FLG_MAX_AGG_SIZE_SHIFT);
181 htole32(mpdu_dens << IWM_STA_FLG_AGG_MPDU_DENS_SHIFT);
223 htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id, ivp->color));
226 cmd.station_flags = drain ? htole32(IWM_STA_FLG_DRAIN_FLOW) : 0;
227 cmd.station_flags_msk = htole32(IWM_STA_FLG_DRAIN_FLOW);
287 tfd_queue_msk |= htole32(1 << iwm_mvm_ac_to_tx_fifo[ac]);
329 cmd.mac_id_n_color = htole32(IWM_FW_CMD_ID_AND_COLO
[all...]
H A Dif_iwm_binding.c169 = htole32(IWM_FW_CMD_ID_AND_COLOR(phyctxt->id, phyctxt->color));
170 cmd.action = htole32(action);
171 cmd.phy = htole32(IWM_FW_CMD_ID_AND_COLOR(phyctxt->id, phyctxt->color));
174 cmd.macs[i] = htole32(IWM_FW_CTXT_INVALID);
176 cmd.macs[i] = htole32(IWM_FW_CMD_ID_AND_COLOR(data->ids[i],
H A Dif_iwm_phy_ctxt.c181 cmd->id_and_color = htole32(IWM_FW_CMD_ID_AND_COLOR(ctxt->id,
183 cmd->action = htole32(action);
184 cmd->apply_time = htole32(apply_time);
233 cmd->rxchain_info = htole32(iwm_mvm_get_valid_rx_ant(sc) <<
235 cmd->rxchain_info |= htole32(idle_cnt << IWM_PHY_RX_CHAIN_CNT_POS);
236 cmd->rxchain_info |= htole32(active_cnt <<
239 cmd->txchain_info = htole32(iwm_mvm_get_valid_tx_ant(sc));
H A Dif_iwm_power.c206 cmd->ba_enable_beacon_abort = htole32(sc->sc_bf.ba_enabled);
291 cmd->id_and_color = htole32(IWM_FW_CMD_ID_AND_COLOR(ivp->id,
316 htole32(IWM_MVM_DEFAULT_PS_RX_DATA_TIMEOUT);
318 htole32(IWM_MVM_DEFAULT_PS_TX_DATA_TIMEOUT);
353 .bf_enable_beacon_filter = htole32(1),
405 .bf_enable_beacon_filter = htole32(1),
H A Dif_iwm_fw.c320 htole32(IWM_PAGING_CMD_IS_SECURED |
324 .block_size = htole32(IWM_BLOCK_2_EXP_SIZE),
325 .block_num = htole32(sc->num_of_paging_blk),
330 dev_phy_addr = htole32(
/freebsd-11-stable/sys/dev/usb/
H A Dusb_pf.c433 up->up_totlen = htole32(totlen);
434 up->up_busunit = htole32(temp);
443 up->up_flags = htole32(temp);
445 up->up_status = htole32(temp);
447 up->up_error = htole32(temp);
449 up->up_interval = htole32(temp);
450 up->up_frames = htole32(nframes);
452 up->up_packet_size = htole32(temp);
454 up->up_packet_count = htole32(temp);
456 up->up_endpoint = htole32(tem
[all...]
/freebsd-11-stable/sys/dev/mwl/
H A Dmwlhal.c567 pCmd->ulFwAwakeCookie = htole32((unsigned int)mh->mh_cmdaddr+2048);
614 pCmd->WcbBase[0] = htole32(dma->wcbBase[0]);
615 pCmd->WcbBase[1] = htole32(dma->wcbBase[1]);
616 pCmd->WcbBase[2] = htole32(dma->wcbBase[2]);
617 pCmd->WcbBase[3] = htole32(dma->wcbBase[3]);
618 pCmd->TxWcbNumPerQueue = htole32(dma->maxNumTxWcb);
619 pCmd->NumTxQueues = htole32(dma->maxNumWCB);
620 pCmd->TotalRxWcb = htole32(1); /* XXX */
621 pCmd->RxPdWrPtr = htole32(dma->rxDescRead);
622 pCmd->Flags = htole32(SET_HW_SPEC_HOSTFORM_BEACO
[all...]
/freebsd-11-stable/sys/dev/bnxt/
H A Dbnxt_hwrm.c172 0x100, htole32(1));
369 req.enables = htole32(HWRM_FUNC_DRV_RGTR_INPUT_ENABLES_VER |
434 htole32(HWRM_FUNC_QCAPS_OUTPUT_FLAGS_WOL_MAGICPKT_SUPPORTED))
520 htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_MODE);
522 htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESTART_AUTONEG);
525 req->flags |= htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_FORCE);
529 req->flags |= htole32(HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESET_PHY);
549 htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_PAUSE);
558 htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_FORCE_PAUSE);
578 req->flags |= htole32(flag
[all...]
/freebsd-11-stable/sys/dev/netmap/
H A Dif_re_netmap.h113 desc->rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr));
114 desc->rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr));
121 desc->rl_cmdstat = htole32(cmd);
253 desc->rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr));
254 desc->rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr));
259 desc->rl_cmdstat = htole32(cmd);
308 desc[i].rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr));
309 desc[i].rl_bufaddr_hi = htole32(RL_ADDR_HI(paddr));
343 desc[nic_i].rl_bufaddr_lo = htole32(RL_ADDR_LO(paddr));
344 desc[nic_i].rl_bufaddr_hi = htole32(RL_ADDR_H
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Duhci.c225 td->td_buffer = htole32(ml->fix_res.physaddr);
242 if ((td->td_token & htole32(UHCI_TD_PID)) ==
243 htole32(UHCI_TD_PID_IN)) {
264 td->td_buffer = htole32(ml->buf_res.physaddr);
424 htole32(buf_res.physaddr) |
425 htole32(UHCI_PTR_QH);
443 htole32(buf_res.physaddr) |
444 htole32(UHCI_PTR_TD);
525 qh_x->qh_e_next = htole32(UHCI_PTR_T);
542 qh_intr->qh_e_next = htole32(UHCI_PTR_
[all...]
/freebsd-11-stable/sys/dev/usb/net/
H A Dif_urndis.c303 msg.ibuf.filter = htole32(sc->sc_filter);
644 msg_filter.filter = htole32(sc->sc_filter);
664 msg.rm_type = htole32(REMOTE_NDIS_INITIALIZE_MSG);
665 msg.rm_len = htole32(sizeof(msg));
667 msg.rm_ver_major = htole32(RNDIS_VERSION_MAJOR);
668 msg.rm_ver_minor = htole32(1);
669 msg.rm_max_xfersz = htole32(RNDIS_RX_MAXLEN);
701 msg.rm_type = htole32(REMOTE_NDIS_HALT_MSG);
702 msg.rm_len = htole32(sizeof(msg));
730 msg->rm_type = htole32(REMOTE_NDIS_QUERY_MS
[all...]
/freebsd-11-stable/sys/net80211/
H A Dieee80211_radiotap.c73 th->it_present = htole32(tx_radiotap);
89 rh->it_present = htole32(rx_radiotap);
153 rc->flags = htole32(c->ic_flags);
168 if (rh->it_present & htole32(1<<IEEE80211_RADIOTAP_XCHANNEL))
170 else if (rh->it_present & htole32(1<<IEEE80211_RADIOTAP_CHANNEL))
176 if (th->it_present & htole32(1<<IEEE80211_RADIOTAP_XCHANNEL))
178 else if (th->it_present & htole32(1<<IEEE80211_RADIOTAP_CHANNEL))
/freebsd-11-stable/contrib/openbsm/compat/
H A Dendian.h129 #define htole32(x) ((uint32_t)(x)) macro
143 #define htole32(x) bswap32((x)) macro
/freebsd-11-stable/sys/dev/iir/
H A Diir_pci.c229 bus_write_4(gdt->sc_dpmem, GDT_MPR_IC, htole32(GDT_MPR_MAGIC));
230 if (bus_read_4(gdt->sc_dpmem, GDT_MPR_IC) != htole32(GDT_MPR_MAGIC)) {
236 bus_set_region_4(gdt->sc_dpmem, GDT_I960_SZ, htole32(0), GDT_MPR_SZ >> 2);
246 htole32(rman_get_start(gdt->sc_dpmem)));
271 bus_write_4(gdt->sc_dpmem, GDT_MPR_IC + GDT_S_INFO, htole32(0));
273 htole32(0));
275 htole32(1));
277 htole32(0));
/freebsd-11-stable/contrib/ofed/include/
H A Dbyteorder.h42 #define cpu_to_le32 htole32
56 #define cpu_to_le32p(x) htole32(*((uint32_t *)x))
/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h46 #define cpu_to_le32(x) htole32(x)
60 #define cpu_to_le32p(x) htole32(*((const uint32_t *)(x)))
/freebsd-11-stable/sys/dev/ata/chipsets/
H A Data-promise.c689 wordp[0] = htole32(0x04 | ((ch->unit + 1) << 16) | (0x00 << 24));
694 wordp[0] = htole32(0x00 | ((ch->unit + 1) << 16) | (0x00 << 24));
697 wordp[1] = htole32(request->dma->sg_bus);
1010 prd[i].addr = htole32(segs[i].ds_addr);
1011 prd[i].count = htole32(segs[i].ds_len);
1015 prd[i - 1].count = htole32(segs[i - 1].ds_len - MAXLASTSGSIZE);
1016 prd[i].count = htole32(MAXLASTSGSIZE);
1017 prd[i].addr = htole32(segs[i - 1].ds_addr +
1022 prd[i - 1].count |= htole32(ATA_DMA_EOT);
1073 htole32((c
[all...]
/freebsd-11-stable/sys/dev/mpr/
H A Dmpr.c904 mpr_regwrite(sc, MPI2_DOORBELL_OFFSET, htole32(data32[i]));
1072 htole32((uint32_t)sc->req_busaddr);
1075 htole32((uint32_t)sc->post_busaddr);
1077 init.ReplyFreeQueueAddress.Low = htole32((uint32_t)sc->free_busaddr);
1080 init.TimeStamp.High = htole32((time_in_msec >> 32) & 0xFFFFFFFF);
1081 init.TimeStamp.Low = htole32(time_in_msec & 0xFFFFFFFF);
2615 buff_len += htole32(segs[i].ds_len);
2667 if (htole32(segs[0].ds_len) <
2728 htole32((uint32_t)((uint64_t)(uintptr_t)msg_phys >> 32));
2730 htole32((uint32_
[all...]

Completed in 168 milliseconds

123456789