• Home
  • Raw
  • Download

Lines Matching refs:chunk

88 			    struct sctp_chunk *chunk);
124 static inline void sctp_set_owner_w(struct sctp_chunk *chunk) in sctp_set_owner_w() argument
126 struct sctp_association *asoc = chunk->asoc; in sctp_set_owner_w()
132 if (chunk->shkey) in sctp_set_owner_w()
133 sctp_auth_shkey_hold(chunk->shkey); in sctp_set_owner_w()
135 skb_set_owner_w(chunk->skb, sk); in sctp_set_owner_w()
137 chunk->skb->destructor = sctp_wfree; in sctp_set_owner_w()
139 skb_shinfo(chunk->skb)->destructor_arg = chunk; in sctp_set_owner_w()
142 asoc->sndbuf_used += chunk->skb->truesize + sizeof(struct sctp_chunk); in sctp_set_owner_w()
143 sk_wmem_queued_add(sk, chunk->skb->truesize + sizeof(struct sctp_chunk)); in sctp_set_owner_w()
144 sk_mem_charge(sk, chunk->skb->truesize); in sctp_set_owner_w()
147 static void sctp_clear_owner_w(struct sctp_chunk *chunk) in sctp_clear_owner_w() argument
149 skb_orphan(chunk->skb); in sctp_clear_owner_w()
154 msg = chunk->msg; \
172 struct sctp_chunk *chunk, *c; in sctp_for_each_tx_datachunk() local
176 list_for_each_entry(chunk, &t->transmitted, transmitted_list) in sctp_for_each_tx_datachunk()
179 list_for_each_entry(chunk, &q->retransmit, transmitted_list) in sctp_for_each_tx_datachunk()
182 list_for_each_entry(chunk, &q->sacked, transmitted_list) in sctp_for_each_tx_datachunk()
185 list_for_each_entry(chunk, &q->abandoned, transmitted_list) in sctp_for_each_tx_datachunk()
188 list_for_each_entry(chunk, &q->out_chunk_list, list) in sctp_for_each_tx_datachunk()
468 struct sctp_chunk *chunk) in sctp_send_asconf() argument
476 list_add_tail(&chunk->list, &asoc->addip_chunk_list); in sctp_send_asconf()
481 sctp_chunk_hold(chunk); in sctp_send_asconf()
482 retval = sctp_primitive_ASCONF(asoc->base.net, asoc, chunk); in sctp_send_asconf()
484 sctp_chunk_free(chunk); in sctp_send_asconf()
486 asoc->addip_last_asconf = chunk; in sctp_send_asconf()
562 struct sctp_chunk *chunk; in sctp_send_asconf_add_ip() local
619 chunk = sctp_make_asconf_update_ip(asoc, &laddr->a, addrs, in sctp_send_asconf_add_ip()
621 if (!chunk) { in sctp_send_asconf_add_ip()
655 retval = sctp_send_asconf(asoc, chunk); in sctp_send_asconf_add_ip()
765 struct sctp_chunk *chunk; in sctp_send_asconf_del_ip() local
774 chunk = NULL; in sctp_send_asconf_del_ip()
866 chunk = sctp_make_asconf_update_ip(asoc, laddr, addrs, addrcnt, in sctp_send_asconf_del_ip()
868 if (!chunk) { in sctp_send_asconf_del_ip()
901 retval = sctp_send_asconf(asoc, chunk); in sctp_send_asconf_del_ip()
1522 struct sctp_chunk *chunk; in sctp_close() local
1524 chunk = sctp_make_abort_user(asoc, NULL, 0); in sctp_close()
1525 sctp_primitive_ABORT(net, asoc, chunk); in sctp_close()
1773 struct sctp_chunk *chunk; in sctp_sendmsg_check_sflags() local
1775 chunk = sctp_make_abort_user(asoc, msg, msg_len); in sctp_sendmsg_check_sflags()
1776 if (!chunk) in sctp_sendmsg_check_sflags()
1780 sctp_primitive_ABORT(net, asoc, chunk); in sctp_sendmsg_check_sflags()
1799 struct sctp_chunk *chunk; in sctp_sendmsg_to_asoc() local
1866 list_for_each_entry(chunk, &datamsg->chunks, frag_list) { in sctp_sendmsg_to_asoc()
1867 sctp_chunk_hold(chunk); in sctp_sendmsg_to_asoc()
1868 sctp_set_owner_w(chunk); in sctp_sendmsg_to_asoc()
1869 chunk->transport = transport; in sctp_sendmsg_to_asoc()
2137 if (event->chunk && event->chunk->head_skb) in sctp_recvmsg()
2138 head_skb = event->chunk->head_skb; in sctp_recvmsg()
3317 struct sctp_chunk *chunk; in sctp_setsockopt_peer_primary_addr() local
3360 chunk = sctp_make_asconf_set_prim(asoc, in sctp_setsockopt_peer_primary_addr()
3362 if (!chunk) in sctp_setsockopt_peer_primary_addr()
3365 err = sctp_send_asconf(asoc, chunk); in sctp_setsockopt_peer_primary_addr()
9145 struct sctp_chunk *chunk = skb_shinfo(skb)->destructor_arg; in sctp_wfree() local
9146 struct sctp_association *asoc = chunk->asoc; in sctp_wfree()
9155 if (chunk->shkey) { in sctp_wfree()
9156 struct sctp_shared_key *shkey = chunk->shkey; in sctp_wfree()
9172 sctp_auth_shkey_release(chunk->shkey); in sctp_wfree()