Lines Matching refs:pos

128 	struct sk_buff *pos, *loc;  in sctp_intl_store_reasm()  local
130 pos = skb_peek_tail(&ulpq->reasm); in sctp_intl_store_reasm()
131 if (!pos) { in sctp_intl_store_reasm()
136 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm()
155 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_store_reasm()
156 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm()
161 loc = pos; in sctp_intl_store_reasm()
169 loc = pos; in sctp_intl_store_reasm()
188 struct sk_buff *pos; in sctp_intl_retrieve_partial() local
194 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_retrieve_partial()
195 struct sctp_ulpevent *cevent = sctp_skb2event(pos); in sctp_intl_retrieve_partial()
210 first_frag = pos; in sctp_intl_retrieve_partial()
211 last_frag = pos; in sctp_intl_retrieve_partial()
215 last_frag = pos; in sctp_intl_retrieve_partial()
224 first_frag = pos; in sctp_intl_retrieve_partial()
225 last_frag = pos; in sctp_intl_retrieve_partial()
230 last_frag = pos; in sctp_intl_retrieve_partial()
262 struct sk_buff *pos, *first_frag = NULL; in sctp_intl_retrieve_reassembled() local
274 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_retrieve_reassembled()
275 struct sctp_ulpevent *cevent = sctp_skb2event(pos); in sctp_intl_retrieve_reassembled()
290 pd_first = pos; in sctp_intl_retrieve_reassembled()
291 pd_last = pos; in sctp_intl_retrieve_reassembled()
292 pd_len = pos->len; in sctp_intl_retrieve_reassembled()
295 first_frag = pos; in sctp_intl_retrieve_reassembled()
305 pd_last = pos; in sctp_intl_retrieve_reassembled()
306 pd_len += pos->len; in sctp_intl_retrieve_reassembled()
340 first_frag, pos); in sctp_intl_retrieve_reassembled()
376 struct sk_buff *pos, *loc; in sctp_intl_store_ordered() local
378 pos = skb_peek_tail(&ulpq->lobby); in sctp_intl_store_ordered()
379 if (!pos) { in sctp_intl_store_ordered()
384 cevent = (struct sctp_ulpevent *)pos->cb; in sctp_intl_store_ordered()
397 skb_queue_walk(&ulpq->lobby, pos) { in sctp_intl_store_ordered()
398 cevent = (struct sctp_ulpevent *)pos->cb; in sctp_intl_store_ordered()
401 loc = pos; in sctp_intl_store_ordered()
406 loc = pos; in sctp_intl_store_ordered()
422 struct sk_buff *pos, *tmp; in sctp_intl_retrieve_ordered() local
428 sctp_skb_for_each(pos, &ulpq->lobby, tmp) { in sctp_intl_retrieve_ordered()
429 struct sctp_ulpevent *cevent = (struct sctp_ulpevent *)pos->cb; in sctp_intl_retrieve_ordered()
442 __skb_unlink(pos, &ulpq->lobby); in sctp_intl_retrieve_ordered()
444 __skb_queue_tail(event_list, pos); in sctp_intl_retrieve_ordered()
513 struct sk_buff *pos; in sctp_intl_store_reasm_uo() local
515 pos = skb_peek_tail(&ulpq->reasm_uo); in sctp_intl_store_reasm_uo()
516 if (!pos) { in sctp_intl_store_reasm_uo()
521 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm_uo()
539 skb_queue_walk(&ulpq->reasm_uo, pos) { in sctp_intl_store_reasm_uo()
540 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm_uo()
555 __skb_queue_before(&ulpq->reasm_uo, pos, sctp_event2skb(event)); in sctp_intl_store_reasm_uo()
566 struct sk_buff *pos; in sctp_intl_retrieve_partial_uo() local
572 skb_queue_walk(&ulpq->reasm_uo, pos) { in sctp_intl_retrieve_partial_uo()
573 struct sctp_ulpevent *cevent = sctp_skb2event(pos); in sctp_intl_retrieve_partial_uo()
591 first_frag = pos; in sctp_intl_retrieve_partial_uo()
592 last_frag = pos; in sctp_intl_retrieve_partial_uo()
596 last_frag = pos; in sctp_intl_retrieve_partial_uo()
605 first_frag = pos; in sctp_intl_retrieve_partial_uo()
606 last_frag = pos; in sctp_intl_retrieve_partial_uo()
611 last_frag = pos; in sctp_intl_retrieve_partial_uo()
644 struct sk_buff *pos, *first_frag = NULL; in sctp_intl_retrieve_reassembled_uo() local
656 skb_queue_walk(&ulpq->reasm_uo, pos) { in sctp_intl_retrieve_reassembled_uo()
657 struct sctp_ulpevent *cevent = sctp_skb2event(pos); in sctp_intl_retrieve_reassembled_uo()
673 pd_first = pos; in sctp_intl_retrieve_reassembled_uo()
674 pd_last = pos; in sctp_intl_retrieve_reassembled_uo()
675 pd_len = pos->len; in sctp_intl_retrieve_reassembled_uo()
678 first_frag = pos; in sctp_intl_retrieve_reassembled_uo()
688 pd_last = pos; in sctp_intl_retrieve_reassembled_uo()
689 pd_len += pos->len; in sctp_intl_retrieve_reassembled_uo()
723 first_frag, pos); in sctp_intl_retrieve_reassembled_uo()
761 struct sk_buff *pos; in sctp_intl_retrieve_first_uo() local
765 skb_queue_walk(&ulpq->reasm_uo, pos) { in sctp_intl_retrieve_first_uo()
766 struct sctp_ulpevent *cevent = sctp_skb2event(pos); in sctp_intl_retrieve_first_uo()
776 first_frag = pos; in sctp_intl_retrieve_first_uo()
777 last_frag = pos; in sctp_intl_retrieve_first_uo()
790 last_frag = pos; in sctp_intl_retrieve_first_uo()
867 struct sk_buff *pos; in sctp_intl_retrieve_first() local
871 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_retrieve_first()
872 struct sctp_ulpevent *cevent = sctp_skb2event(pos); in sctp_intl_retrieve_first()
883 first_frag = pos; in sctp_intl_retrieve_first()
884 last_frag = pos; in sctp_intl_retrieve_first()
897 last_frag = pos; in sctp_intl_retrieve_first()
1007 struct sk_buff *pos, *tmp; in sctp_intl_reap_ordered() local
1013 sctp_skb_for_each(pos, lobby, tmp) { in sctp_intl_reap_ordered()
1014 cevent = (struct sctp_ulpevent *)pos->cb; in sctp_intl_reap_ordered()
1027 __skb_unlink(pos, lobby); in sctp_intl_reap_ordered()
1029 event = sctp_skb2event(pos); in sctp_intl_reap_ordered()
1031 __skb_queue_tail(&temp, pos); in sctp_intl_reap_ordered()
1034 if (!event && pos != (struct sk_buff *)lobby) { in sctp_intl_reap_ordered()
1035 cevent = (struct sctp_ulpevent *)pos->cb; in sctp_intl_reap_ordered()
1041 __skb_unlink(pos, lobby); in sctp_intl_reap_ordered()
1042 __skb_queue_tail(&temp, pos); in sctp_intl_reap_ordered()
1043 event = sctp_skb2event(pos); in sctp_intl_reap_ordered()
1155 #define _sctp_walk_ifwdtsn(pos, chunk, end) \ argument
1156 for (pos = (void *)(chunk->subh.ifwdtsn_hdr + 1); \
1157 (void *)pos <= (void *)(chunk->subh.ifwdtsn_hdr + 1) + (end) - \
1158 sizeof(struct sctp_ifwdtsn_skip); pos++)
1160 #define sctp_walk_ifwdtsn(pos, ch) \ argument
1161 _sctp_walk_ifwdtsn((pos), (ch), ntohs((ch)->chunk_hdr->length) - \
1208 struct sk_buff *pos, *tmp; in sctp_intl_reasm_flushtsn() local
1210 skb_queue_walk_safe(&ulpq->reasm, pos, tmp) { in sctp_intl_reasm_flushtsn()
1211 struct sctp_ulpevent *event = sctp_skb2event(pos); in sctp_intl_reasm_flushtsn()
1215 __skb_unlink(pos, &ulpq->reasm); in sctp_intl_reasm_flushtsn()
1220 skb_queue_walk_safe(&ulpq->reasm_uo, pos, tmp) { in sctp_intl_reasm_flushtsn()
1221 struct sctp_ulpevent *event = sctp_skb2event(pos); in sctp_intl_reasm_flushtsn()
1225 __skb_unlink(pos, &ulpq->reasm_uo); in sctp_intl_reasm_flushtsn()