/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 98 unsigned char *cur; member 103 #define INC_BIT(bs) if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;} 104 #define INC_BITS(bs,b) if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;} 105 #define BYTE_ALIGN(bs) if((bs)->bit){(bs)->cur++;(bs)->bit=0;} 106 #define CHECK_BOUND(bs,n) if((bs)->cur+(n)>(bs)->end)return(H323_ERROR_BOUND) 157 v = *bs->cur++; in get_len() 162 v += *bs->cur++; in get_len() 171 unsigned int b = (*bs->cur) & (0x80 >> bs->bit); in get_bit() 184 v = (*bs->cur) & (0xffU >> bs->bit); in get_bits() 191 bs->cur++; in get_bits() [all …]
|
D | nfnetlink_acct.c | 188 struct nf_acct *cur, *last; in nfnl_acct_dump() local 199 list_for_each_entry_rcu(cur, &nfnl_acct_list, head) { in nfnl_acct_dump() 201 if (cur != last) in nfnl_acct_dump() 207 if (filter && (cur->flags & filter->mask) != filter->value) in nfnl_acct_dump() 213 NFNL_MSG_ACCT_NEW, cur) < 0) { in nfnl_acct_dump() 214 cb->args[1] = (unsigned long)cur; in nfnl_acct_dump() 261 struct nf_acct *cur; in nfnl_acct_get() local 286 list_for_each_entry(cur, &nfnl_acct_list, head) { in nfnl_acct_get() 289 if (strncmp(cur->name, acct_name, NFACCT_NAME_MAX)!= 0) in nfnl_acct_get() 301 NFNL_MSG_ACCT_NEW, cur); in nfnl_acct_get() [all …]
|
D | nfnetlink_cthelper.c | 391 struct nf_conntrack_helper *cur, *helper = NULL; in nfnl_cthelper_new() local 409 cur = &nlcth->helper; in nfnl_cthelper_new() 411 if (strncmp(cur->name, helper_name, NF_CT_HELPER_NAME_LEN)) in nfnl_cthelper_new() 414 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new() 415 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_new() 421 helper = cur; in nfnl_cthelper_new() 553 struct nf_conntrack_helper *cur, *last; in nfnl_cthelper_dump_table() local 559 hlist_for_each_entry_rcu(cur, in nfnl_cthelper_dump_table() 563 if (!(cur->flags & NF_CT_HELPER_F_USERSPACE)) in nfnl_cthelper_dump_table() 567 if (cur != last) in nfnl_cthelper_dump_table() [all …]
|
D | nfnetlink_cttimeout.c | 212 struct ctnl_timeout *cur, *last; in ctnl_timeout_dump() local 222 list_for_each_entry_rcu(cur, &cttimeout_list, head) { in ctnl_timeout_dump() 224 if (cur != last) in ctnl_timeout_dump() 232 IPCTNL_MSG_TIMEOUT_NEW, cur) < 0) { in ctnl_timeout_dump() 233 cb->args[1] = (unsigned long)cur; in ctnl_timeout_dump() 250 struct ctnl_timeout *cur; in cttimeout_get_timeout() local 263 list_for_each_entry(cur, &cttimeout_list, head) { in cttimeout_get_timeout() 266 if (strncmp(cur->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_get_timeout() 278 IPCTNL_MSG_TIMEOUT_NEW, cur); in cttimeout_get_timeout() 319 struct ctnl_timeout *cur; in cttimeout_del_timeout() local [all …]
|
D | nf_conntrack_helper.c | 302 struct nf_ct_helper_expectfn *cur; in nf_ct_helper_expectfn_find_by_name() local 306 list_for_each_entry_rcu(cur, &nf_ct_helper_expectfn_list, head) { in nf_ct_helper_expectfn_find_by_name() 307 if (!strcmp(cur->name, name)) { in nf_ct_helper_expectfn_find_by_name() 313 return found ? cur : NULL; in nf_ct_helper_expectfn_find_by_name() 320 struct nf_ct_helper_expectfn *cur; in nf_ct_helper_expectfn_find_by_symbol() local 324 list_for_each_entry_rcu(cur, &nf_ct_helper_expectfn_list, head) { in nf_ct_helper_expectfn_find_by_symbol() 325 if (cur->expectfn == symbol) { in nf_ct_helper_expectfn_find_by_symbol() 331 return found ? cur : NULL; in nf_ct_helper_expectfn_find_by_symbol() 365 struct nf_conntrack_helper *cur; in nf_conntrack_helper_register() local 373 hlist_for_each_entry(cur, &nf_ct_helper_hash[h], hnode) { in nf_conntrack_helper_register() [all …]
|
D | x_tables.c | 56 unsigned int cur; /* number of used slots in compat_tab[] */ member 473 xp->cur = 0; in xt_compat_add_offset() 476 if (xp->cur >= xp->number) in xt_compat_add_offset() 479 if (xp->cur) in xt_compat_add_offset() 480 delta += xp->compat_tab[xp->cur - 1].delta; in xt_compat_add_offset() 481 xp->compat_tab[xp->cur].offset = offset; in xt_compat_add_offset() 482 xp->compat_tab[xp->cur].delta = delta; in xt_compat_add_offset() 483 xp->cur++; in xt_compat_add_offset() 494 xt[af].cur = 0; in xt_compat_flush_offsets() 502 int mid, left = 0, right = xt[af].cur - 1; in xt_compat_calc_jump() [all …]
|
/net/dccp/ccids/lib/ |
D | loss_interval.c | 90 struct tfrc_loss_interval *cur = tfrc_lh_peek(lh); in tfrc_lh_update_i_mean() local 94 if (cur == NULL) /* not initialised */ in tfrc_lh_update_i_mean() 97 len = dccp_delta_seqno(cur->li_seqno, DCCP_SKB_CB(skb)->dccpd_seq) + 1; in tfrc_lh_update_i_mean() 99 if (len - (s64)cur->li_length <= 0) /* duplicate or reordered */ in tfrc_lh_update_i_mean() 102 if (SUB16(dccp_hdr(skb)->dccph_ccval, cur->li_ccval) > 4) in tfrc_lh_update_i_mean() 111 cur->li_is_closed = 1; in tfrc_lh_update_i_mean() 116 cur->li_length = len; in tfrc_lh_update_i_mean() 123 static inline u8 tfrc_lh_is_new_loss(struct tfrc_loss_interval *cur, in tfrc_lh_is_new_loss() argument 126 return dccp_delta_seqno(cur->li_seqno, new_loss->tfrchrx_seqno) > 0 && in tfrc_lh_is_new_loss() 127 (cur->li_is_closed || SUB16(new_loss->tfrchrx_ccval, cur->li_ccval) > 4); in tfrc_lh_is_new_loss() [all …]
|
/net/core/ |
D | netpoll.c | 519 char *cur=opt, *delim; in netpoll_parse_options() local 523 if (*cur != '@') { in netpoll_parse_options() 524 if ((delim = strchr(cur, '@')) == NULL) in netpoll_parse_options() 527 if (kstrtou16(cur, 10, &np->local_port)) in netpoll_parse_options() 529 cur = delim; in netpoll_parse_options() 531 cur++; in netpoll_parse_options() 533 if (*cur != '/') { in netpoll_parse_options() 535 if ((delim = strchr(cur, '/')) == NULL) in netpoll_parse_options() 538 ipv6 = netpoll_parse_ip_addr(cur, &np->local_ip); in netpoll_parse_options() 543 cur = delim; in netpoll_parse_options() [all …]
|
D | sysctl_net_core.c | 104 struct sd_flow_limit *cur; in flow_limit_cpu_sysctl() local 118 len = sizeof(*cur) + netdev_flow_limit_table_len; in flow_limit_cpu_sysctl() 121 cur = rcu_dereference_protected(sd->flow_limit, in flow_limit_cpu_sysctl() 123 if (cur && !cpumask_test_cpu(i, mask)) { in flow_limit_cpu_sysctl() 126 kfree(cur); in flow_limit_cpu_sysctl() 127 } else if (!cur && cpumask_test_cpu(i, mask)) { in flow_limit_cpu_sysctl() 128 cur = kzalloc_node(len, GFP_KERNEL, in flow_limit_cpu_sysctl() 130 if (!cur) { in flow_limit_cpu_sysctl() 135 cur->num_buckets = netdev_flow_limit_table_len; in flow_limit_cpu_sysctl() 136 rcu_assign_pointer(sd->flow_limit, cur); in flow_limit_cpu_sysctl()
|
D | pktgen.c | 3251 struct pktgen_dev *cur; in pktgen_rem_one_if() local 3256 cur = list_entry(q, struct pktgen_dev, list); in pktgen_rem_one_if() 3258 if (!cur->removal_mark) in pktgen_rem_one_if() 3261 kfree_skb(cur->skb); in pktgen_rem_one_if() 3262 cur->skb = NULL; in pktgen_rem_one_if() 3264 pktgen_remove_device(t, cur); in pktgen_rem_one_if() 3273 struct pktgen_dev *cur; in pktgen_rem_all_ifs() local 3280 cur = list_entry(q, struct pktgen_dev, list); in pktgen_rem_all_ifs() 3282 kfree_skb(cur->skb); in pktgen_rem_all_ifs() 3283 cur->skb = NULL; in pktgen_rem_all_ifs() [all …]
|
/net/rfkill/ |
D | core.c | 120 bool cur, sav; member 344 rfkill_global_states[type].cur = blocked; in __rfkill_switch_all() 400 rfkill_global_states[i].sav = rfkill_global_states[i].cur; in rfkill_epo() 401 rfkill_global_states[i].cur = true; in rfkill_epo() 468 return rfkill_global_states[type].cur; in rfkill_get_global_sw_state() 809 bool cur; in rfkill_resume() local 812 cur = !!(rfkill->state & RFKILL_BLOCK_SW); in rfkill_resume() 813 rfkill_set_block(rfkill, cur); in rfkill_resume() 918 bool cur; in rfkill_sync_work() local 923 cur = rfkill_global_states[rfkill->type].cur; in rfkill_sync_work() [all …]
|
/net/ipv6/ |
D | ndisc.c | 169 static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, in ndisc_next_option() argument 173 if (!cur || !end || cur >= end) in ndisc_next_option() 175 type = cur->nd_opt_type; in ndisc_next_option() 177 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_option() 178 } while (cur < end && cur->nd_opt_type != type); in ndisc_next_option() 179 return cur <= end && cur->nd_opt_type == type ? cur : NULL; in ndisc_next_option() 188 static struct nd_opt_hdr *ndisc_next_useropt(struct nd_opt_hdr *cur, in ndisc_next_useropt() argument 191 if (!cur || !end || cur >= end) in ndisc_next_useropt() 194 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_useropt() 195 } while (cur < end && !ndisc_is_useropt(cur)); in ndisc_next_useropt() [all …]
|
/net/dccp/ |
D | ackvec.c | 33 struct dccp_ackvec_record *cur, *next; in dccp_ackvec_purge_records() local 35 list_for_each_entry_safe(cur, next, &av->av_records, avr_node) in dccp_ackvec_purge_records() 36 kmem_cache_free(dccp_ackvec_record_slab, cur); in dccp_ackvec_purge_records() 367 struct dccp_ackvec_parsed *cur, *next; in dccp_ackvec_parsed_cleanup() local 369 list_for_each_entry_safe(cur, next, parsed_chunks, node) in dccp_ackvec_parsed_cleanup() 370 kfree(cur); in dccp_ackvec_parsed_cleanup()
|
D | feat.c | 1500 struct dccp_feat_entry *cur, *next; in dccp_feat_activate_values() local 1506 list_for_each_entry(cur, fn_list, node) { in dccp_feat_activate_values() 1512 if (cur->empty_confirm) in dccp_feat_activate_values() 1515 idx = dccp_feat_index(cur->feat_num); in dccp_feat_activate_values() 1517 DCCP_BUG("Unknown feature %u", cur->feat_num); in dccp_feat_activate_values() 1520 if (cur->state != FEAT_STABLE) { in dccp_feat_activate_values() 1522 cur->is_local ? "local" : "remote", in dccp_feat_activate_values() 1523 dccp_feat_fname(cur->feat_num), in dccp_feat_activate_values() 1524 dccp_feat_sname[cur->state]); in dccp_feat_activate_values() 1527 fvals[idx][cur->is_local] = &cur->val; in dccp_feat_activate_values() [all …]
|
/net/sunrpc/ |
D | xdr.c | 906 unsigned int cur = xdr_stream_pos(xdr); in xdr_align_pages() local 912 if (iov->iov_len > cur) { in xdr_align_pages() 913 xdr_shrink_bufhead(buf, iov->iov_len - cur); in xdr_align_pages() 914 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages() 926 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages() 1078 size_t cur; in xdr_buf_trim() local 1082 cur = min_t(size_t, buf->tail[0].iov_len, trim); in xdr_buf_trim() 1083 buf->tail[0].iov_len -= cur; in xdr_buf_trim() 1084 trim -= cur; in xdr_buf_trim() 1090 cur = min_t(unsigned int, buf->page_len, trim); in xdr_buf_trim() [all …]
|
/net/rds/ |
D | ib_rdma.c | 552 struct llist_node *cur = NULL; in list_to_llist_nodes() local 556 cur = &ibmr->llnode; in list_to_llist_nodes() 557 *next = cur; in list_to_llist_nodes() 558 next = &cur->next; in list_to_llist_nodes() 561 *nodes_tail = cur; in list_to_llist_nodes()
|
/net/ipv4/ |
D | tcp_ipv4.c | 1870 static void *listening_get_next(struct seq_file *seq, void *cur) in listening_get_next() argument 1874 struct sock *sk = cur; in listening_get_next() 1891 struct request_sock *req = cur; in listening_get_next() 1898 cur = req; in listening_get_next() 1924 cur = sk; in listening_get_next() 1947 cur = NULL; in listening_get_next() 1949 return cur; in listening_get_next() 2008 static void *established_get_next(struct seq_file *seq, void *cur) in established_get_next() argument 2010 struct sock *sk = cur; in established_get_next()
|
/net/mac80211/ |
D | util.c | 2815 s32 cur; in ieee80211_extend_absent_time() local 2823 cur = data->desc[i].start - tsf; in ieee80211_extend_absent_time() 2824 if (cur > *offset) in ieee80211_extend_absent_time() 2827 cur = data->desc[i].start + data->desc[i].duration - tsf; in ieee80211_extend_absent_time() 2828 if (cur > *offset) in ieee80211_extend_absent_time() 2829 *offset = cur; in ieee80211_extend_absent_time()
|