Lines Matching refs:rs
603 struct ath5k_rx_status *rs) in ath5k_hw_proc_5210_rx_status() argument
614 memset(rs, 0, sizeof(struct ath5k_rx_status)); in ath5k_hw_proc_5210_rx_status()
619 rs->rs_datalen = rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status()
621 rs->rs_rssi = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status()
623 rs->rs_rate = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status()
625 rs->rs_more = !!(rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status()
632 rs->rs_tstamp = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status()
636 rs->rs_antenna = AR5K_REG_MS(rx_status->rx_status_0, in ath5k_hw_proc_5210_rx_status()
639 rs->rs_antenna = (rx_status->rx_status_0 & in ath5k_hw_proc_5210_rx_status()
647 rs->rs_keyix = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status()
650 rs->rs_keyix = AR5K_RXKEYIX_INVALID; in ath5k_hw_proc_5210_rx_status()
659 rs->rs_status |= AR5K_RXERR_CRC; in ath5k_hw_proc_5210_rx_status()
665 rs->rs_status |= AR5K_RXERR_FIFO; in ath5k_hw_proc_5210_rx_status()
669 rs->rs_status |= AR5K_RXERR_PHY; in ath5k_hw_proc_5210_rx_status()
670 rs->rs_phyerr = AR5K_REG_MS(rx_status->rx_status_1, in ath5k_hw_proc_5210_rx_status()
676 rs->rs_status |= AR5K_RXERR_DECRYPT; in ath5k_hw_proc_5210_rx_status()
697 struct ath5k_rx_status *rs) in ath5k_hw_proc_5212_rx_status() argument
709 memset(rs, 0, sizeof(struct ath5k_rx_status)); in ath5k_hw_proc_5212_rx_status()
715 rs->rs_datalen = rxstat0 & AR5K_5212_RX_DESC_STATUS0_DATA_LEN; in ath5k_hw_proc_5212_rx_status()
716 rs->rs_rssi = AR5K_REG_MS(rxstat0, in ath5k_hw_proc_5212_rx_status()
718 rs->rs_rate = AR5K_REG_MS(rxstat0, in ath5k_hw_proc_5212_rx_status()
720 rs->rs_antenna = AR5K_REG_MS(rxstat0, in ath5k_hw_proc_5212_rx_status()
722 rs->rs_more = !!(rxstat0 & AR5K_5212_RX_DESC_STATUS0_MORE); in ath5k_hw_proc_5212_rx_status()
723 rs->rs_tstamp = AR5K_REG_MS(rxstat1, in ath5k_hw_proc_5212_rx_status()
730 rs->rs_keyix = AR5K_REG_MS(rxstat1, in ath5k_hw_proc_5212_rx_status()
733 rs->rs_keyix = AR5K_RXKEYIX_INVALID; in ath5k_hw_proc_5212_rx_status()
740 rs->rs_status |= AR5K_RXERR_CRC; in ath5k_hw_proc_5212_rx_status()
743 rs->rs_status |= AR5K_RXERR_PHY; in ath5k_hw_proc_5212_rx_status()
744 rs->rs_phyerr = AR5K_REG_MS(rxstat1, in ath5k_hw_proc_5212_rx_status()
747 ath5k_ani_phy_error_report(ah, rs->rs_phyerr); in ath5k_hw_proc_5212_rx_status()
751 rs->rs_status |= AR5K_RXERR_DECRYPT; in ath5k_hw_proc_5212_rx_status()
754 rs->rs_status |= AR5K_RXERR_MIC; in ath5k_hw_proc_5212_rx_status()