Lines Matching refs:event_buff
394 struct mt76x02_dfs_event_rb *event_buff = &dfs_pd->event_rb[1]; in mt76x02_dfs_check_event() local
398 last_event_idx = mt76_decr(event_buff->t_rb, in mt76x02_dfs_check_event()
400 delta_ts = event->ts - event_buff->data[last_event_idx].ts; in mt76x02_dfs_check_event()
402 event_buff->data[last_event_idx].width >= 200) in mt76x02_dfs_check_event()
412 struct mt76x02_dfs_event_rb *event_buff; in mt76x02_dfs_queue_event() local
415 event_buff = event->engine == 2 ? &dfs_pd->event_rb[1] in mt76x02_dfs_queue_event()
417 event_buff->data[event_buff->t_rb] = *event; in mt76x02_dfs_queue_event()
418 event_buff->data[event_buff->t_rb].fetch_ts = jiffies; in mt76x02_dfs_queue_event()
420 event_buff->t_rb = mt76_incr(event_buff->t_rb, MT_DFS_EVENT_BUFLEN); in mt76x02_dfs_queue_event()
421 if (event_buff->t_rb == event_buff->h_rb) in mt76x02_dfs_queue_event()
422 event_buff->h_rb = mt76_incr(event_buff->h_rb, in mt76x02_dfs_queue_event()
592 struct mt76x02_dfs_event_rb *event_buff; in mt76x02_dfs_check_event_window() local
597 event_buff = &dfs_pd->event_rb[i]; in mt76x02_dfs_check_event_window()
599 while (event_buff->h_rb != event_buff->t_rb) { in mt76x02_dfs_check_event_window()
600 event = &event_buff->data[event_buff->h_rb]; in mt76x02_dfs_check_event_window()
606 event_buff->h_rb = mt76_incr(event_buff->h_rb, in mt76x02_dfs_check_event_window()