/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 187 struct ieee80211_frame *wh; local 202 wh = (struct ieee80211_frame *)mp->b_rptr; 204 wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_DATA; 208 wh->i_fc[1] = IEEE80211_FC1_DIR_TODS; 209 IEEE80211_ADDR_COPY(wh->i_addr1, wdp->wd_bssid); 210 IEEE80211_ADDR_COPY(wh->i_addr2, saddr); 211 IEEE80211_ADDR_COPY(wh->i_addr3, daddr); 216 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS; 217 IEEE80211_ADDR_COPY(wh->i_addr1, daddr); 218 IEEE80211_ADDR_COPY(wh 280 struct ieee80211_frame *wh; local [all...] |
/illumos-gate/usr/src/lib/libm/common/complex/ |
H A D | k_clog_r.c | 250 double t1, t2, t3, t4, tk, z, wh, w, zh, zk; local 281 ((int *)&wh)[HIWORD] = iy; 282 ((unsigned *)&wh)[LOWORD] = ly & 0xf8000000; 283 *er = half * ((y - wh) * (y + wh) - (t2 - wh * wh)); 344 ((int *)&wh)[HIWORD] = ix + (j >> 5); 345 ((unsigned *)&wh)[LOWORD] = (j << 27); 350 tk = wh [all...] |
H A D | k_clog_rl.c | 411 long double t1, t2, t3, t4, tk, z, wh, w, zh, zk; local 457 wh = (long double) dk; 458 *er = half * ((y - wh) * (y + wh) - (t2 - wh * wh)); 526 wh = x; 530 ((unsigned *)&wh)[0] = 0; /* 32 bits chopped */ 532 lx = ((unsigned *)&wh)[2]; /* 56 rounded */ 534 ((unsigned *)&wh)[ [all...] |
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_input.c | 64 struct ieee80211_frame *wh; local 86 wh = (struct ieee80211_frame *)mp->b_rptr; 88 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 90 hdrspace = ieee80211_hdrspace(ic, wh); /* optimize */ 111 wh = (struct ieee80211_frame *)mp->b_rptr; 112 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != 115 "discard pkt with wrong version %x", wh->i_fc[0]); 119 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 120 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; 121 subtype = wh 429 struct ieee80211_frame *wh = (struct ieee80211_frame *)mp->b_rptr; local 554 ieee80211_auth_open(ieee80211com_t *ic, struct ieee80211_frame *wh, struct ieee80211_node *in, uint16_t seq, uint16_t status) argument 611 ieee80211_auth_shared(ieee80211com_t *ic, struct ieee80211_frame *wh, uint8_t *frm, uint8_t *efrm, struct ieee80211_node *in, uint16_t seq, uint16_t status) argument 783 ieee80211_parse_wmeparams(struct ieee80211com *ic, uint8_t *frm, const struct ieee80211_frame *wh) argument 830 struct ieee80211_frame *wh; local 1138 struct ieee80211_frame *wh; local [all...] |
H A D | net80211_output.c | 56 struct ieee80211_frame *wh, int type, const uint8_t *sa, const uint8_t *da, 59 wh->i_fc[0] = (uint8_t)(IEEE80211_FC0_VERSION_0 | type); 63 wh->i_fc[1] = IEEE80211_FC1_DIR_TODS; 64 IEEE80211_ADDR_COPY(wh->i_addr1, bssid); 65 IEEE80211_ADDR_COPY(wh->i_addr2, sa); 66 IEEE80211_ADDR_COPY(wh->i_addr3, da); 70 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS; 71 IEEE80211_ADDR_COPY(wh->i_addr1, da); 72 IEEE80211_ADDR_COPY(wh->i_addr2, sa); 73 IEEE80211_ADDR_COPY(wh 55 ieee80211_send_setup(ieee80211com_t *ic, ieee80211_node_t *in, struct ieee80211_frame *wh, int type, const uint8_t *sa, const uint8_t *da, const uint8_t *bssid) argument 108 struct ieee80211_frame *wh; local 140 struct ieee80211_frame *wh; local 178 struct ieee80211_frame *wh; local 430 struct ieee80211_frame *wh; local 796 struct ieee80211_frame *wh; local [all...] |
H A D | net80211_crypto_none.c | 106 struct ieee80211_frame *wh = (struct ieee80211_frame *)mp->b_rptr; local 107 const uint8_t *ivp = (const uint8_t *)&wh[1];
|
H A D | net80211_crypto_ccmp.c | 360 ccmp_init(struct ieee80211_frame *wh, uint64_t pn, size_t dlen, argument 372 IEEE80211_ADDR_COPY(b0 + 2, wh->i_addr2); 392 aad[2] = wh->i_fc[0] & 0x8f; /* magic #s */ 393 aad[3] = wh->i_fc[1] & 0xc7; /* magic #s */ 395 (void) memcpy(aad + 4, wh->i_addr1, 3 * IEEE80211_ADDR_LEN); 396 aad[22] = wh->i_seq[0] & IEEE80211_SEQ_FRAG_MASK; 408 if (IEEE80211_QOS_HAS_SEQ(wh)) { 410 (struct ieee80211_qosframe *)wh; 427 struct ieee80211_frame *wh; local 433 wh 458 struct ieee80211_frame *wh; local [all...] |
H A D | net80211_proto.c | 115 struct ieee80211_frame *wh; local 122 wh = (struct ieee80211_frame *)buf; 123 switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) { 126 ieee80211_macaddr_sprintf(wh->i_addr2)); 129 ieee80211_macaddr_sprintf(wh->i_addr1)); 132 ieee80211_macaddr_sprintf(wh->i_addr3)); 137 ieee80211_macaddr_sprintf(wh->i_addr2)); 140 ieee80211_macaddr_sprintf(wh->i_addr3)); 143 ieee80211_macaddr_sprintf(wh->i_addr1)); 148 ieee80211_macaddr_sprintf(wh [all...] |
H A D | net80211_crypto_tkip.c | 619 const struct ieee80211_frame_addr4 *wh = local 622 switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) { 624 IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */ 625 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2); 628 IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */ 629 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2); 632 IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */ 633 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr3); 636 IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */ 637 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh 715 struct ieee80211_frame *wh; local 746 struct ieee80211_frame *wh; local [all...] |
H A D | net80211_ht.c | 95 struct ieee80211_frame *wh; local 100 wh = (struct ieee80211_frame *)mp->b_rptr; 101 hdrspace = ieee80211_hdrspace(ic, wh); 128 (void) memcpy(m0->b_wptr, (uint8_t *)wh, hdrspace); 378 struct ieee80211_qosframe *wh; local 387 wh = (struct ieee80211_qosframe *)m->b_rptr; 388 ASSERT(wh->i_fc[0] == IEEE80211_FC0_QOSDATA); 390 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) 391 tid = ((struct ieee80211_qosframe_addr4 *)wh)->i_qos[0]; 393 tid = wh 553 struct ieee80211_frame_bar *wh; local 1417 struct ieee80211_frame_min *wh; local [all...] |
H A D | net80211_node.c | 1073 const struct ieee80211_frame *wh, int subtype, int rssi, int rstamp) 1079 in = ieee80211_find_node(nt, wh->i_addr3); 1084 in = ieee80211_alloc_node(ic, nt, wh->i_addr3); 1112 IEEE80211_ADDR_COPY(in->in_bssid, wh->i_addr3); 1161 ieee80211_init_neighbor(ieee80211_node_t *in, const struct ieee80211_frame *wh, argument 1166 IEEE80211_ADDR_COPY(in->in_bssid, wh->i_addr3); 1190 ieee80211_add_neighbor(ieee80211com_t *ic, const struct ieee80211_frame *wh, argument 1195 in = ieee80211_dup_bss(&ic->ic_sta, wh->i_addr2); 1197 ieee80211_init_neighbor(in, wh, sp); 1204 #define IEEE80211_IS_CTL(wh) \ 1072 ieee80211_add_scan(ieee80211com_t *ic, const struct ieee80211_scanparams *sp, const struct ieee80211_frame *wh, int subtype, int rssi, int rstamp) argument 1224 ieee80211_find_rxnode(ieee80211com_t *ic, const struct ieee80211_frame *wh) argument [all...] |
H A D | net80211.c | 560 const struct ieee80211_frame *wh = data; local 564 ASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != 566 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) 568 if (IEEE80211_QOS_HAS_SEQ(wh)) 594 const struct ieee80211_frame *wh = data; local 596 if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { 597 switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) {
|
H A D | net80211_crypto_wep.c | 129 struct ieee80211_frame *wh = (struct ieee80211_frame *)mp->b_rptr; local 136 hdrlen = ieee80211_hdrspace(ctx->wc_ic, wh); 138 ivp = (uint8_t *)wh;
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_recv.c | 428 struct ieee80211_frame *wh; local 531 wh = (struct ieee80211_frame *)rx_mp->b_rptr; 533 if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == 549 if (IEEE80211_IS_DATA_QOS(wh)) { 550 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == 553 wh)->i_qos[0]; 556 ((struct ieee80211_qosframe *)wh)->i_qos[0]; 569 in = ieee80211_find_rxnode(ic, wh); 610 if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == 612 subtype = wh [all...] |
H A D | arn_xmit.c | 322 struct ieee80211_frame *wh; local 323 wh = (struct ieee80211_frame *)bf->bf_dma.mem_va; 328 *(uint16_t *)&wh->i_seq[0] |= LE_16(0x0800); /* ??? */ 932 struct ieee80211_frame *wh, uint8_t type) 945 if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS) { 946 qwh = (struct ieee80211_qosframe *)wh; 1001 struct ieee80211_frame *wh) 1009 in = ieee80211_find_txnode(ic, wh->i_addr1); 1019 if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS) { 1020 qwh = (struct ieee80211_qosframe *)wh; 931 arn_test_get_txq(struct arn_softc *sc, struct ieee80211_node *in, struct ieee80211_frame *wh, uint8_t type) argument 999 assign_aggr_tid_seqno(struct arn_softc *sc, struct ath_buf *bf, struct ieee80211_frame *wh) argument 1170 setup_tx_flags(struct arn_softc *sc, struct ieee80211_frame *wh, uint32_t pktlen) argument 1193 ath_tx_setup_buffer(struct arn_softc *sc, struct ath_buf *bf, struct ieee80211_node *in, struct ieee80211_frame *wh, uint32_t pktlen, uint32_t keytype) argument 1290 ath_buf_set_rate(struct arn_softc *sc, struct ath_buf *bf, struct ieee80211_frame *wh) argument 1860 struct ieee80211_frame *wh = (struct ieee80211_frame *)mp->b_rptr; local 2057 struct ieee80211_frame *wh; local [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | tdump.c | 94 if(t->wh.whinc) 96 if(p_tree((Shnode_t*)(t->wh.whinc))<0) 104 if(p_tree(t->wh.whtre)<0) 106 return(p_tree(t->wh.dotre));
|
H A D | deparse.c | 152 if(t->wh.whinc) 159 if(t->wh.whinc) 161 struct argnod *arg = (t->wh.whtre)->ar.arexpr; 165 arg = (t->wh.whinc)->arexpr; 169 p_tree(t->wh.whtre,0); 170 t = t->wh.dotre; 176 if(tr->tre.tretyp==TWH && tr->wh.whinc && t->lst.lstlef->tre.tretyp==TARITH)
|
/illumos-gate/usr/src/uts/common/io/ral/ |
H A D | ral_rate.c | 82 struct ieee80211_frame *wh, uint32_t len, 88 if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) 81 ral_rssadapt_choose(struct ral_rssadapt *ra, struct ieee80211_rateset *rs, struct ieee80211_frame *wh, uint32_t len, const char *dvname, int do_not_adapt) argument
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_cmds2.c | 56 int wh = skipwh(); local 59 if (wh && isalpha(c = peekchar()) && isascii(c) && !isdigit(c)) 61 if (wh && isalpha(c = peekchar()) && isascii(c))
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 59 * wh = E_VARS if expanding variables. 60 * wh = E_SHELL if expanding shell characters. 61 * wh = E_TILDE if expanding `~'. 67 expand(list, wh) 69 int wh; 77 printf("expand(%x, %d)\nlist = ", list, wh); 81 if (wh == 0) { 90 which = wh;
|
/illumos-gate/usr/src/uts/common/pcmcia/cs/ |
H A D | cs_stubs.c | 278 csx_RequestWindow(client_handle_t ch, window_handle_t *wh, win_req_t *wr) argument 284 return (CardServices(RequestWindow, ch, wh, wr)); 288 csx_ReleaseWindow(window_handle_t wh) argument 292 cmn_err(CE_CONT, "csx_ReleaseWindow: handle: 0x%x\n", wh); 294 return (CardServices(ReleaseWindow, wh)); 298 csx_ModifyWindow(window_handle_t wh, modify_win_t *mw) argument 302 cmn_err(CE_CONT, "csx_ModifyWindow: handle: 0x%x\n", wh); 304 return (CardServices(ModifyWindow, wh, mw)); 308 csx_MapMemPage(window_handle_t wh, map_mem_page_t *mmp) argument 312 cmn_err(CE_CONT, "csx_MapMemPage: handle: 0x%x\n", wh); [all...] |
/illumos-gate/usr/src/uts/common/io/zyd/ |
H A D | zyd.c | 227 struct ieee80211_frame *wh; local 262 wh = (struct ieee80211_frame *)m->b_rptr; 263 in = ieee80211_find_rxnode(ic, wh); 285 struct ieee80211_frame *wh; local 337 wh = (struct ieee80211_frame *)m->b_rptr; 338 in = ieee80211_find_txnode(ic, wh->i_addr1); 351 if (wh->i_fc[1] & IEEE80211_FC1_WEP) { 361 wh = (struct ieee80211_frame *)m->b_rptr; 403 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { 419 (wh [all...] |
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | tgammal.c | 883 long double r1, r2, t2, z, xh, xl, yh, yl, zh, z1, z2, zl, x5, wh, wl; local 943 /* wh+wl=(x+2)*yy */ 944 wh = CHOPPED((z1 * (yy.h + yy.l))); 945 wl = (zl * yy.h + z1 * yy.l) - (wh - zh * yy.h); 947 rr.h = xh * wh; 948 rr.l = z2 * wl + xl * wh; 980 /* wh+wl=(x+5)*yy */ 981 wh = CHOPPED((x5 * (yy.h + yy.l))); 982 wl = (z1 * yy.h + x5 * yy.l) - (wh - zh * yy.h); 983 rr.h = wh * x [all...] |
H A D | tgamma.c | 1408 double r1, r2, t2, z, xh, xl, yh, yl, zh, z1, z2, zl, x5, wh, wl; local 1502 /* wh+wl=(x+5)*yy */ 1503 wh = (double) ((float) (x5 * (yy.h + yy.l))); 1504 wl = (z1 * yy.h + x5 * yy.l) - (wh - zh * yy.h); 1505 rr.h = wh * xh; 1506 rr.l = z * wl + xl * wh; 1521 /* wh+wl=(x+1)(x+6)*yy */ 1523 wh = (double) ((float) (z2 * (yy.h + yy.l))); 1524 wl = (z2 * yy.l + yl * yy.h) - (wh - (yh - 6.0) * yy.h); 1525 rr.h = wh * x [all...] |
/illumos-gate/usr/src/uts/common/pcmcia/sys/ |
H A D | cs_priv.h | 622 #define GET_WINDOW_NUMBER(wh) ((wh) & WINDOW_HANDLE_MASK) 623 #define GET_WINDOW_MAGIC(wh) ((wh) & ~WINDOW_HANDLE_MASK)
|