Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 23 of 23) 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()
154 struct sctp_chunk *ch; in sctp_sched_set_sched() local
179 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) { in sctp_sched_set_sched()
180 if (ch->msg == msg) in sctp_sched_set_sched()
182 msg = ch->msg; in sctp_sched_set_sched()
235 void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch) in sctp_sched_dequeue_done() argument
[all …]
Dstream_sched_fc.c102 struct sctp_chunk *ch; in sctp_sched_fc_enqueue() local
105 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_fc_enqueue()
106 sid = sctp_chunk_stream_no(ch); in sctp_sched_fc_enqueue()
115 struct sctp_chunk *ch; in sctp_sched_fc_dequeue() local
126 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_fc_dequeue()
128 sctp_sched_dequeue_common(q, ch); in sctp_sched_fc_dequeue()
129 return ch; in sctp_sched_fc_dequeue()
133 struct sctp_chunk *ch) in sctp_sched_fc_dequeue_done() argument
139 sid = sctp_chunk_stream_no(ch); in sctp_sched_fc_dequeue_done()
142 if (soute->fc_length > U32_MAX - ch->skb->len) { in sctp_sched_fc_dequeue_done()
[all …]
Dstream_sched_rr.c101 struct sctp_chunk *ch; in sctp_sched_rr_enqueue() local
104 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_rr_enqueue()
105 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_enqueue()
114 struct sctp_chunk *ch = NULL; in sctp_sched_rr_dequeue() local
125 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_rr_dequeue()
127 sctp_sched_dequeue_common(q, ch); in sctp_sched_rr_dequeue()
130 return ch; in sctp_sched_rr_dequeue()
134 struct sctp_chunk *ch) in sctp_sched_rr_dequeue_done() argument
140 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_dequeue_done()
153 struct sctp_chunk *ch; in sctp_sched_rr_sched_all() local
[all …]
Dinqueue.c95 struct sctp_chunkhdr *ch = NULL; in sctp_inq_peek() local
104 ch = (struct sctp_chunkhdr *)chunk->chunk_end; in sctp_inq_peek()
106 return ch; in sctp_inq_peek()
118 struct sctp_chunkhdr *ch = NULL; in sctp_inq_pop() local
145 ch = (struct sctp_chunkhdr *)chunk->chunk_end; in sctp_inq_pop()
189 ch = (struct sctp_chunkhdr *)chunk->skb->data; in sctp_inq_pop()
206 chunk->chunk_hdr = ch; in sctp_inq_pop()
207 chunk->chunk_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_inq_pop()
208 skb_pull(chunk->skb, sizeof(*ch)); in sctp_inq_pop()
211 if (chunk->chunk_end + sizeof(*ch) <= skb_tail_pointer(chunk->skb)) { in sctp_inq_pop()
Dstream_sched_prio.c219 struct sctp_chunk *ch; in sctp_sched_prio_enqueue() local
222 ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); in sctp_sched_prio_enqueue()
223 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_enqueue()
233 struct sctp_chunk *ch = NULL; in sctp_sched_prio_dequeue() local
249 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_prio_dequeue()
250 sctp_sched_dequeue_common(q, ch); in sctp_sched_prio_dequeue()
253 return ch; in sctp_sched_prio_dequeue()
257 struct sctp_chunk *ch) in sctp_sched_prio_dequeue_done() argument
266 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_dequeue_done()
280 struct sctp_chunk *ch; in sctp_sched_prio_sched_all() local
[all …]
Dinput.c682 struct sctp_chunkhdr *ch, _ch; in sctp_rcv_ootb() local
691 ch = skb_header_pointer(skb, offset, sizeof(*ch), &_ch); in sctp_rcv_ootb()
694 if (!ch || ntohs(ch->length) < sizeof(_ch)) in sctp_rcv_ootb()
697 ch_end = offset + SCTP_PAD4(ntohs(ch->length)); in sctp_rcv_ootb()
705 if (SCTP_CID_ABORT == ch->type) in sctp_rcv_ootb()
712 if (SCTP_CID_SHUTDOWN_COMPLETE == ch->type) in sctp_rcv_ootb()
720 if (SCTP_CID_INIT == ch->type && (void *)ch != skb->data) in sctp_rcv_ootb()
1190 struct sctp_chunkhdr *ch, in __sctp_rcv_asconf_lookup() argument
1196 struct sctp_addip_chunk *asconf = (struct sctp_addip_chunk *)ch; in __sctp_rcv_asconf_lookup()
1201 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.c486 struct sctp_chunk *ch; in sctp_assoc_rm_peer() local
552 list_for_each_entry(ch, &peer->transmitted, in sctp_assoc_rm_peer()
554 ch->transport = NULL; in sctp_assoc_rm_peer()
555 ch->rtt_in_progress = 0; in sctp_assoc_rm_peer()
571 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) in sctp_assoc_rm_peer()
572 if (ch->transport == peer) in sctp_assoc_rm_peer()
573 ch->transport = NULL; in sctp_assoc_rm_peer()
Dsm_statefuns.c3687 struct sctp_chunkhdr *ch; in sctp_sf_ootb() local
3698 ch = (struct sctp_chunkhdr *)chunk->chunk_hdr; in sctp_sf_ootb()
3701 if (ntohs(ch->length) < sizeof(*ch)) in sctp_sf_ootb()
3706 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_sf_ootb()
3714 if (SCTP_CID_SHUTDOWN_ACK == ch->type) in sctp_sf_ootb()
3722 if (SCTP_CID_ABORT == ch->type) in sctp_sf_ootb()
3730 if (SCTP_CID_COOKIE_ACK == ch->type) in sctp_sf_ootb()
3733 if (SCTP_CID_ERROR == ch->type) { in sctp_sf_ootb()
3734 sctp_walk_errors(err, ch) { in sctp_sf_ootb()
3742 ch = (struct sctp_chunkhdr *)ch_end; in sctp_sf_ootb()
Dstream_interleave.c1160 #define sctp_walk_ifwdtsn(pos, ch) \ argument
1161 _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.c6965 struct sctp_chunks_param *ch; in sctp_getsockopt_peer_auth_chunks() local
6983 ch = asoc->peer.peer_chunks; in sctp_getsockopt_peer_auth_chunks()
6984 if (!ch) in sctp_getsockopt_peer_auth_chunks()
6988 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
6992 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
7010 struct sctp_chunks_param *ch; in sctp_getsockopt_local_auth_chunks() local
7029 ch = (struct sctp_chunks_param *)asoc->c.auth_chunks; in sctp_getsockopt_local_auth_chunks()
7033 ch = ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks()
7035 if (!ch) in sctp_getsockopt_local_auth_chunks()
7038 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()
[all …]
/net/sunrpc/
Dcache.c83 static void sunrpc_begin_cache_remove_entry(struct cache_head *ch, in sunrpc_begin_cache_remove_entry() argument
87 hlist_del_init_rcu(&ch->cache_list); in sunrpc_begin_cache_remove_entry()
88 set_bit(CACHE_CLEANED, &ch->flags); in sunrpc_begin_cache_remove_entry()
92 static void sunrpc_end_cache_remove_entry(struct cache_head *ch, in sunrpc_end_cache_remove_entry() argument
95 cache_fresh_unlocked(ch, cd); in sunrpc_end_cache_remove_entry()
96 cache_put(ch, cd); in sunrpc_end_cache_remove_entry()
159 static void cache_dequeue(struct cache_detail *detail, struct cache_head *ch);
463 struct cache_head *ch = NULL; in cache_clean() local
473 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_clean()
474 if (current_detail->nextcheck > ch->expiry_time) in cache_clean()
[all …]
Dsvcauth_unix.c294 struct cache_head *ch; in __ip_map_lookup() local
298 ch = sunrpc_cache_lookup_rcu(cd, &ip.h, in __ip_map_lookup()
302 if (ch) in __ip_map_lookup()
303 return container_of(ch, struct ip_map, h); in __ip_map_lookup()
312 struct cache_head *ch; in __ip_map_update() local
319 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
322 if (!ch) in __ip_map_update()
324 cache_put(ch, cd); in __ip_map_update()
538 struct cache_head *ch; in unix_gid_parse() local
541 ch = sunrpc_cache_update(cd, in unix_gid_parse()
[all …]
/net/sunrpc/auth_gss/
Dsvcauth_gss.c323 struct cache_head *ch; in rsi_lookup() local
326 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in rsi_lookup()
327 if (ch) in rsi_lookup()
328 return container_of(ch, struct rsi, h); in rsi_lookup()
335 struct cache_head *ch; in rsi_update() local
338 ch = sunrpc_cache_update(cd, &new->h, in rsi_update()
340 if (ch) in rsi_update()
341 return container_of(ch, struct rsi, h); in rsi_update()
600 struct cache_head *ch; in rsc_lookup() local
603 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in rsc_lookup()
[all …]
/net/bluetooth/
Dsco.c652 struct sock *sk = sock->sk, *ch; in sco_sock_accept() local
670 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
671 if (ch) in sco_sock_accept()
696 BT_DBG("new socket %p", ch); in sco_sock_accept()
Diso.c1042 struct sock *sk = sock->sk, *ch; in iso_sock_accept() local
1060 ch = bt_accept_dequeue(sk, newsock); in iso_sock_accept()
1061 if (ch) in iso_sock_accept()
1086 BT_DBG("new socket %p", ch); in iso_sock_accept()
/net/mac80211/
Dmain.c240 u64 ch = changed & BSS_CHANGED_VIF_CFG_FLAGS; in ieee80211_bss_info_change_notify() local
244 local->ops->vif_cfg_changed(&local->hw, &sdata->vif, ch); in ieee80211_bss_info_change_notify()
248 u64 ch = changed & ~BSS_CHANGED_VIF_CFG_FLAGS; in ieee80211_bss_info_change_notify() local
255 &sdata->vif.bss_conf, ch); in ieee80211_bss_info_change_notify()
Dtdls.c77 struct ieee80211_channel *ch; in ieee80211_tdls_add_subband() local
86 ch = ieee80211_get_channel(sdata->local->hw.wiphy, i); in ieee80211_tdls_add_subband()
87 if (ch) { in ieee80211_tdls_add_subband()
89 cfg80211_chandef_create(&chandef, ch, in ieee80211_tdls_add_subband()
/net/bluetooth/rfcomm/
Dtty.c1044 static void rfcomm_tty_send_xchar(struct tty_struct *tty, char ch) in rfcomm_tty_send_xchar() argument
1046 BT_DBG("tty %p ch %c", tty, ch); in rfcomm_tty_send_xchar()
/net/atm/
Dlec.c1228 #define HASH(ch) (ch & (LEC_ARP_TABLE_SIZE - 1)) argument