Home
last modified time | relevance | path

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

/net/sctp/
A Dstream_sched.c61 struct sctp_chunk *ch = NULL; in sctp_sched_fcfs_dequeue() local
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
180 if (ch->msg == msg) in sctp_sched_set_sched()
182 msg = ch->msg; in sctp_sched_set_sched()
237 if (!list_is_last(&ch->frag_list, &ch->msg->chunks) && in sctp_sched_dequeue_done()
246 sid = sctp_chunk_stream_no(ch); in sctp_sched_dequeue_done()
253 q->sched->dequeue_done(q, ch); in sctp_sched_dequeue_done()
259 list_del_init(&ch->list); in sctp_sched_dequeue_common()
[all …]
A Dstream_sched_fc.c102 struct sctp_chunk *ch; in sctp_sched_fc_enqueue() local
106 sid = sctp_chunk_stream_no(ch); in sctp_sched_fc_enqueue()
115 struct sctp_chunk *ch; in sctp_sched_fc_dequeue() local
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()
154 soute->fc_length += ch->skb->len; in sctp_sched_fc_dequeue_done()
172 struct sctp_chunk *ch; in sctp_sched_fc_sched_all() local
[all …]
A 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
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
156 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) { in sctp_sched_rr_sched_all()
[all …]
A 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()
A 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
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
283 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) { in sctp_sched_prio_sched_all()
[all …]
A Dinput.c691 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()
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
1234 struct sctp_chunkhdr *ch; in __sctp_rcv_walk_lookup() local
1245 if (ntohs(ch->length) < sizeof(*ch)) in __sctp_rcv_walk_lookup()
1248 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in __sctp_rcv_walk_lookup()
1252 switch (ch->type) { in __sctp_rcv_walk_lookup()
1272 net, ch, laddr, in __sctp_rcv_walk_lookup()
1302 struct sctp_chunkhdr *ch; in __sctp_rcv_lookup_harder() local
[all …]
A 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()
A 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()
A 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()
A Dassociola.c487 struct sctp_chunk *ch; in sctp_assoc_rm_peer() local
553 list_for_each_entry(ch, &peer->transmitted, in sctp_assoc_rm_peer()
555 ch->transport = NULL; in sctp_assoc_rm_peer()
556 ch->rtt_in_progress = 0; in sctp_assoc_rm_peer()
572 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) in sctp_assoc_rm_peer()
573 if (ch->transport == peer) in sctp_assoc_rm_peer()
574 ch->transport = NULL; in sctp_assoc_rm_peer()
A Dsm_statefuns.c3698 struct sctp_chunkhdr *ch; in sctp_sf_ootb() local
3709 ch = (struct sctp_chunkhdr *)chunk->chunk_hdr; in sctp_sf_ootb()
3712 if (ntohs(ch->length) < sizeof(*ch)) in sctp_sf_ootb()
3717 ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); in sctp_sf_ootb()
3725 if (SCTP_CID_SHUTDOWN_ACK == ch->type) in sctp_sf_ootb()
3733 if (SCTP_CID_ABORT == ch->type) in sctp_sf_ootb()
3741 if (SCTP_CID_COOKIE_ACK == ch->type) in sctp_sf_ootb()
3744 if (SCTP_CID_ERROR == ch->type) { in sctp_sf_ootb()
3745 sctp_walk_errors(err, ch) { in sctp_sf_ootb()
3753 ch = (struct sctp_chunkhdr *)ch_end; in sctp_sf_ootb()
[all …]
A Dstream_interleave.c1160 #define sctp_walk_ifwdtsn(pos, ch) \ argument
1161 _sctp_walk_ifwdtsn((pos), (ch), ntohs((ch)->chunk_hdr->length) - \
A Dsm_make_chunk.c1513 void sctp_chunk_hold(struct sctp_chunk *ch) in sctp_chunk_hold() argument
1515 refcount_inc(&ch->refcnt); in sctp_chunk_hold()
1519 void sctp_chunk_put(struct sctp_chunk *ch) in sctp_chunk_put() argument
1521 if (refcount_dec_and_test(&ch->refcnt)) in sctp_chunk_put()
1522 sctp_chunk_destroy(ch); in sctp_chunk_put()
A Dsocket.c6972 struct sctp_chunks_param *ch; in sctp_getsockopt_peer_auth_chunks() local
6990 ch = asoc->peer.peer_chunks; in sctp_getsockopt_peer_auth_chunks()
6991 if (!ch) in sctp_getsockopt_peer_auth_chunks()
6995 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
6999 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
7017 struct sctp_chunks_param *ch; in sctp_getsockopt_local_auth_chunks() local
7036 ch = (struct sctp_chunks_param *)asoc->c.auth_chunks; in sctp_getsockopt_local_auth_chunks()
7040 ch = ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks()
7042 if (!ch) in sctp_getsockopt_local_auth_chunks()
7045 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()
[all …]
/net/sunrpc/
A Dcache.c88 set_bit(CACHE_CLEANED, &ch->flags); in sunrpc_begin_cache_remove_entry()
95 cache_fresh_unlocked(ch, cd); in sunrpc_end_cache_remove_entry()
96 cache_put(ch, cd); in sunrpc_end_cache_remove_entry()
476 struct cache_head *ch = NULL; in cache_clean() local
497 if (!ch) in cache_clean()
500 if (ch) in cache_clean()
545 struct cache_head *ch = NULL; in cache_purge() local
1103 if (cr->item != ch) in cache_dequeue()
1353 struct cache_head *ch; in __cache_seq_start() local
1363 return ch; in __cache_seq_start()
[all …]
A Dsvcauth_unix.c294 struct cache_head *ch; in __ip_map_lookup() local
302 if (ch) in __ip_map_lookup()
312 struct cache_head *ch; in __ip_map_update() local
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()
544 if (!ch) in unix_gid_parse()
548 cache_put(ch, cd); in unix_gid_parse()
632 struct cache_head *ch; in unix_gid_lookup() local
[all …]
/net/sunrpc/auth_gss/
A Dsvcauth_gss.c323 struct cache_head *ch; in rsi_lookup() local
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()
600 struct cache_head *ch; in rsc_lookup() local
604 if (ch) in rsc_lookup()
612 struct cache_head *ch; in rsc_update() local
615 ch = sunrpc_cache_update(cd, &new->h, in rsc_update()
[all …]
/net/bluetooth/
A Dsco.c715 struct sock *sk = sock->sk, *ch; in sco_sock_accept() local
733 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
734 if (ch) in sco_sock_accept()
759 BT_DBG("new socket %p", ch); in sco_sock_accept()
A Diso.c1241 struct sock *sk = sock->sk, *ch; in iso_sock_accept() local
1263 ch = bt_accept_dequeue(sk, newsock); in iso_sock_accept()
1264 if (ch) in iso_sock_accept()
1289 BT_DBG("new socket %p", ch); in iso_sock_accept()
/net/mac80211/
A Dmain.c367 u64 ch = changed & BSS_CHANGED_VIF_CFG_FLAGS; in ieee80211_bss_info_change_notify() local
371 local->ops->vif_cfg_changed(&local->hw, &sdata->vif, ch); in ieee80211_bss_info_change_notify()
375 u64 ch = changed & ~BSS_CHANGED_VIF_CFG_FLAGS; in ieee80211_bss_info_change_notify() local
381 &sdata->vif.bss_conf, ch); in ieee80211_bss_info_change_notify()
A 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/
A Dtty.c1036 static void rfcomm_tty_send_xchar(struct tty_struct *tty, u8 ch) in rfcomm_tty_send_xchar() argument
1038 BT_DBG("tty %p ch %c", tty, ch); in rfcomm_tty_send_xchar()
/net/atm/
A Dlec.c1237 #define HASH(ch) (ch & (LEC_ARP_TABLE_SIZE - 1)) argument

Completed in 101 milliseconds