Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 21 of 21) sorted by relevance

/net/sctp/
Dstream_sched.c61 struct sctp_chunk *ch = NULL; in sctp_sched_fcfs_dequeue() local
68 ch = list_entry(stream->out_curr->ext->outq.next, in sctp_sched_fcfs_dequeue()
72 ch = list_entry(entry, struct sctp_chunk, list); in sctp_sched_fcfs_dequeue()
75 sctp_sched_dequeue_common(q, ch); in sctp_sched_fcfs_dequeue()
78 return ch; in sctp_sched_fcfs_dequeue()
135 struct sctp_chunk *ch; in sctp_sched_set_sched() local
172 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) { in sctp_sched_set_sched()
173 if (ch->msg == msg) in sctp_sched_set_sched()
175 msg = ch->msg; in sctp_sched_set_sched()
228 void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch) in sctp_sched_dequeue_done() argument
[all …]
Dstream_sched_rr.c102 struct sctp_chunk *ch; in sctp_sched_rr_enqueue() local
105 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_rr_enqueue()
106 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_enqueue()
115 struct sctp_chunk *ch = NULL; in sctp_sched_rr_dequeue() local
126 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_rr_dequeue()
128 sctp_sched_dequeue_common(q, ch); in sctp_sched_rr_dequeue()
131 return ch; in sctp_sched_rr_dequeue()
135 struct sctp_chunk *ch) in sctp_sched_rr_dequeue_done() argument
141 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_dequeue_done()
154 struct sctp_chunk *ch; in sctp_sched_rr_sched_all() local
[all …]
Dinqueue.c87 struct sctp_chunkhdr *ch = NULL; in sctp_inq_peek() local
96 ch = (struct sctp_chunkhdr *)chunk->chunk_end; in sctp_inq_peek()
98 return ch; in sctp_inq_peek()
110 struct sctp_chunkhdr *ch = NULL; in sctp_inq_pop() local
139 ch = (struct sctp_chunkhdr *)chunk->chunk_end; in sctp_inq_pop()
183 ch = (struct sctp_chunkhdr *)chunk->skb->data; in sctp_inq_pop()
200 chunk->chunk_hdr = ch; in sctp_inq_pop()
201 chunk->chunk_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_inq_pop()
202 skb_pull(chunk->skb, sizeof(*ch)); in sctp_inq_pop()
205 if (chunk->chunk_end + sizeof(*ch) <= skb_tail_pointer(chunk->skb)) { in sctp_inq_pop()
Dstream_sched_prio.c237 struct sctp_chunk *ch; in sctp_sched_prio_enqueue() local
240 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_prio_enqueue()
241 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_enqueue()
251 struct sctp_chunk *ch = NULL; in sctp_sched_prio_dequeue() local
267 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_prio_dequeue()
268 sctp_sched_dequeue_common(q, ch); in sctp_sched_prio_dequeue()
271 return ch; in sctp_sched_prio_dequeue()
275 struct sctp_chunk *ch) in sctp_sched_prio_dequeue_done() argument
284 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_dequeue_done()
298 struct sctp_chunk *ch; in sctp_sched_prio_sched_all() local
[all …]
Dinput.c667 struct sctp_chunkhdr *ch, _ch; in sctp_rcv_ootb() local
676 ch = skb_header_pointer(skb, offset, sizeof(*ch), &_ch); in sctp_rcv_ootb()
679 if (ntohs(ch->length) < sizeof(_ch)) in sctp_rcv_ootb()
682 ch_end = offset + SCTP_PAD4(ntohs(ch->length)); in sctp_rcv_ootb()
690 if (SCTP_CID_ABORT == ch->type) in sctp_rcv_ootb()
697 if (SCTP_CID_SHUTDOWN_COMPLETE == ch->type) in sctp_rcv_ootb()
705 if (SCTP_CID_INIT == ch->type && (void *)ch != skb->data) in sctp_rcv_ootb()
1160 struct sctp_chunkhdr *ch, in __sctp_rcv_asconf_lookup() argument
1165 struct sctp_addip_chunk *asconf = (struct sctp_addip_chunk *)ch; in __sctp_rcv_asconf_lookup()
1198 struct sctp_chunkhdr *ch; in __sctp_rcv_walk_lookup() local
[all …]
Doutqueue.c59 struct sctp_chunk *ch) in sctp_outq_head_data() argument
64 list_add(&ch->list, &q->out_chunk_list); in sctp_outq_head_data()
65 q->out_qlen += ch->skb->len; in sctp_outq_head_data()
67 stream = sctp_chunk_stream_no(ch); in sctp_outq_head_data()
69 list_add(&ch->stream_list, &oute->outq); in sctp_outq_head_data()
80 struct sctp_chunk *ch) in sctp_outq_tail_data() argument
85 list_add_tail(&ch->list, &q->out_chunk_list); in sctp_outq_tail_data()
86 q->out_qlen += ch->skb->len; in sctp_outq_tail_data()
88 stream = sctp_chunk_stream_no(ch); in sctp_outq_tail_data()
90 list_add_tail(&ch->stream_list, &oute->outq); in sctp_outq_tail_data()
Dulpevent.c361 struct sctp_errhdr *ch; in sctp_ulpevent_make_remote_error() local
366 ch = (struct sctp_errhdr *)(chunk->skb->data); in sctp_ulpevent_make_remote_error()
367 cause = ch->cause; in sctp_ulpevent_make_remote_error()
368 elen = SCTP_PAD4(ntohs(ch->length)) - sizeof(*ch); in sctp_ulpevent_make_remote_error()
371 skb_pull(chunk->skb, sizeof(*ch)); in sctp_ulpevent_make_remote_error()
Dstream.c33 struct sctp_chunk *ch, *temp; in sctp_stream_outq_migrate() local
40 list_for_each_entry_safe(ch, temp, &outq->out_chunk_list, list) { in sctp_stream_outq_migrate()
41 __u16 sid = sctp_chunk_stream_no(ch); in sctp_stream_outq_migrate()
46 sctp_sched_dequeue_common(outq, ch); in sctp_stream_outq_migrate()
52 sctp_chunk_fail(ch, (__force __u32)SCTP_ERROR_INV_STRM); in sctp_stream_outq_migrate()
54 SCTP_PR_PRIO_ENABLED(ch->sinfo.sinfo_flags)) in sctp_stream_outq_migrate()
57 sctp_chunk_free(ch); in sctp_stream_outq_migrate()
Dassociola.c482 struct sctp_chunk *ch; in sctp_assoc_rm_peer() local
548 list_for_each_entry(ch, &peer->transmitted, in sctp_assoc_rm_peer()
550 ch->transport = NULL; in sctp_assoc_rm_peer()
551 ch->rtt_in_progress = 0; in sctp_assoc_rm_peer()
567 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) in sctp_assoc_rm_peer()
568 if (ch->transport == peer) in sctp_assoc_rm_peer()
569 ch->transport = NULL; in sctp_assoc_rm_peer()
Dsm_statefuns.c3529 struct sctp_chunkhdr *ch; in sctp_sf_ootb() local
3537 ch = (struct sctp_chunkhdr *)chunk->chunk_hdr; in sctp_sf_ootb()
3540 if (ntohs(ch->length) < sizeof(*ch)) in sctp_sf_ootb()
3545 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_sf_ootb()
3553 if (SCTP_CID_SHUTDOWN_ACK == ch->type) in sctp_sf_ootb()
3561 if (SCTP_CID_ABORT == ch->type) in sctp_sf_ootb()
3569 if (SCTP_CID_COOKIE_ACK == ch->type) in sctp_sf_ootb()
3572 if (SCTP_CID_ERROR == ch->type) { in sctp_sf_ootb()
3573 sctp_walk_errors(err, ch) { in sctp_sf_ootb()
3581 ch = (struct sctp_chunkhdr *)ch_end; in sctp_sf_ootb()
Dstream_interleave.c1170 #define sctp_walk_ifwdtsn(pos, ch) \ argument
1171 _sctp_walk_ifwdtsn((pos), (ch), ntohs((ch)->chunk_hdr->length) - \
Dsm_make_chunk.c1472 void sctp_chunk_hold(struct sctp_chunk *ch) in sctp_chunk_hold() argument
1474 refcount_inc(&ch->refcnt); in sctp_chunk_hold()
1478 void sctp_chunk_put(struct sctp_chunk *ch) in sctp_chunk_put() argument
1480 if (refcount_dec_and_test(&ch->refcnt)) in sctp_chunk_put()
1481 sctp_chunk_destroy(ch); in sctp_chunk_put()
Dsocket.c6978 struct sctp_chunks_param *ch; in sctp_getsockopt_peer_auth_chunks() local
6996 ch = asoc->peer.peer_chunks; in sctp_getsockopt_peer_auth_chunks()
6997 if (!ch) in sctp_getsockopt_peer_auth_chunks()
7001 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
7005 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
7023 struct sctp_chunks_param *ch; in sctp_getsockopt_local_auth_chunks() local
7042 ch = (struct sctp_chunks_param *)asoc->c.auth_chunks; in sctp_getsockopt_local_auth_chunks()
7046 ch = ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks()
7048 if (!ch) in sctp_getsockopt_local_auth_chunks()
7051 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()
[all …]
/net/sunrpc/
Dcache.c140 static void cache_dequeue(struct cache_detail *detail, struct cache_head *ch);
441 struct cache_head *ch = NULL; in cache_clean() local
451 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_clean()
452 if (current_detail->nextcheck > ch->expiry_time) in cache_clean()
453 current_detail->nextcheck = ch->expiry_time+1; in cache_clean()
454 if (!cache_is_expired(current_detail, ch)) in cache_clean()
457 hlist_del_init_rcu(&ch->cache_list); in cache_clean()
465 if (!ch) in cache_clean()
468 if (ch) { in cache_clean()
469 set_bit(CACHE_CLEANED, &ch->flags); in cache_clean()
[all …]
Dsvcauth_unix.c287 struct cache_head *ch; in __ip_map_lookup() local
291 ch = sunrpc_cache_lookup_rcu(cd, &ip.h, in __ip_map_lookup()
295 if (ch) in __ip_map_lookup()
296 return container_of(ch, struct ip_map, h); in __ip_map_lookup()
314 struct cache_head *ch; in __ip_map_update() local
321 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
324 if (!ch) in __ip_map_update()
326 cache_put(ch, cd); in __ip_map_update()
535 struct cache_head *ch; in unix_gid_parse() local
538 ch = sunrpc_cache_update(cd, in unix_gid_parse()
[all …]
/net/sunrpc/auth_gss/
Dsvcauth_gss.c292 struct cache_head *ch; in rsi_lookup() local
295 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in rsi_lookup()
296 if (ch) in rsi_lookup()
297 return container_of(ch, struct rsi, h); in rsi_lookup()
304 struct cache_head *ch; in rsi_update() local
307 ch = sunrpc_cache_update(cd, &new->h, in rsi_update()
309 if (ch) in rsi_update()
310 return container_of(ch, struct rsi, h); in rsi_update()
563 struct cache_head *ch; in rsc_lookup() local
566 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in rsc_lookup()
[all …]
/net/bluetooth/
Dsco.c632 struct sock *sk = sock->sk, *ch; in sco_sock_accept() local
650 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
651 if (ch) in sco_sock_accept()
676 BT_DBG("new socket %p", ch); in sco_sock_accept()
/net/ceph/
Dauth_x.c686 struct ceph_x_authorize_challenge *ch = in decrypt_authorize_challenge() local
695 if (ret < sizeof(*ch)) { in decrypt_authorize_challenge()
700 *server_challenge = le64_to_cpu(ch->server_challenge); in decrypt_authorize_challenge()
/net/mac80211/
Dtdls.c76 struct ieee80211_channel *ch; in ieee80211_tdls_add_subband() local
85 ch = ieee80211_get_channel(sdata->local->hw.wiphy, i); in ieee80211_tdls_add_subband()
86 if (ch) { in ieee80211_tdls_add_subband()
88 cfg80211_chandef_create(&chandef, ch, in ieee80211_tdls_add_subband()
/net/bluetooth/rfcomm/
Dtty.c1043 static void rfcomm_tty_send_xchar(struct tty_struct *tty, char ch) in rfcomm_tty_send_xchar() argument
1045 BT_DBG("tty %p ch %c", tty, ch); in rfcomm_tty_send_xchar()
/net/atm/
Dlec.c1236 #define HASH(ch) (ch & (LEC_ARP_TABLE_SIZE - 1)) argument