/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 163 static unsigned char asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch) in asn1_octet_decode() argument 169 *ch = *(ctx->pointer)++; in asn1_octet_decode() 175 unsigned char ch; in asn1_tag_decode() local 181 if (!asn1_octet_decode(ctx, &ch)) in asn1_tag_decode() 184 *tag |= ch & 0x7F; in asn1_tag_decode() 185 } while ((ch & 0x80) == 0x80); in asn1_tag_decode() 194 unsigned char ch; in asn1_id_decode() local 196 if (!asn1_octet_decode(ctx, &ch)) in asn1_id_decode() 199 *cls = (ch & 0xC0) >> 6; in asn1_id_decode() 200 *con = (ch & 0x20) >> 5; in asn1_id_decode() [all …]
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 143 struct rpcrdma_read_chunk *ch; in map_read_chunks() local 148 ch = (struct rpcrdma_read_chunk *)&rmsgp->rm_body.rm_chunks[0]; in map_read_chunks() 150 ch_bytes = ntohl(ch->rc_target.rs_length); in map_read_chunks() 160 chl_map->ch[0].start = 0; in map_read_chunks() 181 chl_map->ch[ch_no].count = in map_read_chunks() 182 sge_no - chl_map->ch[ch_no].start; in map_read_chunks() 184 ch++; in map_read_chunks() 185 chl_map->ch[ch_no].start = sge_no; in map_read_chunks() 186 ch_bytes = ntohl(ch->rc_target.rs_length); in map_read_chunks() 240 struct rpcrdma_read_chunk *ch; in fast_reg_read_chunks() local [all …]
|
D | svc_rdma_marshal.c | 60 struct rpcrdma_read_chunk *ch = (struct rpcrdma_read_chunk *)va; in decode_read_list() local 62 while (ch->rc_discrim != xdr_zero) { in decode_read_list() 63 if (((unsigned long)ch + sizeof(struct rpcrdma_read_chunk)) > in decode_read_list() 65 dprintk("svcrdma: vaend=%p, ch=%p\n", vaend, ch); in decode_read_list() 68 ch++; in decode_read_list() 70 return (u32 *)&ch->rc_position; in decode_read_list() 77 void svc_rdma_rcl_chunk_counts(struct rpcrdma_read_chunk *ch, in svc_rdma_rcl_chunk_counts() argument 83 for (; ch->rc_discrim != 0; ch++) { in svc_rdma_rcl_chunk_counts() 84 *byte_count = *byte_count + ntohl(ch->rc_target.rs_length); in svc_rdma_rcl_chunk_counts() 225 struct rpcrdma_read_chunk *ch; in svc_rdma_xdr_decode_deferred_req() local [all …]
|
D | svc_rdma_sendto.c | 461 struct rpcrdma_segment *ch; in send_reply_chunks() local 485 ch = &arg_ary->wc_array[chunk_no].wc_target; in send_reply_chunks() 486 write_len = min(xfer_len, htonl(ch->rs_length)); in send_reply_chunks() 490 xdr_decode_hyper((__be32 *)&ch->rs_offset, &rs_offset); in send_reply_chunks() 492 ch->rs_handle, ch->rs_offset, in send_reply_chunks() 500 ntohl(ch->rs_handle), in send_reply_chunks()
|
/net/sctp/ |
D | inqueue.c | 109 sctp_chunkhdr_t *ch = NULL; in sctp_inq_peek() local 118 ch = (sctp_chunkhdr_t *)chunk->chunk_end; in sctp_inq_peek() 120 return ch; in sctp_inq_peek() 132 sctp_chunkhdr_t *ch = NULL; in sctp_inq_pop() local 149 ch = (sctp_chunkhdr_t *) chunk->chunk_end; in sctp_inq_pop() 180 ch = (sctp_chunkhdr_t *) chunk->skb->data; in sctp_inq_pop() 184 chunk->chunk_hdr = ch; in sctp_inq_pop() 185 chunk->chunk_end = ((__u8 *)ch) + WORD_ROUND(ntohs(ch->length)); in sctp_inq_pop()
|
D | input.c | 683 sctp_chunkhdr_t *ch; in sctp_rcv_ootb() local 686 ch = (sctp_chunkhdr_t *) skb->data; in sctp_rcv_ootb() 691 if (ntohs(ch->length) < sizeof(sctp_chunkhdr_t)) in sctp_rcv_ootb() 694 ch_end = ((__u8 *)ch) + WORD_ROUND(ntohs(ch->length)); in sctp_rcv_ootb() 702 if (SCTP_CID_ABORT == ch->type) in sctp_rcv_ootb() 709 if (SCTP_CID_SHUTDOWN_COMPLETE == ch->type) in sctp_rcv_ootb() 717 if (SCTP_CID_INIT == ch->type && (void *)ch != skb->data) in sctp_rcv_ootb() 720 ch = (sctp_chunkhdr_t *) ch_end; in sctp_rcv_ootb() 1020 sctp_chunkhdr_t *ch, in __sctp_rcv_asconf_lookup() argument 1025 sctp_addip_chunk_t *asconf = (struct sctp_addip_chunk *)ch; in __sctp_rcv_asconf_lookup() [all …]
|
D | outqueue.c | 82 struct sctp_chunk *ch) in sctp_outq_head_data() argument 84 list_add(&ch->list, &q->out_chunk_list); in sctp_outq_head_data() 85 q->out_qlen += ch->skb->len; in sctp_outq_head_data() 91 struct sctp_chunk *ch = NULL; in sctp_outq_dequeue_data() local 96 ch = list_entry(entry, struct sctp_chunk, list); in sctp_outq_dequeue_data() 98 q->out_qlen -= ch->skb->len; in sctp_outq_dequeue_data() 100 return ch; in sctp_outq_dequeue_data() 104 struct sctp_chunk *ch) in sctp_outq_tail_data() argument 106 list_add_tail(&ch->list, &q->out_chunk_list); in sctp_outq_tail_data() 107 q->out_qlen += ch->skb->len; in sctp_outq_tail_data()
|
D | ulpevent.c | 383 sctp_errhdr_t *ch; in sctp_ulpevent_make_remote_error() local 387 ch = (sctp_errhdr_t *)(chunk->skb->data); in sctp_ulpevent_make_remote_error() 388 cause = ch->cause; in sctp_ulpevent_make_remote_error() 389 elen = WORD_ROUND(ntohs(ch->length)) - sizeof(sctp_errhdr_t); in sctp_ulpevent_make_remote_error()
|
D | sm_statefuns.c | 3398 sctp_chunkhdr_t *ch; in sctp_sf_ootb() local 3406 ch = (sctp_chunkhdr_t *) chunk->chunk_hdr; in sctp_sf_ootb() 3409 if (ntohs(ch->length) < sizeof(sctp_chunkhdr_t)) in sctp_sf_ootb() 3416 if (SCTP_CID_SHUTDOWN_ACK == ch->type) in sctp_sf_ootb() 3424 if (SCTP_CID_ABORT == ch->type) in sctp_sf_ootb() 3432 if (SCTP_CID_COOKIE_ACK == ch->type) in sctp_sf_ootb() 3435 if (SCTP_CID_ERROR == ch->type) { in sctp_sf_ootb() 3436 sctp_walk_errors(err, ch) { in sctp_sf_ootb() 3445 ch_end = ((__u8 *)ch) + WORD_ROUND(ntohs(ch->length)); in sctp_sf_ootb() 3450 ch = (sctp_chunkhdr_t *) ch_end; in sctp_sf_ootb()
|
D | associola.c | 603 struct sctp_chunk *ch; in sctp_assoc_rm_peer() local 606 list_for_each_entry(ch, &peer->transmitted, in sctp_assoc_rm_peer() 608 ch->transport = NULL; in sctp_assoc_rm_peer() 609 ch->rtt_in_progress = 0; in sctp_assoc_rm_peer()
|
D | socket.c | 5412 struct sctp_chunks_param *ch; in sctp_getsockopt_peer_auth_chunks() local 5430 ch = asoc->peer.peer_chunks; in sctp_getsockopt_peer_auth_chunks() 5431 if (!ch) in sctp_getsockopt_peer_auth_chunks() 5435 num_chunks = ntohs(ch->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_peer_auth_chunks() 5439 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks() 5456 struct sctp_chunks_param *ch; in sctp_getsockopt_local_auth_chunks() local 5475 ch = (struct sctp_chunks_param*)asoc->c.auth_chunks; in sctp_getsockopt_local_auth_chunks() 5477 ch = sctp_sk(sk)->ep->auth_chunk_list; in sctp_getsockopt_local_auth_chunks() 5479 if (!ch) in sctp_getsockopt_local_auth_chunks() 5482 num_chunks = ntohs(ch->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_local_auth_chunks() [all …]
|
D | sm_make_chunk.c | 1424 void sctp_chunk_hold(struct sctp_chunk *ch) in sctp_chunk_hold() argument 1426 atomic_inc(&ch->refcnt); in sctp_chunk_hold() 1430 void sctp_chunk_put(struct sctp_chunk *ch) in sctp_chunk_put() argument 1432 if (atomic_dec_and_test(&ch->refcnt)) in sctp_chunk_put() 1433 sctp_chunk_destroy(ch); in sctp_chunk_put()
|
/net/sunrpc/ |
D | cache.c | 125 static void cache_dequeue(struct cache_detail *detail, struct cache_head *ch); 433 struct cache_head *ch, **cp; in cache_clean() local 441 for (ch = *cp ; ch ; cp = & ch->next, ch = *cp) { in cache_clean() 442 if (current_detail->nextcheck > ch->expiry_time) in cache_clean() 443 current_detail->nextcheck = ch->expiry_time+1; in cache_clean() 444 if (!cache_is_expired(current_detail, ch)) in cache_clean() 447 *cp = ch->next; in cache_clean() 448 ch->next = NULL; in cache_clean() 456 if (!ch) in cache_clean() 459 if (ch) { in cache_clean() [all …]
|
D | svcauth_unix.c | 279 struct cache_head *ch; in __ip_map_lookup() local 283 ch = sunrpc_cache_lookup(cd, &ip.h, in __ip_map_lookup() 287 if (ch) in __ip_map_lookup() 288 return container_of(ch, struct ip_map, h); in __ip_map_lookup() 306 struct cache_head *ch; in __ip_map_update() local 313 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update() 316 if (!ch) in __ip_map_update() 318 cache_put(ch, cd); in __ip_map_update() 527 struct cache_head *ch; in unix_gid_parse() local 530 ch = sunrpc_cache_update(cd, in unix_gid_parse() [all …]
|
/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 282 struct cache_head *ch; in rsi_lookup() local 285 ch = sunrpc_cache_lookup(cd, &item->h, hash); in rsi_lookup() 286 if (ch) in rsi_lookup() 287 return container_of(ch, struct rsi, h); in rsi_lookup() 294 struct cache_head *ch; in rsi_update() local 297 ch = sunrpc_cache_update(cd, &new->h, in rsi_update() 299 if (ch) in rsi_update() 300 return container_of(ch, struct rsi, h); in rsi_update() 543 struct cache_head *ch; in rsc_lookup() local 546 ch = sunrpc_cache_lookup(cd, &item->h, hash); in rsc_lookup() [all …]
|
/net/bluetooth/ |
D | sco.c | 574 struct sock *sk = sock->sk, *ch; in sco_sock_accept() local 594 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept() 595 if (ch) in sco_sock_accept() 620 BT_DBG("new socket %p", ch); in sco_sock_accept()
|
/net/wireless/ |
D | util.c | 1215 struct ieee80211_channel *ch; in cfg80211_can_use_iftype_chan() local 1302 cfg80211_get_chan_state(wdev_iter, &ch, &chmode); in cfg80211_can_use_iftype_chan() 1310 if (!used_channels[i] || used_channels[i] == ch) in cfg80211_can_use_iftype_chan() 1317 used_channels[i] = ch; in cfg80211_can_use_iftype_chan()
|
/net/bluetooth/rfcomm/ |
D | tty.c | 1042 static void rfcomm_tty_send_xchar(struct tty_struct *tty, char ch) in rfcomm_tty_send_xchar() argument 1044 BT_DBG("tty %p ch %c", tty, ch); in rfcomm_tty_send_xchar()
|
/net/irda/ircomm/ |
D | ircomm_tty.c | 66 static void ircomm_tty_send_xchar(struct tty_struct *tty, char ch); 1004 static void ircomm_tty_send_xchar(struct tty_struct *tty, char ch) in ircomm_tty_send_xchar() argument
|
/net/atm/ |
D | lec.c | 1249 #define HASH(ch) (ch & (LEC_ARP_TABLE_SIZE - 1)) argument
|