Home
last modified time | relevance | path

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

/net/sctp/
Dstream_sched.c65 struct sctp_chunk *ch = NULL; in sctp_sched_fcfs_dequeue() local
72 ch = list_entry(stream->out_curr->ext->outq.next, in sctp_sched_fcfs_dequeue()
76 ch = list_entry(entry, struct sctp_chunk, list); in sctp_sched_fcfs_dequeue()
79 sctp_sched_dequeue_common(q, ch); in sctp_sched_fcfs_dequeue()
82 return ch; in sctp_sched_fcfs_dequeue()
140 struct sctp_chunk *ch; in sctp_sched_set_sched() local
177 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) { in sctp_sched_set_sched()
178 if (ch->msg == msg) in sctp_sched_set_sched()
180 msg = ch->msg; in sctp_sched_set_sched()
233 void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch) in sctp_sched_dequeue_done() argument
[all …]
Dstream_sched_rr.c106 struct sctp_chunk *ch; in sctp_sched_rr_enqueue() local
109 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_rr_enqueue()
110 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_enqueue()
119 struct sctp_chunk *ch = NULL; in sctp_sched_rr_dequeue() local
130 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_rr_dequeue()
132 sctp_sched_dequeue_common(q, ch); in sctp_sched_rr_dequeue()
135 return ch; in sctp_sched_rr_dequeue()
139 struct sctp_chunk *ch) in sctp_sched_rr_dequeue_done() argument
145 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_dequeue_done()
158 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.c245 struct sctp_chunk *ch; in sctp_sched_prio_enqueue() local
248 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_prio_enqueue()
249 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_enqueue()
259 struct sctp_chunk *ch = NULL; in sctp_sched_prio_dequeue() local
275 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_prio_dequeue()
276 sctp_sched_dequeue_common(q, ch); in sctp_sched_prio_dequeue()
279 return ch; in sctp_sched_prio_dequeue()
283 struct sctp_chunk *ch) in sctp_sched_prio_dequeue_done() argument
292 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_dequeue_done()
306 struct sctp_chunk *ch; in sctp_sched_prio_sched_all() local
[all …]
Dinput.c695 struct sctp_chunkhdr *ch, _ch; in sctp_rcv_ootb() local
704 ch = skb_header_pointer(skb, offset, sizeof(*ch), &_ch); in sctp_rcv_ootb()
707 if (!ch || ntohs(ch->length) < sizeof(_ch)) in sctp_rcv_ootb()
710 ch_end = offset + SCTP_PAD4(ntohs(ch->length)); in sctp_rcv_ootb()
718 if (SCTP_CID_ABORT == ch->type) in sctp_rcv_ootb()
725 if (SCTP_CID_SHUTDOWN_COMPLETE == ch->type) in sctp_rcv_ootb()
733 if (SCTP_CID_INIT == ch->type && (void *)ch != skb->data) in sctp_rcv_ootb()
1188 struct sctp_chunkhdr *ch, in __sctp_rcv_asconf_lookup() argument
1193 struct sctp_addip_chunk *asconf = (struct sctp_addip_chunk *)ch; in __sctp_rcv_asconf_lookup()
1198 if (ntohs(ch->length) < sizeof(*asconf) + sizeof(struct sctp_paramhdr)) in __sctp_rcv_asconf_lookup()
[all …]
Doutqueue.c60 struct sctp_chunk *ch) in sctp_outq_head_data() argument
65 list_add(&ch->list, &q->out_chunk_list); in sctp_outq_head_data()
66 q->out_qlen += ch->skb->len; in sctp_outq_head_data()
68 stream = sctp_chunk_stream_no(ch); in sctp_outq_head_data()
70 list_add(&ch->stream_list, &oute->outq); in sctp_outq_head_data()
81 struct sctp_chunk *ch) in sctp_outq_tail_data() argument
86 list_add_tail(&ch->list, &q->out_chunk_list); in sctp_outq_tail_data()
87 q->out_qlen += ch->skb->len; in sctp_outq_tail_data()
89 stream = sctp_chunk_stream_no(ch); in sctp_outq_tail_data()
91 list_add_tail(&ch->stream_list, &oute->outq); in sctp_outq_tail_data()
Dulpevent.c380 struct sctp_errhdr *ch; in sctp_ulpevent_make_remote_error() local
385 ch = (struct sctp_errhdr *)(chunk->skb->data); in sctp_ulpevent_make_remote_error()
386 cause = ch->cause; in sctp_ulpevent_make_remote_error()
387 elen = SCTP_PAD4(ntohs(ch->length)) - sizeof(*ch); in sctp_ulpevent_make_remote_error()
390 skb_pull(chunk->skb, sizeof(*ch)); in sctp_ulpevent_make_remote_error()
Dstream.c28 struct sctp_chunk *ch, *temp; in sctp_stream_shrink_out() local
34 list_for_each_entry_safe(ch, temp, &outq->out_chunk_list, list) { in sctp_stream_shrink_out()
35 __u16 sid = sctp_chunk_stream_no(ch); in sctp_stream_shrink_out()
40 sctp_sched_dequeue_common(outq, ch); in sctp_stream_shrink_out()
46 sctp_chunk_fail(ch, (__force __u32)SCTP_ERROR_INV_STRM); in sctp_stream_shrink_out()
48 SCTP_PR_PRIO_ENABLED(ch->sinfo.sinfo_flags)) in sctp_stream_shrink_out()
51 sctp_chunk_free(ch); in sctp_stream_shrink_out()
Dassociola.c488 struct sctp_chunk *ch; in sctp_assoc_rm_peer() local
554 list_for_each_entry(ch, &peer->transmitted, in sctp_assoc_rm_peer()
556 ch->transport = NULL; in sctp_assoc_rm_peer()
557 ch->rtt_in_progress = 0; in sctp_assoc_rm_peer()
573 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) in sctp_assoc_rm_peer()
574 if (ch->transport == peer) in sctp_assoc_rm_peer()
575 ch->transport = NULL; in sctp_assoc_rm_peer()
Dsm_statefuns.c3683 struct sctp_chunkhdr *ch; in sctp_sf_ootb() local
3694 ch = (struct sctp_chunkhdr *)chunk->chunk_hdr; in sctp_sf_ootb()
3697 if (ntohs(ch->length) < sizeof(*ch)) in sctp_sf_ootb()
3702 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_sf_ootb()
3710 if (SCTP_CID_SHUTDOWN_ACK == ch->type) in sctp_sf_ootb()
3718 if (SCTP_CID_ABORT == ch->type) in sctp_sf_ootb()
3726 if (SCTP_CID_COOKIE_ACK == ch->type) in sctp_sf_ootb()
3729 if (SCTP_CID_ERROR == ch->type) { in sctp_sf_ootb()
3730 sctp_walk_errors(err, ch) { in sctp_sf_ootb()
3738 ch = (struct sctp_chunkhdr *)ch_end; in sctp_sf_ootb()
Dstream_interleave.c1168 #define sctp_walk_ifwdtsn(pos, ch) \ argument
1169 _sctp_walk_ifwdtsn((pos), (ch), ntohs((ch)->chunk_hdr->length) - \
Dsm_make_chunk.c1521 void sctp_chunk_hold(struct sctp_chunk *ch) in sctp_chunk_hold() argument
1523 refcount_inc(&ch->refcnt); in sctp_chunk_hold()
1527 void sctp_chunk_put(struct sctp_chunk *ch) in sctp_chunk_put() argument
1529 if (refcount_dec_and_test(&ch->refcnt)) in sctp_chunk_put()
1530 sctp_chunk_destroy(ch); in sctp_chunk_put()
Dsocket.c6969 struct sctp_chunks_param *ch; in sctp_getsockopt_peer_auth_chunks() local
6987 ch = asoc->peer.peer_chunks; in sctp_getsockopt_peer_auth_chunks()
6988 if (!ch) in sctp_getsockopt_peer_auth_chunks()
6992 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
6996 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
7014 struct sctp_chunks_param *ch; in sctp_getsockopt_local_auth_chunks() local
7033 ch = (struct sctp_chunks_param *)asoc->c.auth_chunks; in sctp_getsockopt_local_auth_chunks()
7037 ch = ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks()
7039 if (!ch) in sctp_getsockopt_local_auth_chunks()
7042 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()
[all …]
/net/sunrpc/
Dcache.c81 static void sunrpc_begin_cache_remove_entry(struct cache_head *ch, in sunrpc_begin_cache_remove_entry() argument
85 hlist_del_init_rcu(&ch->cache_list); in sunrpc_begin_cache_remove_entry()
86 set_bit(CACHE_CLEANED, &ch->flags); in sunrpc_begin_cache_remove_entry()
90 static void sunrpc_end_cache_remove_entry(struct cache_head *ch, in sunrpc_end_cache_remove_entry() argument
93 cache_fresh_unlocked(ch, cd); in sunrpc_end_cache_remove_entry()
94 cache_put(ch, cd); in sunrpc_end_cache_remove_entry()
157 static void cache_dequeue(struct cache_detail *detail, struct cache_head *ch);
461 struct cache_head *ch = NULL; in cache_clean() local
471 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_clean()
472 if (current_detail->nextcheck > ch->expiry_time) in cache_clean()
[all …]
Dsvcauth_unix.c292 struct cache_head *ch; in __ip_map_lookup() local
296 ch = sunrpc_cache_lookup_rcu(cd, &ip.h, in __ip_map_lookup()
300 if (ch) in __ip_map_lookup()
301 return container_of(ch, struct ip_map, h); in __ip_map_lookup()
310 struct cache_head *ch; in __ip_map_update() local
317 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
320 if (!ch) in __ip_map_update()
322 cache_put(ch, cd); in __ip_map_update()
536 struct cache_head *ch; in unix_gid_parse() local
539 ch = sunrpc_cache_update(cd, in unix_gid_parse()
[all …]
/net/sunrpc/auth_gss/
Dsvcauth_gss.c299 struct cache_head *ch; in rsi_lookup() local
302 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in rsi_lookup()
303 if (ch) in rsi_lookup()
304 return container_of(ch, struct rsi, h); in rsi_lookup()
311 struct cache_head *ch; in rsi_update() local
314 ch = sunrpc_cache_update(cd, &new->h, in rsi_update()
316 if (ch) in rsi_update()
317 return container_of(ch, struct rsi, h); in rsi_update()
576 struct cache_head *ch; in rsc_lookup() local
579 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in rsc_lookup()
[all …]
/net/bluetooth/
Dsco.c650 struct sock *sk = sock->sk, *ch; in sco_sock_accept() local
668 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
669 if (ch) in sco_sock_accept()
694 BT_DBG("new socket %p", ch); in sco_sock_accept()
/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.c1230 #define HASH(ch) (ch & (LEC_ARP_TABLE_SIZE - 1)) argument