Lines Matching refs:le16toh
449 chan = le16toh(val);
463 sc->sc_dbm_offset = le16toh(val);
528 nrate = le16toh(ratebuf.nrates);
1542 val = le16toh(val);
1677 status = le16toh(frmhdr.wi_status);
1685 rstamp = (le16toh(frmhdr.wi_rx_tstamp0) << 16) |
1686 le16toh(frmhdr.wi_rx_tstamp1);
1688 len = le16toh(frmhdr.wi_dat_len);
1806 status = le16toh(frmhdr.wi_status);
1823 le16toh(frmhdr.wi_dat_len),
2027 switch (le16toh(ltbuf[1])) {
2031 DPRINTF(("wi_info_intr: LINK_STAT 0x%x\n", le16toh(stat)));
2032 switch (le16toh(stat)) {
2070 len = uimin(le16toh(ltbuf[0]) - 1, sizeof(sc->sc_stats) / 4);
2075 stat = le16toh(stat);
2090 wi_scan_result(sc, fid, le16toh(ltbuf[0]));
2095 le16toh(ltbuf[1]), le16toh(ltbuf[0])));
2153 DPRINTF2(("wi_read_nicid: CARD_ID: %x %x %x %x\n", le16toh(ver[0]), le16toh(ver[1]), le16toh(ver[2]), le16toh(ver[3])));
2157 if (le16toh(ver[0]) == id->card_id) {
2164 if (le16toh(ver[0]) & 0x8000) {
2178 sc->sc_pri_firmware_ver = le16toh(ver[2]) * 10000 +
2179 le16toh(ver[3]) * 100 + le16toh(ver[1]);
2186 sc->sc_sta_firmware_ver = le16toh(ver[2]) * 10000 +
2187 le16toh(ver[3]) * 100 + le16toh(ver[1]);
2410 if (le16toh(wreq.wi_val[0]) * 2 > len ||
2411 le16toh(wreq.wi_val[0]) > sizeof(sc->sc_nodename)) {
2421 sc->sc_nodelen = le16toh(wreq.wi_val[0]) * 2;
2453 sc->sc_frag_thresh = le16toh(wreq.wi_val[0]);
2456 sc->sc_rts_thresh = le16toh(wreq.wi_val[0]);
2459 sc->sc_microwave_oven = le16toh(wreq.wi_val[0]);
2462 sc->sc_roaming_mode = le16toh(wreq.wi_val[0]);
2465 sc->sc_system_scale = le16toh(wreq.wi_val[0]);
2468 sc->sc_cnfauthmode = le16toh(wreq.wi_val[0]);
2471 sc->sc_max_datalen = le16toh(wreq.wi_val[0]);
2477 switch (le16toh(wreq.wi_val[0])) {
2484 / 2 == le16toh(wreq.wi_val[0]))
3099 if (le16toh(ltbuf[0]) == 0)
3101 if (le16toh(ltbuf[1]) != rid) {
3104 rid, le16toh(ltbuf[1]));
3107 len = (le16toh(ltbuf[0]) - 1) * 2; /* already got rid */
3233 if (!isset(ic->ic_chan_avail, le16toh(val)))
3235 device_xname(sc->sc_dev), le16toh(val));
3236 ni->ni_chan = &ic->ic_channels[le16toh(val)];
3252 ni->ni_esslen = le16toh(ssid.wi_len);
3369 ap->scanreason = le16toh(ws_hdr.wi_reason);
3371 ap->channel = le16toh(ws_dat.wi_chid);
3372 ap->signal = le16toh(ws_dat.wi_signal);
3373 ap->noise = le16toh(ws_dat.wi_noise);
3375 ap->capinfo = le16toh(ws_dat.wi_capinfo);
3376 ap->interval = le16toh(ws_dat.wi_interval);
3377 ap->rate = le16toh(ws_dat.wi_rate);
3378 ap->namelen = le16toh(ws_dat.wi_namelen);
3398 le16toh(wh->wi_status), le16toh(wh->wi_rx_tstamp1),
3399 le16toh(wh->wi_rx_tstamp0), wh->wi_rx_silence);
3404 le16toh(wh->wi_tx_ctl), le16toh(wh->wi_dat_len));