/net/core/ |
D | netprio_cgroup.c | 39 struct netprio_map *old, *new; in extend_netdev_table() local 43 old = rtnl_dereference(dev->priomap); in extend_netdev_table() 44 if (old && old->priomap_len > target_idx) in extend_netdev_table() 69 if (old) in extend_netdev_table() 70 memcpy(new->priomap, old->priomap, in extend_netdev_table() 71 old->priomap_len * sizeof(old->priomap[0])); in extend_netdev_table() 77 if (old) in extend_netdev_table() 78 kfree_rcu(old, rcu); in extend_netdev_table() 259 struct netprio_map *old; in netprio_device_event() local 268 old = rtnl_dereference(dev->priomap); in netprio_device_event() [all …]
|
D | dst.c | 295 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old) in dst_cow_metrics_generic() argument 300 u32 *old_p = __DST_METRICS_PTR(old); in dst_cow_metrics_generic() 306 prev = cmpxchg(&dst->_metrics, old, new); in dst_cow_metrics_generic() 308 if (prev != old) { in dst_cow_metrics_generic() 320 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old) in __dst_destroy_metrics_generic() argument 325 prev = cmpxchg(&dst->_metrics, old, new); in __dst_destroy_metrics_generic() 326 if (prev == old) in __dst_destroy_metrics_generic() 327 kfree(__DST_METRICS_PTR(old)); in __dst_destroy_metrics_generic()
|
D | sysctl_net_core.c | 183 unsigned int old, *ptr; in flow_limit_table_len_sysctl() local 189 old = *ptr; in flow_limit_table_len_sysctl() 192 *ptr = old; in flow_limit_table_len_sysctl()
|
D | skbuff.c | 714 static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old) in __copy_skb_header() argument 716 new->tstamp = old->tstamp; in __copy_skb_header() 718 new->dev = old->dev; in __copy_skb_header() 719 memcpy(new->cb, old->cb, sizeof(old->cb)); in __copy_skb_header() 720 skb_dst_copy(new, old); in __copy_skb_header() 722 new->sp = secpath_get(old->sp); in __copy_skb_header() 724 __nf_copy(new, old, false); in __copy_skb_header() 729 new->queue_mapping = old->queue_mapping; in __copy_skb_header() 731 memcpy(&new->headers_start, &old->headers_start, in __copy_skb_header() 935 static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old) in copy_skb_header() argument [all …]
|
/net/netfilter/ |
D | nf_conntrack_extend.c | 79 struct nf_ct_ext *old, *new; in __nf_ct_ext_add_length() local 86 old = ct->ext; in __nf_ct_ext_add_length() 87 if (!old) in __nf_ct_ext_add_length() 90 if (__nf_ct_ext_exist(old, id)) in __nf_ct_ext_add_length() 100 newoff = ALIGN(old->len, t->align); in __nf_ct_ext_add_length() 104 new = __krealloc(old, newlen, gfp); in __nf_ct_ext_add_length() 108 if (new != old) { in __nf_ct_ext_add_length() 110 if (!__nf_ct_ext_exist(old, i)) in __nf_ct_ext_add_length() 117 (void *)old + old->offset[i]); in __nf_ct_ext_add_length() 120 kfree_rcu(old, rcu); in __nf_ct_ext_add_length()
|
D | nf_conntrack_labels.c | 54 u32 old, tmp; in replace_u32() local 57 old = *address; in replace_u32() 58 tmp = (old & mask) ^ new; in replace_u32() 59 } while (cmpxchg(address, old, tmp) != old); in replace_u32()
|
D | nf_synproxy_core.c | 188 u32 *ptr, old; in synproxy_tstamp_adjust() local 217 old = *ptr; in synproxy_tstamp_adjust() 222 old = *ptr; in synproxy_tstamp_adjust() 227 old, *ptr, 0); in synproxy_tstamp_adjust()
|
/net/sched/ |
D | sch_multiq.c | 231 struct Qdisc *child, *old; in multiq_tune() local 238 old = q->queues[i]; in multiq_tune() 241 if (old != &noop_qdisc) { in multiq_tune() 242 qdisc_tree_reduce_backlog(old, in multiq_tune() 243 old->q.qlen, in multiq_tune() 244 old->qstats.backlog); in multiq_tune() 245 qdisc_destroy(old); in multiq_tune() 300 struct Qdisc **old) in multiq_graft() argument 308 *old = qdisc_replace(sch, new, &q->queues[band]); in multiq_graft()
|
D | sch_prio.c | 202 struct Qdisc *child, *old; in prio_tune() local 209 old = q->queues[i]; in prio_tune() 212 if (old != &noop_qdisc) { in prio_tune() 213 qdisc_tree_reduce_backlog(old, in prio_tune() 214 old->q.qlen, in prio_tune() 215 old->qstats.backlog); in prio_tune() 216 qdisc_destroy(old); in prio_tune() 264 struct Qdisc **old) in prio_graft() argument 272 *old = qdisc_replace(sch, new, &q->queues[band]); in prio_graft()
|
D | sch_mq.c | 81 struct Qdisc *qdisc, *old; in mq_attach() local 86 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mq_attach() 87 if (old) in mq_attach() 88 qdisc_destroy(old); in mq_attach() 149 struct Qdisc **old) in mq_graft() argument 157 *old = dev_graft_qdisc(dev_queue, new); in mq_graft()
|
D | sch_mqprio.c | 170 struct Qdisc *qdisc, *old; in mqprio_attach() local 176 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mqprio_attach() 177 if (old) in mqprio_attach() 178 qdisc_destroy(old); in mqprio_attach() 198 struct Qdisc **old) in mqprio_graft() argument 209 *old = dev_graft_qdisc(dev_queue, new); in mqprio_graft()
|
D | sch_api.c | 40 struct Qdisc *old, struct Qdisc *new); 778 struct Qdisc *old, struct Qdisc *new) in notify_and_destroy() argument 780 if (new || old) in notify_and_destroy() 781 qdisc_notify(net, skb, n, clid, old, new); in notify_and_destroy() 783 if (old) in notify_and_destroy() 784 qdisc_destroy(old); in notify_and_destroy() 798 struct Qdisc *new, struct Qdisc *old) in qdisc_graft() argument 800 struct Qdisc *q = old; in qdisc_graft() 829 old = dev_graft_qdisc(dev_queue, new); in qdisc_graft() 834 qdisc_destroy(old); in qdisc_graft() [all …]
|
D | sch_atm.c | 83 struct Qdisc *new, struct Qdisc **old) in atm_tc_graft() argument 89 sch, p, flow, new, old); in atm_tc_graft() 94 *old = flow->q; in atm_tc_graft() 96 if (*old) in atm_tc_graft() 97 qdisc_reset(*old); in atm_tc_graft()
|
/net/mac80211/ |
D | key.c | 260 struct ieee80211_key *old, in ieee80211_key_replace() argument 267 if (WARN_ON(!new && !old)) in ieee80211_key_replace() 273 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace() 275 if (old) in ieee80211_key_replace() 276 idx = old->conf.keyidx; in ieee80211_key_replace() 289 defunikey = old && in ieee80211_key_replace() 290 old == key_mtx_dereference(sdata->local, in ieee80211_key_replace() 292 defmultikey = old && in ieee80211_key_replace() 293 old == key_mtx_dereference(sdata->local, in ieee80211_key_replace() 295 defmgmtkey = old && in ieee80211_key_replace() [all …]
|
D | rc80211_minstrel.h | 29 minstrel_ewma(int old, int new, int weight) in minstrel_ewma() argument 31 return (new * (EWMA_DIV - weight) + old * weight) / EWMA_DIV; in minstrel_ewma()
|
D | cfg.c | 561 struct probe_resp *new, *old; in ieee80211_set_probe_resp() local 566 old = sdata_dereference(sdata->u.ap.probe_resp, sdata); in ieee80211_set_probe_resp() 581 if (old) in ieee80211_set_probe_resp() 582 kfree_rcu(old, rcu_head); in ieee80211_set_probe_resp() 591 struct beacon_data *new, *old; in ieee80211_assign_beacon() local 596 old = sdata_dereference(sdata->u.ap.beacon, sdata); in ieee80211_assign_beacon() 600 if (!params->head && !old) in ieee80211_assign_beacon() 607 new_head_len = old->head_len; in ieee80211_assign_beacon() 610 if (params->tail || !old) in ieee80211_assign_beacon() 614 new_tail_len = old->tail_len; in ieee80211_assign_beacon() [all …]
|
/net/bridge/ |
D | br_multicast.c | 173 struct net_bridge_mdb_htable *old = mdb->old; in br_mdb_free() local 175 mdb->old = NULL; in br_mdb_free() 176 kfree(old->mhash); in br_mdb_free() 177 kfree(old); in br_mdb_free() 181 struct net_bridge_mdb_htable *old, in br_mdb_copy() argument 189 for (i = 0; i < old->max; i++) in br_mdb_copy() 190 hlist_for_each_entry(mp, &old->mhash[i], hlist[old->ver]) in br_mdb_copy() 305 struct net_bridge_mdb_htable *old = rcu_dereference_protected(*mdbp, 1); in br_mdb_rehash() local 314 mdb->old = old; in br_mdb_rehash() 322 mdb->size = old ? old->size : 0; in br_mdb_rehash() [all …]
|
/net/caif/ |
D | cfmuxl.c | 89 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/ |
D | tty.c | 870 static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old) in rfcomm_tty_set_termios() argument 873 int old_baud_rate = tty_termios_baud_rate(old); in rfcomm_tty_set_termios() 881 BT_DBG("tty %p termios %p", tty, old); in rfcomm_tty_set_termios() 887 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS)) in rfcomm_tty_set_termios() 891 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) || in rfcomm_tty_set_termios() 892 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) { in rfcomm_tty_set_termios() 912 if (old->c_cc[VSTOP] != new->c_cc[VSTOP]) { in rfcomm_tty_set_termios() 921 if (old->c_cc[VSTART] != new->c_cc[VSTART]) { in rfcomm_tty_set_termios() 931 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB)) in rfcomm_tty_set_termios() 943 if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE)) in rfcomm_tty_set_termios()
|
/net/openvswitch/ |
D | vport.c | 349 struct vport_portids *old, *vport_portids; in ovs_vport_set_upcall_portids() local 354 old = ovsl_dereference(vport->upcall_portids); in ovs_vport_set_upcall_portids() 367 if (old) in ovs_vport_set_upcall_portids() 368 kfree_rcu(old, rcu); in ovs_vport_set_upcall_portids()
|
D | flow_table.c | 303 static void flow_table_copy_flows(struct table_instance *old, in flow_table_copy_flows() argument 309 old_ver = old->node_ver; in flow_table_copy_flows() 313 for (i = 0; i < old->n_buckets; i++) { in flow_table_copy_flows() 317 head = flex_array_get(old->buckets, i); in flow_table_copy_flows() 323 old->keep_flows = true; in flow_table_copy_flows()
|
/net/sunrpc/ |
D | cache.c | 139 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument 148 if (!test_bit(CACHE_VALID, &old->flags)) { in sunrpc_cache_update() 150 if (!test_bit(CACHE_VALID, &old->flags)) { in sunrpc_cache_update() 152 set_bit(CACHE_NEGATIVE, &old->flags); in sunrpc_cache_update() 154 detail->update(old, new); in sunrpc_cache_update() 155 cache_fresh_locked(old, new->expiry_time); in sunrpc_cache_update() 157 cache_fresh_unlocked(old, detail); in sunrpc_cache_update() 158 return old; in sunrpc_cache_update() 165 cache_put(old, detail); in sunrpc_cache_update() 169 detail->init(tmp, old); in sunrpc_cache_update() [all …]
|
/net/atm/ |
D | clip.c | 248 int old; in clip_pop() local 258 old = xchg(&clip_vcc->xoff, 0); in clip_pop() 259 if (old) in clip_pop() 334 int old; in clip_start_xmit() local 385 old = xchg(&entry->vccs->xoff, 1); /* assume XOFF ... */ in clip_start_xmit() 386 if (old) { in clip_start_xmit()
|
/net/wireless/ |
D | scan.c | 713 const struct cfg80211_bss_ies *old; in cfg80211_bss_update() local 715 old = rcu_access_pointer(found->pub.proberesp_ies); in cfg80211_bss_update() 722 if (old) in cfg80211_bss_update() 723 kfree_rcu((struct cfg80211_bss_ies *)old, in cfg80211_bss_update() 726 const struct cfg80211_bss_ies *old; in cfg80211_bss_update() local 749 old = rcu_access_pointer(found->pub.beacon_ies); in cfg80211_bss_update() 755 if (old == rcu_access_pointer(found->pub.ies)) in cfg80211_bss_update() 765 WARN_ON(ies != old); in cfg80211_bss_update() 771 if (old) in cfg80211_bss_update() 772 kfree_rcu((struct cfg80211_bss_ies *)old, in cfg80211_bss_update()
|
/net/rds/ |
D | ib_recv.c | 424 struct list_head *old, *chpfirst; in rds_ib_recv_cache_put() local 447 old = xchg(&cache->xfer, NULL); in rds_ib_recv_cache_put() 448 if (old) in rds_ib_recv_cache_put() 449 list_splice_entire_tail(old, chpfirst); in rds_ib_recv_cache_put() 450 old = cmpxchg(&cache->xfer, NULL, chpfirst); in rds_ib_recv_cache_put() 451 } while (old); in rds_ib_recv_cache_put()
|