Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 25 of 28) sorted by relevance

12

/net/netfilter/
Dnf_conntrack_h323_asn1.c95 unsigned char *cur; member
100 #define INC_BIT(bs) if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;}
101 #define INC_BITS(bs,b) if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;}
102 #define BYTE_ALIGN(bs) if((bs)->bit){(bs)->cur++;(bs)->bit=0;}
154 v = *bs->cur++; in get_len()
159 v += *bs->cur++; in get_len()
172 if (bs->cur + bytes > bs->end) in nf_h323_error_boundary()
180 unsigned int b = (*bs->cur) & (0x80 >> bs->bit); in get_bit()
192 v = (*bs->cur) & (0xffU >> bs->bit); in get_bits()
199 bs->cur++; in get_bits()
[all …]
Dnfnetlink_acct.c186 struct nf_acct *cur, *last; in nfnl_acct_dump() local
197 list_for_each_entry_rcu(cur, &net->nfnl_acct_list, head) { in nfnl_acct_dump()
199 if (cur != last) in nfnl_acct_dump()
205 if (filter && (cur->flags & filter->mask) != filter->value) in nfnl_acct_dump()
211 NFNL_MSG_ACCT_NEW, cur) < 0) { in nfnl_acct_dump()
212 cb->args[1] = (unsigned long)cur; in nfnl_acct_dump()
268 struct nf_acct *cur; in nfnl_acct_get() local
286 list_for_each_entry(cur, &net->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 …]
Dnfnetlink_cthelper.c421 struct nf_conntrack_helper *cur, *helper = NULL; in nfnl_cthelper_new() local
439 cur = &nlcth->helper; in nfnl_cthelper_new()
441 if (strncmp(cur->name, helper_name, NF_CT_HELPER_NAME_LEN)) in nfnl_cthelper_new()
444 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new()
445 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_new()
451 helper = cur; in nfnl_cthelper_new()
577 struct nf_conntrack_helper *cur, *last; in nfnl_cthelper_dump_table() local
583 hlist_for_each_entry_rcu(cur, in nfnl_cthelper_dump_table()
587 if (!(cur->flags & NF_CT_HELPER_F_USERSPACE)) in nfnl_cthelper_dump_table()
591 if (cur != last) in nfnl_cthelper_dump_table()
[all …]
Dnf_conntrack_helper.c137 struct nf_conntrack_nat_helper *cur; in nf_conntrack_nat_helper_find() local
140 list_for_each_entry_rcu(cur, &nf_ct_nat_helpers, list) { in nf_conntrack_nat_helper_find()
141 if (!strcmp(cur->mod_name, mod_name)) { in nf_conntrack_nat_helper_find()
146 return found ? cur : NULL; in nf_conntrack_nat_helper_find()
339 struct nf_ct_helper_expectfn *cur; in nf_ct_helper_expectfn_find_by_name() local
342 list_for_each_entry_rcu(cur, &nf_ct_helper_expectfn_list, head) { in nf_ct_helper_expectfn_find_by_name()
343 if (!strcmp(cur->name, name)) { in nf_ct_helper_expectfn_find_by_name()
348 return found ? cur : NULL; in nf_ct_helper_expectfn_find_by_name()
356 struct nf_ct_helper_expectfn *cur; in nf_ct_helper_expectfn_find_by_symbol() local
359 list_for_each_entry_rcu(cur, &nf_ct_helper_expectfn_list, head) { in nf_ct_helper_expectfn_find_by_symbol()
[all …]
Dnfnetlink_cttimeout.c205 struct ctnl_timeout *cur, *last; in ctnl_timeout_dump() local
215 list_for_each_entry_rcu(cur, &net->nfct_timeout_list, head) { in ctnl_timeout_dump()
217 if (cur != last) in ctnl_timeout_dump()
225 IPCTNL_MSG_TIMEOUT_NEW, cur) < 0) { in ctnl_timeout_dump()
226 cb->args[1] = (unsigned long)cur; in ctnl_timeout_dump()
244 struct ctnl_timeout *cur; in cttimeout_get_timeout() local
257 list_for_each_entry(cur, &net->nfct_timeout_list, head) { in cttimeout_get_timeout()
260 if (strncmp(cur->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_get_timeout()
272 IPCTNL_MSG_TIMEOUT_NEW, cur); in cttimeout_get_timeout()
313 struct ctnl_timeout *cur, *tmp; in cttimeout_del_timeout() local
[all …]
Dx_tables.c54 unsigned int cur; /* number of used slots in compat_tab[] */ member
654 if (xp->cur >= xp->number) in xt_compat_add_offset()
657 if (xp->cur) in xt_compat_add_offset()
658 delta += xp->compat_tab[xp->cur - 1].delta; in xt_compat_add_offset()
659 xp->compat_tab[xp->cur].offset = offset; in xt_compat_add_offset()
660 xp->compat_tab[xp->cur].delta = delta; in xt_compat_add_offset()
661 xp->cur++; in xt_compat_add_offset()
674 xt[af].cur = 0; in xt_compat_flush_offsets()
682 int mid, left = 0, right = xt[af].cur - 1; in xt_compat_calc_jump()
718 xt[af].cur = 0; in xt_compat_init_offsets()
/net/dccp/ccids/lib/
Dloss_interval.c86 struct tfrc_loss_interval *cur = tfrc_lh_peek(lh); in tfrc_lh_update_i_mean() local
90 if (cur == NULL) /* not initialised */ in tfrc_lh_update_i_mean()
93 len = dccp_delta_seqno(cur->li_seqno, DCCP_SKB_CB(skb)->dccpd_seq) + 1; in tfrc_lh_update_i_mean()
95 if (len - (s64)cur->li_length <= 0) /* duplicate or reordered */ in tfrc_lh_update_i_mean()
98 if (SUB16(dccp_hdr(skb)->dccph_ccval, cur->li_ccval) > 4) in tfrc_lh_update_i_mean()
107 cur->li_is_closed = 1; in tfrc_lh_update_i_mean()
112 cur->li_length = len; in tfrc_lh_update_i_mean()
119 static inline u8 tfrc_lh_is_new_loss(struct tfrc_loss_interval *cur, in tfrc_lh_is_new_loss() argument
122 return dccp_delta_seqno(cur->li_seqno, new_loss->tfrchrx_seqno) > 0 && in tfrc_lh_is_new_loss()
123 (cur->li_is_closed || SUB16(new_loss->tfrchrx_ccval, cur->li_ccval) > 4); in tfrc_lh_is_new_loss()
[all …]
/net/core/
Dnetpoll.c522 char *cur=opt, *delim; in netpoll_parse_options() local
526 if (*cur != '@') { in netpoll_parse_options()
527 if ((delim = strchr(cur, '@')) == NULL) in netpoll_parse_options()
530 if (kstrtou16(cur, 10, &np->local_port)) in netpoll_parse_options()
532 cur = delim; in netpoll_parse_options()
534 cur++; in netpoll_parse_options()
536 if (*cur != '/') { in netpoll_parse_options()
538 if ((delim = strchr(cur, '/')) == NULL) in netpoll_parse_options()
541 ipv6 = netpoll_parse_ip_addr(cur, &np->local_ip); in netpoll_parse_options()
546 cur = delim; in netpoll_parse_options()
[all …]
Dsysctl_net_core.c121 struct sd_flow_limit *cur; in flow_limit_cpu_sysctl() local
135 len = sizeof(*cur) + netdev_flow_limit_table_len; in flow_limit_cpu_sysctl()
138 cur = rcu_dereference_protected(sd->flow_limit, in flow_limit_cpu_sysctl()
140 if (cur && !cpumask_test_cpu(i, mask)) { in flow_limit_cpu_sysctl()
143 kfree(cur); in flow_limit_cpu_sysctl()
144 } else if (!cur && cpumask_test_cpu(i, mask)) { in flow_limit_cpu_sysctl()
145 cur = kzalloc_node(len, GFP_KERNEL, in flow_limit_cpu_sysctl()
147 if (!cur) { in flow_limit_cpu_sysctl()
152 cur->num_buckets = netdev_flow_limit_table_len; in flow_limit_cpu_sysctl()
153 rcu_assign_pointer(sd->flow_limit, cur); in flow_limit_cpu_sysctl()
Ddev.c6682 int ret, cur = 0; in __netdev_walk_all_upper_dev() local
6705 dev_stack[cur] = now; in __netdev_walk_all_upper_dev()
6706 iter_stack[cur++] = iter; in __netdev_walk_all_upper_dev()
6711 if (!cur) in __netdev_walk_all_upper_dev()
6713 next = dev_stack[--cur]; in __netdev_walk_all_upper_dev()
6714 niter = iter_stack[cur]; in __netdev_walk_all_upper_dev()
6731 int ret, cur = 0; in netdev_walk_all_upper_dev_rcu() local
6751 dev_stack[cur] = now; in netdev_walk_all_upper_dev_rcu()
6752 iter_stack[cur++] = iter; in netdev_walk_all_upper_dev_rcu()
6757 if (!cur) in netdev_walk_all_upper_dev_rcu()
[all …]
Dpktgen.c3232 struct pktgen_dev *cur; in pktgen_rem_one_if() local
3237 cur = list_entry(q, struct pktgen_dev, list); in pktgen_rem_one_if()
3239 if (!cur->removal_mark) in pktgen_rem_one_if()
3242 kfree_skb(cur->skb); in pktgen_rem_one_if()
3243 cur->skb = NULL; in pktgen_rem_one_if()
3245 pktgen_remove_device(t, cur); in pktgen_rem_one_if()
3254 struct pktgen_dev *cur; in pktgen_rem_all_ifs() local
3261 cur = list_entry(q, struct pktgen_dev, list); in pktgen_rem_all_ifs()
3263 kfree_skb(cur->skb); in pktgen_rem_all_ifs()
3264 cur->skb = NULL; in pktgen_rem_all_ifs()
[all …]
/net/sunrpc/
Dxprtmultipath.c23 const struct rpc_xprt *cur);
228 const struct rpc_xprt *cur) in xprt_switch_find_current_entry() argument
234 if (cur == pos) in xprt_switch_find_current_entry()
291 const struct rpc_xprt *cur) in xprt_switch_find_next_entry() argument
297 if (cur == prev) in xprt_switch_find_next_entry()
332 const struct rpc_xprt *cur) in __xprt_switch_find_next_entry_roundrobin() argument
336 ret = xprt_switch_find_next_entry(head, cur); in __xprt_switch_find_next_entry_roundrobin()
344 const struct rpc_xprt *cur) in xprt_switch_find_next_entry_roundrobin() argument
353 xprt = __xprt_switch_find_next_entry_roundrobin(head, cur); in xprt_switch_find_next_entry_roundrobin()
362 cur = xprt; in xprt_switch_find_next_entry_roundrobin()
[all …]
Dxdr.c991 unsigned int cur = xdr_stream_pos(xdr); in xdr_align_pages() local
999 if (iov->iov_len > cur) { in xdr_align_pages()
1000 offset = iov->iov_len - cur; in xdr_align_pages()
1003 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages()
1017 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages()
1173 size_t cur; in xdr_buf_trim() local
1177 cur = min_t(size_t, buf->tail[0].iov_len, trim); in xdr_buf_trim()
1178 buf->tail[0].iov_len -= cur; in xdr_buf_trim()
1179 trim -= cur; in xdr_buf_trim()
1185 cur = min_t(unsigned int, buf->page_len, trim); in xdr_buf_trim()
[all …]
/net/dccp/
Dackvec.c30 struct dccp_ackvec_record *cur, *next; in dccp_ackvec_purge_records() local
32 list_for_each_entry_safe(cur, next, &av->av_records, avr_node) in dccp_ackvec_purge_records()
33 kmem_cache_free(dccp_ackvec_record_slab, cur); in dccp_ackvec_purge_records()
364 struct dccp_ackvec_parsed *cur, *next; in dccp_ackvec_parsed_cleanup() local
366 list_for_each_entry_safe(cur, next, parsed_chunks, node) in dccp_ackvec_parsed_cleanup()
367 kfree(cur); in dccp_ackvec_parsed_cleanup()
Dfeat.c1500 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/ipv6/
Dndisc.c181 static struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, in ndisc_next_option() argument
185 if (!cur || !end || cur >= end) in ndisc_next_option()
187 type = cur->nd_opt_type; in ndisc_next_option()
189 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_option()
190 } while (cur < end && cur->nd_opt_type != type); in ndisc_next_option()
191 return cur <= end && cur->nd_opt_type == type ? cur : NULL; in ndisc_next_option()
206 struct nd_opt_hdr *cur, in ndisc_next_useropt() argument
209 if (!cur || !end || cur >= end) in ndisc_next_useropt()
212 cur = ((void *)cur) + (cur->nd_opt_len << 3); in ndisc_next_useropt()
213 } while (cur < end && !ndisc_is_useropt(dev, cur)); in ndisc_next_useropt()
[all …]
/net/rfkill/
Dcore.c110 bool cur, sav; member
372 rfkill_global_states[type].cur = blocked; in rfkill_update_global_state()
377 rfkill_global_states[i].cur = blocked; in rfkill_update_global_state()
453 rfkill_global_states[i].sav = rfkill_global_states[i].cur; in rfkill_epo()
454 rfkill_global_states[i].cur = true; in rfkill_epo()
521 return rfkill_global_states[type].cur; in rfkill_get_global_sw_state()
875 bool cur; in rfkill_resume() local
883 cur = !!(rfkill->state & RFKILL_BLOCK_SW); in rfkill_resume()
884 rfkill_set_block(rfkill, cur); in rfkill_resume()
995 bool cur; in rfkill_sync_work() local
[all …]
/net/smc/
Dsmc_core.h265 struct smc_connection *cur = rb_entry(node, in smc_lgr_find_conn() local
268 if (cur->alert_token_local > token) { in smc_lgr_find_conn()
271 if (cur->alert_token_local < token) { in smc_lgr_find_conn()
274 res = cur; in smc_lgr_find_conn()
Dsmc_core.c74 struct smc_connection *cur = rb_entry(*link, in smc_lgr_add_alert_token() local
78 if (cur->alert_token_local > token) in smc_lgr_add_alert_token()
/net/rds/
Dib_rdma.c314 struct llist_node *cur = NULL; in list_to_llist_nodes() local
318 cur = &ibmr->llnode; in list_to_llist_nodes()
319 *next = cur; in list_to_llist_nodes()
320 next = &cur->next; in list_to_llist_nodes()
323 *nodes_tail = cur; in list_to_llist_nodes()
/net/tipc/
Dmonitor.c360 struct tipc_peer *cur, *prev, *p; in tipc_mon_add_peer() local
374 list_for_each_entry(cur, &self->list, list) { in tipc_mon_add_peer()
375 if ((addr > prev->addr) && (addr < cur->addr)) in tipc_mon_add_peer()
377 if (((addr < cur->addr) || (addr > prev->addr)) && in tipc_mon_add_peer()
378 (prev->addr > cur->addr)) in tipc_mon_add_peer()
380 prev = cur; in tipc_mon_add_peer()
382 list_add_tail(&p->list, &cur->list); in tipc_mon_add_peer()
/net/bridge/
Dbr.c277 bool cur = !!br_opt_get(br, opt); in br_opt_toggle() local
280 opt, cur, on); in br_opt_toggle()
282 if (cur == on) in br_opt_toggle()
/net/sched/
Dact_pedit.c233 u32 cur = p->tcfp_keys[i].off; in tcf_pedit_init() local
242 cur += (0xff & p->tcfp_keys[i].offmask) >> p->tcfp_keys[i].shift; in tcf_pedit_init()
245 p->tcfp_off_max_hint = max(p->tcfp_off_max_hint, cur + 4); in tcf_pedit_init()
/net/mac80211/
Dutil.c3738 s32 cur; in ieee80211_extend_absent_time() local
3746 cur = data->desc[i].start - tsf; in ieee80211_extend_absent_time()
3747 if (cur > *offset) in ieee80211_extend_absent_time()
3750 cur = data->desc[i].start + data->desc[i].duration - tsf; in ieee80211_extend_absent_time()
3751 if (cur > *offset) in ieee80211_extend_absent_time()
3752 *offset = cur; in ieee80211_extend_absent_time()
/net/ipv4/
Dtcp_ipv4.c2172 static void *listening_get_next(struct seq_file *seq, void *cur) in listening_get_next() argument
2179 struct sock *sk = cur; in listening_get_next()
2265 static void *established_get_next(struct seq_file *seq, void *cur) in established_get_next() argument
2268 struct sock *sk = cur; in established_get_next()

12