Lines Matching refs:stats_req
345 struct debug_htt_stats_req *stats_req; in ath11k_dbg_sta_open_htt_peer_stats() local
354 stats_req = vzalloc(sizeof(*stats_req) + ATH11K_HTT_STATS_BUF_SIZE); in ath11k_dbg_sta_open_htt_peer_stats()
355 if (!stats_req) in ath11k_dbg_sta_open_htt_peer_stats()
359 ar->debug.htt_stats.stats_req = stats_req; in ath11k_dbg_sta_open_htt_peer_stats()
360 stats_req->type = type; in ath11k_dbg_sta_open_htt_peer_stats()
361 memcpy(stats_req->peer_addr, sta->addr, ETH_ALEN); in ath11k_dbg_sta_open_htt_peer_stats()
367 file->private_data = stats_req; in ath11k_dbg_sta_open_htt_peer_stats()
370 vfree(stats_req); in ath11k_dbg_sta_open_htt_peer_stats()
371 ar->debug.htt_stats.stats_req = NULL; in ath11k_dbg_sta_open_htt_peer_stats()
384 ar->debug.htt_stats.stats_req = NULL; in ath11k_dbg_sta_release_htt_peer_stats()
394 struct debug_htt_stats_req *stats_req = file->private_data; in ath11k_dbg_sta_read_htt_peer_stats() local
398 buf = stats_req->buf; in ath11k_dbg_sta_read_htt_peer_stats()
399 length = min_t(u32, stats_req->buf_len, ATH11K_HTT_STATS_BUF_SIZE); in ath11k_dbg_sta_read_htt_peer_stats()