Home
last modified time | relevance | path

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

12

/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A Dl2cap_command.cpp20 *data = htole16(mtu); in make_l2cap_command_reject()
23 data->invalid_cid.scid = htole16(scid); in make_l2cap_command_reject()
24 data->invalid_cid.dcid = htole16(dcid); in make_l2cap_command_reject()
32 command->reason = (uint16)htole16(reason); in make_l2cap_command_reject()
50 command->psm = htole16(psm); in make_l2cap_connection_req()
51 command->scid = htole16(scid); in make_l2cap_connection_req()
69 command->dcid = htole16(dcid); in make_l2cap_connection_rsp()
70 command->scid = htole16(scid); in make_l2cap_connection_rsp()
71 command->result = htole16(result); in make_l2cap_connection_rsp()
72 command->status = htole16(status); in make_l2cap_connection_rsp()
[all …]
H A Dl2cap_command.h14 #define htole16(x) B_HOST_TO_LENDIAN_INT16(x) macro
H A Dl2cap_signal.cpp343 header->length = htole16(command->size - sizeof(l2cap_command_header)); in send_l2cap_command()
346 basicHeader->length = htole16(command->size - sizeof(l2cap_basic_header)); in send_l2cap_command()
347 basicHeader->dcid = htole16(L2CAP_SIGNALING_CID); in send_l2cap_command()
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malohal.c65 pCmd->cmdhdr.cmd = htole16(_cmd); \
66 pCmd->cmdhdr.length = htole16(sizeof(_type)); \
345 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD); in malo_hal_send_helper()
346 mh->mh_cmdbuf[1] = htole16(bsize); in malo_hal_send_helper()
406 mh->mh_cmdbuf[0] = htole16(MALO_HOSTCMD_CODE_DNLD); in malo_hal_send_main()
407 mh->mh_cmdbuf[1] = htole16(dsize); in malo_hal_send_main()
408 mh->mh_cmdbuf[2] = htole16(seqnum); in malo_hal_send_main()
607 cmd->action = htole16(dirset); in malo_hal_setantenna()
612 cmd->mode = htole16(ant); in malo_hal_setantenna()
637 cmd->action = htole16(MALO_HOSTCMD_ACT_GEN_SET); in malo_hal_setradio()
[all …]
H A Dif_malo.c1133 tr->fwlen = htole16(pktlen - hdrlen); in malo_tx_start()
1155 ds->pktlen = htole16(bf->bf_segs[0].ds_len); in malo_tx_start()
1388 ds->pktlen = htole16(MALO_RXSIZE); in malo_rxbuf_init()
1893 sc->malo_tx_th.wt_chan_freq = htole16(chan->ic_freq); in malo_chan_set()
1894 sc->malo_rx_th.wr_chan_freq = htole16(chan->ic_freq); in malo_chan_set()
1896 sc->malo_tx_th.wt_chan_flags = htole16(IEEE80211_CHAN_G); in malo_chan_set()
1897 sc->malo_rx_th.wr_chan_flags = htole16(IEEE80211_CHAN_G); in malo_chan_set()
1899 sc->malo_tx_th.wt_chan_flags = htole16(IEEE80211_CHAN_B); in malo_chan_set()
1900 sc->malo_rx_th.wr_chan_flags = htole16(IEEE80211_CHAN_B); in malo_chan_set()
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/dev/mwl/
H A Dmwlhal.c100 pCmd->CmdHdr.Cmd = htole16(cmd); \
101 pCmd->CmdHdr.Length = htole16(sizeof(type)); \
271 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_AP); in mwl_hal_attach()
276 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_AP); in mwl_hal_attach()
281 hvap->bss_type = htole16(WL_MAC_TYPE_PRIMARY_CLIENT); in mwl_hal_attach()
286 hvap->bss_type = htole16(WL_MAC_TYPE_SECONDARY_CLIENT); in mwl_hal_attach()
729 pCmd->Action = htole16(HostCmd_ACT_GEN_SET); in mwl_hal_setradio()
733 pCmd->Control = htole16(preamble); in mwl_hal_setradio()
734 pCmd->RadioOn = htole16(onoff); in mwl_hal_setradio()
760 pCmd->Action = htole16(dirSet); in mwl_hal_setantenna()
[all …]
H A Dif_mwlvar.h194 bas->qos = htole16(tid | IEEE80211_QOS_ACKPOLICY_BA); in mwl_bastream_setup()
215 return (qos & htole16(IEEE80211_QOS_TID|IEEE80211_QOS_ACKPOLICY)) == in mwl_bastream_match()
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_radiotap.c72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
139 rc->freq = htole16(c->ic_freq); in set_channel()
140 rc->flags = htole16(c->ic_flags); in set_channel()
154 rc->freq = htole16(c->ic_freq); in set_xchannel()
H A Dieee80211_output.c998 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_send_setup()
1865 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_encap()
1879 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in ieee80211_encap()
2022 *(uint16_t *)&whf->i_seq[0] |= htole16( in ieee80211_fragment()
2348 quiet->duration = htole16(vap->iv_quiet_duration); in ieee80211_add_quiet()
2349 quiet->offset = htole16(vap->iv_quiet_offset); in ieee80211_add_quiet()
2747 (is_shared_key) ? htole16(IEEE80211_AUTH_ALG_SHARED) in ieee80211_send_mgmt()
2748 : htole16(IEEE80211_AUTH_ALG_OPEN); in ieee80211_send_mgmt()
2749 ((uint16_t *)frm)[1] = htole16(arg); /* sequence number */ in ieee80211_send_mgmt()
2750 ((uint16_t *)frm)[2] = htole16(status);/* status */ in ieee80211_send_mgmt()
[all …]
/haiku/headers/compatibility/bsd/
H A Dendian.h48 #define htole16(x) ((uint16_t)(x)) macro
62 #define htole16(x) bswap16((x))
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/
H A Dr88e_tx.c67 txd->txdseq |= htole16(R88E_TXDSEQ_HWSEQ_EN); in r88e_tx_setup_hwseq()
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/
H A Drtwn_pci_tx.c132 txd->pktlen = htole16(m->m_pkthdr.len); in rtwn_pci_tx_start_frame()
220 if (!own || txd->pktlen != htole16(m->m_pkthdr.len)) { in rtwn_pci_tx_start_beacon()
239 txd->pktlen = htole16(m->m_pkthdr.len); in rtwn_pci_tx_start_beacon()
H A Drtwn_pci_reg.c66 val = htole16(val); in rtwn_pci_write_2()
/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/ether/nforce/dev/nfe/
H A Dif_nfe.c1927 desc64->length = htole16(m->m_len); in nfe_discard_rxbuf()
1928 desc64->flags = htole16(NFE_RX_READY); in nfe_discard_rxbuf()
1931 desc32->length = htole16(m->m_len); in nfe_discard_rxbuf()
1932 desc32->flags = htole16(NFE_RX_READY); in nfe_discard_rxbuf()
1952 desc64->length = htole16(m->m_len); in nfe_discard_jrxbuf()
1953 desc64->flags = htole16(NFE_RX_READY); in nfe_discard_jrxbuf()
1956 desc32->length = htole16(m->m_len); in nfe_discard_jrxbuf()
1957 desc32->flags = htole16(NFE_RX_READY); in nfe_discard_jrxbuf()
2004 desc64->length = htole16(segs[0].ds_len); in nfe_newbuf()
2005 desc64->flags = htole16(NFE_RX_READY); in nfe_newbuf()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi4965/dev/iwn/
H A Dif_iwn.c2231 if (val & htole16(IWN_EEPROM_SKU_CAP_11N)) in iwn_read_eeprom()
3148 if (stat->flags & htole16(IWN_STAT_FLAG_SHPREAMBLE)) in iwn_rx_done()
4388 *w = htole16(len + 8); in iwn4965_update_sched()
4406 *w = htole16(id << 12 | (len + 8)); in iwn5000_update_sched()
4424 *w = (*w & htole16(0xf000)) | htole16(1); in iwn5000_reset_sched()
4708 htole16(seqno << IEEE80211_SEQ_SEQ_SHIFT); in iwn_tx_data()
4733 tx->timeout = htole16(3); in iwn_tx_data()
4735 tx->timeout = htole16(2); in iwn_tx_data()
4737 tx->timeout = htole16(0); in iwn_tx_data()
4828 tx->timeout = htole16(3); in iwn_tx_data_raw()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A Dem_txrx.c166 htole16(pi->ipi_ehdrlen + pi->ipi_ip_hlen - 1); in em_tso_setup()
172 TXD->lower_setup.ip_fields.ipcse = htole16(0); in em_tso_setup()
195 TXD->tcp_seg_setup.fields.mss = htole16(pi->ipi_tso_segsz); in em_tso_setup()
292 TXD->lower_setup.ip_fields.ipcse = htole16(hdr_len - 1); in em_transmit_checksum_setup()
295 TXD->lower_setup.ip_fields.ipcse = htole16(0); in em_transmit_checksum_setup()
314 TXD->upper_setup.tcp_fields.tucse = htole16(0); in em_transmit_checksum_setup()
383 txd_upper |= htole16(pi->ipi_vtag) << 16; in em_isc_txd_encap()
/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)); in iwx_ctxt_info_init()
938 ctxt_info->version.size = htole16(sizeof(*ctxt_info) / 4); in iwx_ctxt_info_init()
1030 prph_sc_ctrl->version.mac_id = htole16(IWX_READ(sc, IWX_CSR_HW_REV)); in iwx_ctxt_info_gen3_init()
1031 prph_sc_ctrl->version.size = htole16(sizeof(*prph_scratch) / 4); in iwx_ctxt_info_gen3_init()
1069 ctxt_info_gen3->mtr_size = htole16(cb_size); in iwx_ctxt_info_gen3_init()
1071 ctxt_info_gen3->mcr_size = htole16(cb_size); in iwx_ctxt_info_gen3_init()
2848 cmd_v0.flags = htole16(IWX_TX_QUEUE_CFG_ENABLE_QUEUE); in iwx_enable_txq()
2932 cmd_v0.flags = htole16(0); /* clear "queue enabled" flag */ in iwx_disable_txq()
3394 cmd.alloc.ssn = htole16(ssn); in iwx_sta_rx_agg_baid_cfg_cmd()
3395 cmd.alloc.win_size = htole16(winsize); in iwx_sta_rx_agg_baid_cfg_cmd()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/ral/
H A Drt2860.c752 rxd->sdl0 = htole16(MCLBYTES); in rt2860_alloc_rx_ring()
769 ring->rxd[i].sdl0 &= ~htole16(RT2860_RX_DDONE); in rt2860_reset_rx_ring()
1200 if (__predict_false(!(rxd->sdl0 & htole16(RT2860_RX_DDONE)))) { in rt2860_rx_intr()
1334 skip: rxd->sdl0 &= ~htole16(RT2860_RX_DDONE); in rt2860_rx_intr()
1525 txwi->len = htole16(m->m_pkthdr.len); in rt2860_tx()
1527 txwi->phy = htole16(RT2860_PHY_CCK); in rt2860_tx()
1532 txwi->phy = htole16(RT2860_PHY_OFDM); in rt2860_tx()
1533 txwi->phy |= htole16(mcs); in rt2860_tx()
1543 txwi->len |= htole16(pid << RT2860_TX_PID_SHIFT); in rt2860_tx()
1563 *(uint16_t *)wh->i_dur = htole16(dur); in rt2860_tx()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi/
H A Dif_wpi.c2015 if (head->flags & htole16(WPI_STAT_FLAG_SHPREAMBLE)) in wpi_rx_done()
2895 tx->timeout = htole16(3); in wpi_tx_data()
2897 tx->timeout = htole16(2); in wpi_tx_data()
2928 tx->lnext = htole16(next->m_pkthdr.len); in wpi_tx_data()
2934 tx->len = htole16(totlen); in wpi_tx_data()
3021 tx->timeout = htole16(3); in wpi_tx_data_raw()
3023 tx->timeout = htole16(2); in wpi_tx_data_raw()
3039 tx->len = htole16(totlen); in wpi_tx_data_raw()
3536 cmd.ac[aci].cwmin = htole16(WPI_EXP2(ac->wmep_logcwmin)); in wpi_updateedca()
3537 cmd.ac[aci].cwmax = htole16(WPI_EXP2(ac->wmep_logcwmax)); in wpi_updateedca()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/
H A Dif_fxp.c1639 htole16(sc->tx_cmd | FXP_CB_COMMAND_SF | in fxp_encap()
1643 htole16(sc->tx_cmd | FXP_CB_COMMAND_SF | in fxp_encap()
1651 sc->fxp_desc.tx_last->tx_cb->cb_command &= htole16(~FXP_CB_COMMAND_S); in fxp_encap()
2357 cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG | in fxp_init_body()
2494 cb_ias->cb_command = htole16(FXP_CB_COMMAND_IAS | FXP_CB_COMMAND_EL); in fxp_init_body()
2522 tcbp[i].cb_status = htole16(FXP_CB_STATUS_C | FXP_CB_STATUS_OK); in fxp_init_body()
2523 tcbp[i].cb_command = htole16(FXP_CB_COMMAND_NOP); in fxp_init_body()
2538 tcbp->cb_command = htole16(FXP_CB_COMMAND_NOP | FXP_CB_COMMAND_S); in fxp_init_body()
2661 rfa->size = htole16(MCLBYTES - sc->rfa_size - RFA_ALIGNMENT_FUDGE); in fxp_new_rfabuf()
2664 rfa->rfa_control = htole16(FXP_RFA_CONTROL_EL); in fxp_new_rfabuf()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/usb/
H A Drtwn_usb_reg.c110 val = htole16(val); in rtwn_usb_write_2()
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/
H A Dif_iwm.c2477 cmd.ssn = htole16(ssn); in iwm_enable_txq()
2879 = htole16(IWM_TE_V2_NOTIF_HOST_EVENT_START | in iwm_protect_session()
2940 .offset = htole16(offset), in iwm_nvm_read_chunk()
2941 .length = htole16(length), in iwm_nvm_read_chunk()
2942 .type = htole16(section), in iwm_nvm_read_chunk()
3611 cmd.tid_disable_tx = htole16(in->tid_disable_ampdu); in iwm_sta_tx_agg()
4836 htole16(ic->ic_channels[chanidx].ic_freq); in iwm_rx_frame()
4845 tap->wr_chan_flags = htole16(chan_flags); in iwm_rx_frame()
5366 if (!(desc->status & htole16(IWM_RX_MPDU_RES_STATUS_CRC_OK)) || in iwm_rx_mpdu_mq()
5367 !(desc->status & htole16(IWM_RX_MPDU_RES_STATUS_OVERRUN_OK))) { in iwm_rx_mpdu_mq()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/
H A Dlancevar.h135 #define LE_HTOLE16(v) (((sc)->sc_flags & LE_BSWAP) ? htole16(v) : (v))
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi2200/dev/iwi/
H A Dif_iwi.c1014 #define IWI_EXP2(v) htole16((1 << (v)) - 1)
1015 #define IWI_USEC(v) htole16(IEEE80211_TXOP_TO_US(v))
1902 desc->len = htole16(m0->m_pkthdr.len); in iwi_tx_start()
1916 desc->seg_len[i] = htole16(segs[i].ds_len); in iwi_tx_start()
2383 MEM_WRITE_2(sc, 0x200010, htole16(*w)); in iwi_load_ucode()
2721 scan.dwell_time[IWI_SCAN_TYPE_PASSIVE] = htole16(maxdwell); in iwi_scanchan()
2729 scan.dwell_time[IWI_SCAN_TYPE_BROADCAST] = htole16(30); in iwi_scanchan()
2730 scan.dwell_time[IWI_SCAN_TYPE_BDIRECTED] = htole16(30); in iwi_scanchan()
2732 scan.dwell_time[IWI_SCAN_TYPE_BROADCAST] = htole16(maxdwell); in iwi_scanchan()
2733 scan.dwell_time[IWI_SCAN_TYPE_BDIRECTED] = htole16(maxdwell); in iwi_scanchan()
[all …]

12