/linux-2.6.39/drivers/net/wireless/ath/ath5k/ |
D | desc.c | 527 struct ath5k_hw_rx_status *rx_status; in ath5k_hw_proc_5210_rx_status() local 529 rx_status = &desc->ud.ds_rx.rx_stat; in ath5k_hw_proc_5210_rx_status() 532 if (unlikely(!(rx_status->rx_status_1 & in ath5k_hw_proc_5210_rx_status() 541 rs->rs_datalen = rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 543 rs->rs_rssi = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 545 rs->rs_rate = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 547 rs->rs_more = !!(rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() 554 rs->rs_tstamp = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status() 558 rs->rs_antenna = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status() 561 rs->rs_antenna = (rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status() [all …]
|
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | trx.c | 305 struct ieee80211_rx_status *rx_status, in rtl92cu_rx_query_desc() argument 327 rx_status->freq = hw->conf.channel->center_freq; in rtl92cu_rx_query_desc() 328 rx_status->band = hw->conf.channel->band; in rtl92cu_rx_query_desc() 330 rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; in rtl92cu_rx_query_desc() 332 rx_status->flag |= RX_FLAG_DECRYPTED; in rtl92cu_rx_query_desc() 334 rx_status->flag |= RX_FLAG_40MHZ; in rtl92cu_rx_query_desc() 336 rx_status->flag |= RX_FLAG_HT; in rtl92cu_rx_query_desc() 337 rx_status->flag |= RX_FLAG_MACTIME_MPDU; in rtl92cu_rx_query_desc() 339 rx_status->flag |= RX_FLAG_DECRYPTED; in rtl92cu_rx_query_desc() 340 rx_status->rate_idx = _rtl92c_rate_mapping(hw, in rtl92cu_rx_query_desc() [all …]
|
/linux-2.6.39/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_txrx.c | 498 struct ieee80211_rx_status *rx_status) in ath9k_rx_prepare() argument 541 memset(rx_status, 0, sizeof(struct ieee80211_rx_status)); in ath9k_rx_prepare() 545 rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; in ath9k_rx_prepare() 560 rx_status->flag |= RX_FLAG_MMIC_ERROR; in ath9k_rx_prepare() 585 rx_status->flag |= RX_FLAG_DECRYPTED; in ath9k_rx_prepare() 590 rx_status->flag |= RX_FLAG_DECRYPTED; in ath9k_rx_prepare() 594 ath9k_process_rate(hw, rx_status, rxbuf->rxstatus.rs_rate, in ath9k_rx_prepare() 614 rx_status->mactime = be64_to_cpu(rxbuf->rxstatus.rs_tstamp); in ath9k_rx_prepare() 615 rx_status->band = hw->conf.channel->band; in ath9k_rx_prepare() 616 rx_status->freq = hw->conf.channel->center_freq; in ath9k_rx_prepare() [all …]
|
/linux-2.6.39/drivers/net/wireless/iwlwifi/ |
D | iwl-rx.c | 970 struct ieee80211_rx_status rx_status; in iwl_rx_reply_rx() local 1028 rx_status.mactime = le64_to_cpu(phy_res->timestamp); in iwl_rx_reply_rx() 1029 rx_status.band = (phy_res->phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? in iwl_rx_reply_rx() 1031 rx_status.freq = in iwl_rx_reply_rx() 1033 rx_status.band); in iwl_rx_reply_rx() 1034 rx_status.rate_idx = in iwl_rx_reply_rx() 1035 iwlagn_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in iwl_rx_reply_rx() 1036 rx_status.flag = 0; in iwl_rx_reply_rx() 1045 rx_status.signal = priv->cfg->ops->utils->calc_rssi(priv, phy_res); in iwl_rx_reply_rx() 1049 rx_status.signal, (unsigned long long)rx_status.mactime); in iwl_rx_reply_rx() [all …]
|
/linux-2.6.39/net/mac80211/ |
D | ibss.c | 257 struct ieee80211_rx_status *rx_status, in ieee80211_rx_bss_info() argument 269 enum ieee80211_band band = rx_status->band; in ieee80211_rx_bss_info() 275 freq = rx_status->freq; in ieee80211_rx_bss_info() 323 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, elems, in ieee80211_rx_bss_info() 357 if (rx_status->flag & RX_FLAG_MACTIME_MPDU) { in ieee80211_rx_bss_info() 374 if (rx_status->flag & RX_FLAG_HT) in ieee80211_rx_bss_info() 378 bitrates[rx_status->rate_idx].bitrate; in ieee80211_rx_bss_info() 380 rx_timestamp = rx_status->mactime + (24 * 8 * 10 / rate); in ieee80211_rx_bss_info() 664 struct ieee80211_rx_status *rx_status = IEEE80211_SKB_RXCB(req); in ieee80211_rx_mgmt_probe_req() local 688 if (!tx_last_beacon && !(rx_status->rx_flags & IEEE80211_RX_RA_MATCH)) in ieee80211_rx_mgmt_probe_req() [all …]
|
D | mesh.c | 554 struct ieee80211_rx_status *rx_status) in ieee80211_mesh_rx_bcn_presp() argument 562 enum ieee80211_band band = rx_status->band; in ieee80211_mesh_rx_bcn_presp() 579 freq = rx_status->freq; in ieee80211_mesh_rx_bcn_presp() 598 struct ieee80211_rx_status *rx_status) in ieee80211_mesh_rx_mgmt_action() argument 602 mesh_rx_plink_frame(sdata, mgmt, len, rx_status); in ieee80211_mesh_rx_mgmt_action() 613 struct ieee80211_rx_status *rx_status; in ieee80211_mesh_rx_queued_mgmt() local 620 rx_status = IEEE80211_SKB_RXCB(skb); in ieee80211_mesh_rx_queued_mgmt() 628 rx_status); in ieee80211_mesh_rx_queued_mgmt() 631 ieee80211_mesh_rx_mgmt_action(sdata, mgmt, skb->len, rx_status); in ieee80211_mesh_rx_queued_mgmt()
|
D | scan.c | 79 struct ieee80211_rx_status *rx_status, in ieee80211_bss_info_update() argument 92 signal = rx_status->signal * 100; in ieee80211_bss_info_update() 94 signal = (rx_status->signal * 100) / local->hw.max_signal; in ieee80211_bss_info_update() 152 struct ieee80211_rx_status *rx_status = IEEE80211_SKB_RXCB(skb); in ieee80211_scan_rx() local 200 rx_status->band); in ieee80211_scan_rx() 202 freq = rx_status->freq; in ieee80211_scan_rx() 209 bss = ieee80211_bss_info_update(sdata->local, rx_status, in ieee80211_scan_rx()
|
D | mlme.c | 1586 struct ieee80211_rx_status *rx_status, in ieee80211_rx_bss_info() argument 1604 rx_status->band); in ieee80211_rx_bss_info() 1606 freq = rx_status->freq; in ieee80211_rx_bss_info() 1613 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, elems, in ieee80211_rx_bss_info() 1633 bss, rx_status->mactime); in ieee80211_rx_bss_info() 1643 struct ieee80211_rx_status *rx_status = (void *) skb->cb; in ieee80211_rx_mgmt_probe_resp() local 1661 ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, &elems, false); in ieee80211_rx_mgmt_probe_resp() 1692 struct ieee80211_rx_status *rx_status) in ieee80211_rx_mgmt_beacon() argument 1712 if (rx_status->freq != local->hw.conf.channel->center_freq) in ieee80211_rx_mgmt_beacon() 1732 ifmgd->last_beacon_signal = rx_status->signal; in ieee80211_rx_mgmt_beacon() [all …]
|
/linux-2.6.39/drivers/staging/octeon/ |
D | ethernet.c | 234 cvmx_pip_port_status_t rx_status; in cvm_oct_common_get_stats() local 241 memset(&rx_status, 0, sizeof(rx_status)); in cvm_oct_common_get_stats() 244 cvmx_pip_get_port_status(priv->port, 1, &rx_status); in cvm_oct_common_get_stats() 248 priv->stats.rx_packets += rx_status.inb_packets; in cvm_oct_common_get_stats() 250 priv->stats.rx_bytes += rx_status.inb_octets; in cvm_oct_common_get_stats() 252 priv->stats.multicast += rx_status.multicast_packets; in cvm_oct_common_get_stats() 253 priv->stats.rx_crc_errors += rx_status.inb_errors; in cvm_oct_common_get_stats() 254 priv->stats.rx_frame_errors += rx_status.fcs_align_err_packets; in cvm_oct_common_get_stats() 261 atomic64_add(rx_status.dropped_packets, in cvm_oct_common_get_stats() 264 atomic_add(rx_status.dropped_packets, in cvm_oct_common_get_stats()
|
/linux-2.6.39/drivers/net/wireless/iwlegacy/ |
D | iwl-4965-lib.c | 572 struct ieee80211_rx_status rx_status; in iwl4965_rx_reply_rx() local 630 rx_status.mactime = le64_to_cpu(phy_res->timestamp); in iwl4965_rx_reply_rx() 631 rx_status.freq = in iwl4965_rx_reply_rx() 633 rx_status.band); in iwl4965_rx_reply_rx() 634 rx_status.band = (phy_res->phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? in iwl4965_rx_reply_rx() 636 rx_status.rate_idx = in iwl4965_rx_reply_rx() 637 iwl4965_hwrate_to_mac80211_idx(rate_n_flags, rx_status.band); in iwl4965_rx_reply_rx() 638 rx_status.flag = 0; in iwl4965_rx_reply_rx() 647 rx_status.signal = iwl4965_calc_rssi(priv, phy_res); in iwl4965_rx_reply_rx() 651 rx_status.signal, (unsigned long long)rx_status.mactime); in iwl4965_rx_reply_rx() [all …]
|
D | iwl-3945.c | 515 struct ieee80211_rx_status rx_status; in iwl3945_rx_reply_rx() local 524 rx_status.flag = 0; in iwl3945_rx_reply_rx() 525 rx_status.mactime = le64_to_cpu(rx_end->timestamp); in iwl3945_rx_reply_rx() 526 rx_status.band = (rx_hdr->phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? in iwl3945_rx_reply_rx() 528 rx_status.freq = in iwl3945_rx_reply_rx() 530 rx_status.band); in iwl3945_rx_reply_rx() 532 rx_status.rate_idx = iwl3945_hwrate_to_plcp_idx(rx_hdr->rate); in iwl3945_rx_reply_rx() 533 if (rx_status.band == IEEE80211_BAND_5GHZ) in iwl3945_rx_reply_rx() 534 rx_status.rate_idx -= IWL_FIRST_OFDM_RATE; in iwl3945_rx_reply_rx() 536 rx_status.antenna = (le16_to_cpu(rx_hdr->phy_flags) & in iwl3945_rx_reply_rx() [all …]
|
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192ce/ |
D | trx.c | 656 struct ieee80211_rx_status *rx_status, in rtl92ce_rx_query_desc() argument 679 rx_status->freq = hw->conf.channel->center_freq; in rtl92ce_rx_query_desc() 680 rx_status->band = hw->conf.channel->band; in rtl92ce_rx_query_desc() 683 rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; in rtl92ce_rx_query_desc() 686 rx_status->flag |= RX_FLAG_DECRYPTED; in rtl92ce_rx_query_desc() 689 rx_status->flag |= RX_FLAG_40MHZ; in rtl92ce_rx_query_desc() 692 rx_status->flag |= RX_FLAG_HT; in rtl92ce_rx_query_desc() 694 rx_status->flag |= RX_FLAG_MACTIME_MPDU; in rtl92ce_rx_query_desc() 697 rx_status->flag |= RX_FLAG_DECRYPTED; in rtl92ce_rx_query_desc() 699 rx_status->rate_idx = _rtl92ce_rate_mapping((bool) in rtl92ce_rx_query_desc() [all …]
|
/linux-2.6.39/drivers/net/wireless/p54/ |
D | txrx.c | 329 struct ieee80211_rx_status *rx_status = IEEE80211_SKB_RXCB(skb); in p54_rx_data() local 347 rx_status->flag |= RX_FLAG_DECRYPTED; in p54_rx_data() 350 rx_status->flag |= RX_FLAG_MMIC_ERROR; in p54_rx_data() 352 rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi); in p54_rx_data() 354 rx_status->flag |= RX_FLAG_SHORTPRE; in p54_rx_data() 356 rx_status->rate_idx = (rate < 4) ? 0 : rate - 4; in p54_rx_data() 358 rx_status->rate_idx = rate; in p54_rx_data() 360 rx_status->freq = freq; in p54_rx_data() 361 rx_status->band = priv->hw->conf.channel->band; in p54_rx_data() 362 rx_status->antenna = hdr->antenna; in p54_rx_data() [all …]
|
/linux-2.6.39/drivers/net/wireless/rt2x00/ |
D | rt2x00dev.c | 464 struct ieee80211_rx_status *rx_status; in rt2x00lib_rxdone() local 539 rx_status = IEEE80211_SKB_RXCB(entry->skb); in rt2x00lib_rxdone() 540 rx_status->mactime = rxdesc.timestamp; in rt2x00lib_rxdone() 541 rx_status->band = rt2x00dev->curr_band; in rt2x00lib_rxdone() 542 rx_status->freq = rt2x00dev->curr_freq; in rt2x00lib_rxdone() 543 rx_status->rate_idx = rate_idx; in rt2x00lib_rxdone() 544 rx_status->signal = rxdesc.rssi; in rt2x00lib_rxdone() 545 rx_status->flag = rxdesc.flags; in rt2x00lib_rxdone() 546 rx_status->antenna = rt2x00dev->link.ant.active.rx; in rt2x00lib_rxdone()
|
/linux-2.6.39/drivers/net/pcmcia/ |
D | nmclan_cs.c | 1069 unsigned short rx_status; in mace_rx() local 1076 rx_status = inw(ioaddr + AM2150_RCV); in mace_rx() 1079 " 0x%X.\n", dev->name, rx_framecnt, rx_status); in mace_rx() 1081 if (rx_status & MACE_RCVFS_RCVSTS) { /* Error, update stats. */ in mace_rx() 1083 if (rx_status & MACE_RCVFS_OFLO) { in mace_rx() 1086 if (rx_status & MACE_RCVFS_CLSN) { in mace_rx() 1089 if (rx_status & MACE_RCVFS_FRAM) { in mace_rx() 1092 if (rx_status & MACE_RCVFS_FCS) { in mace_rx() 1096 short pkt_len = (rx_status & ~MACE_RCVFS_RCVSTS) - 4; in mace_rx() 1106 " 0x%X.\n", pkt_len, rx_status); in mace_rx()
|
/linux-2.6.39/drivers/net/ |
D | sc92031.c | 704 u32 rx_status, unsigned rx_size) in _sc92031_rx_tasklet_error() argument 711 if (!(rx_status & RxStatesOK)) { in _sc92031_rx_tasklet_error() 714 if (rx_status & (RxHugeFrame | RxSmallFrame)) in _sc92031_rx_tasklet_error() 717 if (rx_status & RxBadAlign) in _sc92031_rx_tasklet_error() 720 if (!(rx_status & RxCRCOK)) in _sc92031_rx_tasklet_error() 767 u32 rx_status; in _sc92031_rx_tasklet() local 771 rx_status = le32_to_cpup((__le32 *)(rx_ring + rx_ring_offset)); in _sc92031_rx_tasklet() 774 rx_size = rx_status >> 20; in _sc92031_rx_tasklet() 780 if (unlikely(rx_status == 0 || in _sc92031_rx_tasklet() 783 !(rx_status & RxStatesOK))) { in _sc92031_rx_tasklet() [all …]
|
D | pci-skeleton.c | 1453 static void netdrv_rx_err(u32 rx_status, struct net_device *dev, in netdrv_rx_err() argument 1459 netdev_dbg(dev, "Ethernet frame had errors, status %08x\n", rx_status); in netdrv_rx_err() 1460 if (rx_status & RxTooLong) in netdrv_rx_err() 1462 rx_status); in netdrv_rx_err() 1465 if (rx_status & (RxBadSymbol | RxBadAlign)) in netdrv_rx_err() 1467 if (rx_status & (RxRunt | RxTooLong)) in netdrv_rx_err() 1469 if (rx_status & RxCRCErr) in netdrv_rx_err() 1521 u32 rx_status; in netdrv_rx_interrupt() local 1527 rx_status = le32_to_cpu(*(u32 *)(rx_ring + ring_offset)); in netdrv_rx_interrupt() 1528 rx_size = rx_status >> 16; in netdrv_rx_interrupt() [all …]
|
D | atp.c | 766 rx_head.rx_count, rx_head.rx_status, rx_head.cur_addr); in net_rx() 767 if ((rx_head.rx_status & 0x77) != 0x01) { in net_rx() 769 if (rx_head.rx_status & 0x0004) dev->stats.rx_frame_errors++; in net_rx() 770 else if (rx_head.rx_status & 0x0002) dev->stats.rx_crc_errors++; in net_rx() 773 dev->name, rx_head.rx_status); in net_rx() 774 if (rx_head.rx_status & 0x0020) { in net_rx() 778 } else if (rx_head.rx_status & 0x0050) in net_rx()
|
D | 3c515.c | 1271 short rx_status; in corkscrew_rx() local 1276 while ((rx_status = inw(ioaddr + RxStatus)) > 0) { in corkscrew_rx() 1277 if (rx_status & 0x4000) { /* Error, update stats. */ in corkscrew_rx() 1295 short pkt_len = rx_status & 0x1fff; in corkscrew_rx() 1301 pkt_len, rx_status); in corkscrew_rx() 1336 int rx_status; in boomerang_rx() local 1341 while ((rx_status = vp->rx_ring[entry].status) & RxDComplete) { in boomerang_rx() 1342 if (rx_status & RxDError) { /* Error, update stats. */ in boomerang_rx() 1343 unsigned char rx_error = rx_status >> 16; in boomerang_rx() 1360 short pkt_len = rx_status & 0x1fff; in boomerang_rx() [all …]
|
D | fealnx.c | 1624 s32 rx_status = np->cur_rx->status; in netdev_rx() local 1630 printk(KERN_DEBUG " netdev_rx() status was %8.8x.\n", rx_status); in netdev_rx() 1632 if ((!((rx_status & RXFSD) && (rx_status & RXLSD))) || in netdev_rx() 1633 (rx_status & ErrorSummary)) { in netdev_rx() 1634 if (rx_status & ErrorSummary) { /* there was a fatal error */ in netdev_rx() 1638 dev->name, rx_status); in netdev_rx() 1641 if (rx_status & (LONG | RUNT)) in netdev_rx() 1643 if (rx_status & RXER) in netdev_rx() 1645 if (rx_status & CRC) in netdev_rx() 1651 if (rx_status & RXFSD) { /* this pkt is too long, over one rx buffer */ in netdev_rx() [all …]
|
/linux-2.6.39/drivers/net/wireless/rtl818x/rtl8180/ |
D | dev.c | 122 struct ieee80211_rx_status rx_status = {0}; in rtl8180_handle_rx() local 133 rx_status.antenna = (flags2 >> 15) & 1; in rtl8180_handle_rx() 134 rx_status.rate_idx = (flags >> 20) & 0xF; in rtl8180_handle_rx() 137 if (rx_status.rate_idx > 3) in rtl8180_handle_rx() 145 rx_status.signal = signal; in rtl8180_handle_rx() 146 rx_status.freq = dev->conf.channel->center_freq; in rtl8180_handle_rx() 147 rx_status.band = dev->conf.channel->band; in rtl8180_handle_rx() 148 rx_status.mactime = le64_to_cpu(entry->tsft); in rtl8180_handle_rx() 149 rx_status.flag |= RX_FLAG_MACTIME_MPDU; in rtl8180_handle_rx() 151 rx_status.flag |= RX_FLAG_FAILED_FCS_CRC; in rtl8180_handle_rx() [all …]
|
/linux-2.6.39/drivers/net/wireless/rtlwifi/ |
D | usb.c | 441 struct ieee80211_rx_status rx_status = {0}; in _rtl_usb_rx_process_agg() local 449 rtlpriv->cfg->ops->query_rx_desc(hw, &stats, &rx_status, rxdesc, skb); in _rtl_usb_rx_process_agg() 454 memcpy(IEEE80211_SKB_RXCB(skb), &rx_status, sizeof(rx_status)); in _rtl_usb_rx_process_agg() 484 struct ieee80211_rx_status rx_status = {0}; in _rtl_usb_rx_process_noagg() local 492 rtlpriv->cfg->ops->query_rx_desc(hw, &stats, &rx_status, rxdesc, skb); in _rtl_usb_rx_process_noagg() 497 memcpy(IEEE80211_SKB_RXCB(skb), &rx_status, sizeof(rx_status)); in _rtl_usb_rx_process_noagg() 521 memcpy(IEEE80211_SKB_RXCB(uskb), &rx_status, in _rtl_usb_rx_process_noagg() 522 sizeof(rx_status)); in _rtl_usb_rx_process_noagg()
|
/linux-2.6.39/drivers/net/wireless/rtl818x/rtl8187/ |
D | dev.c | 320 struct ieee80211_rx_status rx_status = { 0 }; in rtl8187_rx_cb() local 344 rx_status.antenna = (hdr->signal >> 7) & 1; in rtl8187_rx_cb() 345 rx_status.mactime = le64_to_cpu(hdr->mac_time); in rtl8187_rx_cb() 363 rx_status.antenna = (hdr->rssi >> 7) & 1; in rtl8187_rx_cb() 364 rx_status.mactime = le64_to_cpu(hdr->mac_time); in rtl8187_rx_cb() 367 rx_status.signal = signal; in rtl8187_rx_cb() 371 rx_status.rate_idx = rate; in rtl8187_rx_cb() 372 rx_status.freq = dev->conf.channel->center_freq; in rtl8187_rx_cb() 373 rx_status.band = dev->conf.channel->band; in rtl8187_rx_cb() 374 rx_status.flag |= RX_FLAG_MACTIME_MPDU; in rtl8187_rx_cb() [all …]
|
/linux-2.6.39/drivers/staging/winbond/ |
D | wb35rx.c | 23 struct ieee80211_rx_status rx_status = {0}; in packet_came() local 36 memcpy(IEEE80211_SKB_RXCB(skb), &rx_status, sizeof(rx_status)); in packet_came()
|
/linux-2.6.39/drivers/net/wireless/ |
D | mac80211_hwsim.c | 489 struct ieee80211_rx_status rx_status; in mac80211_hwsim_tx_frame() local 496 memset(&rx_status, 0, sizeof(rx_status)); in mac80211_hwsim_tx_frame() 498 rx_status.freq = data->channel->center_freq; in mac80211_hwsim_tx_frame() 499 rx_status.band = data->channel->band; in mac80211_hwsim_tx_frame() 500 rx_status.rate_idx = info->control.rates[0].idx; in mac80211_hwsim_tx_frame() 502 rx_status.signal = data->power_level - 50; in mac80211_hwsim_tx_frame() 535 memcpy(IEEE80211_SKB_RXCB(nskb), &rx_status, sizeof(rx_status)); in mac80211_hwsim_tx_frame()
|