• Home
  • Raw
  • Download

Lines Matching refs:rs

1213 		   struct ath5k_rx_status *rs)  in ath5k_rx_decrypted()  argument
1219 if (!(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted()
1220 rs->rs_keyix != AR5K_RXKEYIX_INVALID) in ath5k_rx_decrypted()
1228 !(rs->rs_status & AR5K_RXERR_DECRYPT) && in ath5k_rx_decrypted()
1373 struct ath5k_rx_status *rs) in ath5k_receive_frame() argument
1383 if (unlikely(rs->rs_status & AR5K_RXERR_MIC)) in ath5k_receive_frame()
1385 if (unlikely(rs->rs_status & AR5K_RXERR_CRC)) in ath5k_receive_frame()
1398 rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp); in ath5k_receive_frame()
1404 rxs->signal = ah->ah_noise_floor + rs->rs_rssi; in ath5k_receive_frame()
1406 rxs->antenna = rs->rs_antenna; in ath5k_receive_frame()
1408 if (rs->rs_antenna > 0 && rs->rs_antenna < 5) in ath5k_receive_frame()
1409 ah->stats.antenna_rx[rs->rs_antenna]++; in ath5k_receive_frame()
1413 rxs->rate_idx = ath5k_hw_to_driver_rix(ah, rs->rs_rate); in ath5k_receive_frame()
1414 rxs->flag |= ath5k_rx_decrypted(ah, skb, rs); in ath5k_receive_frame()
1426 if (rs->rs_rate == in ath5k_receive_frame()
1433 ewma_beacon_rssi_add(&ah->ah_beacon_rssi_avg, rs->rs_rssi); in ath5k_receive_frame()
1449 ath5k_receive_frame_ok(struct ath5k_hw *ah, struct ath5k_rx_status *rs) in ath5k_receive_frame_ok() argument
1452 ah->stats.rx_bytes_count += rs->rs_datalen; in ath5k_receive_frame_ok()
1454 if (unlikely(rs->rs_status)) { in ath5k_receive_frame_ok()
1457 if (rs->rs_status & AR5K_RXERR_CRC) in ath5k_receive_frame_ok()
1459 if (rs->rs_status & AR5K_RXERR_FIFO) in ath5k_receive_frame_ok()
1461 if (rs->rs_status & AR5K_RXERR_PHY) { in ath5k_receive_frame_ok()
1463 if (rs->rs_phyerr > 0 && rs->rs_phyerr < 32) in ath5k_receive_frame_ok()
1464 ah->stats.rxerr_phy_code[rs->rs_phyerr]++; in ath5k_receive_frame_ok()
1472 if (rs->rs_phyerr == AR5K_RX_PHY_ERROR_OFDM_RESTART || in ath5k_receive_frame_ok()
1473 rs->rs_phyerr == AR5K_RX_PHY_ERROR_CCK_RESTART) { in ath5k_receive_frame_ok()
1474 rs->rs_status |= AR5K_RXERR_CRC; in ath5k_receive_frame_ok()
1475 rs->rs_status &= ~AR5K_RXERR_PHY; in ath5k_receive_frame_ok()
1480 if (rs->rs_status & AR5K_RXERR_DECRYPT) { in ath5k_receive_frame_ok()
1492 if (rs->rs_keyix == AR5K_RXKEYIX_INVALID && in ath5k_receive_frame_ok()
1493 !(rs->rs_status & AR5K_RXERR_CRC)) in ath5k_receive_frame_ok()
1496 if (rs->rs_status & AR5K_RXERR_MIC) { in ath5k_receive_frame_ok()
1509 if (rs->rs_status & ~filters) in ath5k_receive_frame_ok()
1513 if (unlikely(rs->rs_more)) { in ath5k_receive_frame_ok()
1542 struct ath5k_rx_status rs = {}; in ath5k_tasklet_rx() local
1566 ret = ah->ah_proc_rx_desc(ah, ds, &rs); in ath5k_tasklet_rx()
1575 if (ath5k_receive_frame_ok(ah, &rs)) { in ath5k_tasklet_rx()
1589 skb_put(skb, rs.rs_datalen); in ath5k_tasklet_rx()
1591 ath5k_receive_frame(ah, skb, &rs); in ath5k_tasklet_rx()