Lines Matching +full:len +full:- +full:or +full:- +full:define
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 struct ath_hw *ah = file->private_data; in read_file_modal_eeprom()
23 u32 len = 0, size = 6000; in read_file_modal_eeprom() local
29 return -ENOMEM; in read_file_modal_eeprom()
31 len = ah->eep_ops->dump_eeprom(ah, false, buf, len, size); in read_file_modal_eeprom()
33 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_modal_eeprom()
58 struct ath_hw *ah = file->private_data; in read_file_base_eeprom()
59 u32 len = 0, size = 1500; in read_file_base_eeprom() local
65 return -ENOMEM; in read_file_base_eeprom()
67 len = ah->eep_ops->dump_eeprom(ah, true, buf, len, size); in read_file_base_eeprom()
69 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_base_eeprom()
93 #define RX_PHY_ERR_INC(c) rxstats->phy_err_stats[c]++ in ath9k_cmn_debug_stat_rx()
94 #define RX_CMN_STAT_INC(c) (rxstats->c++) in ath9k_cmn_debug_stat_rx()
97 rxstats->rx_bytes_all += rs->rs_datalen; in ath9k_cmn_debug_stat_rx()
99 if (rs->rs_status & ATH9K_RXERR_CRC) in ath9k_cmn_debug_stat_rx()
101 if (rs->rs_status & ATH9K_RXERR_DECRYPT) in ath9k_cmn_debug_stat_rx()
103 if (rs->rs_status & ATH9K_RXERR_MIC) in ath9k_cmn_debug_stat_rx()
105 if (rs->rs_status & ATH9K_RX_DELIM_CRC_PRE) in ath9k_cmn_debug_stat_rx()
107 if (rs->rs_status & ATH9K_RX_DELIM_CRC_POST) in ath9k_cmn_debug_stat_rx()
109 if (rs->rs_status & ATH9K_RX_DECRYPT_BUSY) in ath9k_cmn_debug_stat_rx()
112 if (rs->rs_status & ATH9K_RXERR_PHY) { in ath9k_cmn_debug_stat_rx()
114 if (rs->rs_phyerr < ATH9K_PHYERR_MAX) in ath9k_cmn_debug_stat_rx()
115 RX_PHY_ERR_INC(rs->rs_phyerr); in ath9k_cmn_debug_stat_rx()
126 #define RXS_ERR(s, e) \ in read_file_recv()
128 len += scnprintf(buf + len, size - len, \ in read_file_recv()
130 rxstats->e); \ in read_file_recv()
133 struct ath_rx_stats *rxstats = file->private_data; in read_file_recv()
135 unsigned int len = 0, size = 1600; in read_file_recv() local
140 return -ENOMEM; in read_file_recv()
142 RXS_ERR("PKTS-ALL", rx_pkts_all); in read_file_recv()
143 RXS_ERR("BYTES-ALL", rx_bytes_all); in read_file_recv()
154 RXS_ERR("PRE-DELIM CRC ERR", pre_delim_crc_err); in read_file_recv()
155 RXS_ERR("POST-DELIM CRC ERR", post_delim_crc_err); in read_file_recv()
157 RXS_ERR("LENGTH-ERR", rx_len_err); in read_file_recv()
158 RXS_ERR("OOM-ERR", rx_oom_err); in read_file_recv()
159 RXS_ERR("RATE-ERR", rx_rate_err); in read_file_recv()
160 RXS_ERR("TOO-MANY-FRAGS", rx_too_many_frags_err); in read_file_recv()
162 if (len > size) in read_file_recv()
163 len = size; in read_file_recv()
165 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_recv()
190 #define PHY_ERR(s, p) \ in read_file_phy_err()
191 len += scnprintf(buf + len, size - len, "%22s : %10u\n", s, \ in read_file_phy_err()
192 rxstats->phy_err_stats[p]) in read_file_phy_err()
194 struct ath_rx_stats *rxstats = file->private_data; in read_file_phy_err()
196 unsigned int len = 0, size = 1600; in read_file_phy_err() local
201 return -ENOMEM; in read_file_phy_err()
212 PHY_ERR("OFDM-TIMING ERR", ATH9K_PHYERR_OFDM_TIMING); in read_file_phy_err()
213 PHY_ERR("OFDM-SIGNAL-PARITY ERR", ATH9K_PHYERR_OFDM_SIGNAL_PARITY); in read_file_phy_err()
214 PHY_ERR("OFDM-RATE ERR", ATH9K_PHYERR_OFDM_RATE_ILLEGAL); in read_file_phy_err()
215 PHY_ERR("OFDM-LENGTH ERR", ATH9K_PHYERR_OFDM_LENGTH_ILLEGAL); in read_file_phy_err()
216 PHY_ERR("OFDM-POWER-DROP ERR", ATH9K_PHYERR_OFDM_POWER_DROP); in read_file_phy_err()
217 PHY_ERR("OFDM-SERVICE ERR", ATH9K_PHYERR_OFDM_SERVICE); in read_file_phy_err()
218 PHY_ERR("OFDM-RESTART ERR", ATH9K_PHYERR_OFDM_RESTART); in read_file_phy_err()
220 PHY_ERR("CCK-BLOCKER ERR", ATH9K_PHYERR_CCK_BLOCKER); in read_file_phy_err()
221 PHY_ERR("CCK-TIMING ERR", ATH9K_PHYERR_CCK_TIMING); in read_file_phy_err()
222 PHY_ERR("CCK-HEADER-CRC ERR", ATH9K_PHYERR_CCK_HEADER_CRC); in read_file_phy_err()
223 PHY_ERR("CCK-RATE ERR", ATH9K_PHYERR_CCK_RATE_ILLEGAL); in read_file_phy_err()
224 PHY_ERR("CCK-LENGTH ERR", ATH9K_PHYERR_CCK_LENGTH_ILLEGAL); in read_file_phy_err()
225 PHY_ERR("CCK-POWER-DROP ERR", ATH9K_PHYERR_CCK_POWER_DROP); in read_file_phy_err()
226 PHY_ERR("CCK-SERVICE ERR", ATH9K_PHYERR_CCK_SERVICE); in read_file_phy_err()
227 PHY_ERR("CCK-RESTART ERR", ATH9K_PHYERR_CCK_RESTART); in read_file_phy_err()
229 PHY_ERR("HT-CRC ERR", ATH9K_PHYERR_HT_CRC_ERROR); in read_file_phy_err()
230 PHY_ERR("HT-LENGTH ERR", ATH9K_PHYERR_HT_LENGTH_ILLEGAL); in read_file_phy_err()
231 PHY_ERR("HT-RATE ERR", ATH9K_PHYERR_HT_RATE_ILLEGAL); in read_file_phy_err()
232 PHY_ERR("HT-ZLF ERR", ATH9K_PHYERR_HT_ZLF); in read_file_phy_err()
234 PHY_ERR("FALSE-RADAR-EXT ERR", ATH9K_PHYERR_FALSE_RADAR_EXT); in read_file_phy_err()
235 PHY_ERR("GREEN-FIELD ERR", ATH9K_PHYERR_GREEN_FIELD); in read_file_phy_err()
238 if (len > size) in read_file_phy_err()
239 len = size; in read_file_phy_err()
241 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_phy_err()