Searched refs:htole16 (Results 1 - 25 of 45) sorted by relevance

12

/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A Dl2cap_command.cpp122 bufferHeader->param.reason = htole16((_reason));
125 bufferHeader->data.mtu.mtu = htole16((_mtu));
128 bufferHeader->data.cid.scid = htole16((_scid));
129 bufferHeader->data.cid.dcid = htole16((_dcid));
133 bufferHeader->hdr.length = htole16(bufferHeader->hdr.length);
159 bufferHeader->hdr.length = htole16(sizeof(bufferHeader->param));
161 bufferHeader->param.psm = htole16((_psm));
162 bufferHeader->param.scid = htole16((_scid));
188 bufferHeader->hdr.length = htole16(sizeof(bufferHeader->param));
190 bufferHeader->param.dcid = htole16((_dci
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/dev/mwl/
H A Dmwlhal.c102 pCmd->CmdHdr.Cmd = htole16(cmd); \
103 pCmd->CmdHdr.Length = htole16(sizeof(type)); \
273 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_AP);
278 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_AP);
283 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_CLIENT);
288 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_CLIENT);
733 pCmd->Action = htole16(HostCmd_ACT_GEN_SET);
737 pCmd->Control = htole16(preamble);
738 pCmd->RadioOn = htole16(onoff);
764 pCmd->Action = htole16(dirSe
[all...]
H A Dif_mwlvar.h196 bas->qos = htole16(tid | IEEE80211_QOS_ACKPOLICY_BA);
217 return (qos & htole16(IEEE80211_QOS_TID|IEEE80211_QOS_ACKPOLICY)) ==
H A Dif_mwl.c1041 mvp->mv_eapolformat = htole16(mwl_calcformat(rates.MgtRate, ni));
1075 mvp->mv_eapolformat = htole16(mwl_calcformat(rate, ni));
2516 ds->PktLen = htole16(MWL_AGGR_SIZE);
3185 tr->fwlen = htole16(pktlen - hdrlen);
3218 ds->PktLen = htole16(bf->bf_segs[0].ds_len);
3221 ds->PktLen = htole16(m0->m_pkthdr.len);
3224 ds->PktLenArray[i] = htole16(bf->bf_segs[i].ds_len);
3255 ds->pad = htole16(
3259 ds->Format = htole16(
3261 ds->pad = htole16(EAGLE_TXD_FIXED_RAT
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malohal.c66 pCmd->cmdhdr.cmd = htole16(_cmd); \
67 pCmd->cmdhdr.length = htole16(sizeof(_type)); \
348 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD);
349 mh->mh_cmdbuf[1] = htole16(bsize);
410 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD);
411 mh->mh_cmdbuf[1] = htole16(dsize);
412 mh->mh_cmdbuf[2] = htole16(seqnum);
612 cmd->action = htole16(dirset);
617 cmd->mode = htole16(ant);
642 cmd->action = htole16(MALO_HOSTCMD_ACT_GEN_SE
[all...]
H A Dif_malo.c1137 tr->fwlen = htole16(pktlen - hdrlen);
1159 ds->pktlen = htole16(bf->bf_segs[0].ds_len);
1392 ds->pktlen = htole16(MALO_RXSIZE);
1900 sc->malo_tx_th.wt_chan_freq = htole16(chan->ic_freq);
1901 sc->malo_rx_th.wr_chan_freq = htole16(chan->ic_freq);
1903 sc->malo_tx_th.wt_chan_flags = htole16(IEEE80211_CHAN_G);
1904 sc->malo_rx_th.wr_chan_flags = htole16(IEEE80211_CHAN_G);
1906 sc->malo_tx_th.wt_chan_flags = htole16(IEEE80211_CHAN_B);
1907 sc->malo_rx_th.wr_chan_flags = htole16(IEEE80211_CHAN_B);
/haiku/headers/compatibility/bsd/
H A Dendian.h38 #define htole16(x) ((uint16_t)(x)) macro
52 #define htole16(x) bswap16((x)) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/
H A Dr88e_tx.c69 txd->txdseq |= htole16(R88E_TXDSEQ_HWSEQ_EN);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_radiotap.c74 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t)));
90 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t)));
141 rc->freq = htole16(c->ic_freq);
142 rc->flags = htole16(c->ic_flags);
156 rc->freq = htole16(c->ic_freq);
H A Dieee80211_output.c997 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT);
1857 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT);
1871 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT);
2014 *(uint16_t *)&whf->i_seq[0] |= htole16(
2340 quiet->duration = htole16(vap->iv_quiet_duration);
2341 quiet->offset = htole16(vap->iv_quiet_offset);
2684 (is_shared_key) ? htole16(IEEE80211_AUTH_ALG_SHARED)
2685 : htole16(IEEE80211_AUTH_ALG_OPEN);
2686 ((uint16_t *)frm)[1] = htole16(arg); /* sequence number */
2687 ((uint16_t *)frm)[2] = htole16(statu
[all...]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dendian.h63 #define htole16(x) ((uint16_t)(x)) macro
77 #define htole16(x) bswap16((x)) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/
H A Drtwn_pci_tx.c134 txd->pktlen = htole16(m->m_pkthdr.len);
222 if (!own || txd->pktlen != htole16(m->m_pkthdr.len)) {
241 txd->pktlen = htole16(m->m_pkthdr.len);
H A Drtwn_pci_reg.c68 val = htole16(val);
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/
H A Dlancevar.h138 #define LE_HTOLE16(v) (((sc)->sc_flags & LE_BSWAP) ? htole16(v) : (v))
/haiku/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/
H A Dif_iwx.c936 htole16((uint16_t)IWX_READ(sc, IWX_CSR_HW_REV));
938 ctxt_info->version.size = htole16(sizeof(*ctxt_info) / 4);
1030 prph_sc_ctrl->version.mac_id = htole16(IWX_READ(sc, IWX_CSR_HW_REV));
1031 prph_sc_ctrl->version.size = htole16(sizeof(*prph_scratch) / 4);
1069 ctxt_info_gen3->mtr_size = htole16(cb_size);
1071 ctxt_info_gen3->mcr_size = htole16(cb_size);
2848 cmd_v0.flags = htole16(IWX_TX_QUEUE_CFG_ENABLE_QUEUE);
2932 cmd_v0.flags = htole16(0); /* clear "queue enabled" flag */
3394 cmd.alloc.ssn = htole16(ssn);
3395 cmd.alloc.win_size = htole16(winsiz
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/nforce/dev/nfe/
H A Dif_nfe.c1960 desc64->length = htole16(m->m_len);
1961 desc64->flags = htole16(NFE_RX_READY);
1964 desc32->length = htole16(m->m_len);
1965 desc32->flags = htole16(NFE_RX_READY);
1986 desc64->length = htole16(m->m_len);
1987 desc64->flags = htole16(NFE_RX_READY);
1990 desc32->length = htole16(m->m_len);
1991 desc32->flags = htole16(NFE_RX_READY);
2039 desc64->length = htole16(segs[0].ds_len);
2040 desc64->flags = htole16(NFE_RX_READ
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/
H A Drt2860.c754 rxd->sdl0 = htole16(MCLBYTES);
771 ring->rxd[i].sdl0 &= ~htole16(RT2860_RX_DDONE);
1202 if (__predict_false(!(rxd->sdl0 & htole16(RT2860_RX_DDONE)))) {
1336 skip: rxd->sdl0 &= ~htole16(RT2860_RX_DDONE);
1529 txwi->len = htole16(m->m_pkthdr.len);
1531 txwi->phy = htole16(RT2860_PHY_CCK);
1536 txwi->phy = htole16(RT2860_PHY_OFDM);
1537 txwi->phy |= htole16(mcs);
1547 txwi->len |= htole16(pid << RT2860_TX_PID_SHIFT);
1567 *(uint16_t *)wh->i_dur = htole16(du
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi4965/dev/iwn/
H A Dif_iwn.c2233 if (val & htole16(IWN_EEPROM_SKU_CAP_11N))
3150 if (stat->flags & htole16(IWN_STAT_FLAG_SHPREAMBLE))
4390 *w = htole16(len + 8);
4408 *w = htole16(id << 12 | (len + 8));
4426 *w = (*w & htole16(0xf000)) | htole16(1);
4710 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT);
4735 tx->timeout = htole16(3);
4737 tx->timeout = htole16(2);
4739 tx->timeout = htole16(
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi/
H A Dif_wpi.c2018 if (head->flags & htole16(WPI_STAT_FLAG_SHPREAMBLE))
2901 tx->timeout = htole16(3);
2903 tx->timeout = htole16(2);
2934 tx->lnext = htole16(next->m_pkthdr.len);
2940 tx->len = htole16(totlen);
3027 tx->timeout = htole16(3);
3029 tx->timeout = htole16(2);
3045 tx->len = htole16(totlen);
3542 cmd.ac[aci].cwmin = htole16(WPI_EXP2(ac->wmep_logcwmin));
3543 cmd.ac[aci].cwmax = htole16(WPI_EXP
[all...]
/haiku/headers/private/bluetooth/
H A Dl2cap.h34 #define htole16(x) (x) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/usb/
H A Drtwn_usb_reg.c112 val = htole16(val);
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A Dem_txrx.c161 htole16(pi->ipi_ehdrlen + pi->ipi_ip_hlen - 1);
178 TXD->tcp_seg_setup.fields.mss = htole16(pi->ipi_tso_segsz);
262 TXD->lower_setup.ip_fields.ipcse = htole16(hdr_len);
279 TXD->upper_setup.tcp_fields.tucse = htole16(0);
345 txd_upper |= htole16(pi->ipi_vtag) << 16;
/haiku/src/add-ons/kernel/drivers/network/ether/rdc/dev/vte/
H A Dif_vte.c1088 txd->tx_desc->dtlen = htole16(VTE_TX_LEN(txsegs[0].ds_len));
1095 txd->tx_desc->dtst = htole16(VTE_DTST_TX_OWN);
1469 rxd->rx_desc->drlen = htole16(VTE_RX_LEN(segs[0].ds_len));
1470 rxd->rx_desc->drst = htole16(VTE_DRST_RX_OWN);
1521 htole16(MCLBYTES - sizeof(uint32_t));
1522 rxd->rx_desc->drst = htole16(VTE_DRST_RX_OWN);
1528 htole16(MCLBYTES - sizeof(uint32_t));
1529 rxd->rx_desc->drst = htole16(VTE_DRST_RX_OWN);
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/
H A Dr92c_tx.c344 txd->txdseq = htole16(seqno);
397 txd->txdseq |= htole16(M_SEQNO_GET(m) % IEEE80211_SEQ_RANGE);
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_output.c206 htole16(ni->ni_txseq << IEEE80211_SEQ_SEQ_SHIFT);
667 *(u_int16_t *)qwh->i_qos = htole16(qos);
669 htole16(ni->ni_qos_txseqs[tid] << IEEE80211_SEQ_SEQ_SHIFT);
673 htole16(ni->ni_txseq << IEEE80211_SEQ_SEQ_SHIFT);
1413 *mtod(m, u_int16_t *) = htole16(reason);
1576 *mtod(m, u_int16_t *) = htole16(reason);
1949 *(u_int16_t *)rts->i_dur = htole16(dur);
1975 *(u_int16_t *)cts->i_dur = htole16(dur);

Completed in 580 milliseconds

12