Lines Matching refs:needed
965 __u16 needed) in sctp_ulpq_renege_list() argument
1005 if (freed >= needed) in sctp_ulpq_renege_list()
1013 static __u16 sctp_ulpq_renege_order(struct sctp_ulpq *ulpq, __u16 needed) in sctp_ulpq_renege_order() argument
1015 return sctp_ulpq_renege_list(ulpq, &ulpq->lobby, needed); in sctp_ulpq_renege_order()
1019 static __u16 sctp_ulpq_renege_frags(struct sctp_ulpq *ulpq, __u16 needed) in sctp_ulpq_renege_frags() argument
1021 return sctp_ulpq_renege_list(ulpq, &ulpq->reasm, needed); in sctp_ulpq_renege_frags()
1080 __u16 needed; in sctp_ulpq_renege() local
1082 needed = ntohs(chunk->chunk_hdr->length) - in sctp_ulpq_renege()
1086 freed = sctp_ulpq_renege_order(ulpq, needed); in sctp_ulpq_renege()
1087 if (freed < needed) in sctp_ulpq_renege()
1088 freed += sctp_ulpq_renege_frags(ulpq, needed - freed); in sctp_ulpq_renege()
1091 if (sk_rmem_schedule(asoc->base.sk, chunk->skb, needed) && in sctp_ulpq_renege()
1092 freed >= needed) { in sctp_ulpq_renege()