/titanic_50/usr/src/lib/libm/common/complex/ |
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)[2] = (j << 25); 535 lx = ((unsigned *)&wh)[1]; 537 ((unsigned *)&wh)[1] = ly; 538 ((unsigned *)&wh)[0] += (ly == 0 && lx != 0); [all …]
|
H A D | k_clog_r.c | 250 double t1, t2, t3, t4, tk, z, wh, w, zh, zk; in __k_clog_r() local 281 ((int *)&wh)[HIWORD] = iy; in __k_clog_r() 282 ((unsigned *)&wh)[LOWORD] = ly & 0xf8000000; in __k_clog_r() 283 *er = half * ((y - wh) * (y + wh) - (t2 - wh * wh)); in __k_clog_r() 344 ((int *)&wh)[HIWORD] = ix + (j >> 5); in __k_clog_r() 345 ((unsigned *)&wh)[LOWORD] = (j << 27); in __k_clog_r() 350 tk = wh - x; in __k_clog_r() 351 t3 = tk * tk - (two * wh * tk - (wh * wh - t1)); in __k_clog_r() 353 ((int *)&wh)[HIWORD] = iy + (j >> 5); in __k_clog_r() 354 ((unsigned *)&wh)[LOWORD] = (j << 27); in __k_clog_r() [all …]
|
/titanic_50/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 187 struct ieee80211_frame *wh; in mac_wifi_header() local 202 wh = (struct ieee80211_frame *)mp->b_rptr; in mac_wifi_header() 204 wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_DATA; in mac_wifi_header() 208 wh->i_fc[1] = IEEE80211_FC1_DIR_TODS; in mac_wifi_header() 209 IEEE80211_ADDR_COPY(wh->i_addr1, wdp->wd_bssid); in mac_wifi_header() 210 IEEE80211_ADDR_COPY(wh->i_addr2, saddr); in mac_wifi_header() 211 IEEE80211_ADDR_COPY(wh->i_addr3, daddr); in mac_wifi_header() 216 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS; in mac_wifi_header() 217 IEEE80211_ADDR_COPY(wh->i_addr1, daddr); in mac_wifi_header() 218 IEEE80211_ADDR_COPY(wh->i_addr2, saddr); in mac_wifi_header() [all …]
|
/titanic_50/usr/src/uts/common/io/net80211/ |
H A D | net80211_input.c | 64 struct ieee80211_frame *wh; in ieee80211_input() local 86 wh = (struct ieee80211_frame *)mp->b_rptr; in ieee80211_input() 88 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; in ieee80211_input() 90 hdrspace = ieee80211_hdrspace(ic, wh); /* optimize */ in ieee80211_input() 111 wh = (struct ieee80211_frame *)mp->b_rptr; in ieee80211_input() 112 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != in ieee80211_input() 115 "discard pkt with wrong version %x", wh->i_fc[0]); in ieee80211_input() 119 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; in ieee80211_input() 120 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; in ieee80211_input() 121 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; in ieee80211_input() [all …]
|
H A D | net80211_output.c | 54 struct ieee80211_frame *wh, int type, const uint8_t *sa, const uint8_t *da, in ieee80211_send_setup() argument 57 wh->i_fc[0] = (uint8_t)(IEEE80211_FC0_VERSION_0 | type); in ieee80211_send_setup() 61 wh->i_fc[1] = IEEE80211_FC1_DIR_TODS; in ieee80211_send_setup() 62 IEEE80211_ADDR_COPY(wh->i_addr1, bssid); in ieee80211_send_setup() 63 IEEE80211_ADDR_COPY(wh->i_addr2, sa); in ieee80211_send_setup() 64 IEEE80211_ADDR_COPY(wh->i_addr3, da); in ieee80211_send_setup() 68 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS; in ieee80211_send_setup() 69 IEEE80211_ADDR_COPY(wh->i_addr1, da); in ieee80211_send_setup() 70 IEEE80211_ADDR_COPY(wh->i_addr2, sa); in ieee80211_send_setup() 71 IEEE80211_ADDR_COPY(wh->i_addr3, bssid); in ieee80211_send_setup() [all …]
|
H A D | net80211_crypto_ccmp.c | 360 ccmp_init(struct ieee80211_frame *wh, uint64_t pn, size_t dlen, in ccmp_init() argument 372 IEEE80211_ADDR_COPY(b0 + 2, wh->i_addr2); in ccmp_init() 392 aad[2] = wh->i_fc[0] & 0x8f; /* magic #s */ in ccmp_init() 393 aad[3] = wh->i_fc[1] & 0xc7; /* magic #s */ in ccmp_init() 395 (void) memcpy(aad + 4, wh->i_addr1, 3 * IEEE80211_ADDR_LEN); in ccmp_init() 396 aad[22] = wh->i_seq[0] & IEEE80211_SEQ_FRAG_MASK; in ccmp_init() 408 if (IEEE80211_QOS_HAS_SEQ(wh)) { in ccmp_init() 410 (struct ieee80211_qosframe *)wh; in ccmp_init() 427 struct ieee80211_frame *wh; in ccmp_encrypt() local 433 wh = (struct ieee80211_frame *)mp->b_rptr; in ccmp_encrypt() [all …]
|
H A D | net80211_proto.c | 111 struct ieee80211_frame *wh; in ieee80211_dump_pkt() local 118 wh = (struct ieee80211_frame *)buf; in ieee80211_dump_pkt() 119 switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) { in ieee80211_dump_pkt() 122 ieee80211_macaddr_sprintf(wh->i_addr2)); in ieee80211_dump_pkt() 125 ieee80211_macaddr_sprintf(wh->i_addr1)); in ieee80211_dump_pkt() 128 ieee80211_macaddr_sprintf(wh->i_addr3)); in ieee80211_dump_pkt() 133 ieee80211_macaddr_sprintf(wh->i_addr2)); in ieee80211_dump_pkt() 136 ieee80211_macaddr_sprintf(wh->i_addr3)); in ieee80211_dump_pkt() 139 ieee80211_macaddr_sprintf(wh->i_addr1)); in ieee80211_dump_pkt() 144 ieee80211_macaddr_sprintf(wh->i_addr3)); in ieee80211_dump_pkt() [all …]
|
H A D | net80211_crypto_tkip.c | 619 const struct ieee80211_frame_addr4 *wh = in michael_mic_hdr() local 622 switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) { in michael_mic_hdr() 624 IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */ in michael_mic_hdr() 625 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2); in michael_mic_hdr() 628 IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */ in michael_mic_hdr() 629 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2); in michael_mic_hdr() 632 IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */ in michael_mic_hdr() 633 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr3); in michael_mic_hdr() 636 IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */ in michael_mic_hdr() 637 IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr4); in michael_mic_hdr() [all …]
|
H A D | net80211_node.c | 1073 const struct ieee80211_frame *wh, int subtype, int rssi, int rstamp) in ieee80211_add_scan() argument 1079 in = ieee80211_find_node(nt, wh->i_addr3); in ieee80211_add_scan() 1084 in = ieee80211_alloc_node(ic, nt, wh->i_addr3); in ieee80211_add_scan() 1112 IEEE80211_ADDR_COPY(in->in_bssid, wh->i_addr3); in ieee80211_add_scan() 1161 ieee80211_init_neighbor(ieee80211_node_t *in, const struct ieee80211_frame *wh, in ieee80211_init_neighbor() argument 1166 IEEE80211_ADDR_COPY(in->in_bssid, wh->i_addr3); in ieee80211_init_neighbor() 1190 ieee80211_add_neighbor(ieee80211com_t *ic, const struct ieee80211_frame *wh, in ieee80211_add_neighbor() argument 1195 in = ieee80211_dup_bss(&ic->ic_sta, wh->i_addr2); in ieee80211_add_neighbor() 1197 ieee80211_init_neighbor(in, wh, sp); in ieee80211_add_neighbor() 1204 #define IEEE80211_IS_CTL(wh) \ argument [all …]
|
H A D | net80211_ht.c | 95 struct ieee80211_frame *wh; in ieee80211_decap_amsdu() local 100 wh = (struct ieee80211_frame *)mp->b_rptr; in ieee80211_decap_amsdu() 101 hdrspace = ieee80211_hdrspace(ic, wh); in ieee80211_decap_amsdu() 128 (void) memcpy(m0->b_wptr, (uint8_t *)wh, hdrspace); in ieee80211_decap_amsdu() 378 struct ieee80211_qosframe *wh; in ieee80211_ampdu_reorder() local 387 wh = (struct ieee80211_qosframe *)m->b_rptr; in ieee80211_ampdu_reorder() 388 ASSERT(wh->i_fc[0] == IEEE80211_FC0_QOSDATA); in ieee80211_ampdu_reorder() 390 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) in ieee80211_ampdu_reorder() 391 tid = ((struct ieee80211_qosframe_addr4 *)wh)->i_qos[0]; in ieee80211_ampdu_reorder() 393 tid = wh->i_qos[0]; in ieee80211_ampdu_reorder() [all …]
|
H A D | net80211_crypto_none.c | 106 struct ieee80211_frame *wh = (struct ieee80211_frame *)mp->b_rptr; in none_decap() local 107 const uint8_t *ivp = (const uint8_t *)&wh[1]; in none_decap()
|
H A D | net80211.c | 560 const struct ieee80211_frame *wh = data; in ieee80211_hdrsize() local 564 ASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != in ieee80211_hdrsize() 566 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) in ieee80211_hdrsize() 568 if (IEEE80211_QOS_HAS_SEQ(wh)) in ieee80211_hdrsize() 594 const struct ieee80211_frame *wh = data; in ieee80211_anyhdrsize() local 596 if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { in ieee80211_anyhdrsize() 597 switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { in ieee80211_anyhdrsize()
|
/titanic_50/usr/src/uts/common/io/arn/ |
H A D | arn_xmit.c | 323 struct ieee80211_frame *wh; in arn_tx_set_retry() local 324 wh = (struct ieee80211_frame *)bf->bf_dma.mem_va; in arn_tx_set_retry() 329 *(uint16_t *)&wh->i_seq[0] |= LE_16(0x0800); /* ??? */ in arn_tx_set_retry() 933 struct ieee80211_frame *wh, uint8_t type) in arn_test_get_txq() argument 946 if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS) { in arn_test_get_txq() 947 qwh = (struct ieee80211_qosframe *)wh; in arn_test_get_txq() 1002 struct ieee80211_frame *wh) in assign_aggr_tid_seqno() argument 1010 in = ieee80211_find_txnode(ic, wh->i_addr1); in assign_aggr_tid_seqno() 1020 if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS) { in assign_aggr_tid_seqno() 1021 qwh = (struct ieee80211_qosframe *)wh; in assign_aggr_tid_seqno() [all …]
|
H A D | arn_recv.c | 428 struct ieee80211_frame *wh; in arn_rx_handler() local 531 wh = (struct ieee80211_frame *)rx_mp->b_rptr; in arn_rx_handler() 533 if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == in arn_rx_handler() 549 if (IEEE80211_IS_DATA_QOS(wh)) { in arn_rx_handler() 550 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == in arn_rx_handler() 553 wh)->i_qos[0]; in arn_rx_handler() 556 ((struct ieee80211_qosframe *)wh)->i_qos[0]; in arn_rx_handler() 569 in = ieee80211_find_rxnode(ic, wh); in arn_rx_handler() 610 if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == in arn_rx_handler() 612 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; in arn_rx_handler()
|
/titanic_50/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; in gam_n() local 944 wh = CHOPPED((z1 * (yy.h + yy.l))); in gam_n() 945 wl = (zl * yy.h + z1 * yy.l) - (wh - zh * yy.h); in gam_n() 947 rr.h = xh * wh; in gam_n() 948 rr.l = z2 * wl + xl * wh; in gam_n() 981 wh = CHOPPED((x5 * (yy.h + yy.l))); in gam_n() 982 wl = (z1 * yy.h + x5 * yy.l) - (wh - zh * yy.h); in gam_n() 983 rr.h = wh * xh; in gam_n() 984 rr.l = z * wl + xl * wh; in gam_n() 1001 wh = CHOPPED((z2 * (yy.h + yy.l))); in gam_n() [all …]
|
H A D | tgamma.c | 1408 double r1, r2, t2, z, xh, xl, yh, yl, zh, z1, z2, zl, x5, wh, wl; in gam_n() local 1503 wh = (double) ((float) (x5 * (yy.h + yy.l))); in gam_n() 1504 wl = (z1 * yy.h + x5 * yy.l) - (wh - zh * yy.h); in gam_n() 1505 rr.h = wh * xh; in gam_n() 1506 rr.l = z * wl + xl * wh; in gam_n() 1523 wh = (double) ((float) (z2 * (yy.h + yy.l))); in gam_n() 1524 wl = (z2 * yy.l + yl * yy.h) - (wh - (yh - 6.0) * yy.h); in gam_n() 1525 rr.h = wh * xh; in gam_n() 1526 rr.l = z * wl + xl * wh; in gam_n()
|
/titanic_50/usr/src/lib/libshell/common/sh/ |
H A D | tdump.c | 94 if(t->wh.whinc) in p_tree() 96 if(p_tree((Shnode_t*)(t->wh.whinc))<0) in p_tree() 104 if(p_tree(t->wh.whtre)<0) in p_tree() 106 return(p_tree(t->wh.dotre)); in p_tree()
|
H A D | deparse.c | 152 if(t->wh.whinc) in p_tree() 159 if(t->wh.whinc) in p_tree() 161 struct argnod *arg = (t->wh.whtre)->ar.arexpr; in p_tree() 165 arg = (t->wh.whinc)->arexpr; in p_tree() 169 p_tree(t->wh.whtre,0); in p_tree() 170 t = t->wh.dotre; in p_tree() 176 if(tr->tre.tretyp==TWH && tr->wh.whinc && t->lst.lstlef->tre.tretyp==TARITH) in p_tree()
|
/titanic_50/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) in csx_RequestWindow() argument 284 return (CardServices(RequestWindow, ch, wh, wr)); in csx_RequestWindow() 288 csx_ReleaseWindow(window_handle_t wh) in csx_ReleaseWindow() argument 292 cmn_err(CE_CONT, "csx_ReleaseWindow: handle: 0x%x\n", wh); in csx_ReleaseWindow() 294 return (CardServices(ReleaseWindow, wh)); in csx_ReleaseWindow() 298 csx_ModifyWindow(window_handle_t wh, modify_win_t *mw) in csx_ModifyWindow() argument 302 cmn_err(CE_CONT, "csx_ModifyWindow: handle: 0x%x\n", wh); in csx_ModifyWindow() 304 return (CardServices(ModifyWindow, wh, mw)); in csx_ModifyWindow() 308 csx_MapMemPage(window_handle_t wh, map_mem_page_t *mmp) in csx_MapMemPage() argument 312 cmn_err(CE_CONT, "csx_MapMemPage: handle: 0x%x\n", wh); in csx_MapMemPage() [all …]
|
/titanic_50/usr/src/uts/common/io/zyd/ |
H A D | zyd.c | 227 struct ieee80211_frame *wh; in zyd_receive() local 262 wh = (struct ieee80211_frame *)m->b_rptr; in zyd_receive() 263 in = ieee80211_find_rxnode(ic, wh); in zyd_receive() 285 struct ieee80211_frame *wh; in zyd_send() local 337 wh = (struct ieee80211_frame *)m->b_rptr; in zyd_send() 338 in = ieee80211_find_txnode(ic, wh->i_addr1); in zyd_send() 351 if (wh->i_fc[1] & IEEE80211_FC1_WEP) { in zyd_send() 361 wh = (struct ieee80211_frame *)m->b_rptr; in zyd_send() 403 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { in zyd_send() 419 (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) in zyd_send()
|
/titanic_50/usr/src/uts/common/io/ath/ |
H A D | ath_main.c | 536 struct ieee80211_frame *wh; in ath_rx_handler() local 606 wh = (struct ieee80211_frame *)rx_mp->b_rptr; in ath_rx_handler() 607 if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == in ath_rx_handler() 625 in = ieee80211_find_rxnode(ic, wh); in ath_rx_handler() 673 struct ieee80211_frame *wh; in ath_tx_start() local 692 wh = (struct ieee80211_frame *)mp->b_rptr; in ath_tx_start() 693 iswep = wh->i_fc[1] & IEEE80211_FC1_WEP; in ath_tx_start() 732 wh = (struct ieee80211_frame *)mp->b_rptr; in ath_tx_start() 770 switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) { in ath_tx_start() 772 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; in ath_tx_start() [all …]
|
/titanic_50/usr/src/uts/common/io/wpi/ |
H A D | wpi.c | 1662 struct ieee80211_frame *wh; local 1744 wh = (struct ieee80211_frame *)(head + 1); 1748 ieee80211_dump_pkt((uint8_t *)wh, len, 0, 0); 1751 in = ieee80211_find_rxnode(ic, wh); 1754 (void) memcpy(mp->b_wptr, wh, len); 2080 struct ieee80211_frame *wh; local 2136 wh = (struct ieee80211_frame *)m->b_rptr; 2138 in = ieee80211_find_txnode(ic, wh->i_addr1); 2156 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { 2162 if (wh->i_fc[1] & IEEE80211_FC1_WEP) { [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 67 expand(list, wh) in expand() argument 69 int wh; 77 printf("expand(%x, %d)\nlist = ", list, wh); 81 if (wh == 0) { 90 which = wh;
|
/titanic_50/usr/src/uts/common/io/ral/ |
H A D | rt2560.c | 1178 struct ieee80211_frame *wh; in rt2560_rx_intr() local 1252 wh = (struct ieee80211_frame *)m->b_rptr; in rt2560_rx_intr() 1253 ni = ieee80211_find_rxnode(ic, wh); in rt2560_rx_intr() 1433 struct ieee80211_frame *wh; in rt2560_mgmt_send() local 1474 wh = (struct ieee80211_frame *)m->b_rptr; in rt2560_mgmt_send() 1475 ni = ieee80211_find_txnode(ic, wh->i_addr1); in rt2560_mgmt_send() 1484 if (wh->i_fc[1] & IEEE80211_FC1_WEP) { in rt2560_mgmt_send() 1492 wh = (struct ieee80211_frame *)m->b_rptr; in rt2560_mgmt_send() 1505 wh = (struct ieee80211_frame *)m->b_rptr; in rt2560_mgmt_send() 1506 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { in rt2560_mgmt_send() [all …]
|
/titanic_50/usr/src/uts/common/pcmcia/sys/ |
H A D | cs_priv.h | 622 #define GET_WINDOW_NUMBER(wh) ((wh) & WINDOW_HANDLE_MASK) argument 623 #define GET_WINDOW_MAGIC(wh) ((wh) & ~WINDOW_HANDLE_MASK) argument
|