Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 108) sorted by relevance

12345

/net/irda/irnet/
Dirnet_irda.c751 irnet_socket * new = (irnet_socket *) NULL; in irnet_find_socket() local
770 new = (irnet_socket *) hashbin_find(irnet_server.list, in irnet_find_socket()
772 if(new) in irnet_find_socket()
774 new, new->rname); in irnet_find_socket()
781 if(new == (irnet_socket *) NULL) in irnet_find_socket()
783 new = (irnet_socket *) hashbin_get_first(irnet_server.list); in irnet_find_socket()
784 while(new !=(irnet_socket *) NULL) in irnet_find_socket()
787 if((new->rdaddr == self->daddr) || (new->daddr == self->daddr)) in irnet_find_socket()
791 new, self->daddr); in irnet_find_socket()
794 new = (irnet_socket *) hashbin_get_next(irnet_server.list); in irnet_find_socket()
[all …]
/net/netfilter/
Dnf_conntrack_extend.c79 struct nf_ct_ext *old, *new; in __nf_ct_ext_add_length() local
104 new = __krealloc(old, newlen, gfp); in __nf_ct_ext_add_length()
105 if (!new) in __nf_ct_ext_add_length()
108 if (new != old) { in __nf_ct_ext_add_length()
116 t->move((void *)new + new->offset[i], in __nf_ct_ext_add_length()
121 ct->ext = new; in __nf_ct_ext_add_length()
124 new->offset[id] = newoff; in __nf_ct_ext_add_length()
125 new->len = newlen; in __nf_ct_ext_add_length()
126 memset((void *)new + newoff, 0, newlen - newoff); in __nf_ct_ext_add_length()
127 return (void *)new + newoff; in __nf_ct_ext_add_length()
Dnf_conntrack_ecache.c171 struct nf_ct_event_notifier *new) in nf_conntrack_register_notifier() argument
183 rcu_assign_pointer(net->ct.nf_conntrack_event_cb, new); in nf_conntrack_register_notifier()
193 struct nf_ct_event_notifier *new) in nf_conntrack_unregister_notifier() argument
200 BUG_ON(notify != new); in nf_conntrack_unregister_notifier()
208 struct nf_exp_event_notifier *new) in nf_ct_expect_register_notifier() argument
220 rcu_assign_pointer(net->ct.nf_expect_event_cb, new); in nf_ct_expect_register_notifier()
230 struct nf_exp_event_notifier *new) in nf_ct_expect_unregister_notifier() argument
237 BUG_ON(notify != new); in nf_ct_expect_unregister_notifier()
Dxt_qtaguid.c201 struct rb_node **new = &(root->rb_node), *parent = NULL; in tag_node_tree_insert() local
204 while (*new) { in tag_node_tree_insert()
205 struct tag_node *this = rb_entry(*new, struct tag_node, in tag_node_tree_insert()
212 parent = *new; in tag_node_tree_insert()
214 new = &((*new)->rb_left); in tag_node_tree_insert()
216 new = &((*new)->rb_right); in tag_node_tree_insert()
222 rb_link_node(&data->node, parent, new); in tag_node_tree_insert()
288 struct rb_node **new = &(root->rb_node), *parent = NULL; in sock_tag_tree_insert() local
291 while (*new) { in sock_tag_tree_insert()
292 struct sock_tag *this = rb_entry(*new, struct sock_tag, in sock_tag_tree_insert()
[all …]
/net/dccp/ccids/lib/
Dloss_interval.c142 struct tfrc_loss_interval *cur = tfrc_lh_peek(lh), *new; in tfrc_lh_interval_add() local
147 new = tfrc_lh_demand_next(lh); in tfrc_lh_interval_add()
148 if (unlikely(new == NULL)) { in tfrc_lh_interval_add()
153 new->li_seqno = tfrc_rx_hist_loss_prev(rh)->tfrchrx_seqno; in tfrc_lh_interval_add()
154 new->li_ccval = tfrc_rx_hist_loss_prev(rh)->tfrchrx_ccval; in tfrc_lh_interval_add()
155 new->li_is_closed = 0; in tfrc_lh_interval_add()
158 lh->i_mean = new->li_length = (*calc_first_li)(sk); in tfrc_lh_interval_add()
160 cur->li_length = dccp_delta_seqno(cur->li_seqno, new->li_seqno); in tfrc_lh_interval_add()
161 new->li_length = dccp_delta_seqno(new->li_seqno, in tfrc_lh_interval_add()
/net/sched/
Dcls_cgroup.c101 struct cls_cgroup_head *new; in cls_cgroup_change() local
115 new = kzalloc(sizeof(*head), GFP_KERNEL); in cls_cgroup_change()
116 if (!new) in cls_cgroup_change()
119 tcf_exts_init(&new->exts, TCA_CGROUP_ACT, TCA_CGROUP_POLICE); in cls_cgroup_change()
121 new->handle = head->handle; in cls_cgroup_change()
123 new->handle = handle; in cls_cgroup_change()
125 new->tp = tp; in cls_cgroup_change()
142 tcf_exts_change(tp, &new->exts, &e); in cls_cgroup_change()
143 tcf_em_tree_change(tp, &new->ematches, &t); in cls_cgroup_change()
145 rcu_assign_pointer(tp->root, new); in cls_cgroup_change()
[all …]
Dcls_u32.c647 struct tc_u_knode *new; in u32_init_knode() local
650 new = kzalloc(sizeof(*n) + s->nkeys*sizeof(struct tc_u32_key), in u32_init_knode()
653 if (!new) in u32_init_knode()
656 RCU_INIT_POINTER(new->next, n->next); in u32_init_knode()
657 new->handle = n->handle; in u32_init_knode()
658 RCU_INIT_POINTER(new->ht_up, n->ht_up); in u32_init_knode()
661 new->ifindex = n->ifindex; in u32_init_knode()
663 new->fshift = n->fshift; in u32_init_knode()
664 new->res = n->res; in u32_init_knode()
665 RCU_INIT_POINTER(new->ht_down, n->ht_down); in u32_init_knode()
[all …]
Dsch_api.c40 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()
798 struct Qdisc *new, struct Qdisc *old) in qdisc_graft() argument
810 (new && new->flags & TCQ_F_INGRESS)) { in qdisc_graft()
820 if (new && new->ops->attach) in qdisc_graft()
829 old = dev_graft_qdisc(dev_queue, new); in qdisc_graft()
830 if (new && i > 0) in qdisc_graft()
831 atomic_inc(&new->refcnt); in qdisc_graft()
[all …]
/net/x25/
Dx25_facilities.c271 struct x25_facilities *new, struct x25_dte_facilities *dte) in x25_negotiate_facilities() argument
279 memcpy(new, ours, sizeof(*new)); in x25_negotiate_facilities()
294 new->reverse = theirs.reverse; in x25_negotiate_facilities()
303 new->throughput = (new->throughput & 0xf0) | theirs_in; in x25_negotiate_facilities()
308 new->throughput = (new->throughput & 0x0f) | theirs_out; in x25_negotiate_facilities()
315 new->pacsize_in = theirs.pacsize_in; in x25_negotiate_facilities()
319 new->pacsize_out = theirs.pacsize_out; in x25_negotiate_facilities()
326 new->winsize_in = theirs.winsize_in; in x25_negotiate_facilities()
330 new->winsize_out = theirs.winsize_out; in x25_negotiate_facilities()
/net/sunrpc/
Dauth.c328 struct rpc_cred_cache *new; in rpcauth_init_credcache() local
331 new = kmalloc(sizeof(*new), GFP_KERNEL); in rpcauth_init_credcache()
332 if (!new) in rpcauth_init_credcache()
334 new->hashbits = auth_hashbits; in rpcauth_init_credcache()
335 hashsize = 1U << new->hashbits; in rpcauth_init_credcache()
336 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL); in rpcauth_init_credcache()
337 if (!new->hashtable) in rpcauth_init_credcache()
339 spin_lock_init(&new->lock); in rpcauth_init_credcache()
340 auth->au_credcache = new; in rpcauth_init_credcache()
343 kfree(new); in rpcauth_init_credcache()
[all …]
Dsvcauth_unix.c51 struct unix_domain *new = NULL; in unix_domain_find() local
56 if (new && rv != &new->h) in unix_domain_find()
57 svcauth_unix_domain_release(&new->h); in unix_domain_find()
66 new = kmalloc(sizeof(*new), GFP_KERNEL); in unix_domain_find()
67 if (new == NULL) in unix_domain_find()
69 kref_init(&new->h.ref); in unix_domain_find()
70 new->h.name = kstrdup(name, GFP_KERNEL); in unix_domain_find()
71 if (new->h.name == NULL) { in unix_domain_find()
72 kfree(new); in unix_domain_find()
75 new->h.flavour = &svcauth_unix; in unix_domain_find()
[all …]
Dsvcauth.c139 auth_domain_lookup(char *name, struct auth_domain *new) in auth_domain_lookup() argument
155 if (new) in auth_domain_lookup()
156 hlist_add_head(&new->hash, head); in auth_domain_lookup()
158 return new; in auth_domain_lookup()
/net/sunrpc/auth_gss/
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); in rsi_init() local
132 new->out_handle.data = NULL; in rsi_init()
133 new->out_handle.len = 0; in rsi_init()
134 new->out_token.data = NULL; in rsi_init()
135 new->out_token.len = 0; in rsi_init()
136 new->in_handle.len = item->in_handle.len; in rsi_init()
138 new->in_token.len = item->in_token.len; in rsi_init()
140 new->in_handle.data = item->in_handle.data; in rsi_init()
142 new->in_token.data = item->in_token.data; in rsi_init()
[all …]
Dgss_mech_switch.c73 char *new; in make_auth_domain_name() local
75 new = kmalloc(strlen(name) + strlen(prefix) + 1, GFP_KERNEL); in make_auth_domain_name()
76 if (new) { in make_auth_domain_name()
77 strcpy(new, prefix); in make_auth_domain_name()
78 strcat(new, name); in make_auth_domain_name()
80 return new; in make_auth_domain_name()
/net/sctp/
Dauth.c96 struct sctp_shared_key *new; in sctp_auth_shkey_create() local
99 new = kzalloc(sizeof(struct sctp_shared_key), gfp); in sctp_auth_shkey_create()
100 if (!new) in sctp_auth_shkey_create()
103 INIT_LIST_HEAD(&new->key_list); in sctp_auth_shkey_create()
104 new->key_id = key_id; in sctp_auth_shkey_create()
106 return new; in sctp_auth_shkey_create()
193 struct sctp_auth_bytes *new; in sctp_auth_make_key_vector() local
205 new = sctp_auth_create_key(len, gfp); in sctp_auth_make_key_vector()
206 if (!new) in sctp_auth_make_key_vector()
209 memcpy(new->data, random, random_len); in sctp_auth_make_key_vector()
[all …]
Dassociola.c1092 struct sctp_association *new) in sctp_assoc_update() argument
1098 asoc->c = new->c; in sctp_assoc_update()
1099 asoc->peer.rwnd = new->peer.rwnd; in sctp_assoc_update()
1100 asoc->peer.sack_needed = new->peer.sack_needed; in sctp_assoc_update()
1101 asoc->peer.auth_capable = new->peer.auth_capable; in sctp_assoc_update()
1102 asoc->peer.i = new->peer.i; in sctp_assoc_update()
1109 if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) { in sctp_assoc_update()
1124 asoc->next_tsn = new->next_tsn; in sctp_assoc_update()
1125 asoc->ctsn_ack_point = new->ctsn_ack_point; in sctp_assoc_update()
1126 asoc->adv_peer_ack_point = new->adv_peer_ack_point; in sctp_assoc_update()
[all …]
/net/mac80211/
Dkey.c261 struct ieee80211_key *new) in ieee80211_key_replace() argument
267 if (WARN_ON(!new && !old)) in ieee80211_key_replace()
270 if (new) in ieee80211_key_replace()
271 list_add_tail(&new->list, &sdata->key_list); in ieee80211_key_replace()
273 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace()
278 idx = new->conf.keyidx; in ieee80211_key_replace()
282 rcu_assign_pointer(sta->ptk[idx], new); in ieee80211_key_replace()
285 rcu_assign_pointer(sta->gtk[idx], new); in ieee80211_key_replace()
299 if (defunikey && !new) in ieee80211_key_replace()
301 if (defmultikey && !new) in ieee80211_key_replace()
[all …]
/net/irda/
Ddiscovery.c60 void irlmp_add_discovery(hashbin_t *cachelog, discovery_t *new) in irlmp_add_discovery() argument
66 new->firststamp = new->timestamp; in irlmp_add_discovery()
83 if ((node->data.saddr == new->data.saddr) && in irlmp_add_discovery()
84 ((node->data.daddr == new->data.daddr) || in irlmp_add_discovery()
85 (strcmp(node->data.info, new->data.info) == 0))) in irlmp_add_discovery()
92 if (get_unaligned((__u16 *)node->data.hints) == get_unaligned((__u16 *)new->data.hints)) in irlmp_add_discovery()
94 new->firststamp = node->firststamp; in irlmp_add_discovery()
100 hashbin_insert(cachelog, (irda_queue_t *) new, new->data.daddr, NULL); in irlmp_add_discovery()
/net/6lowpan/
Diphc.c177 struct sk_buff *new; in skb_deliver() local
180 new = skb_copy_expand(skb, sizeof(struct ipv6hdr), skb_tailroom(skb), in skb_deliver()
184 if (!new) in skb_deliver()
187 skb_push(new, sizeof(struct ipv6hdr)); in skb_deliver()
188 skb_reset_network_header(new); in skb_deliver()
189 skb_copy_to_linear_data(new, hdr, sizeof(struct ipv6hdr)); in skb_deliver()
191 new->protocol = htons(ETH_P_IPV6); in skb_deliver()
192 new->pkt_type = PACKET_HOST; in skb_deliver()
193 new->dev = dev; in skb_deliver()
196 new->data, new->len); in skb_deliver()
[all …]
/net/dccp/
Dfeat.c395 struct dccp_feat_entry *new; in dccp_feat_clone_entry() local
401 new = kmemdup(original, sizeof(struct dccp_feat_entry), gfp_any()); in dccp_feat_clone_entry()
402 if (new == NULL) in dccp_feat_clone_entry()
405 if (type == FEAT_SP && dccp_feat_clone_sp_val(&new->val, in dccp_feat_clone_entry()
408 kfree(new); in dccp_feat_clone_entry()
411 return new; in dccp_feat_clone_entry()
487 struct dccp_feat_entry *new = dccp_feat_entry_new(fn_list, feat, local); in dccp_feat_push_change() local
489 if (new == NULL) in dccp_feat_push_change()
492 new->feat_num = feat; in dccp_feat_push_change()
493 new->is_local = local; in dccp_feat_push_change()
[all …]
Dackvec.c352 struct dccp_ackvec_parsed *new = kmalloc(sizeof(*new), GFP_ATOMIC); in dccp_ackvec_parsed_add() local
354 if (new == NULL) in dccp_ackvec_parsed_add()
356 new->vec = vec; in dccp_ackvec_parsed_add()
357 new->len = len; in dccp_ackvec_parsed_add()
358 new->nonce = nonce; in dccp_ackvec_parsed_add()
360 list_add_tail(&new->node, head); in dccp_ackvec_parsed_add()
/net/core/
Dnetprio_cgroup.c39 struct netprio_map *old, *new; in extend_netdev_table() local
55 sizeof(new->priomap[0]); in extend_netdev_table()
65 new = kzalloc(new_sz, GFP_KERNEL); in extend_netdev_table()
66 if (!new) in extend_netdev_table()
70 memcpy(new->priomap, old->priomap, in extend_netdev_table()
73 new->priomap_len = new_len; in extend_netdev_table()
76 rcu_assign_pointer(dev->priomap, new); in extend_netdev_table()
/net/wireless/
Dscan.c627 struct cfg80211_internal_bss *new) in cfg80211_combine_bsses() argument
635 ies = rcu_access_pointer(new->pub.beacon_ies); in cfg80211_combine_bsses()
657 if (!ether_addr_equal(bss->pub.bssid, new->pub.bssid)) in cfg80211_combine_bsses()
659 if (bss->pub.channel != new->pub.channel) in cfg80211_combine_bsses()
661 if (bss->pub.scan_width != new->pub.scan_width) in cfg80211_combine_bsses()
678 list_add(&bss->hidden_list, &new->hidden_list); in cfg80211_combine_bsses()
679 bss->pub.hidden_beacon_bss = &new->pub; in cfg80211_combine_bsses()
680 new->refcount += bss->refcount; in cfg80211_combine_bsses()
682 new->pub.beacon_ies); in cfg80211_combine_bsses()
786 struct cfg80211_internal_bss *new; in cfg80211_bss_update() local
[all …]
/net/ipv4/netfilter/
Dnf_nat_h323.c395 static void ip_nat_q931_expect(struct nf_conn *new, in ip_nat_q931_expect() argument
401 nf_nat_follow_master(new, this); in ip_nat_q931_expect()
406 BUG_ON(new->status & IPS_NAT_DONE_MASK); in ip_nat_q931_expect()
411 new->tuplehash[!this->dir].tuple.src.u3; in ip_nat_q931_expect()
412 nf_nat_setup_info(new, &range, NF_NAT_MANIP_SRC); in ip_nat_q931_expect()
418 new->master->tuplehash[!this->dir].tuple.src.u3; in ip_nat_q931_expect()
419 nf_nat_setup_info(new, &range, NF_NAT_MANIP_DST); in ip_nat_q931_expect()
494 static void ip_nat_callforwarding_expect(struct nf_conn *new, in ip_nat_callforwarding_expect() argument
500 BUG_ON(new->status & IPS_NAT_DONE_MASK); in ip_nat_callforwarding_expect()
505 new->tuplehash[!this->dir].tuple.src.u3; in ip_nat_callforwarding_expect()
[all …]
/net/bluetooth/rfcomm/
Dtty.c872 struct ktermios *new = &tty->termios; in rfcomm_tty_set_termios() local
874 int new_baud_rate = tty_termios_baud_rate(new); 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()
898 if (new->c_cflag & PARENB) { in rfcomm_tty_set_termios()
899 if (new->c_cflag & PARODD) { in rfcomm_tty_set_termios()
912 if (old->c_cc[VSTOP] != new->c_cc[VSTOP]) { in rfcomm_tty_set_termios()
914 x_on = new->c_cc[VSTOP]; in rfcomm_tty_set_termios()
921 if (old->c_cc[VSTART] != new->c_cc[VSTART]) { in rfcomm_tty_set_termios()
[all …]

12345