Lines Matching refs:reorder_buf
601 struct iwl_mvm_reorder_buffer *reorder_buf, in iwl_mvm_release_frames() argument
605 &baid_data->entries[reorder_buf->queue * in iwl_mvm_release_frames()
607 u16 ssn = reorder_buf->head_sn; in iwl_mvm_release_frames()
609 lockdep_assert_held(&reorder_buf->lock); in iwl_mvm_release_frames()
624 if (iwl_mvm_is_sn_less(nssn, ssn, reorder_buf->buf_size)) in iwl_mvm_release_frames()
627 while (iwl_mvm_is_sn_less(ssn, nssn, reorder_buf->buf_size)) { in iwl_mvm_release_frames()
628 int index = ssn % reorder_buf->buf_size; in iwl_mvm_release_frames()
644 reorder_buf->queue, in iwl_mvm_release_frames()
646 reorder_buf->num_stored--; in iwl_mvm_release_frames()
649 reorder_buf->head_sn = nssn; in iwl_mvm_release_frames()
652 if (reorder_buf->num_stored && !reorder_buf->removed) { in iwl_mvm_release_frames()
653 u16 index = reorder_buf->head_sn % reorder_buf->buf_size; in iwl_mvm_release_frames()
656 index = (index + 1) % reorder_buf->buf_size; in iwl_mvm_release_frames()
658 mod_timer(&reorder_buf->reorder_timer, in iwl_mvm_release_frames()
662 del_timer(&reorder_buf->reorder_timer); in iwl_mvm_release_frames()
743 struct iwl_mvm_reorder_buffer *reorder_buf; in iwl_mvm_del_ba() local
759 reorder_buf = &ba_data->reorder_buf[queue]; in iwl_mvm_del_ba()
762 spin_lock_bh(&reorder_buf->lock); in iwl_mvm_del_ba()
763 iwl_mvm_release_frames(mvm, sta, NULL, ba_data, reorder_buf, in iwl_mvm_del_ba()
764 ieee80211_sn_add(reorder_buf->head_sn, in iwl_mvm_del_ba()
765 reorder_buf->buf_size), in iwl_mvm_del_ba()
767 spin_unlock_bh(&reorder_buf->lock); in iwl_mvm_del_ba()
768 del_timer_sync(&reorder_buf->reorder_timer); in iwl_mvm_del_ba()
780 struct iwl_mvm_reorder_buffer *reorder_buf; in iwl_mvm_release_frames_from_notif() local
803 reorder_buf = &ba_data->reorder_buf[queue]; in iwl_mvm_release_frames_from_notif()
805 spin_lock_bh(&reorder_buf->lock); in iwl_mvm_release_frames_from_notif()
807 reorder_buf, nssn, flags); in iwl_mvm_release_frames_from_notif()
808 spin_unlock_bh(&reorder_buf->lock); in iwl_mvm_release_frames_from_notif()
1003 buffer = &baid_data->reorder_buf[queue]; in iwl_mvm_reorder()