Lines Matching refs:len
145 int len = 0, i, j, k, retval = 0; in ath11k_dbg_sta_dump_tx_stats() local
162 len += scnprintf(buf + len, size - len, "%s_%s\n", in ath11k_dbg_sta_dump_tx_stats()
165 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
169 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
172 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
173 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
177 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
180 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
181 len += scnprintf(buf + len, size - len, " HT MCS %s\n", in ath11k_dbg_sta_dump_tx_stats()
184 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
186 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
187 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
189 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
193 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
195 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
199 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
202 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
206 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
210 len += scnprintf(buf + len, size - len, "%llu ", in ath11k_dbg_sta_dump_tx_stats()
212 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_tx_stats()
216 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
219 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
221 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_tx_stats()
225 if (len > size) in ath11k_dbg_sta_dump_tx_stats()
226 len = size; in ath11k_dbg_sta_dump_tx_stats()
227 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_tx_stats()
249 int len = 0, i, retval = 0; in ath11k_dbg_sta_dump_rx_stats() local
263 len += scnprintf(buf + len, size - len, "RX peer stats:\n"); in ath11k_dbg_sta_dump_rx_stats()
264 len += scnprintf(buf + len, size - len, "Num of MSDUs: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
266 len += scnprintf(buf + len, size - len, "Num of MSDUs with TCP L4: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
268 len += scnprintf(buf + len, size - len, "Num of MSDUs with UDP L4: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
270 len += scnprintf(buf + len, size - len, "Num of MSDUs part of AMPDU: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
272 len += scnprintf(buf + len, size - len, "Num of MSDUs not part of AMPDU: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
274 len += scnprintf(buf + len, size - len, "Num of MSDUs using STBC: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
276 len += scnprintf(buf + len, size - len, "Num of MSDUs beamformed: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
278 len += scnprintf(buf + len, size - len, "Num of MPDUs with FCS ok: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
280 len += scnprintf(buf + len, size - len, "Num of MPDUs with FCS error: %llu\n", in ath11k_dbg_sta_dump_rx_stats()
282 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_rx_stats()
286 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_rx_stats()
290 len += scnprintf(buf + len, size - len, "BCC %llu LDPC %llu\n", in ath11k_dbg_sta_dump_rx_stats()
292 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_rx_stats()
297 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_rx_stats()
301 len += scnprintf(buf + len, size - len, "TID(0-15) Legacy TID(16):"); in ath11k_dbg_sta_dump_rx_stats()
303 len += scnprintf(buf + len, size - len, "%llu ", rx_stats->tid_count[i]); in ath11k_dbg_sta_dump_rx_stats()
304 len += scnprintf(buf + len, size - len, "\nMCS(0-11) Legacy MCS(12):"); in ath11k_dbg_sta_dump_rx_stats()
306 len += scnprintf(buf + len, size - len, "%llu ", rx_stats->mcs_count[i]); in ath11k_dbg_sta_dump_rx_stats()
307 len += scnprintf(buf + len, size - len, "\nNSS(1-8):"); in ath11k_dbg_sta_dump_rx_stats()
309 len += scnprintf(buf + len, size - len, "%llu ", rx_stats->nss_count[i]); in ath11k_dbg_sta_dump_rx_stats()
310 len += scnprintf(buf + len, size - len, "\nRX Duration:%llu ", in ath11k_dbg_sta_dump_rx_stats()
312 len += scnprintf(buf + len, size - len, in ath11k_dbg_sta_dump_rx_stats()
319 len += scnprintf(buf + len, size - len, "\n"); in ath11k_dbg_sta_dump_rx_stats()
323 if (len > size) in ath11k_dbg_sta_dump_rx_stats()
324 len = size; in ath11k_dbg_sta_dump_rx_stats()
325 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_rx_stats()
459 int len; in ath11k_dbg_sta_read_peer_pktlog() local
462 len = scnprintf(buf, sizeof(buf), "%08x %pM\n", in ath11k_dbg_sta_read_peer_pktlog()
467 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath11k_dbg_sta_read_peer_pktlog()
638 int len = 0; in ath11k_dbg_sta_read_aggr_mode() local
641 len = scnprintf(buf, sizeof(buf) - len, in ath11k_dbg_sta_read_aggr_mode()
647 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_read_aggr_mode()
762 int len; in ath11k_dbg_sta_read_peer_ps_state() local
766 len = scnprintf(buf, sizeof(buf), "%d\n", arsta->peer_ps_state); in ath11k_dbg_sta_read_peer_ps_state()
770 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_read_peer_ps_state()
790 int len; in ath11k_dbg_sta_read_current_ps_duration() local
801 len = scnprintf(buf, sizeof(buf), "%llu\n", in ath11k_dbg_sta_read_current_ps_duration()
805 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_read_current_ps_duration()
824 int len; in ath11k_dbg_sta_read_total_ps_duration() local
836 len = scnprintf(buf, sizeof(buf), "%llu\n", power_save_duration); in ath11k_dbg_sta_read_total_ps_duration()
840 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_read_total_ps_duration()