htole16 1229 dev/i2o/iop.c pgop->olh.count = htole16(1); htole16 1230 dev/i2o/iop.c pgop->olh.reserved = htole16(0); htole16 1231 dev/i2o/iop.c pgop->oat.operation = htole16(op); htole16 1232 dev/i2o/iop.c pgop->oat.fieldcount = htole16(0xffff); htole16 1233 dev/i2o/iop.c pgop->oat.group = htole16(group); htole16 1243 dev/i2o/iop.c rf->detail == htole16(I2O_DSC_UNKNOWN_ERROR)) htole16 455 dev/ic/aacvar.h *(u_int16_t *)addr = htole16(value); htole16 353 dev/ic/acx.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 357 dev/ic/acx.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 795 dev/ic/acx.c rx_opt.opt1 = htole16(RXOPT1_INCL_RXBUF_HDR); htole16 796 dev/ic/acx.c rx_opt.opt2 = htole16( htole16 1018 dev/ic/acx.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1020 dev/ic/acx.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1298 dev/ic/acx.c if ((buf->rb_desc->h_ctrl & htole16(DESC_CTRL_HOSTOWN)) && htole16 1374 dev/ic/acx.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1376 dev/ic/acx.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1403 dev/ic/acx.c buf->rb_desc->h_ctrl = htole16(desc_ctrl & ~DESC_CTRL_HOSTOWN); htole16 2067 dev/ic/acx.c rd->tx_ring[i].h_ctrl = htole16(DESC_CTRL_HOSTOWN); htole16 2166 dev/ic/acx.c rb->rb_desc->h_data_len = htole16(m->m_len); htole16 2285 dev/ic/acx.c htole16(sc->chip_txdesc1_len ? sc->chip_txdesc1_len htole16 2288 dev/ic/acx.c htole16(m->m_pkthdr.len - ACX_FRAME_HDRLEN); htole16 2498 dev/ic/acx.c bj->beacon_intvl = htole16(acx_beacon_intvl); htole16 2550 dev/ic/acx.c confcom->conf_id = htole16(conf_id); htole16 2551 dev/ic/acx.c confcom->conf_data_len = htole16(conf_len - sizeof(*confcom)); htole16 2570 dev/ic/acx.c confcom->conf_id = htole16(conf_id); htole16 2571 dev/ic/acx.c confcom->conf_data_len = htole16(conf_len - sizeof(*confcom)); htole16 2589 dev/ic/acx.c *size = htole16(tmplt_len - sizeof(*size)); htole16 351 dev/ic/acx100.c wep_opt.nkey = htole16(IEEE80211_WEP_NKID + 10); htole16 467 dev/ic/acx100.c memblk_sz.memblk_size = htole16(ACX_MEMBLOCK_SIZE); htole16 496 dev/ic/acx100.c mem.rx_memblk_num = htole16(rxblk_num); htole16 497 dev/ic/acx100.c mem.tx_memblk_num = htole16(txblk_num); htole16 337 dev/ic/acx111.c mem.sta_max = htole16(ACX111_STA_MAX); htole16 338 dev/ic/acx111.c mem.memblk_size = htole16(ACX_MEMBLOCK_SIZE); htole16 460 dev/ic/acx111.c bj->basic_rates = htole16(ACX111_RATE_ALL); htole16 91 dev/ic/aic7xxx_cam.h #define aic_htole16(x) htole16(x) htole16 1568 dev/ic/ami.c cmd->acc_mbox.amb_nsect = htole16(blockcnt); htole16 403 dev/ic/ath.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 408 dev/ic/ath.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 2340 dev/ic/ath.c *((u_int16_t*) wh->i_dur) = htole16(dur); htole16 2754 dev/ic/ath.c htole16(chan->ic_freq); htole16 2756 dev/ic/ath.c htole16(chan->ic_flags); htole16 739 dev/ic/atw.c htole16(sc->sc_srom[ATW_SR_MAC00]), htole16 740 dev/ic/atw.c htole16(sc->sc_srom[ATW_SR_MAC01]), htole16 741 dev/ic/atw.c htole16(sc->sc_srom[ATW_SR_MAC10]))); htole16 3705 dev/ic/atw.c *(uint16_t *)wh->i_dur = htole16(txs->txs_d0.d_rts_dur); htole16 3780 dev/ic/atw.c hh->atw_paylen = htole16(m0->m_pkthdr.len - htole16 3783 dev/ic/atw.c hh->atw_fragthr = htole16(ATW_FRAGTHR_FRAGTHR_MASK); htole16 3785 dev/ic/atw.c hh->atw_hdrctl = htole16(ATW_HDRCTL_UNKNOWN1); htole16 3788 dev/ic/atw.c hh->atw_hdrctl |= htole16(ATW_HDRCTL_WEP); htole16 3793 dev/ic/atw.c hh->atw_head_plcplen = htole16(txs->txs_d0.d_plcp_len); htole16 3794 dev/ic/atw.c hh->atw_tail_plcplen = htole16(txs->txs_dn.d_plcp_len); htole16 3796 dev/ic/atw.c hh->atw_head_plcplen |= htole16(0x8000); htole16 3798 dev/ic/atw.c hh->atw_tail_plcplen |= htole16(0x8000); htole16 3799 dev/ic/atw.c hh->atw_head_dur = htole16(txs->txs_d0.d_rts_dur); htole16 3800 dev/ic/atw.c hh->atw_tail_dur = htole16(txs->txs_dn.d_rts_dur); htole16 3804 dev/ic/atw.c hh->atw_fragthr = htole16(ATW_FRAGTHR_FRAGTHR_MASK); htole16 3806 dev/ic/atw.c hh->atw_hdrctl |= htole16(ATW_HDRCTL_RTSCTS); htole16 363 dev/ic/cac.c ccb->ccb_hdr.size = htole16((sizeof(struct cac_req) + htole16 370 dev/ic/cac.c ccb->ccb_req.bcount = htole16(howmany(size, DEV_BSIZE)); htole16 277 dev/ic/ciss.c cmd->sglen = htole16((u_int16_t)cmd->sgin); htole16 530 dev/ic/ciss.c cmd->sglen = htole16((u_int16_t)cmd->sgin); htole16 737 dev/ic/ciss.c cmd->tmo = htole16(0); htole16 769 dev/ic/ciss.c cmd->tmo = htole16(30); htole16 809 dev/ic/ciss.c cmd->tmo = htole16(0); htole16 866 dev/ic/ciss.c cmd->tmo = htole16(xs->timeout < 1000? 1 : xs->timeout / 1000); htole16 925 dev/ic/ciss.c cmd->tmo = htole16(xs->timeout < 1000? 1 : xs->timeout / 1000); htole16 1248 dev/ic/ciss.c cmd->tmo = htole16(0); htole16 1276 dev/ic/ciss.c cmd->tmo = htole16(0); htole16 1304 dev/ic/ciss.c cmd->tmo = htole16(0); htole16 1375 dev/ic/ciss.c cmd->tmo = htole16(0); htole16 757 dev/ic/fxp.c txc->cb_command = htole16(FXP_CB_COMMAND_XMIT | FXP_CB_COMMAND_SF); htole16 780 dev/ic/fxp.c htole16(FXP_CB_COMMAND_I | FXP_CB_COMMAND_NOP | FXP_CB_COMMAND_S); htole16 787 dev/ic/fxp.c htole16(~(FXP_CB_COMMAND_S | FXP_CB_COMMAND_I)); htole16 846 dev/ic/fxp.c ((txs->tx_cb->cb_status & htole16(FXP_CB_STATUS_C)) || htole16 847 dev/ic/fxp.c (txs->tx_cb->cb_command & htole16(FXP_CB_COMMAND_NOP)))) { htole16 892 dev/ic/fxp.c htole16(FXP_RFA_STATUS_C)) { htole16 895 dev/ic/fxp.c htole16(FXP_RFA_STATUS_RNR)) htole16 912 dev/ic/fxp.c total_len = htole16(*(u_int16_t *)(rfap + htole16 924 dev/ic/fxp.c htole16(FXP_RFA_STATUS_CRC)) { htole16 1256 dev/ic/fxp.c cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG | FXP_CB_COMMAND_EL); htole16 1309 dev/ic/fxp.c } while ((cbp->cb_status & htole16(FXP_CB_STATUS_C)) == 0); htole16 1315 dev/ic/fxp.c cb_ias->cb_status = htole16(0); htole16 1316 dev/ic/fxp.c cb_ias->cb_command = htole16(FXP_CB_COMMAND_IAS | FXP_CB_COMMAND_EL); htole16 1333 dev/ic/fxp.c } while (!(cb_ias->cb_status & htole16(FXP_CB_STATUS_C))); htole16 1344 dev/ic/fxp.c txp[i].cb_command = htole16(FXP_CB_COMMAND_NOP); htole16 1356 dev/ic/fxp.c sc->sc_ctrl->tx_cb[0].cb_command = htole16(FXP_CB_COMMAND_NOP | htole16 1517 dev/ic/fxp.c htole16(MCLBYTES - sizeof(struct fxp_rfa) - RFA_ALIGNMENT_FUDGE); htole16 1526 dev/ic/fxp.c htole16(FXP_RFA_CONTROL_EL); htole16 1549 dev/ic/fxp.c htole16((u_int16_t)~FXP_RFA_CONTROL_EL); htole16 1706 dev/ic/fxp.c mcsp->cb_status = htole16(0); htole16 1707 dev/ic/fxp.c mcsp->cb_command = htole16(FXP_CB_COMMAND_MCAS | FXP_CB_COMMAND_EL); htole16 1735 dev/ic/fxp.c mcsp->mc_cnt = htole16(nmcasts * ETHER_ADDR_LEN); htole16 1755 dev/ic/fxp.c } while (!(mcsp->cb_status & htole16(FXP_CB_STATUS_C))); htole16 1831 dev/ic/fxp.c cbp->cb_command = htole16(FXP_CB_COMMAND_UCODE|FXP_CB_COMMAND_EL); htole16 1838 dev/ic/fxp.c htole16(sc->sc_int_delay + sc->sc_int_delay / 2); htole16 1842 dev/ic/fxp.c htole16(sc->sc_bundle_max); htole16 1846 dev/ic/fxp.c htole16(sc->sc_min_size_mask); htole16 1863 dev/ic/fxp.c } while (((cbp->cb_status & htole16(FXP_CB_STATUS_C)) == 0) && --i); htole16 423 dev/ic/gdtvar.h *(u_int16_t *)addr = htole16(value); htole16 296 dev/ic/if_wi.c sc->wi_ibss_port = htole16(1); htole16 320 dev/ic/if_wi.c sc->wi_ibss_port = htole16(0); htole16 328 dev/ic/if_wi.c sc->wi_ibss_port = htole16(4); htole16 337 dev/ic/if_wi.c if (wi_read_record(sc, &gen) == 0 && gen.wi_val != htole16(0)) htole16 584 dev/ic/if_wi.c if (rx_frame->wi_status & htole16(WI_STAT_BADCRC)) { htole16 653 dev/ic/if_wi.c if (rx_frame.wi_status & htole16(WI_STAT_ERRSTAT)) { htole16 781 dev/ic/if_wi.c rx_frame.wi_frame_ctl & htole16(WI_FCTL_WEP)) { htole16 908 dev/ic/if_wi.c if (gen.wi_type == htole16(WI_INFO_SCAN_RESULTS)) { htole16 913 dev/ic/if_wi.c } else if (gen.wi_type != htole16(WI_INFO_COUNTERS)) htole16 1114 dev/ic/if_wi.c ltv->wi_val = htole16(WI_PORTTYPE_IBSS); htole16 1131 dev/ic/if_wi.c oltv->wi_val = htole16(v); htole16 1135 dev/ic/if_wi.c if (ltv->wi_val & htole16(0x01)) htole16 1136 dev/ic/if_wi.c oltv->wi_val = htole16(1); htole16 1138 dev/ic/if_wi.c oltv->wi_val = htole16(0); htole16 1186 dev/ic/if_wi.c p2ltv.wi_val = htole16(v); htole16 1192 dev/ic/if_wi.c if (ltv->wi_val & htole16(0x01)) { htole16 1219 dev/ic/if_wi.c p2ltv.wi_val = htole16(val); htole16 1221 dev/ic/if_wi.c p2ltv.wi_val = htole16(HOST_ENCRYPT | HOST_DECRYPT); htole16 1673 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_procframe); htole16 1677 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->sc_firmware_type == htole16 1682 dev/ic/if_wi.c htole16((u_int16_t)sc->wi_crypto_algorithm); htole16 1875 dev/ic/if_wi.c htole16(((struct ieee80211chanreq *)data)->i_channel); htole16 2477 dev/ic/if_wi.c tx_frame.wi_frame_ctl = htole16(WI_FTYPE_DATA | WI_STYPE_DATA); htole16 2505 dev/ic/if_wi.c tx_frame.wi_tx_ctl = htole16(WI_ENC_TX_MGMT); /* XXX */ htole16 2506 dev/ic/if_wi.c tx_frame.wi_frame_ctl |= htole16(WI_FCTL_FROMDS); htole16 2515 dev/ic/if_wi.c tx_frame.wi_tx_ctl = htole16(WI_ENC_TX_MGMT); /* XXX */ htole16 2516 dev/ic/if_wi.c tx_frame.wi_frame_ctl |= htole16(WI_FCTL_TODS); htole16 2539 dev/ic/if_wi.c tx_frame.wi_frame_ctl |= htole16(WI_FCTL_WEP); htole16 2552 dev/ic/if_wi.c tx_frame.wi_dat_len = htole16(tx_frame.wi_dat_len); htole16 2564 dev/ic/if_wi.c tx_frame.wi_dat_len = htole16(tx_frame.wi_dat_len); htole16 2573 dev/ic/if_wi.c tx_frame.wi_dat_len = htole16(m0->m_pkthdr.len); htole16 2636 dev/ic/if_wi.c tx_frame.wi_tx_ctl = htole16(WI_ENC_TX_MGMT); htole16 2638 dev/ic/if_wi.c tx_frame.wi_len = htole16(tx_frame.wi_dat_len); htole16 2640 dev/ic/if_wi.c tx_frame.wi_dat_len = htole16(tx_frame.wi_dat_len); htole16 2752 dev/ic/if_wi.c } else if (ver.wi_ver[0] & htole16(0x8000)) { htole16 3021 dev/ic/if_wi.c wk->wi_keys[i].wi_keylen = htole16(len); htole16 3036 dev/ic/if_wi.c wreq.wi_val[0] = htole16(nwkey->i_defkid - 1); htole16 3046 dev/ic/if_wi.c wreq.wi_val[0] = htole16(nwkey->i_wepon); htole16 3230 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_sleep); htole16 3234 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_delaysupp); htole16 3238 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_txsupp); htole16 3242 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_monitor); htole16 3246 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_ledtest); htole16 3247 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_ledtest_param0); htole16 3248 dev/ic/if_wi.c wreq->wi_val[2] = htole16(sc->wi_debug.wi_ledtest_param1); htole16 3252 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_conttx); htole16 3253 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_conttx_param0); htole16 3257 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_contrx); htole16 3261 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_sigstate); htole16 3262 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_sigstate_param0); htole16 3266 dev/ic/if_wi.c wreq->wi_val[0] = htole16(sc->wi_debug.wi_confbits); htole16 3267 dev/ic/if_wi.c wreq->wi_val[1] = htole16(sc->wi_debug.wi_confbits_param0); htole16 147 dev/ic/if_wi_hostap.c * (u_int16_t *) *ppkt = htole16(s); htole16 256 dev/ic/if_wi_hostap.c resp_hdr->frame_ctl = htole16(WI_FTYPE_MGMT | WI_STYPE_MGMT_DEAUTH); htole16 703 dev/ic/if_wi_hostap.c resp_hdr->frame_ctl = htole16(WI_FTYPE_MGMT | WI_STYPE_MGMT_AUTH); htole16 748 dev/ic/if_wi_hostap.c if ((rxfrm->wi_frame_ctl & htole16(WI_FCTL_STYPE)) == htole16 749 dev/ic/if_wi_hostap.c htole16(WI_STYPE_MGMT_REASREQ)) { htole16 846 dev/ic/if_wi_hostap.c resp_hdr->frame_ctl = htole16(WI_FTYPE_MGMT | WI_STYPE_MGMT_ASRESP); htole16 936 dev/ic/if_wi_hostap.c if ((rxfrm->wi_frame_ctl & htole16(WI_FCTL_FTYPE)) == htole16 937 dev/ic/if_wi_hostap.c htole16(WI_FTYPE_MGMT)) { htole16 1006 dev/ic/if_wi_hostap.c if ((rxfrm->wi_frame_ctl & htole16(WI_FCTL_FTYPE)) == htole16 1007 dev/ic/if_wi_hostap.c htole16(WI_FTYPE_MGMT)) { htole16 97 dev/ic/if_wireg.h WI_BIG_ENDIAN_POSSIBLE ? htole16(val) : (val)) htole16 363 dev/ic/if_wireg.h g.wi_val = htole16(val); \ htole16 376 dev/ic/if_wireg.h s.wi_str[0] = htole16(str.i_len); \ htole16 105 dev/ic/lemacvar.h bus_space_write_2((sc)->sc_memt, (sc)->sc_memh, (o), htole16(v)) htole16 433 dev/ic/malo.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 437 dev/ic/malo.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 542 dev/ic/malo.c if (hdr->cmd & htole16(0x8000)) htole16 650 dev/ic/malo.c desc->status = htole16(1); htole16 1459 dev/ic/malo.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1460 dev/ic/malo.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1492 dev/ic/malo.c *mtod(m0, uint16_t *) = htole16(m0->m_len - 32); /* FW len */ htole16 1571 dev/ic/malo.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1572 dev/ic/malo.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1603 dev/ic/malo.c *mtod(mnew, uint16_t *) = htole16(m0->m_pkthdr.len - 24); /* FW len */ htole16 1651 dev/ic/malo.c desc->len = htole16(segs[0].ds_len); htole16 1754 dev/ic/malo.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1756 dev/ic/malo.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1887 dev/ic/malo.c hdr->cmd = htole16(0x0001); htole16 1888 dev/ic/malo.c hdr->size = htole16(bsize); htole16 1889 dev/ic/malo.c hdr->seqnum = htole16(sn++); htole16 1909 dev/ic/malo.c hdr->cmd = htole16(0x0001); htole16 1911 dev/ic/malo.c hdr->seqnum = htole16(sn++); htole16 2087 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_GET_HW_SPEC); htole16 2088 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*spec)); htole16 2089 dev/ic/malo.c hdr->seqnum = htole16(42); /* the one and only */ htole16 2105 dev/ic/malo.c "#Ant %d\n", sc->sc_dev.dv_xname, htole16(spec->HwVersion), htole16 2106 dev/ic/malo.c htole32(spec->FWReleaseNumber), htole16(spec->NumOfWCB), htole16 2107 dev/ic/malo.c htole16(spec->NumOfMCastAdr), htole16(spec->RegionCode), htole16 2108 dev/ic/malo.c htole16(spec->NumberOfAntenna))); htole16 2132 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_WEPKEY); htole16 2133 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2139 dev/ic/malo.c body->action = htole16(1); htole16 2156 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_PRESCAN); htole16 2157 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr)); htole16 2173 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_POSTSCAN); htole16 2174 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2195 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_CHANNEL); htole16 2196 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2202 dev/ic/malo.c body->action = htole16(1); htole16 2217 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_ANTENNA); htole16 2218 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2224 dev/ic/malo.c body->action = htole16(antenna); htole16 2226 dev/ic/malo.c body->mode = htole16(0xffff); htole16 2228 dev/ic/malo.c body->mode = htole16(2); htole16 2243 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_RADIO); htole16 2244 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2250 dev/ic/malo.c body->action = htole16(1); htole16 2251 dev/ic/malo.c body->preamble_mode = htole16(preamble_mode); htole16 2252 dev/ic/malo.c body->enable = htole16(enable); htole16 2266 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_AID); htole16 2267 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2273 dev/ic/malo.c body->associd = htole16(associd); htole16 2288 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_TXPOWER); htole16 2289 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2295 dev/ic/malo.c body->action = htole16(1); htole16 2297 dev/ic/malo.c body->supportpowerlvl = htole16(5); /* LOW */ htole16 2299 dev/ic/malo.c body->supportpowerlvl = htole16(10); /* MEDIUM */ htole16 2301 dev/ic/malo.c body->supportpowerlvl = htole16(15); /* HIGH */ htole16 2314 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_RTS); htole16 2315 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(threshold)); htole16 2333 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_SLOT); htole16 2334 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 2340 dev/ic/malo.c body->action = htole16(1); htole16 2357 dev/ic/malo.c hdr->cmd = htole16(MALO_CMD_SET_RATE); htole16 2358 dev/ic/malo.c hdr->size = htole16(sizeof(*hdr) + sizeof(*body)); htole16 1731 dev/ic/mpi.c iiq.reply_frame_size = htole16(MPI_REPLY_SIZE); htole16 255 dev/ic/pgt.c pd->pd_fragp->pf_size = htole16(PGT_FRAG_SIZE); htole16 278 dev/ic/pgt.c pd->pd_fragp->pf_size = htole16(PGT_FRAG_SIZE); htole16 279 dev/ic/pgt.c pd->pd_fragp->pf_flags = htole16(0); htole16 1020 dev/ic/pgt.c tap->wr_chan_freq = htole16(chan->ic_freq); htole16 1021 dev/ic/pgt.c tap->wr_chan_flags = htole16(chan->ic_flags); htole16 1305 dev/ic/pgt.c pd->pd_fragp->pf_flags & ~htole16(PF_FLAG_MF)) htole16 1496 dev/ic/pgt.c morefrags = pd->pd_fragp->pf_flags & htole16(PF_FLAG_MF); htole16 1757 dev/ic/pgt.c pd->pd_fragp->pf_flags |= htole16(PF_FLAG_MF); htole16 1758 dev/ic/pgt.c pd->pd_fragp->pf_size = htole16(len); htole16 2016 dev/ic/pgt.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 2020 dev/ic/pgt.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 2229 dev/ic/pgt.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 2231 dev/ic/pgt.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 285 dev/ic/rt2560.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 289 dev/ic/rt2560.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 1180 dev/ic/rt2560.c tap->wr_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); htole16 1182 dev/ic/rt2560.c htole16(ic->ic_ibss_chan->ic_flags); htole16 1510 dev/ic/rt2560.c desc->wme = htole16( htole16 1640 dev/ic/rt2560.c tap->wt_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); htole16 1641 dev/ic/rt2560.c tap->wt_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); htole16 1664 dev/ic/rt2560.c *(uint16_t *)wh->i_dur = htole16(dur); htole16 1873 dev/ic/rt2560.c tap->wt_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); htole16 1874 dev/ic/rt2560.c tap->wt_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); htole16 1895 dev/ic/rt2560.c *(uint16_t *)wh->i_dur = htole16(dur); htole16 319 dev/ic/rt2661.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 323 dev/ic/rt2661.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 1103 dev/ic/rt2661.c tap->wr_chan_freq = htole16(sc->sc_curchan->ic_freq); htole16 1104 dev/ic/rt2661.c tap->wr_chan_flags = htole16(sc->sc_curchan->ic_flags); htole16 1396 dev/ic/rt2661.c desc->xflags = htole16(xflags); htole16 1397 dev/ic/rt2661.c desc->xflags |= htole16(nsegs << 13); htole16 1399 dev/ic/rt2661.c desc->wme = htole16( htole16 1440 dev/ic/rt2661.c desc->len [i] = htole16(segs[i].ds_len); htole16 1490 dev/ic/rt2661.c tap->wt_chan_freq = htole16(sc->sc_curchan->ic_freq); htole16 1491 dev/ic/rt2661.c tap->wt_chan_flags = htole16(sc->sc_curchan->ic_flags); htole16 1511 dev/ic/rt2661.c *(uint16_t *)wh->i_dur = htole16(dur); htole16 1718 dev/ic/rt2661.c tap->wt_chan_freq = htole16(sc->sc_curchan->ic_freq); htole16 1719 dev/ic/rt2661.c tap->wt_chan_flags = htole16(sc->sc_curchan->ic_flags); htole16 1739 dev/ic/rt2661.c *(uint16_t *)wh->i_dur = htole16(dur); htole16 1324 dev/ic/rtw.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1326 dev/ic/rtw.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1328 dev/ic/rtw.c rr->rr_barker_lock = htole16(sq); htole16 3224 dev/ic/rtw.c *(uint16_t*)wh->i_dur = htole16(d0->d_data_dur); htole16 3253 dev/ic/rtw.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 3255 dev/ic/rtw.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 746 dev/ic/sili.c sreset.control = htole16(SILI_PRB_SOFT_RESET | SILI_PRB_INTERRUPT_MASK); htole16 805 dev/ic/sili.c atapi->control = htole16(SILI_PRB_PACKET_WRITE); htole16 807 dev/ic/sili.c atapi->control = htole16(SILI_PRB_PACKET_READ); htole16 1045 dev/ic/sili.c read_10h.control = htole16(SILI_PRB_INTERRUPT_MASK); htole16 606 dev/ic/twe.c cmd->cmd_op = htole16(cmd->cmd_op); htole16 916 dev/ic/twe.c cmd->cmd_io.count = htole16(blockcnt); htole16 48 dev/microcode/uyap/build.c address = htole16(ptr->address); htole16 1218 dev/pci/ahci.c cmd_slot->flags = htole16(5); /* FIS length: 5 DWORDS */ htole16 1219 dev/pci/ahci.c cmd_slot->flags |= htole16(AHCI_CMD_LIST_FLAG_C); /* Clear busy on OK */ htole16 1220 dev/pci/ahci.c cmd_slot->flags |= htole16(AHCI_CMD_LIST_FLAG_R); /* Reset */ htole16 1221 dev/pci/ahci.c cmd_slot->flags |= htole16(AHCI_CMD_LIST_FLAG_W); /* Write */ htole16 1232 dev/pci/ahci.c cmd_slot->flags = htole16(5); /* FIS length: 5 DWORDS */ htole16 1233 dev/pci/ahci.c cmd_slot->flags |= htole16(AHCI_CMD_LIST_FLAG_W); htole16 1369 dev/pci/ahci.c cmd_slot->prdtl = htole16(dmap->dm_nsegs); htole16 1973 dev/pci/ahci.c cmd_slot->flags = htole16(5); /* FIS length: 5 DWORDS */ htole16 2210 dev/pci/ahci.c cmd_slot->flags = htole16(5); /* FIS length (in DWORDs) */ htole16 2213 dev/pci/ahci.c cmd_slot->flags |= htole16(AHCI_CMD_LIST_FLAG_W); htole16 2216 dev/pci/ahci.c cmd_slot->flags |= htole16(AHCI_CMD_LIST_FLAG_A); htole16 1391 dev/pci/arc.c bufhdr->len = htole16(wbuflen); htole16 1470 dev/pci/arc.c bufhdr->len != htole16(rbuflen)) { htole16 764 dev/pci/auixp.c caddr_v->status = htole16(0); htole16 765 dev/pci/auixp.c caddr_v->size = htole16((blksize >> 2)); /* in dwords (!!!) */ htole16 967 dev/pci/hifn7751.c wc.masks = htole16(3 << 13); htole16 968 dev/pci/hifn7751.c wc.session_num = htole16(addr >> 14); htole16 969 dev/pci/hifn7751.c wc.total_source_count = htole16(8); htole16 970 dev/pci/hifn7751.c wc.total_dest_count = htole16(addr & 0x3fff); htole16 1032 dev/pci/hifn7751.c rc.masks = htole16(2 << 13); htole16 1033 dev/pci/hifn7751.c rc.session_num = htole16(addr >> 14); htole16 1034 dev/pci/hifn7751.c rc.total_source_count = htole16(addr & 0x3fff); htole16 1035 dev/pci/hifn7751.c rc.total_dest_count = htole16(8); htole16 1147 dev/pci/hifn7751.c base_cmd->masks = htole16(cmd->base_masks); htole16 1154 dev/pci/hifn7751.c base_cmd->total_source_count = htole16(slen & HIFN_BASE_CMD_LENMASK_LO); htole16 1155 dev/pci/hifn7751.c base_cmd->total_dest_count = htole16(dlen & HIFN_BASE_CMD_LENMASK_LO); htole16 1158 dev/pci/hifn7751.c base_cmd->session_num = htole16( htole16 1166 dev/pci/hifn7751.c comp_cmd->source_count = htole16(dlen & 0xffff); htole16 1168 dev/pci/hifn7751.c comp_cmd->masks = htole16(cmd->comp_masks | htole16 1170 dev/pci/hifn7751.c comp_cmd->header_skip = htole16(cmd->compcrd->crd_skip); htole16 1178 dev/pci/hifn7751.c mac_cmd->source_count = htole16(dlen & 0xffff); htole16 1180 dev/pci/hifn7751.c mac_cmd->masks = htole16(cmd->mac_masks | htole16 1182 dev/pci/hifn7751.c mac_cmd->header_skip = htole16(cmd->maccrd->crd_skip); htole16 1190 dev/pci/hifn7751.c cry_cmd->source_count = htole16(dlen & 0xffff); htole16 1192 dev/pci/hifn7751.c cry_cmd->masks = htole16(cmd->cry_masks | htole16 1194 dev/pci/hifn7751.c cry_cmd->header_skip = htole16(cmd->enccrd->crd_skip); htole16 2653 dev/pci/hifn7751.c if (baseres.flags & htole16(HIFN_BASE_RES_DSTOVERRUN)) { htole16 4391 dev/pci/if_bnx.c txbd->tx_bd_mss_nbytes = htole16(map->dm_segs[i].ds_len); htole16 4392 dev/pci/if_bnx.c txbd->tx_bd_vlan_tag = htole16(vlan_tag); htole16 4393 dev/pci/if_bnx.c txbd->tx_bd_flags = htole16(flags); htole16 4396 dev/pci/if_bnx.c txbd->tx_bd_flags |= htole16(TX_BD_FLAGS_START); htole16 4401 dev/pci/if_bnx.c txbd->tx_bd_flags |= htole16(TX_BD_FLAGS_END); htole16 271 dev/pci/if_bnxreg.h #define bnx_htole16(x) htole16(x) htole16 2080 dev/pci/if_em.c htole16(ETHER_HDR_LEN + sizeof(struct ip) - 1); htole16 2084 dev/pci/if_em.c TXD->upper_setup.tcp_fields.tucse = htole16(0); htole16 288 dev/pci/if_ipw.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 292 dev/pci/if_ipw.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 883 dev/pci/if_ipw.c tap->wr_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); htole16 884 dev/pci/if_ipw.c tap->wr_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); htole16 1148 dev/pci/if_ipw.c tap->wt_chan_freq = htole16(ic->ic_ibss_chan->ic_freq); htole16 1149 dev/pci/if_ipw.c tap->wt_chan_flags = htole16(ic->ic_ibss_chan->ic_flags); htole16 1170 dev/pci/if_ipw.c shdr->hdr.fragmentsz = htole16(0); htole16 349 dev/pci/if_iwi.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 353 dev/pci/if_iwi.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 958 dev/pci/if_iwi.c htole16(ic->ic_channels[frame->chan].ic_freq); htole16 960 dev/pci/if_iwi.c htole16(ic->ic_channels[frame->chan].ic_flags); htole16 1273 dev/pci/if_iwi.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1274 dev/pci/if_iwi.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1351 dev/pci/if_iwi.c desc->len = htole16(m0->m_pkthdr.len); htole16 1377 dev/pci/if_iwi.c desc->seg_len[i] = htole16(data->map->dm_segs[i].ds_len); htole16 1636 dev/pci/if_iwi.c MEM_WRITE_2(sc, 0x200010, htole16(*w)); htole16 1963 dev/pci/if_iwi.c scan.passive = htole16(2000); htole16 1983 dev/pci/if_iwi.c scan.bdirected = htole16(40); htole16 1986 dev/pci/if_iwi.c scan.broadcast = htole16(40); htole16 2104 dev/pci/if_iwi.c assoc.capinfo = htole16(capinfo); htole16 2106 dev/pci/if_iwi.c assoc.lintval = htole16(ic->ic_lintval); htole16 2107 dev/pci/if_iwi.c assoc.intval = htole16(ni->ni_intval); htole16 550 dev/pci/if_msk.c r->sk_len = htole16(SK_JLEN); htole16 1454 dev/pci/if_msk.c f->sk_len = htole16(txmap->dm_segs[i].ds_len); htole16 785 dev/pci/if_nfe.c desc64->length = htole16(sc->rxq.bufsz); htole16 786 dev/pci/if_nfe.c desc64->flags = htole16(NFE_RX_READY); htole16 790 dev/pci/if_nfe.c desc32->length = htole16(sc->rxq.bufsz); htole16 791 dev/pci/if_nfe.c desc32->flags = htole16(NFE_RX_READY); htole16 925 dev/pci/if_nfe.c desc64->length = htole16(map->dm_segs[i].ds_len - 1); htole16 926 dev/pci/if_nfe.c desc64->flags = htole16(flags); htole16 934 dev/pci/if_nfe.c desc32->length = htole16(map->dm_segs[i].ds_len - 1); htole16 935 dev/pci/if_nfe.c desc32->flags = htole16(flags); htole16 962 dev/pci/if_nfe.c desc64->flags = htole16(flags); htole16 965 dev/pci/if_nfe.c sc->txq.desc64[first].flags |= htole16(NFE_TX_VALID); htole16 972 dev/pci/if_nfe.c desc32->flags = htole16(flags); htole16 975 dev/pci/if_nfe.c sc->txq.desc32[first].flags |= htole16(NFE_TX_VALID); htole16 1301 dev/pci/if_nfe.c desc64->length = htole16(sc->rxq.bufsz); htole16 1302 dev/pci/if_nfe.c desc64->flags = htole16(NFE_RX_READY); htole16 1306 dev/pci/if_nfe.c desc32->length = htole16(sc->rxq.bufsz); htole16 1307 dev/pci/if_nfe.c desc32->flags = htole16(NFE_RX_READY); htole16 1327 dev/pci/if_nfe.c ring->desc64[i].length = htole16(ring->bufsz); htole16 1328 dev/pci/if_nfe.c ring->desc64[i].flags = htole16(NFE_RX_READY); htole16 1330 dev/pci/if_nfe.c ring->desc32[i].length = htole16(ring->bufsz); htole16 1331 dev/pci/if_nfe.c ring->desc32[i].flags = htole16(NFE_RX_READY); htole16 1302 dev/pci/if_nxe.c txd->tx_flags = htole16(NXE_TXD_F_OPCODE_TX); htole16 1304 dev/pci/if_nxe.c txd->tx_length = htole16(dmap->dm_mapsize); htole16 1949 dev/pci/if_pcn.c htole16(1 << (crc & 0xf)); htole16 569 dev/pci/if_sk.c rd->sk_rx_ring[i].sk_csum1_start = htole16(ETHER_HDR_LEN); htole16 570 dev/pci/if_sk.c rd->sk_rx_ring[i].sk_csum2_start = htole16(ETHER_HDR_LEN + htole16 1165 dev/pci/if_tht.c txt.len = htole16(pkt->tp_m->m_pkthdr.len); htole16 1302 dev/pci/if_tht.c rxf.bc = htole16(LWORDS(bc)); htole16 1303 dev/pci/if_tht.c rxf.type = htole16(THT_RXF_TYPE); htole16 202 dev/pci/if_txp.c p1 = htole16(p1); htole16 1615 dev/pci/if_txp.c cmd->cmd_seq = htole16(seq); htole16 1616 dev/pci/if_txp.c cmd->cmd_id = htole16(id); htole16 1617 dev/pci/if_txp.c cmd->cmd_par1 = htole16(in1); htole16 857 dev/pci/if_vge.c r->vge_buflen = htole16(VGE_BUFLEN(rxmap->dm_segs[0].ds_len) | VGE_RXDESC_I); htole16 859 dev/pci/if_vge.c r->vge_addrhi = htole16(VGE_ADDR_HI(rxmap->dm_segs[0].ds_addr) & 0xFFFF); htole16 1334 dev/pci/if_vge.c f->vge_buflen = htole16(VGE_BUFLEN(txmap->dm_segs[frag].ds_len)); htole16 1336 dev/pci/if_vge.c f->vge_addrhi = htole16(VGE_ADDR_HI(txmap->dm_segs[frag].ds_addr) & 0xFFFF); htole16 1368 dev/pci/if_vge.c f->vge_buflen = htole16(VGE_BUFLEN(VGE_MIN_FRAMELEN - htole16 1371 dev/pci/if_vge.c f->vge_addrhi = htole16(VGE_ADDR_HI(txmap->dm_segs[0].ds_addr) & 0xFFFF); htole16 1454 dev/pci/if_vge.c htole16(VGE_TXDESC_Q); htole16 873 dev/pci/if_vic.c mcastfil[crc >> 4] |= htole16(1 << (crc & 0xf)); htole16 337 dev/pci/if_wpi.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 341 dev/pci/if_wpi.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 829 dev/pci/if_wpi.c sc->config.associd = htole16(ni->ni_associd & ~0xc000); htole16 1268 dev/pci/if_wpi.c htole16(ic->ic_channels[head->chan].ic_freq); htole16 1270 dev/pci/if_wpi.c htole16(ic->ic_channels[head->chan].ic_flags); htole16 1593 dev/pci/if_wpi.c tap->wt_chan_freq = htole16(ni->ni_chan->ic_freq); htole16 1594 dev/pci/if_wpi.c tap->wt_chan_flags = htole16(ni->ni_chan->ic_flags); htole16 1671 dev/pci/if_wpi.c tx->timeout = htole16(3); htole16 1673 dev/pci/if_wpi.c tx->timeout = htole16(2); htole16 1675 dev/pci/if_wpi.c tx->timeout = htole16(0); htole16 1687 dev/pci/if_wpi.c tx->len = htole16(m0->m_pkthdr.len); htole16 2130 dev/pci/if_wpi.c tsf.bintval = htole16(ni->ni_intval); htole16 2131 dev/pci/if_wpi.c tsf.lintval = htole16(10); htole16 2170 dev/pci/if_wpi.c txpower.chan = htole16(chan); htole16 2307 dev/pci/if_wpi.c bcn->len = htole16(m0->m_pkthdr.len); htole16 2462 dev/pci/if_wpi.c hdr->quiet = htole16(5); /* timeout in milliseconds */ htole16 2463 dev/pci/if_wpi.c hdr->plcp_threshold = htole16(1); /* min # of packets */ htole16 2466 dev/pci/if_wpi.c hdr->crc_threshold = htole16(1); htole16 2511 dev/pci/if_wpi.c hdr->paylen = htole16(frm - (uint8_t *)wh); htole16 2529 dev/pci/if_wpi.c chan->active = htole16(10); htole16 2530 dev/pci/if_wpi.c chan->passive = htole16(110); htole16 2533 dev/pci/if_wpi.c chan->active = htole16(20); htole16 2534 dev/pci/if_wpi.c chan->passive = htole16(120); htole16 2542 dev/pci/if_wpi.c hdr->len = htole16(frm - (uint8_t *)hdr); htole16 652 dev/pci/ips.c cmd->seccnt = htole16(howmany(size, IPS_SECSZ)); htole16 355 dev/pci/ubsec.c if ((dmap->d_dma->d_mcr.mcr_flags & htole16(UBS_MCR_DONE)) == 0) htole16 399 dev/pci/ubsec.c if ((mcr->mcr_flags & htole16(UBS_MCR_DONE)) == 0) { htole16 501 dev/pci/ubsec.c q->q_dma->d_dma->d_mcr.mcr_pkts = htole16(npkts); htole16 771 dev/pci/ubsec.c dmap->d_dma->d_mcr.mcr_pkts = htole16(1); htole16 821 dev/pci/ubsec.c ctx.pc_flags |= htole16(UBS_PKTCTX_ENC_3DES); htole16 844 dev/pci/ubsec.c ctx.pc_flags |= htole16(UBS_PKTCTX_INBOUND); htole16 871 dev/pci/ubsec.c ctx.pc_flags |= htole16(UBS_PKTCTX_AUTH_MD5); htole16 873 dev/pci/ubsec.c ctx.pc_flags |= htole16(UBS_PKTCTX_AUTH_SHA1); htole16 918 dev/pci/ubsec.c ctx.pc_offset = htole16(coffset >> 2); htole16 944 dev/pci/ubsec.c dmap->d_dma->d_mcr.mcr_pktlen = htole16(stheend); htole16 1162 dev/pci/ubsec.c ctxl->pc_len = htole16(sizeof(struct ubsec_pktctx_long)); htole16 1163 dev/pci/ubsec.c ctxl->pc_type = htole16(UBS_PKTCTX_TYPE_IPSEC); htole16 1474 dev/pci/ubsec.c mcr->mcr_pkts = htole16(1); htole16 1485 dev/pci/ubsec.c ctx->rbp_len = htole16(sizeof(struct ubsec_ctx_rngbypass)); htole16 1486 dev/pci/ubsec.c ctx->rbp_op = htole16(UBS_CTXOP_RNGSHA1); htole16 1905 dev/pci/ubsec.c mcr->mcr_pkts = htole16(1); htole16 1934 dev/pci/ubsec.c ctx->me_len = htole16((normbits / 8) + (4 * sizeof(u_int16_t))); htole16 1935 dev/pci/ubsec.c ctx->me_op = htole16(UBS_CTXOP_MODEXP); htole16 1936 dev/pci/ubsec.c ctx->me_E_len = htole16(nbits); htole16 1937 dev/pci/ubsec.c ctx->me_N_len = htole16(nbits); htole16 2105 dev/pci/ubsec.c mcr->mcr_pkts = htole16(1); htole16 2133 dev/pci/ubsec.c ctx->me_len = htole16((normbits / 8) + (4 * sizeof(u_int16_t))); htole16 2134 dev/pci/ubsec.c ctx->me_op = htole16(UBS_CTXOP_MODEXP); htole16 2135 dev/pci/ubsec.c ctx->me_E_len = htole16(ebits); htole16 2136 dev/pci/ubsec.c ctx->me_N_len = htole16(nbits); htole16 2313 dev/pci/ubsec.c mcr->mcr_pkts = htole16(1); htole16 2320 dev/pci/ubsec.c mcr->mcr_pktlen = htole16(msglen); htole16 2339 dev/pci/ubsec.c ctx->rpr_op = htole16(UBS_CTXOP_RSAPRIV); htole16 2340 dev/pci/ubsec.c ctx->rpr_q_len = htole16(padlen); htole16 2341 dev/pci/ubsec.c ctx->rpr_p_len = htole16(padlen); htole16 473 dev/pcmcia/if_malo.c MALO_WRITE_2(sc, MALO_REG_CMD_WRITE, htole16(uc[i])); htole16 560 dev/pcmcia/if_malo.c MALO_WRITE_2(sc, MALO_REG_CMD_WRITE, htole16(uc[i])); htole16 964 dev/pcmcia/if_malo.c txdesc->pkglen = htole16(m->m_pkthdr.len); htole16 1149 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_HWSPEC); htole16 1150 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1151 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1194 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_RESET); htole16 1196 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1222 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_SCAN); htole16 1223 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1231 dev/pcmcia/if_malo.c body_ssid->type = htole16(MALO_TLV_TYPE_SSID); htole16 1232 dev/pcmcia/if_malo.c body_ssid->size = htole16(0); htole16 1236 dev/pcmcia/if_malo.c body_chanlist->type = htole16(MALO_TLV_TYPE_CHANLIST); htole16 1237 dev/pcmcia/if_malo.c body_chanlist->size = htole16(sizeof(body_chanlist->data)); htole16 1242 dev/pcmcia/if_malo.c body_chanlist->data[i].minscantime = htole16(0); htole16 1243 dev/pcmcia/if_malo.c body_chanlist->data[i].maxscantime = htole16(100); htole16 1248 dev/pcmcia/if_malo.c body_rates->type = htole16(MALO_TLV_TYPE_RATES); htole16 1250 dev/pcmcia/if_malo.c htole16(ic->ic_sup_rates[IEEE80211_MODE_11B].rs_nrates); htole16 1256 dev/pcmcia/if_malo.c body_numprobes->type = htole16(MALO_TLV_TYPE_NUMPROBES); htole16 1257 dev/pcmcia/if_malo.c body_numprobes->size = htole16(2); htole16 1258 dev/pcmcia/if_malo.c body_numprobes->numprobes = htole16(1); htole16 1261 dev/pcmcia/if_malo.c hdr->size = htole16(psize - sizeof(*hdr)); htole16 1370 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_AUTH); htole16 1371 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1372 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1400 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_WEP); htole16 1401 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1402 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1406 dev/pcmcia/if_malo.c body->action = htole16(MALO_WEP_ACTION_TYPE_ADD); htole16 1407 dev/pcmcia/if_malo.c body->key_index = htole16(index); htole16 1458 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_SNMP); htole16 1459 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1460 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1464 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1468 dev/pcmcia/if_malo.c body->oid = htole16(MALO_OID_RTSTRESH); htole16 1469 dev/pcmcia/if_malo.c body->size = htole16(2); htole16 1470 dev/pcmcia/if_malo.c *(uint16_t *)body->data = htole16(2347); htole16 1473 dev/pcmcia/if_malo.c body->oid = htole16(MALO_OID_SHORTRETRY); htole16 1474 dev/pcmcia/if_malo.c body->size = htole16(2); htole16 1475 dev/pcmcia/if_malo.c *(uint16_t *)body->data = htole16(4); htole16 1478 dev/pcmcia/if_malo.c body->oid = htole16(MALO_OID_FRAGTRESH); htole16 1479 dev/pcmcia/if_malo.c body->size = htole16(2); htole16 1480 dev/pcmcia/if_malo.c *(uint16_t *)body->data = htole16(2346); htole16 1483 dev/pcmcia/if_malo.c body->oid = htole16(MALO_OID_80211D); htole16 1484 dev/pcmcia/if_malo.c body->size = htole16(2); htole16 1485 dev/pcmcia/if_malo.c *(uint16_t *)body->data = htole16(1); htole16 1511 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_RADIO); htole16 1512 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1513 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1517 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1520 dev/pcmcia/if_malo.c body->control = htole16(MALO_CMD_RADIO_ON); htole16 1521 dev/pcmcia/if_malo.c body->control |= htole16(MALO_CMD_RADIO_AUTO_P); htole16 1544 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_CHANNEL); htole16 1545 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1546 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1550 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1551 dev/pcmcia/if_malo.c body->channel = htole16(channel); htole16 1574 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_TXPOWER); htole16 1575 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1576 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1580 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1581 dev/pcmcia/if_malo.c body->txpower = htole16(txpower); htole16 1603 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_ANTENNA); htole16 1604 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1605 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1610 dev/pcmcia/if_malo.c body->action = htole16(action); htole16 1614 dev/pcmcia/if_malo.c body->antenna_mode = htole16(0xffff); htole16 1617 dev/pcmcia/if_malo.c body->antenna_mode = htole16(2); htole16 1640 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_MACCTRL); htole16 1641 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1642 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1646 dev/pcmcia/if_malo.c body->action = htole16(MALO_CMD_MACCTRL_RX_ON); htole16 1647 dev/pcmcia/if_malo.c body->action |= htole16(MALO_CMD_MACCTRL_TX_ON); htole16 1649 dev/pcmcia/if_malo.c body->action |= htole16(MALO_CMD_MACCTRL_PROMISC_ON); htole16 1676 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_ASSOC); htole16 1677 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1682 dev/pcmcia/if_malo.c body->capinfo = htole16(sc->sc_net[sc->sc_net_cur].capinfo); htole16 1683 dev/pcmcia/if_malo.c body->listenintrv = htole16(10); htole16 1686 dev/pcmcia/if_malo.c body_ssid->type = htole16(MALO_TLV_TYPE_SSID); htole16 1687 dev/pcmcia/if_malo.c body_ssid->size = htole16(strlen(sc->sc_net[sc->sc_net_cur].ssid)); htole16 1693 dev/pcmcia/if_malo.c body_phy->type = htole16(MALO_TLV_TYPE_PHY); htole16 1694 dev/pcmcia/if_malo.c body_phy->size = htole16(1); htole16 1699 dev/pcmcia/if_malo.c body_cf->type = htole16(MALO_TLV_TYPE_CF); htole16 1700 dev/pcmcia/if_malo.c body_cf->size = htole16(0); htole16 1704 dev/pcmcia/if_malo.c body_rates->type = htole16(MALO_TLV_TYPE_RATES); htole16 1705 dev/pcmcia/if_malo.c body_rates->size = htole16(strlen(sc->sc_net[sc->sc_net_cur].rates)); htole16 1712 dev/pcmcia/if_malo.c body_passeid->type = htole16(MALO_TLV_TYPE_PASSEID); htole16 1717 dev/pcmcia/if_malo.c hdr->size = htole16(psize - sizeof(*hdr)); htole16 1765 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_80211D); htole16 1766 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1770 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1773 dev/pcmcia/if_malo.c body_80211d->type = htole16(MALO_TLV_TYPE_80211D); htole16 1774 dev/pcmcia/if_malo.c body_80211d->size = htole16(sizeof(body_80211d->data) + htole16 1785 dev/pcmcia/if_malo.c hdr->size = htole16(psize - sizeof(*hdr)); htole16 1807 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_BGSCAN_CONFIG); htole16 1808 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1809 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1813 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1818 dev/pcmcia/if_malo.c body->maxscanres = htole16(12); htole16 1840 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_BGSCAN_QUERY); htole16 1841 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1842 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1868 dev/pcmcia/if_malo.c hdr->cmd = htole16(MALO_CMD_RATE); htole16 1869 dev/pcmcia/if_malo.c hdr->size = htole16(sizeof(*body)); htole16 1870 dev/pcmcia/if_malo.c hdr->seqnum = htole16(1); htole16 1874 dev/pcmcia/if_malo.c body->action = htole16(1); htole16 1875 dev/pcmcia/if_malo.c body->hwauto = htole16(1); htole16 1876 dev/pcmcia/if_malo.c body->ratebitmap = htole16(0x1fff); htole16 1747 dev/usb/if_atu.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1749 dev/usb/if_atu.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1873 dev/usb/if_atu.c htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1875 dev/usb/if_atu.c htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1149 dev/usb/if_axe.c hdr.len = htole16(m->m_pkthdr.len); htole16 348 dev/usb/if_ral.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 352 dev/usb/if_ral.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 784 dev/usb/if_ral.c tap->wr_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 785 dev/usb/if_ral.c tap->wr_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 953 dev/usb/if_ral.c desc->wme = htole16( htole16 1165 dev/usb/if_ral.c *(uint16_t *)wh->i_dur = htole16(dur); htole16 1181 dev/usb/if_ral.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1182 dev/usb/if_ral.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 432 dev/usb/if_rum.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 436 dev/usb/if_rum.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 842 dev/usb/if_rum.c tap->wr_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 843 dev/usb/if_rum.c tap->wr_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1012 dev/usb/if_rum.c desc->xflags = htole16(xflags); htole16 1014 dev/usb/if_rum.c desc->wme = htole16( htole16 1173 dev/usb/if_rum.c *(uint16_t *)wh->i_dur = htole16(dur); htole16 1189 dev/usb/if_rum.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1190 dev/usb/if_rum.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 418 dev/usb/if_uath.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 422 dev/usb/if_uath.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 1277 dev/usb/if_uath.c tap->wr_chan_freq = htole16(betoh32(desc->freq)); htole16 1278 dev/usb/if_uath.c tap->wr_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 1394 dev/usb/if_uath.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1395 dev/usb/if_uath.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 629 dev/usb/if_wi_usb.c pcmd->type = htole16(WI_USB_CMDREQ); htole16 630 dev/usb/if_wi_usb.c pcmd->cmd = htole16(cmd); htole16 631 dev/usb/if_wi_usb.c pcmd->param0 = htole16(val0); htole16 632 dev/usb/if_wi_usb.c pcmd->param1 = htole16(val1); htole16 633 dev/usb/if_wi_usb.c pcmd->param2 = htole16(val2); htole16 714 dev/usb/if_wi_usb.c prid->type = htole16(WI_USB_RRIDREQ); htole16 715 dev/usb/if_wi_usb.c prid->frmlen = htole16(2); /* variable size? */ htole16 716 dev/usb/if_wi_usb.c prid->rid = htole16(ltv->wi_type); htole16 744 dev/usb/if_wi_usb.c ltv->wi_val = htole16(WI_PORTTYPE_IBSS); htole16 761 dev/usb/if_wi_usb.c oltv->wi_val = htole16(v); htole16 765 dev/usb/if_wi_usb.c if (ltv->wi_val & htole16(0x01)) htole16 766 dev/usb/if_wi_usb.c oltv->wi_val = htole16(1); htole16 768 dev/usb/if_wi_usb.c oltv->wi_val = htole16(0); htole16 837 dev/usb/if_wi_usb.c p2ltv.wi_val = htole16(v); htole16 843 dev/usb/if_wi_usb.c if (ltv->wi_val & htole16(0x01)) { htole16 870 dev/usb/if_wi_usb.c p2ltv.wi_val = htole16(val); htole16 872 dev/usb/if_wi_usb.c p2ltv.wi_val = htole16(HOST_ENCRYPT | HOST_DECRYPT); htole16 925 dev/usb/if_wi_usb.c prid->type = htole16(WI_USB_WRIDREQ); htole16 926 dev/usb/if_wi_usb.c prid->frmlen = htole16(ltv->wi_len); htole16 927 dev/usb/if_wi_usb.c prid->rid = htole16(ltv->wi_type); htole16 1543 dev/usb/if_wi_usb.c type = htole16(presp->type); htole16 411 dev/usb/if_zyd.c sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); htole16 415 dev/usb/if_zyd.c sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); htole16 776 dev/usb/if_zyd.c cmd.code = htole16(code); htole16 818 dev/usb/if_zyd.c reg = htole16(reg); htole16 833 dev/usb/if_zyd.c regs[0] = htole16(ZYD_REG32_HI(reg)); htole16 834 dev/usb/if_zyd.c regs[1] = htole16(ZYD_REG32_LO(reg)); htole16 847 dev/usb/if_zyd.c pair.reg = htole16(reg); htole16 848 dev/usb/if_zyd.c pair.val = htole16(val); htole16 858 dev/usb/if_zyd.c pair[0].reg = htole16(ZYD_REG32_HI(reg)); htole16 859 dev/usb/if_zyd.c pair[0].val = htole16(val >> 16); htole16 860 dev/usb/if_zyd.c pair[1].reg = htole16(ZYD_REG32_LO(reg)); htole16 861 dev/usb/if_zyd.c pair[1].val = htole16(val & 0xffff); htole16 877 dev/usb/if_zyd.c req.code = htole16(2); htole16 878 dev/usb/if_zyd.c req.width = htole16(rf->width); htole16 880 dev/usb/if_zyd.c req.bit[i] = htole16(cr203); htole16 882 dev/usb/if_zyd.c req.bit[i] |= htole16(ZYD_RF_DATA); htole16 1916 dev/usb/if_zyd.c tap->wr_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 1917 dev/usb/if_zyd.c tap->wr_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 2091 dev/usb/if_zyd.c desc->len = htole16(totlen); htole16 2125 dev/usb/if_zyd.c desc->pktlen = htole16(pktlen); htole16 2142 dev/usb/if_zyd.c tap->wt_chan_freq = htole16(ic->ic_bss->ni_chan->ic_freq); htole16 2143 dev/usb/if_zyd.c tap->wt_chan_flags = htole16(ic->ic_bss->ni_chan->ic_flags); htole16 3275 dev/usb/ohci.c sitd->itd.itd_offset[ncur] = htole16(OHCI_ITD_MK_OFFS(offs)); htole16 196 net80211/ieee80211_output.c htole16(ni->ni_txseq << IEEE80211_SEQ_SEQ_SHIFT); htole16 554 net80211/ieee80211_output.c htole16(ni->ni_qos_txseqs[tid] << IEEE80211_SEQ_SEQ_SHIFT); htole16 558 net80211/ieee80211_output.c htole16(ni->ni_txseq << IEEE80211_SEQ_SEQ_SHIFT); htole16 1109 net80211/ieee80211_output.c *mtod(m, u_int16_t *) = htole16(reason); htole16 1247 net80211/ieee80211_output.c *mtod(m, u_int16_t *) = htole16(reason); htole16 1371 net80211/ieee80211_output.c *(u_int16_t *)rts->i_dur = htole16(dur); htole16 1397 net80211/ieee80211_output.c *(u_int16_t *)cts->i_dur = htole16(dur); htole16 534 netbt/hci_event.c cp.settings = htole16(unit->hci_link_policy); htole16 95 netbt/hci_link.c cp.pkt_type = htole16(unit->hci_packet_type); htole16 101 netbt/hci_link.c cp.clock_offset = htole16(memo->response.clock_offset); htole16 220 netbt/hci_link.c cp.con_handle = htole16(link->hl_handle); htole16 264 netbt/hci_link.c cp.con_handle = htole16(link->hl_handle); htole16 281 netbt/hci_link.c cp.con_handle = htole16(link->hl_handle); htole16 300 netbt/hci_link.c cp.con_handle = htole16(link->hl_handle); htole16 456 netbt/hci_link.c cp.con_handle = htole16(handle); htole16 653 netbt/hci_link.c hdr->con_handle = htole16(handle); htole16 654 netbt/hci_link.c hdr->length = htole16(m->m_pkthdr.len - sizeof(*hdr)); htole16 243 netbt/hci_unit.c p->opcode = htole16(opcode); htole16 447 netbt/l2cap_signal.c rp.scid = htole16(chan->lc_rcid); htole16 501 netbt/l2cap_signal.c val.mtu = htole16(L2CAP_MTU_MINIMUM); htole16 550 netbt/l2cap_signal.c rp.result = htole16(rp.result); htole16 626 netbt/l2cap_signal.c rp.dcid = htole16(cp.scid); htole16 810 netbt/l2cap_signal.c rp.dcid = htole16(chan->lc_lcid); htole16 811 netbt/l2cap_signal.c rp.scid = htole16(chan->lc_rcid); htole16 880 netbt/l2cap_signal.c rp.result = htole16(L2CAP_NOT_SUPPORTED); htole16 924 netbt/l2cap_signal.c cmd->length = htole16(length); htole16 928 netbt/l2cap_signal.c hdr->length = htole16(length); htole16 929 netbt/l2cap_signal.c hdr->dcid = htole16(L2CAP_SIGNAL_CID); htole16 959 netbt/l2cap_signal.c cp.reason = htole16(reason); htole16 969 netbt/l2cap_signal.c cp.data[0] = htole16(cp.data[0]); htole16 975 netbt/l2cap_signal.c cp.data[0] = htole16(cp.data[0]); htole16 977 netbt/l2cap_signal.c cp.data[1] = htole16(cp.data[1]); htole16 1003 netbt/l2cap_signal.c cp.psm = htole16(chan->lc_raddr.bt_psm); htole16 1004 netbt/l2cap_signal.c cp.scid = htole16(chan->lc_lcid); htole16 1033 netbt/l2cap_signal.c cp->dcid = htole16(chan->lc_rcid); htole16 1045 netbt/l2cap_signal.c val->mtu = htole16(chan->lc_imtu); htole16 1057 netbt/l2cap_signal.c val->flush_timo = htole16(chan->lc_flush); htole16 1086 netbt/l2cap_signal.c cp.dcid = htole16(chan->lc_rcid); htole16 1087 netbt/l2cap_signal.c cp.scid = htole16(chan->lc_lcid); htole16 1103 netbt/l2cap_signal.c cp.dcid = htole16(dcid); htole16 1104 netbt/l2cap_signal.c cp.scid = htole16(scid); htole16 1105 netbt/l2cap_signal.c cp.result = htole16(result); htole16 395 netbt/l2cap_upper.c hdr->length = htole16(plen); htole16 396 netbt/l2cap_upper.c hdr->dcid = htole16(chan->lc_rcid); htole16 266 netbt/rfcomm_dlc.c pn.mtu = htole16(dlc->rd_mtu); htole16 1261 netbt/rfcomm_session.c rpn.param_mask = htole16(mask); htole16 1332 netbt/rfcomm_session.c pn.mtu = htole16(pn.mtu); htole16 163 netbt/sco_upper.c cp.con_handle = htole16(acl->hl_handle); htole16 164 netbt/sco_upper.c cp.pkt_type = htole16(0x00e0); /* HV1, HV2, HV3 */ htole16 210 netbt/sco_upper.c cp.con_handle = htole16(sco->hl_handle); htole16 306 netbt/sco_upper.c hdr->con_handle = htole16(pcb->sp_link->hl_handle); htole16 171 sys/endian.h __uint16_t htole16(__uint16_t); htole16 243 ufs/ext2fs/ext2fs.h #define h2fs16(x) htole16(x)