Lines Matching refs:nc

727 sctp_build_readq_entry_from_ctl(struct sctp_queued_to_read *nc, struct sctp_queued_to_read *control)
729 memset(nc, 0, sizeof(struct sctp_queued_to_read));
730 nc->sinfo_stream = control->sinfo_stream;
731 nc->mid = control->mid;
732 TAILQ_INIT(&nc->reasm);
733 nc->top_fsn = control->top_fsn;
734 nc->mid = control->mid;
735 nc->sinfo_flags = control->sinfo_flags;
736 nc->sinfo_ppid = control->sinfo_ppid;
737 nc->sinfo_context = control->sinfo_context;
738 nc->fsn_included = 0xffffffff;
739 nc->sinfo_tsn = control->sinfo_tsn;
740 nc->sinfo_cumtsn = control->sinfo_cumtsn;
741 nc->sinfo_assoc_id = control->sinfo_assoc_id;
742 nc->whoFrom = control->whoFrom;
743 atomic_add_int(&nc->whoFrom->ref_count, 1);
744 nc->stcb = control->stcb;
745 nc->port_from = control->port_from;
746 nc->do_not_ref_stcb = control->do_not_ref_stcb;
782 struct sctp_queued_to_read *nc;
797 sctp_alloc_a_readq(stcb, nc);
798 if (nc == NULL) {
801 memset(nc, 0, sizeof(struct sctp_queued_to_read));
815 sctp_build_readq_entry_from_ctl(nc, control);
829 nc->first_frag_seen = 1;
830 nc->fsn_included = tchk->rec.data.fsn;
831 nc->data = tchk->data;
832 nc->sinfo_ppid = tchk->rec.data.ppid;
833 nc->sinfo_tsn = tchk->rec.data.tsn;
837 sctp_setup_tail_pointer(nc);
843 TAILQ_INSERT_TAIL(&nc->reasm, tchk, sctp_next);
850 TAILQ_INSERT_TAIL(&strm->uno_inqueue, nc, next_instrm);
851 nc->on_strm_q = SCTP_ON_UNORDERED;
872 if ((nc->first_frag_seen) && !TAILQ_EMPTY(&nc->reasm)) {
877 control = nc;
880 if (nc->on_strm_q == 0) {
881 sctp_free_a_readq(stcb, nc);
886 sctp_free_a_readq(stcb, nc);