Searched refs:new (Results 1 - 25 of 96) sorted by relevance

1234

/net/ipv6/
H A Doutput_core.c12 int old, new; local
30 new = old + 1;
31 if (!new)
32 new = 1;
33 } while (atomic_cmpxchg(&ipv6_fragmentation_id, old, new) != old);
34 fhdr->identification = htonl(new);
/net/irda/irnet/
H A Dirnet_irda.c338 /* Close the last instance of IrIAP, and open a new one.
345 /* Create a new IAP instance */
751 irnet_socket * new = (irnet_socket *) NULL; local
770 new = (irnet_socket *) hashbin_find(irnet_server.list,
772 if(new)
774 new, new->rname);
781 if(new == (irnet_socket *) NULL)
783 new = (irnet_socket *) hashbin_get_first(irnet_server.list);
784 while(new !
832 irnet_connect_socket(irnet_socket * server, irnet_socket * new, struct qos_info * qos, __u32 max_sdu_size, __u8 max_header_size) argument
1341 irnet_socket * new = (irnet_socket *) NULL; local
[all...]
/net/dccp/ccids/lib/
H A Dloss_interval.c108 * subsequent packets as belonging to a new loss interval. This
122 /* Determine if `new_loss' does begin a new loss interval [RFC 4342, 10.2] */
131 * tfrc_lh_interval_add - Insert new record into the Loss Interval database
137 * Updates I_mean and returns 1 if a new interval has in fact been added to @lh.
142 struct tfrc_loss_interval *cur = tfrc_lh_peek(lh), *new; local
147 new = tfrc_lh_demand_next(lh);
148 if (unlikely(new == NULL)) {
153 new->li_seqno = tfrc_rx_hist_loss_prev(rh)->tfrchrx_seqno;
154 new->li_ccval = tfrc_rx_hist_loss_prev(rh)->tfrchrx_ccval;
155 new
[all...]
/net/x25/
H A Dx25_facilities.c5 * randomly fail to work with new releases, misbehave and/or generally
265 struct x25_facilities *new, struct x25_dte_facilities *dte)
273 memcpy(new, ours, sizeof(*new));
287 new->reverse = theirs.reverse;
296 new->throughput = (new->throughput & 0xf0) | theirs_in;
301 new->throughput = (new->throughput & 0x0f) | theirs_out;
308 new
264 x25_negotiate_facilities(struct sk_buff *skb, struct sock *sk, struct x25_facilities *new, struct x25_dte_facilities *dte) argument
[all...]
/net/netfilter/
H A Dnf_conntrack_extend.c75 struct nf_ct_ext *old, *new; local
97 new = __krealloc(old, newlen, gfp);
98 if (!new)
101 if (new != old) {
109 t->move((void *)new + new->offset[i],
114 ct->ext = new;
117 new->offset[id] = newoff;
118 new->len = newlen;
119 memset((void *)new
[all...]
H A Dnf_conntrack_ecache.c87 struct nf_ct_event_notifier *new)
99 rcu_assign_pointer(net->ct.nf_conntrack_event_cb, new);
109 struct nf_ct_event_notifier *new)
116 BUG_ON(notify != new);
123 struct nf_exp_event_notifier *new)
135 rcu_assign_pointer(net->ct.nf_expect_event_cb, new);
145 struct nf_exp_event_notifier *new)
152 BUG_ON(notify != new);
86 nf_conntrack_register_notifier(struct net *net, struct nf_ct_event_notifier *new) argument
108 nf_conntrack_unregister_notifier(struct net *net, struct nf_ct_event_notifier *new) argument
122 nf_ct_expect_register_notifier(struct net *net, struct nf_exp_event_notifier *new) argument
144 nf_ct_expect_unregister_notifier(struct net *net, struct nf_exp_event_notifier *new) argument
H A Dnf_conntrack_labels.c56 static void replace_u32(u32 *address, u32 mask, u32 new) argument
62 tmp = (old & mask) ^ new;
/net/irda/
H A Ddiscovery.c50 * Add a new discovery to the cachelog, and remove any old discoveries
56 * discovered is "new" or just the same old one. They can't rely there
57 * on a binary flag (new/old), because not all discovery events are
59 * miss some new devices popping up...
62 void irlmp_add_discovery(hashbin_t *cachelog, discovery_t *new) argument
67 /* Set time of first discovery if node is new (see below) */
68 new->firststamp = new->timestamp;
85 if ((node->data.saddr == new->data.saddr) &&
86 ((node->data.daddr == new
[all...]
/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c81 static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old);
129 struct rsi *new = container_of(cnew, struct rsi, h); local
132 new->out_handle.data = NULL;
133 new->out_handle.len = 0;
134 new->out_token.data = NULL;
135 new->out_token.len = 0;
136 new->in_handle.len = item->in_handle.len;
138 new->in_token.len = item->in_token.len;
140 new->in_handle.data = item->in_handle.data;
142 new
148 struct rsi *new = container_of(cnew, struct rsi, h); local
292 rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old) argument
363 struct rsc *new = container_of(a, struct rsc, h); local
372 struct rsc *new = container_of(cnew, struct rsc, h); local
387 struct rsc *new = container_of(cnew, struct rsc, h); local
553 rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old) argument
779 struct gss_domain *new; local
[all...]
H A Dgss_mech_switch.c73 char *new; local
75 new = kmalloc(strlen(name) + strlen(prefix) + 1, GFP_KERNEL);
76 if (new) {
77 strcpy(new, prefix);
78 strcat(new, name);
80 return new;
/net/mac80211/
H A Dkey.c255 struct ieee80211_key *new)
260 if (new)
261 list_add_tail(&new->list, &sdata->key_list);
264 rcu_assign_pointer(sta->ptk, new);
269 idx = new->conf.keyidx;
270 rcu_assign_pointer(sta->gtk[idx], new);
272 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx);
277 idx = new->conf.keyidx;
289 if (defunikey && !new)
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 Drc80211_minstrel.h29 minstrel_ewma(int old, int new, int weight) argument
31 return (new * (EWMA_DIV - weight) + old * weight) / EWMA_DIV;
/net/sctp/
H A Dauth.c79 /* Create a new key structure of a given length */
100 /* Create a new shared key container with a give key id */
103 struct sctp_shared_key *new; local
106 new = kzalloc(sizeof(struct sctp_shared_key), gfp);
107 if (!new)
110 INIT_LIST_HEAD(&new->key_list);
111 new->key_id = key_id;
113 return new;
200 struct sctp_auth_bytes *new; local
212 new
369 struct sctp_shared_key *new; local
[all...]
H A Dtsnmap.c365 unsigned long *new; local
375 new = kzalloc(len>>3, GFP_ATOMIC);
376 if (!new)
379 bitmap_copy(new, map->tsn_map,
382 map->tsn_map = new;
/net/core/
H A Dnetprio_cgroup.c45 struct netprio_map *old, *new; local
54 * Determine the new size. Let's keep it power-of-two. We start
61 sizeof(new->priomap[0]);
71 new = kzalloc(new_sz, GFP_KERNEL);
72 if (!new)
76 memcpy(new->priomap, old->priomap,
79 new->priomap_len = new_len;
81 /* install the new priomap */
82 rcu_assign_pointer(dev->priomap, new);
H A Ddst.c29 * new entries from both BH and non-BH context.
292 unsigned long prev, new; local
296 new = (unsigned long) p;
297 prev = cmpxchg(&dst->_metrics, old, new);
313 unsigned long prev, new; local
315 new = ((unsigned long) dst_default_metrics) | DST_METRICS_READ_ONLY;
316 prev = cmpxchg(&dst->_metrics, old, new);
/net/sunrpc/
H A Dsvcauth_unix.c51 struct unix_domain *new = NULL; local
56 if (new && rv != &new->h)
57 svcauth_unix_domain_release(&new->h);
66 new = kmalloc(sizeof(*new), GFP_KERNEL);
67 if (new == NULL)
69 kref_init(&new->h.ref);
70 new->h.name = kstrdup(name, GFP_KERNEL);
71 if (new
114 struct ip_map *new = container_of(cnew, struct ip_map, h); local
120 struct ip_map *new = container_of(cnew, struct ip_map, h); local
128 struct ip_map *new = container_of(cnew, struct ip_map, h); local
435 struct unix_gid *new = container_of(cnew, struct unix_gid, h); local
440 struct unix_gid *new = container_of(cnew, struct unix_gid, h); local
446 struct unix_gid *new = container_of(cnew, struct unix_gid, h); local
[all...]
H A Dauth.c324 struct rpc_cred_cache *new; local
327 new = kmalloc(sizeof(*new), GFP_KERNEL);
328 if (!new)
330 new->hashbits = auth_hashbits;
331 hashsize = 1U << new->hashbits;
332 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL);
333 if (!new->hashtable)
335 spin_lock_init(&new
484 *entry, *new; local
617 struct rpc_cred *new; local
[all...]
H A Dsvcauth.c115 * it's second argument 'new'. If this is non-null, it will
137 auth_domain_lookup(char *name, struct auth_domain *new) argument
153 if (new)
154 hlist_add_head(&new->hash, head);
156 return new;
/net/dccp/
H A Dfeat.c182 * Other features: add cases for new feature types here after adding
395 struct dccp_feat_entry *new; local
401 new = kmemdup(original, sizeof(struct dccp_feat_entry), gfp_any());
402 if (new == NULL)
405 if (type == FEAT_SP && dccp_feat_clone_sp_val(&new->val,
408 kfree(new);
411 return new;
487 struct dccp_feat_entry *new = dccp_feat_entry_new(fn_list, feat, local); local
489 if (new == NULL)
492 new
515 struct dccp_feat_entry *new = dccp_feat_entry_new(fn_list, feat, local); local
557 struct dccp_feat_entry *entry, *new; local
[all...]
H A Dackvec.c193 * dccp_ackvec_add_new - Record one or more new entries in Ack Vector buffer
352 struct dccp_ackvec_parsed *new = kmalloc(sizeof(*new), GFP_ATOMIC); local
354 if (new == NULL)
356 new->vec = vec;
357 new->len = len;
358 new->nonce = nonce;
360 list_add_tail(&new->node, head);
/net/wireless/
H A Dscan.c484 * the new BSS ("a").
618 struct cfg80211_internal_bss *new)
626 ies = rcu_access_pointer(new->pub.beacon_ies);
648 if (!ether_addr_equal(bss->pub.bssid, new->pub.bssid))
650 if (bss->pub.channel != new->pub.channel)
670 list_add(&bss->hidden_list, &new->hidden_list);
671 bss->pub.hidden_beacon_bss = &new->pub;
672 new->refcount += bss->refcount;
674 new->pub.beacon_ies);
771 struct cfg80211_internal_bss *new; local
617 cfg80211_combine_bsses(struct cfg80211_registered_device *dev, struct cfg80211_internal_bss *new) argument
[all...]
/net/sched/
H A Dsch_mq.c144 static int mq_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, argument
153 *old = dev_graft_qdisc(dev_queue, new);
154 if (new)
155 new->flags |= TCQ_F_ONETXQUEUE;
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);
63 if (new == NULL) {
64 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops,
66 if (new == NULL)
67 new = &noop_qdisc;
72 p->q = new;
55 dsmark_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) argument
/net/bluetooth/rfcomm/
H A Dtty.c859 struct ktermios *new = &tty->termios; local
861 int new_baud_rate = tty_termios_baud_rate(new);
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))) {
885 if (new->c_cflag & PARENB) {
886 if (new->c_cflag & PARODD) {
899 if (old->c_cc[VSTOP] != new->c_cc[VSTOP]) {
901 x_on = new->c_cc[VSTOP];
908 if (old->c_cc[VSTART] != new
[all...]

Completed in 283 milliseconds

1234