Searched refs:av (Results 1 – 4 of 4) sorted by relevance
/net/dccp/ |
D | ackvec.c | 22 struct dccp_ackvec *av = kmem_cache_zalloc(dccp_ackvec_slab, priority); in dccp_ackvec_alloc() local 24 if (av != NULL) { in dccp_ackvec_alloc() 25 av->av_buf_head = av->av_buf_tail = DCCPAV_MAX_ACKVEC_LEN - 1; in dccp_ackvec_alloc() 26 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_alloc() 28 return av; in dccp_ackvec_alloc() 31 static void dccp_ackvec_purge_records(struct dccp_ackvec *av) in dccp_ackvec_purge_records() argument 35 list_for_each_entry_safe(cur, next, &av->av_records, avr_node) in dccp_ackvec_purge_records() 37 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_purge_records() 40 void dccp_ackvec_free(struct dccp_ackvec *av) in dccp_ackvec_free() argument 42 if (likely(av != NULL)) { in dccp_ackvec_free() [all …]
|
D | ackvec.h | 108 extern void dccp_ackvec_free(struct dccp_ackvec *av); 110 extern void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb); 111 extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum); 112 extern void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno); 113 extern u16 dccp_ackvec_buflen(const struct dccp_ackvec *av); 115 static inline bool dccp_ackvec_is_empty(const struct dccp_ackvec *av) in dccp_ackvec_is_empty() argument 117 return av->av_overflow == 0 && av->av_buf_head == av->av_buf_tail; in dccp_ackvec_is_empty()
|
D | options.c | 434 struct dccp_ackvec *av = dp->dccps_hc_rx_ackvec; in dccp_insert_option_ackvec() local 436 const u16 buflen = dccp_ackvec_buflen(av); in dccp_insert_option_ackvec() 466 from = av->av_buf + av->av_buf_head; in dccp_insert_option_ackvec() 467 tail = av->av_buf + DCCPAV_MAX_ACKVEC_LEN; in dccp_insert_option_ackvec() 479 nonce ^= av->av_buf_nonce[i]; in dccp_insert_option_ackvec() 481 *to++ = DCCPO_ACK_VECTOR_0 + av->av_buf_nonce[i]; in dccp_insert_option_ackvec() 492 from = av->av_buf; in dccp_insert_option_ackvec() 503 if (dccp_ackvec_update_records(av, dcb->dccpd_seq, nonce)) in dccp_insert_option_ackvec()
|
D | input.c | 165 struct dccp_ackvec *av = dccp_sk(sk)->dccps_hc_rx_ackvec; in dccp_handle_ackvec_processing() local 167 if (av == NULL) in dccp_handle_ackvec_processing() 170 dccp_ackvec_clear_state(av, DCCP_SKB_CB(skb)->dccpd_ack_seq); in dccp_handle_ackvec_processing() 171 dccp_ackvec_input(av, skb); in dccp_handle_ackvec_processing()
|