Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 90) sorted by relevance

1234

/net/smc/
Dsmc_cdc.h167 union smc_host_cursor *old, in smc_curs_diff() argument
170 if (old->wrap != new->wrap) in smc_curs_diff()
172 ((size - old->count) + new->count)); in smc_curs_diff()
174 return max_t(int, 0, (new->count - old->count)); in smc_curs_diff()
181 union smc_host_cursor *old, in smc_curs_comp() argument
184 if (old->wrap > new->wrap || in smc_curs_comp()
185 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp()
186 return -smc_curs_diff(size, new, old); in smc_curs_comp()
187 return smc_curs_diff(size, old, new); in smc_curs_comp()
194 union smc_host_cursor *old, in smc_curs_diff_large() argument
[all …]
/net/netfilter/
Dnf_conntrack_extend.c43 struct nf_ct_ext *old, *new; in nf_ct_ext_add() local
49 old = ct->ext; in nf_ct_ext_add()
51 if (old) { in nf_ct_ext_add()
52 if (__nf_ct_ext_exist(old, id)) in nf_ct_ext_add()
54 oldlen = old->len; in nf_ct_ext_add()
71 kmemleak_not_leak(old); in nf_ct_ext_add()
72 new = __krealloc(old, alloc, gfp); in nf_ct_ext_add()
76 if (!old) { in nf_ct_ext_add()
79 } else if (new != old) { in nf_ct_ext_add()
80 kfree_rcu(old, rcu); in nf_ct_ext_add()
Dcore.c104 nf_hook_entries_grow(const struct nf_hook_entries *old, in nf_hook_entries_grow() argument
114 old_entries = old ? old->num_hook_entries : 0; in nf_hook_entries_grow()
116 if (old) { in nf_hook_entries_grow()
117 orig_ops = nf_hook_entries_get_hook_ops(old); in nf_hook_entries_grow()
144 new->hooks[nhooks] = old->hooks[i]; in nf_hook_entries_grow()
222 static void *__nf_hook_entries_try_shrink(struct nf_hook_entries *old, in __nf_hook_entries_try_shrink() argument
230 if (WARN_ON_ONCE(!old)) in __nf_hook_entries_try_shrink()
233 orig_ops = nf_hook_entries_get_hook_ops(old); in __nf_hook_entries_try_shrink()
234 for (i = 0; i < old->num_hook_entries; i++) { in __nf_hook_entries_try_shrink()
240 hook_entries = old->num_hook_entries; in __nf_hook_entries_try_shrink()
[all …]
Dnf_conntrack_labels.c18 u32 old, tmp; in replace_u32() local
21 old = *address; in replace_u32()
22 tmp = (old & mask) ^ new; in replace_u32()
23 if (old == tmp) in replace_u32()
25 } while (cmpxchg(address, old, tmp) != old); in replace_u32()
Dnft_exthdr.c244 } old, new; in nft_exthdr_tcp_set_eval() local
267 old.v16 = get_unaligned((u16 *)(opt + offset)); in nft_exthdr_tcp_set_eval()
274 if (ntohs(old.v16) <= ntohs(new.v16)) in nft_exthdr_tcp_set_eval()
279 if (old.v16 == new.v16) in nft_exthdr_tcp_set_eval()
284 old.v16, new.v16, false); in nft_exthdr_tcp_set_eval()
288 old.v32 = get_unaligned((u32 *)(opt + offset)); in nft_exthdr_tcp_set_eval()
290 if (old.v32 == new.v32) in nft_exthdr_tcp_set_eval()
295 old.v32, new.v32, false); in nft_exthdr_tcp_set_eval()
/net/core/
Dnetprio_cgroup.c43 struct netprio_map *old, *new; in extend_netdev_table() local
47 old = rtnl_dereference(dev->priomap); in extend_netdev_table()
48 if (old && old->priomap_len > target_idx) in extend_netdev_table()
73 if (old) in extend_netdev_table()
74 memcpy(new->priomap, old->priomap, in extend_netdev_table()
75 old->priomap_len * sizeof(old->priomap[0])); in extend_netdev_table()
81 if (old) in extend_netdev_table()
82 kfree_rcu(old, rcu); in extend_netdev_table()
275 struct netprio_map *old; in netprio_device_event() local
284 old = rtnl_dereference(dev->priomap); in netprio_device_event()
[all …]
Dgen_estimator.c132 struct net_rate_estimator *old, *est; in gen_new_estimator() local
172 old = rcu_dereference_protected(*rate_est, 1); in gen_new_estimator()
173 if (old) { in gen_new_estimator()
174 del_timer_sync(&old->timer); in gen_new_estimator()
175 est->avbps = old->avbps; in gen_new_estimator()
176 est->avpps = old->avpps; in gen_new_estimator()
186 if (old) in gen_new_estimator()
187 kfree_rcu(old, rcu); in gen_new_estimator()
Ddst.c199 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old) in dst_cow_metrics_generic() argument
204 struct dst_metrics *old_p = (struct dst_metrics *)__DST_METRICS_PTR(old); in dst_cow_metrics_generic()
211 prev = cmpxchg(&dst->_metrics, old, new); in dst_cow_metrics_generic()
213 if (prev != old) { in dst_cow_metrics_generic()
229 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old) in __dst_destroy_metrics_generic() argument
234 prev = cmpxchg(&dst->_metrics, old, new); in __dst_destroy_metrics_generic()
235 if (prev == old) in __dst_destroy_metrics_generic()
236 kfree(__DST_METRICS_PTR(old)); in __dst_destroy_metrics_generic()
/net/mac80211/
Dkey.c288 static void ieee80211_pairwise_rekey(struct ieee80211_key *old, in ieee80211_pairwise_rekey() argument
318 } else if (old) { in ieee80211_pairwise_rekey()
324 if (!(old->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)) in ieee80211_pairwise_rekey()
328 old->flags |= KEY_FLAG_TAINTED; in ieee80211_pairwise_rekey()
342 ieee80211_flush_queues(local, old->sdata, false); in ieee80211_pairwise_rekey()
405 struct ieee80211_key *old, in ieee80211_key_replace() argument
413 if (WARN_ON(!new && !old)) in ieee80211_key_replace()
419 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace()
425 ieee80211_pairwise_rekey(old, new); in ieee80211_key_replace()
428 if (old) { in ieee80211_key_replace()
[all …]
Drc80211_minstrel.h25 minstrel_ewma(int old, int new, int weight) in minstrel_ewma() argument
29 diff = new - old; in minstrel_ewma()
32 return old + incr; in minstrel_ewma()
/net/sched/
Dsch_mq.c110 struct Qdisc *qdisc, *old; in mq_attach() local
115 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mq_attach()
116 if (old) in mq_attach()
117 qdisc_put(old); in mq_attach()
191 struct Qdisc **old, struct netlink_ext_ack *extack) in mq_graft() argument
200 *old = dev_graft_qdisc(dev_queue, new); in mq_graft()
211 qdisc_offload_graft_helper(qdisc_dev(sch), sch, new, *old, in mq_graft()
Dsch_multiq.c214 struct Qdisc *child, *old; in multiq_tune() local
221 old = q->queues[i]; in multiq_tune()
226 if (old != &noop_qdisc) in multiq_tune()
227 qdisc_purge_queue(old); in multiq_tune()
229 qdisc_put(old); in multiq_tune()
282 struct Qdisc **old, struct netlink_ext_ack *extack) in multiq_graft() argument
290 *old = qdisc_replace(sch, new, &q->queues[band]); in multiq_graft()
Dsch_api.c831 struct Qdisc *new, struct Qdisc *old, in qdisc_offload_graft_helper() argument
852 any_qdisc_is_offloaded |= old && old->flags & TCQ_F_OFFLOADED; in qdisc_offload_graft_helper()
860 struct Qdisc *new, struct Qdisc *old, in qdisc_offload_graft_root() argument
867 (old && old->flags & TCQ_F_INGRESS), in qdisc_offload_graft_root()
870 qdisc_offload_graft_helper(dev, NULL, new, old, in qdisc_offload_graft_root()
965 struct Qdisc *old, struct Qdisc *new) in qdisc_notify() argument
974 if (old && !tc_qdisc_dump_ignore(old, false)) { in qdisc_notify()
975 if (tc_fill_qdisc(skb, old, clid, portid, n->nlmsg_seq, in qdisc_notify()
981 old ? NLM_F_REPLACE : 0, RTM_NEWQDISC) < 0) in qdisc_notify()
996 struct Qdisc *old, struct Qdisc *new) in notify_and_destroy() argument
[all …]
Dsch_tbf.c300 struct Qdisc *old = NULL; in tbf_change() local
392 old = q->qdisc; in tbf_change()
412 qdisc_put(old); in tbf_change()
492 struct Qdisc **old, struct netlink_ext_ack *extack) in tbf_graft() argument
499 *old = qdisc_replace(sch, new, &q->qdisc); in tbf_graft()
Dsch_red.c373 struct Qdisc *new, struct Qdisc *old, in red_graft_offload() argument
383 qdisc_offload_graft_helper(qdisc_dev(sch), sch, new, old, in red_graft_offload()
388 struct Qdisc **old, struct netlink_ext_ack *extack) in red_graft() argument
395 *old = qdisc_replace(sch, new, &q->qdisc); in red_graft()
397 red_graft_offload(sch, new, *old, extack); in red_graft()
/net/ipv4/
Dnexthop.c607 static int fib6_check_nh_list(struct nexthop *old, struct nexthop *new, in fib6_check_nh_list() argument
612 if (list_empty(&old->f6i_list)) in fib6_check_nh_list()
615 list_for_each_entry(f6i, &old->f6i_list, nh_list) { in fib6_check_nh_list()
671 static int fib_check_nh_list(struct nexthop *old, struct nexthop *new, in fib_check_nh_list() argument
676 list_for_each_entry(fi, &old->fi_list, nh_list) { in fib_check_nh_list()
853 static int replace_nexthop_grp(struct net *net, struct nexthop *old, in replace_nexthop_grp() argument
865 oldg = rtnl_dereference(old->nh_grp); in replace_nexthop_grp()
870 newg->nh_entries[i].nh_parent = old; in replace_nexthop_grp()
872 rcu_assign_pointer(old->nh_grp, newg); in replace_nexthop_grp()
882 static int replace_nexthop_single(struct net *net, struct nexthop *old, in replace_nexthop_single() argument
[all …]
/net/sunrpc/
Dsvcauth.c115 struct auth_ops *old; in svc_auth_register() local
119 old = cmpxchg((struct auth_ops ** __force)&authtab[flavor], NULL, aops); in svc_auth_register()
120 if (old == NULL || old == aops) in svc_auth_register()
Dauth.c111 const struct rpc_authops *old; in rpcauth_register() local
116 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], NULL, ops); in rpcauth_register()
117 if (old == NULL || old == ops) in rpcauth_register()
126 const struct rpc_authops *old; in rpcauth_unregister() local
132 old = cmpxchg((const struct rpc_authops ** __force)&auth_flavors[flavor], ops, NULL); in rpcauth_unregister()
133 if (old == ops || old == NULL) in rpcauth_unregister()
Dcache.c165 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument
173 if (!test_bit(CACHE_VALID, &old->flags)) { in sunrpc_cache_update()
175 if (!test_bit(CACHE_VALID, &old->flags)) { in sunrpc_cache_update()
177 set_bit(CACHE_NEGATIVE, &old->flags); in sunrpc_cache_update()
179 detail->update(old, new); in sunrpc_cache_update()
180 cache_fresh_locked(old, new->expiry_time, detail); in sunrpc_cache_update()
182 cache_fresh_unlocked(old, detail); in sunrpc_cache_update()
183 return old; in sunrpc_cache_update()
190 cache_put(old, detail); in sunrpc_cache_update()
194 detail->init(tmp, old); in sunrpc_cache_update()
[all …]
/net/ipv6/
Dcalipso.c782 struct ipv6_txoptions *old = txopt_get(inet6_sk(sk)), *txopts; in calipso_opt_update() local
784 txopts = ipv6_renew_options(sk, old, IPV6_HOPOPTS, hop); in calipso_opt_update()
785 txopt_put(old); in calipso_opt_update()
1130 struct ipv6_opt_hdr *old, *new; in calipso_sock_setattr() local
1133 old = NULL; in calipso_sock_setattr()
1135 old = txopts->hopopt; in calipso_sock_setattr()
1137 new = calipso_opt_insert(old, doi_def, secattr); in calipso_sock_setattr()
1195 struct ipv6_opt_hdr *old, *new; in calipso_req_setattr() local
1199 old = req_inet->ipv6_opt->hopopt; in calipso_req_setattr()
1201 old = NULL; in calipso_req_setattr()
[all …]
/net/sctp/
Dstream_sched_prio.c168 struct sctp_stream_priorities *prio_head, *old; in sctp_sched_prio_set() local
171 old = soute->prio_head; in sctp_sched_prio_set()
172 if (old && old->prio == prio) in sctp_sched_prio_set()
184 sctp_sched_prio_head_put(old); in sctp_sched_prio_set()
Dstream_sched.c138 struct sctp_sched_ops *old = asoc->outqueue.sched; in sctp_sched_set_sched() local
143 if (old == n) in sctp_sched_set_sched()
149 if (old) { in sctp_sched_set_sched()
150 old->free(&asoc->stream); in sctp_sched_set_sched()
/net/caif/
Dcfmuxl.c89 struct cflayer *old; in cfmuxl_set_uplayer() local
94 old = get_from_id(&muxl->srvl_list, linkid); in cfmuxl_set_uplayer()
95 if (old != NULL) in cfmuxl_set_uplayer()
96 list_del_rcu(&old->node); in cfmuxl_set_uplayer()
/net/bluetooth/rfcomm/
Dtty.c856 static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old) in rfcomm_tty_set_termios() argument
859 int old_baud_rate = tty_termios_baud_rate(old); in rfcomm_tty_set_termios()
867 BT_DBG("tty %p termios %p", tty, old); in rfcomm_tty_set_termios()
873 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS)) in rfcomm_tty_set_termios()
877 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) || in rfcomm_tty_set_termios()
878 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) { in rfcomm_tty_set_termios()
898 if (old->c_cc[VSTOP] != new->c_cc[VSTOP]) { in rfcomm_tty_set_termios()
907 if (old->c_cc[VSTART] != new->c_cc[VSTART]) { in rfcomm_tty_set_termios()
917 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB)) in rfcomm_tty_set_termios()
929 if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE)) in rfcomm_tty_set_termios()
/net/openvswitch/
Dvport.c336 struct vport_portids *old, *vport_portids; in ovs_vport_set_upcall_portids() local
341 old = ovsl_dereference(vport->upcall_portids); in ovs_vport_set_upcall_portids()
354 if (old) in ovs_vport_set_upcall_portids()
355 kfree_rcu(old, rcu); in ovs_vport_set_upcall_portids()

1234