Searched defs:old (Results 1 - 25 of 59) sorted by relevance

123

/net/ipv6/
H A Doutput_core.c12 int old, new; local
29 old = atomic_read(&ipv6_fragmentation_id);
30 new = old + 1;
33 } while (atomic_cmpxchg(&ipv6_fragmentation_id, old, new) != old);
/net/netfilter/
H A Dnf_conntrack_extend.c75 struct nf_ct_ext *old, *new; local
82 old = ct->ext;
83 if (!old)
86 if (__nf_ct_ext_exist(old, id))
93 newoff = ALIGN(old->len, t->align);
97 new = __krealloc(old, newlen, gfp);
101 if (new != old) {
103 if (!__nf_ct_ext_exist(old, i))
110 (void *)old + old
[all...]
H A Dnf_conntrack_labels.c58 u32 old, tmp; local
61 old = *address;
62 tmp = (old & mask) ^ new;
63 } while (cmpxchg(address, old, tmp) != old);
H A Dnf_conntrack_proto.c219 struct nf_conntrack_l3proto *old; local
228 old = rcu_dereference_protected(nf_ct_l3protos[proto->l3proto],
230 if (old != &nf_conntrack_l3proto_generic) {
/net/sched/
H A Dsch_mq.c145 struct Qdisc **old)
153 *old = dev_graft_qdisc(dev_queue, new);
144 mq_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, struct Qdisc **old) argument
H A Dsch_dsmark.c56 struct Qdisc *new, struct Qdisc **old)
60 pr_debug("dsmark_graft(sch %p,[qdisc %p],new %p,old %p)\n",
61 sch, p, new, old);
71 *old = p->q;
73 qdisc_tree_decrease_qlen(*old, (*old)->q.qlen);
74 qdisc_reset(*old);
55 dsmark_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
H A Dsch_mqprio.c196 struct Qdisc **old)
207 *old = dev_graft_qdisc(dev_queue, new);
195 mqprio_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, struct Qdisc **old) argument
H A Dsch_multiq.c230 struct Qdisc *child, *old; local
237 old = q->queues[i];
240 if (old != &noop_qdisc) {
241 qdisc_tree_decrease_qlen(old,
242 old->q.qlen);
243 qdisc_destroy(old);
298 struct Qdisc **old)
307 *old = q->queues[band];
309 qdisc_tree_decrease_qlen(*old, (*old)
297 multiq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
[all...]
H A Dsch_prio.c200 struct Qdisc *child, *old; local
207 old = q->queues[i];
210 if (old != &noop_qdisc) {
211 qdisc_tree_decrease_qlen(old,
212 old->q.qlen);
213 qdisc_destroy(old);
261 struct Qdisc **old)
270 *old = q->queues[band];
272 qdisc_tree_decrease_qlen(*old, (*old)
260 prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
[all...]
H A Dsch_red.c309 struct Qdisc **old)
317 *old = q->qdisc;
319 qdisc_tree_decrease_qlen(*old, (*old)->q.qlen);
320 qdisc_reset(*old);
308 red_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
H A Dsch_tbf.c383 struct Qdisc **old)
391 *old = q->qdisc;
393 qdisc_tree_decrease_qlen(*old, (*old)->q.qlen);
394 qdisc_reset(*old);
382 tbf_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
H A Dsch_atm.c83 struct Qdisc *new, struct Qdisc **old)
88 pr_debug("atm_tc_graft(sch %p,[qdisc %p],flow %p,new %p,old %p)\n",
89 sch, p, flow, new, old);
94 *old = flow->q;
96 if (*old)
97 qdisc_reset(*old);
207 * native ATM API. In order to send a flow to a different VC, the old
82 atm_tc_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
H A Dsch_drr.c216 struct Qdisc *new, struct Qdisc **old)
229 *old = cl->qdisc;
215 drr_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
/net/caif/
H A Dcfmuxl.c89 struct cflayer *old; local
93 /* Two entries with same id is wrong, so remove old layer from mux */
94 old = get_from_id(&muxl->srvl_list, linkid);
95 if (old != NULL)
96 list_del_rcu(&old->node);
/net/core/
H A Ddst.c286 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old) argument
291 u32 *old_p = __DST_METRICS_PTR(old);
297 prev = cmpxchg(&dst->_metrics, old, new);
299 if (prev != old) {
311 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old) argument
316 prev = cmpxchg(&dst->_metrics, old, new);
317 if (prev == old)
318 kfree(__DST_METRICS_PTR(old));
H A Dnetprio_cgroup.c45 struct netprio_map *old, *new; local
49 old = rtnl_dereference(dev->priomap);
50 if (old && old->priomap_len > target_idx)
75 if (old)
76 memcpy(new->priomap, old->priomap,
77 old->priomap_len * sizeof(old->priomap[0]));
83 if (old)
84 kfree_rcu(old, rc
265 struct netprio_map *old; local
303 struct netprio_map *old; local
[all...]
/net/mac80211/
H A Dkey.c254 struct ieee80211_key *old,
266 if (old)
267 idx = old->conf.keyidx;
272 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx);
274 if (old)
275 idx = old->conf.keyidx;
279 defunikey = old &&
280 old == key_mtx_dereference(sdata->local,
282 defmultikey = old
251 ieee80211_key_replace(struct ieee80211_sub_if_data *sdata, struct sta_info *sta, bool pairwise, struct ieee80211_key *old, struct ieee80211_key *new) argument
[all...]
H A Drate.c691 struct ieee80211_sta_rates *old; local
699 old = rcu_dereference_protected(pubsta->rates, true);
701 if (old)
702 kfree_rcu(old, rcu_head);
H A Drc80211_minstrel.h29 minstrel_ewma(int old, int new, int weight) argument
31 return (new * (EWMA_DIV - weight) + old * weight) / EWMA_DIV;
/net/netfilter/ipvs/
H A Dip_vs_xmit.c76 struct ip_vs_dest_dst *old; local
78 old = rcu_dereference_protected(dest->dest_dst,
87 if (old)
88 call_rcu(&old->rcu_head, ip_vs_dest_dst_rcu_free);
244 /* skb to local stack, preserve old route */
421 /* skb to local stack, preserve old route */
867 /* fix old IP header checksum */
/net/atm/
H A Dclip.c248 int old; local
258 old = xchg(&clip_vcc->xoff, 0);
259 if (old)
334 int old; local
385 old = xchg(&entry->vccs->xoff, 1); /* assume XOFF ... */
386 if (old) {
/net/bluetooth/rfcomm/
H A Dtty.c857 static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old) argument
860 int old_baud_rate = tty_termios_baud_rate(old);
868 BT_DBG("tty %p termios %p", tty, old);
874 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS))
878 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) ||
879 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) {
899 if (old->c_cc[VSTOP] != new->c_cc[VSTOP]) {
908 if (old->c_cc[VSTART] != new->c_cc[VSTART]) {
918 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB))
930 if ((old
[all...]
/net/bridge/
H A Dbr_netfilter.c124 static u32 *fake_cow_metrics(struct dst_entry *dst, unsigned long old) argument
/net/ceph/
H A Dmon_client.c332 struct ceph_monmap *monmap = NULL, *old = monc->monmap; local
357 kfree(old);
/net/ipv4/
H A Dip_sockglue.c505 struct ip_options_rcu *old, *opt = NULL; local
513 old = rcu_dereference_protected(inet->inet_opt,
523 if (old)
524 icsk->icsk_ext_hdr_len -= old->opt.optlen;
533 if (old)
534 kfree_rcu(old, rcu);

Completed in 353 milliseconds

123