Lines Matching refs:avr
53 struct dccp_ackvec_record *avr; in dccp_ackvec_update_records() local
55 avr = kmem_cache_alloc(dccp_ackvec_record_slab, GFP_ATOMIC); in dccp_ackvec_update_records()
56 if (avr == NULL) in dccp_ackvec_update_records()
59 avr->avr_ack_seqno = seqno; in dccp_ackvec_update_records()
60 avr->avr_ack_ptr = av->av_buf_head; in dccp_ackvec_update_records()
61 avr->avr_ack_ackno = av->av_buf_ackno; in dccp_ackvec_update_records()
62 avr->avr_ack_nonce = nonce_sum; in dccp_ackvec_update_records()
63 avr->avr_ack_runlen = dccp_ackvec_runlen(av->av_buf + av->av_buf_head); in dccp_ackvec_update_records()
76 list_add(&avr->avr_node, &av->av_records); in dccp_ackvec_update_records()
79 (unsigned long long)avr->avr_ack_seqno, in dccp_ackvec_update_records()
80 (unsigned long long)avr->avr_ack_ackno, in dccp_ackvec_update_records()
81 avr->avr_ack_runlen); in dccp_ackvec_update_records()
88 struct dccp_ackvec_record *avr; in dccp_ackvec_lookup() local
94 list_for_each_entry_reverse(avr, av_list, avr_node) { in dccp_ackvec_lookup()
95 if (avr->avr_ack_seqno == ackno) in dccp_ackvec_lookup()
96 return avr; in dccp_ackvec_lookup()
97 if (before48(ackno, avr->avr_ack_seqno)) in dccp_ackvec_lookup()
289 struct dccp_ackvec_record *avr, *next; in dccp_ackvec_clear_state() local
293 avr = dccp_ackvec_lookup(&av->av_records, ackno); in dccp_ackvec_clear_state()
294 if (avr == NULL) in dccp_ackvec_clear_state()
301 delta = dccp_delta_seqno(av->av_tail_ackno, avr->avr_ack_ackno); in dccp_ackvec_clear_state()
308 eff_runlen = delta < avr->avr_ack_runlen ? delta : avr->avr_ack_runlen; in dccp_ackvec_clear_state()
310 runlen_now = dccp_ackvec_runlen(av->av_buf + avr->avr_ack_ptr); in dccp_ackvec_clear_state()
320 av->av_buf[avr->avr_ack_ptr] -= eff_runlen + 1; in dccp_ackvec_clear_state()
321 av->av_buf_tail = __ackvec_idx_add(avr->avr_ack_ptr, 1); in dccp_ackvec_clear_state()
327 av->av_buf_tail = avr->avr_ack_ptr; in dccp_ackvec_clear_state()
340 av->av_tail_ackno = ADD48(avr->avr_ack_ackno, 1); in dccp_ackvec_clear_state()
343 list_for_each_entry_safe_from(avr, next, &av->av_records, avr_node) { in dccp_ackvec_clear_state()
344 list_del(&avr->avr_node); in dccp_ackvec_clear_state()
345 kmem_cache_free(dccp_ackvec_record_slab, avr); in dccp_ackvec_clear_state()