/net/sctp/ |
H A D | inqueue.c | 59 struct sctp_chunk *chunk, *tmp; local 62 list_for_each_entry_safe(chunk, tmp, &queue->in_chunk_list, list) { 63 list_del_init(&chunk->list); 64 sctp_chunk_free(chunk); 79 void sctp_inq_push(struct sctp_inq *q, struct sctp_chunk *chunk) argument 82 if (chunk->rcvr->dead) { 83 sctp_chunk_free(chunk); 92 list_add_tail(&chunk->list, &q->in_chunk_list); 93 if (chunk->asoc) 94 chunk 101 struct sctp_chunk *chunk; local 124 struct sctp_chunk *chunk; local [all...] |
H A D | chunk.c | 6 * This file contains the code relating the chunk abstraction. 75 struct sctp_chunk *chunk; local 80 list_for_each_entry(chunk, &msg->chunks, frag_list) 81 sctp_chunk_free(chunk); 90 struct sctp_chunk *chunk; local 102 chunk = list_entry(pos, struct sctp_chunk, frag_list); 105 asoc = chunk->asoc; 119 if (chunk->has_tsn) 124 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, 130 sctp_chunk_put(chunk); 151 sctp_datamsg_assign(struct sctp_datamsg *msg, struct sctp_chunk *chunk) argument 172 struct sctp_chunk *chunk; local 348 sctp_chunk_abandoned(struct sctp_chunk *chunk) argument 362 sctp_chunk_fail(struct sctp_chunk *chunk, int error) argument [all...] |
H A D | output.c | 61 struct sctp_chunk *chunk); 63 struct sctp_chunk *chunk); 65 struct sctp_chunk *chunk); 67 struct sctp_chunk *chunk, 87 struct sctp_chunk *chunk = NULL; local 94 chunk = sctp_get_ecne_prepend(packet->transport->asoc); 96 /* If there a is a prepend chunk stick it on the list before 99 if (chunk) 100 sctp_packet_append_chunk(packet, chunk); 137 struct sctp_chunk *chunk, *tm local 154 sctp_packet_transmit_chunk(struct sctp_packet *packet, struct sctp_chunk *chunk, int one_packet) argument 189 sctp_packet_bundle_auth(struct sctp_packet *pkt, struct sctp_chunk *chunk) argument 225 sctp_packet_bundle_sack(struct sctp_packet *pkt, struct sctp_chunk *chunk) argument 270 __sctp_packet_append_chunk(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 322 sctp_packet_append_chunk(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 385 struct sctp_chunk *chunk, *tmp; local 633 sctp_packet_can_append_data(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 719 sctp_packet_append_data(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 747 sctp_packet_will_fit(struct sctp_packet *packet, struct sctp_chunk *chunk, u16 chunk_len) argument [all...] |
H A D | outqueue.c | 95 /* Add data chunk to the end of the queue. */ 218 struct sctp_chunk *chunk, *tmp; local 224 chunk = list_entry(lchunk, struct sctp_chunk, 227 sctp_chunk_fail(chunk, q->error); 228 sctp_chunk_free(chunk); 235 chunk = list_entry(lchunk, struct sctp_chunk, 237 sctp_chunk_fail(chunk, q->error); 238 sctp_chunk_free(chunk); 244 chunk = list_entry(lchunk, struct sctp_chunk, 246 sctp_chunk_fail(chunk, 288 sctp_outq_tail(struct sctp_outq *q, struct sctp_chunk *chunk) argument 380 struct sctp_chunk *chunk; local 532 struct sctp_chunk *chunk, *chunk1; local 715 struct sctp_chunk *chunk, *tmp; local 1123 sctp_outq_sack(struct sctp_outq *q, struct sctp_chunk *chunk) argument 1578 struct sctp_chunk *chunk; local 1692 struct sctp_chunk *chunk; local [all...] |
H A D | debug.c | 10 * terms such as chunk type, parameter time, event type, etc. 62 /* Lookup "chunk type" debug name. */ 65 if (cid.chunk <= SCTP_CID_BASE_MAX) 66 return sctp_cid_tbl[cid.chunk]; 68 switch (cid.chunk) { 85 return "unknown chunk";
|
H A D | sm_statefuns.c | 65 struct sctp_chunk *chunk, 69 struct sctp_chunk *chunk, 73 const struct sctp_chunk *chunk); 77 const struct sctp_chunk *chunk, 98 static struct sctp_sackhdr *sctp_sm_pull_sack(struct sctp_chunk *chunk); 151 struct sctp_chunk *chunk); 160 /* Small helper function that checks if the chunk length 162 * is set to be the size of a specific chunk we are testing. 168 sctp_chunk_length_valid(struct sctp_chunk *chunk, argument 171 __u16 chunk_length = ntohs(chunk 224 struct sctp_chunk *chunk = arg; local 310 struct sctp_chunk *chunk = arg; local 506 struct sctp_chunk *chunk = arg; local 655 struct sctp_chunk *chunk = arg; local 881 struct sctp_chunk *chunk = arg; local 1057 struct sctp_chunk *chunk = arg; local 1130 struct sctp_chunk *chunk = arg; local 1395 struct sctp_chunk *chunk = arg; local 1698 sctp_sf_do_dupcook_a(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, sctp_cmd_seq_t *commands, struct sctp_association *new_asoc) argument 1813 sctp_sf_do_dupcook_b(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, sctp_cmd_seq_t *commands, struct sctp_association *new_asoc) argument 1884 sctp_sf_do_dupcook_c(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, sctp_cmd_seq_t *commands, struct sctp_association *new_asoc) argument 1906 sctp_sf_do_dupcook_d(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, sctp_cmd_seq_t *commands, struct sctp_association *new_asoc) argument 2009 struct sctp_chunk *chunk = arg; local 2124 struct sctp_chunk *chunk = arg; local 2166 struct sctp_chunk *chunk = arg; local 2244 struct sctp_chunk *chunk = arg; local 2308 struct sctp_chunk *chunk = arg; local 2431 struct sctp_chunk *chunk = arg; local 2468 struct sctp_chunk *chunk = arg; local 2505 struct sctp_chunk *chunk = arg; local 2631 struct sctp_chunk *chunk = arg; local 2721 struct sctp_chunk *chunk = arg; local 2775 struct sctp_chunk *chunk = (struct sctp_chunk *) arg; local 2840 struct sctp_chunk *chunk = arg; local 2896 struct sctp_chunk *chunk = arg; local 2952 struct sctp_chunk *chunk = arg; local 3074 struct sctp_chunk *chunk = arg; local 3165 struct sctp_chunk *chunk = arg; local 3240 struct sctp_chunk *chunk = arg; local 3291 struct sctp_chunk *chunk = arg; local 3329 struct sctp_chunk *chunk = arg; local 3412 struct sctp_chunk *chunk = arg; local 3506 struct sctp_chunk *chunk = arg; local 3569 struct sctp_chunk *chunk = arg; local 3593 struct sctp_chunk *chunk = arg; local 3839 struct sctp_chunk *chunk = arg; local 3907 struct sctp_chunk *chunk = arg; local 3988 sctp_sf_authenticate(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, struct sctp_chunk *chunk) argument 4070 struct sctp_chunk *chunk = arg; local 4246 struct sctp_chunk *chunk = arg; local 4314 struct sctp_chunk *chunk = arg; local 4337 struct sctp_chunk *chunk = arg; local 4473 struct sctp_chunk *chunk = arg; local 5163 struct sctp_chunk *chunk = arg; local 5311 struct sctp_chunk *chunk = (struct sctp_chunk *) arg; local 5713 struct sctp_chunk *chunk = asoc->addip_last_asconf; local 5912 sctp_sm_pull_sack(struct sctp_chunk *chunk) argument 5939 sctp_abort_pkt_new(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, const void *payload, size_t paylen) argument 5981 sctp_ootb_pkt_new(struct net *net, const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 6061 sctp_send_stale_cookie_err(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const struct sctp_chunk *chunk, sctp_cmd_seq_t *commands, struct sctp_chunk *err_chunk) argument 6092 sctp_eat_data(const struct sctp_association *asoc, struct sctp_chunk *chunk, sctp_cmd_seq_t *commands) argument [all...] |
H A D | sm_make_chunk.c | 79 static void *sctp_addto_param(struct sctp_chunk *chunk, int len, 84 /* Control chunk destructor */ 90 static void sctp_control_set_owner_w(struct sctp_chunk *chunk) argument 92 struct sctp_association *asoc = chunk->asoc; 93 struct sk_buff *skb = chunk->skb; 106 /* What was the inbound interface for this chunk? */ 107 int sctp_chunk_iif(const struct sctp_chunk *chunk) argument 112 af = sctp_get_af_specific(ipver2af(ip_hdr(chunk->skb)->version)); 114 iif = af->skb_iif(chunk->skb); 134 * provided chunk, a 137 sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code, size_t paylen) argument 155 sctp_init_cause_fixed(struct sctp_chunk *chunk, __be16 cause_code, size_t paylen) argument 382 sctp_make_init_ack(const struct sctp_association *asoc, const struct sctp_chunk *chunk, gfp_t gfp, int unkparam_len) argument 562 sctp_make_cookie_echo(const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 613 sctp_make_cookie_ack(const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 658 sctp_make_cwr(const struct sctp_association *asoc, const __u32 lowest_tsn, const struct sctp_chunk *chunk) argument 853 sctp_make_shutdown(const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 877 sctp_make_shutdown_ack(const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 899 sctp_make_shutdown_complete( const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 932 sctp_make_abort(const struct sctp_association *asoc, const struct sctp_chunk *chunk, const size_t hint) argument 968 sctp_make_abort_no_data( const struct sctp_association *asoc, const struct sctp_chunk *chunk, __u32 tsn) argument 1046 sctp_addto_param(struct sctp_chunk *chunk, int len, const void *data) argument 1067 sctp_make_abort_violation( const struct sctp_association *asoc, const struct sctp_chunk *chunk, const __u8 *payload, const size_t paylen) argument 1093 sctp_make_violation_paramlen( const struct sctp_association *asoc, const struct sctp_chunk *chunk, struct sctp_paramhdr *param) argument 1116 sctp_make_violation_max_retrans( const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 1164 sctp_make_heartbeat_ack(const struct sctp_association *asoc, const struct sctp_chunk *chunk, const void *payload, const size_t paylen) argument 1195 sctp_make_op_error_space( const struct sctp_association *asoc, const struct sctp_chunk *chunk, size_t size) argument 1228 sctp_make_op_error_fixed( const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 1241 sctp_make_op_error(const struct sctp_association *asoc, const struct sctp_chunk *chunk, __be16 cause_code, const void *payload, size_t paylen, size_t reserve_tail) argument 1341 sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src, union sctp_addr *dest) argument 1349 sctp_source(const struct sctp_chunk *chunk) argument 1411 struct sctp_chunk *chunk = _sctp_make_chunk(asoc, type, flags, paylen); local 1420 sctp_chunk_destroy(struct sctp_chunk *chunk) argument 1433 sctp_chunk_free(struct sctp_chunk *chunk) argument 1458 sctp_addto_chunk(struct sctp_chunk *chunk, int len, const void *data) argument 1481 sctp_addto_chunk_fixed(struct sctp_chunk *chunk, int len, const void *data) argument 1494 sctp_user_addto_chunk(struct sctp_chunk *chunk, int off, int len, struct iovec *data) argument 1519 sctp_chunk_assign_ssn(struct sctp_chunk *chunk) argument 1556 sctp_chunk_assign_tsn(struct sctp_chunk *chunk) argument 1569 sctp_make_temp_asoc(const struct sctp_endpoint *ep, struct sctp_chunk *chunk, gfp_t gfp) argument 1689 sctp_unpack_cookie( const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, gfp_t gfp, int *error, struct sctp_chunk **errp) argument 1872 sctp_process_missing_param(const struct sctp_association *asoc, sctp_param_t paramtype, struct sctp_chunk *chunk, struct sctp_chunk **errp) argument 1901 sctp_process_inv_mandatory(const struct sctp_association *asoc, struct sctp_chunk *chunk, struct sctp_chunk **errp) argument 1917 sctp_process_inv_paramlength(const struct sctp_association *asoc, struct sctp_paramhdr *param, const struct sctp_chunk *chunk, struct sctp_chunk **errp) argument 1938 sctp_process_hn_param(const struct sctp_association *asoc, union sctp_params param, struct sctp_chunk *chunk, struct sctp_chunk **errp) argument 2053 sctp_process_unk_param(const struct sctp_association *asoc, union sctp_params param, struct sctp_chunk *chunk, struct sctp_chunk **errp) argument 2105 sctp_verify_param(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, union sctp_params param, sctp_cid_t cid, struct sctp_chunk *chunk, struct sctp_chunk **err_chunk) argument 2225 sctp_verify_init(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, sctp_cid_t cid, sctp_init_chunk_t *peer_init, struct sctp_chunk *chunk, struct sctp_chunk **errp) argument 2290 sctp_process_init(struct sctp_association *asoc, struct sctp_chunk *chunk, const union sctp_addr *peer_addr, sctp_init_chunk_t *peer_init, gfp_t gfp) argument 2956 sctp_add_asconf_response(struct sctp_chunk *chunk, __be32 crr_id, __be16 err_code, sctp_addip_param_t *asconf_param) argument 3117 sctp_verify_asconf(const struct sctp_association *asoc, struct sctp_chunk *chunk, bool addr_param_needed, struct sctp_paramhdr **errp) argument [all...] |
H A D | endpointola.c | 89 * Every endpoint supporting SCTP chunk authentication MUST 316 /* Find the association that goes with this chunk. 413 struct sctp_chunk *chunk; local 428 while (NULL != (chunk = sctp_inq_pop(inqueue))) { 429 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type); 431 /* If the first chunk in the packet is AUTH, do special 434 if (first_time && (subtype.chunk == SCTP_CID_AUTH)) { 441 /* If the next chunk is COOKIE-ECHO, skip the AUTH 442 * chunk while saving a pointer to it so we can do 447 chunk [all...] |
H A D | sm_sideeffect.c | 88 /* Helper function for delayed processing of SCTP ECNE chunk. */ 95 * by including the CWR chunk. This chunk contains one data 96 * element, i.e. the TSN number that was sent in the ECNE chunk. 102 struct sctp_chunk *chunk) 134 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); 142 /* Helper function to do delayed processing of ECN CWR chunk. */ 186 * second packet (not every second DATA chunk) received, and 188 * unacknowledged DATA chunk. ... 567 struct sctp_chunk *chunk, 100 sctp_do_ecn_ecne_work(struct sctp_association *asoc, __u32 lowest_tsn, struct sctp_chunk *chunk) argument 563 sctp_cmd_assoc_failed(sctp_cmd_seq_t *commands, struct sctp_association *asoc, sctp_event_t event_type, sctp_subtype_t subtype, struct sctp_chunk *chunk, unsigned int error) argument 607 sctp_cmd_process_init(sctp_cmd_seq_t *commands, struct sctp_association *asoc, struct sctp_chunk *chunk, sctp_init_chunk_t *peer_init, gfp_t gfp) argument 683 sctp_cmd_transport_on(sctp_cmd_seq_t *cmds, struct sctp_association *asoc, struct sctp_transport *t, struct sctp_chunk *chunk) argument 755 sctp_cmd_process_sack(sctp_cmd_seq_t *cmds, struct sctp_association *asoc, struct sctp_chunk *chunk) argument 777 sctp_cmd_setup_t2(sctp_cmd_seq_t *cmds, struct sctp_association *asoc, struct sctp_chunk *chunk) argument 872 sctp_cmd_setup_t4(sctp_cmd_seq_t *cmds, struct sctp_association *asoc, struct sctp_chunk *chunk) argument 884 sctp_cmd_process_operr(sctp_cmd_seq_t *cmds, struct sctp_association *asoc, struct sctp_chunk *chunk) argument 934 sctp_cmd_process_fwdtsn(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk) argument 1030 struct sctp_chunk *chunk; local 1230 struct sctp_chunk *chunk = NULL; local [all...] |
H A D | ulpevent.c | 129 __u16 inbound, struct sctp_chunk *chunk, gfp_t gfp) 135 /* If the lower layer passed in the chunk, it will be 138 if (chunk) { 139 /* Copy the chunk data to a new skb and reserve enough 142 skb = skb_copy_expand(chunk->skb, 158 ntohs(chunk->chunk_hdr->length) - 356 * Note: This assumes that the chunk->skb->data already points to the 371 struct sctp_chunk *chunk, __u16 flags, 381 ch = (sctp_errhdr_t *)(chunk->skb->data); 386 skb_pull(chunk 126 sctp_ulpevent_make_assoc_change( const struct sctp_association *asoc, __u16 flags, __u16 state, __u16 error, __u16 outbound, __u16 inbound, struct sctp_chunk *chunk, gfp_t gfp) argument 370 sctp_ulpevent_make_remote_error(const struct sctp_association *asoc, struct sctp_chunk *chunk, __u16 flags, gfp_t gfp) argument 426 sctp_ulpevent_make_send_failed( const struct sctp_association *asoc, struct sctp_chunk *chunk, __u16 flags, __u32 error, gfp_t gfp) argument 635 sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, struct sctp_chunk *chunk, gfp_t gfp) argument [all...] |
H A D | Makefile | 10 transport.o chunk.o sm_make_chunk.o ulpevent.o \
|
H A D | objcnt.c | 52 SCTP_DBG_OBJCNT(chunk); variable 66 SCTP_DBG_OBJCNT_ENTRY(chunk),
|
H A D | input.c | 100 struct sctp_chunk *chunk; member in struct:sctp_input_cb 114 struct sctp_chunk *chunk; local 146 /* Make sure we at least have chunk headers worth of data left. */ 224 chunk = sctp_chunkify(skb, asoc, sk); 225 if (!chunk) 227 SCTP_INPUT_CB(skb)->chunk = chunk; 230 chunk->rcvr = rcvr; 233 chunk->sctp_hdr = sh; 235 /* Set the source and destination addresses of the incoming chunk 305 struct sctp_chunk *chunk = SCTP_INPUT_CB(skb)->chunk; local 367 struct sctp_chunk *chunk = SCTP_INPUT_CB(skb)->chunk; local [all...] |
H A D | associola.c | 204 * A2) a serial number should be assigned to the chunk. The serial 219 * After the reception of the first data chunk in an 221 * sack to acknowledge the data chunk. Subsequent 549 /* Reset the transport of each chunk on this list */ 871 * 2**32 - 1. That is, the next TSN a DATA chunk MUST use 896 /* Return an ecne chunk to get prepended to a packet. 897 * Note: We are sly and return a shared, prealloced chunk. FIXME: 906 * Not being able to allocate a chunk here is not deadly. 920 struct sctp_chunk *chunk; local 942 list_for_each_entry(chunk, 1002 struct sctp_chunk *chunk; local [all...] |
H A D | auth.c | 515 * the AUTH chunk 628 /* Check to see if the given chunk is supposed to be authenticated */ 629 static int __sctp_auth_cid(sctp_cid_t chunk, struct sctp_chunks_param *param) argument 641 * The chunk types for INIT, INIT-ACK, SHUTDOWN-COMPLETE and AUTH 655 if (param->chunks[i] == chunk) 664 /* Check if peer requested that this chunk is authenticated */ 665 int sctp_auth_send_cid(sctp_cid_t chunk, const struct sctp_association *asoc) argument 673 return __sctp_auth_cid(chunk, asoc->peer.peer_chunks); 676 /* Check if we requested that peer authenticate this chunk. */ 677 int sctp_auth_recv_cid(sctp_cid_t chunk, cons argument [all...] |
H A D | socket.c | 99 struct sctp_chunk *chunk); 145 * the size of the outgoing data chunk. 148 * Since it is always 1-1 between chunk and skb, and also a new skb is always 149 * allocated for chunk bundling in sctp_packet_transmit(), we can use the 150 * destructor in the data chunk skb for the purpose of the sndbuf space 153 static inline void sctp_set_owner_w(struct sctp_chunk *chunk) argument 155 struct sctp_association *asoc = chunk->asoc; 161 skb_set_owner_w(chunk->skb, sk); 163 chunk->skb->destructor = sctp_wfree; 164 /* Save the chunk pointe 415 sctp_send_asconf(struct sctp_association *asoc, struct sctp_chunk *chunk) argument 512 struct sctp_chunk *chunk; local 716 struct sctp_chunk *chunk; local 1518 struct sctp_chunk *chunk; local 1597 struct sctp_chunk *chunk; local 3148 struct sctp_chunk *chunk; local 6874 struct sctp_chunk *chunk; local [all...] |
H A D | probe.c | 137 struct sctp_chunk *chunk = arg; local 138 struct sk_buff *skb = chunk->skb;
|
H A D | ulpqueue.c | 94 /* Process an incoming DATA chunk. */ 95 int sctp_ulpq_tail_data(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, argument 102 /* Create an event from the incoming chunk. */ 103 event = sctp_ulpevent_make_rcvmsg(chunk->asoc, chunk, gfp); 403 /* Helper function to check if an incoming chunk has filled up the last 428 * 'first_frag' and next_tsn are reset when we find a chunk which 751 * ordered by an an incoming chunk. 868 /* Mark that the next chunk has been found. */ 950 * Forwared TSN chunk t 1079 sctp_ulpq_renege(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk, gfp_t gfp) argument [all...] |
/net/bluetooth/ |
H A D | af_bluetooth.c | 333 int chunk; local 359 chunk = min_t(unsigned int, skb->len, size); 360 if (skb_copy_datagram_iovec(skb, 0, msg->msg_iov, chunk)) { 366 copied += chunk; 367 size -= chunk; 374 if (chunk <= skb_len) { 375 __skb_pull(skb, chunk); 380 chunk -= skb_len; 383 if (chunk <= frag->len) { 385 skb->len -= chunk; [all...] |
/net/core/ |
H A D | datagram.c | 794 int chunk = skb->len - hlen; local 796 if (!chunk) 805 if (iov->iov_len < chunk) { 808 if (skb_copy_datagram_iovec(skb, hlen, iov, chunk)) 813 chunk, &csum)) 819 iov->iov_len -= chunk; 820 iov->iov_base += chunk;
|
/net/rxrpc/ |
H A D | ar-output.c | 570 size_t size, chunk, max, space; local 589 chunk = max; 590 if (chunk > len && !more) 591 chunk = len; 593 space = chunk + call->conn->size_align; 598 _debug("SIZE: %zu/%zu/%zu", chunk, space, size); 617 sp->remain = chunk;
|
/net/caif/ |
H A D | caif_socket.c | 377 int chunk; local 428 chunk = min_t(unsigned int, skb->len, size); 429 if (memcpy_toiovec(msg->msg_iov, skb->data, chunk)) { 435 copied += chunk; 436 size -= chunk; 440 skb_pull(skb, chunk);
|
/net/ipv4/ |
H A D | tcp.c | 1790 int chunk; local 1794 if ((chunk = len - tp->ucopy.len) != 0) { 1795 NET_ADD_STATS_USER(sock_net(sk), LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG, chunk); local 1796 len -= chunk; 1797 copied += chunk; 1805 if ((chunk = len - tp->ucopy.len) != 0) { 1806 NET_ADD_STATS_USER(sock_net(sk), LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, chunk); local 1807 len -= chunk; 1808 copied += chunk; 1886 int chunk; local 1893 NET_ADD_STATS_USER(sock_net(sk), LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, chunk); local [all...] |
/net/irda/ |
H A D | af_irda.c | 200 /* Find out what the largest chunk of data that we can transmit is */ 261 /* Find out what the largest chunk of data that we can transmit is */ 1448 int chunk; local 1488 chunk = min_t(unsigned int, skb->len, size); 1489 if (memcpy_toiovec(msg->msg_iov, skb->data, chunk)) { 1495 copied += chunk; 1496 size -= chunk; 1500 skb_pull(skb, chunk);
|
/net/unix/ |
H A D | af_unix.c | 1966 int chunk; local 2040 chunk = min_t(unsigned int, unix_skb_len(skb) - skip, size); 2042 msg->msg_iov, chunk)) { 2047 copied += chunk; 2048 size -= chunk; 2052 UNIXCB(skb).consumed += chunk; 2054 sk_peek_offset_bwd(sk, chunk); 2073 sk_peek_offset_fwd(sk, chunk);
|