Lines Matching refs:head
89 sctp_ack_add(sctp_set_t **head, uint32_t tsn, int *num)
93 if (head == NULL || num == NULL)
97 ASSERT((*num == 0 && *head == NULL) || (*num > 0 && *head != NULL));
99 if (*head == NULL) {
100 *head = kmem_cache_alloc(sctp_kmem_set_cache, KM_NOSLEEP);
101 if (*head == NULL)
103 (*head)->prev = (*head)->next = NULL;
104 (*head)->begin = tsn;
105 (*head)->end = tsn;
110 ASSERT((*head)->prev == NULL);
116 if (SEQ_LT(tsn + 1, (*head)->begin)) {
117 /* add a new set, and move the head pointer */
121 t->next = *head;
123 (*head)->prev = t;
127 *head = t;
144 for (p = *head; ; p = p->next) {
211 sctp_ack_rem(sctp_set_t **head, uint32_t end, int *num)
215 if (head == NULL || *head == NULL || num == NULL)
219 if (SEQ_LT(end, (*head)->begin))
223 for (p = *head; p->next; p = p->next) {
232 if (p == *head)
240 t = *head;
241 *head = p;
252 for (p = *head; p != NULL; p = p->next)
863 * frag arrives it will be set as the new list head in
969 * will head the reassembly queue for this message. The message
992 /* head insertion */
1075 * be set as the new head of list upon arrival. Fake B-bit
1135 * Need head of message and to be due to deliver, otherwise skip
1224 /* point to the head of the reassembled data message */
1442 * dmp returned is NULL or the head of a complete or
1964 mblk_t *head;
1993 head = sctp_add_proto_hdr(sctp, fp, nmp, 0, NULL);
1994 if (head == NULL) {
2001 sctp_set_iplen(sctp, head, fp->sf_ixa);
2002 (void) conn_ip_output(head, fp->sf_ixa);