| /net/sched/ |
| A D | act_police.c | 154 new = kzalloc(sizeof(*new), GFP_KERNEL); in tcf_police_init() 155 if (unlikely(!new)) { in tcf_police_init() 163 if (!new->tcfp_mtu) { in tcf_police_init() 164 new->tcfp_mtu = ~0; in tcf_police_init() 186 if (new->peak_present) in tcf_police_init() 187 new->tcfp_mtu_ptoks = (s64)psched_l2t_ns(&new->peak, in tcf_police_init() 188 new->tcfp_mtu); in tcf_police_init() 206 if (new->peak_present) in tcf_police_init() 211 new, in tcf_police_init() 217 if (new) in tcf_police_init() [all …]
|
| A D | cls_matchall.c | 171 struct cls_mall_head *new; in mall_change() local 192 new = kzalloc(sizeof(*new), GFP_KERNEL); in mall_change() 193 if (!new) in mall_change() 202 new->handle = handle; in mall_change() 203 new->flags = userflags; in mall_change() 205 if (!new->pf) { in mall_change() 211 &new->exts, flags, new->flags, extack); in mall_change() 222 err = mall_replace_hw_filter(tp, new, (unsigned long)new, in mall_change() 228 if (!tc_in_hw(new->flags)) in mall_change() 241 free_percpu(new->pf); in mall_change() [all …]
|
| A D | cls_cgroup.c | 86 struct cls_cgroup_head *new; in cls_cgroup_change() local 98 new = kzalloc(sizeof(*head), GFP_KERNEL); in cls_cgroup_change() 99 if (!new) in cls_cgroup_change() 102 err = tcf_exts_init(&new->exts, net, TCA_CGROUP_ACT, TCA_CGROUP_POLICE); in cls_cgroup_change() 105 new->handle = handle; in cls_cgroup_change() 106 new->tp = tp; in cls_cgroup_change() 113 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &new->exts, flags, in cls_cgroup_change() 118 err = tcf_em_tree_validate(tp, tb[TCA_CGROUP_EMATCHES], &new->ematches); in cls_cgroup_change() 122 rcu_assign_pointer(tp->root, new); in cls_cgroup_change() 129 tcf_exts_destroy(&new->exts); in cls_cgroup_change() [all …]
|
| A D | cls_u32.c | 827 struct tc_u_knode *new; in u32_init_knode() local 829 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode() 830 if (!new) in u32_init_knode() 834 new->handle = n->handle; in u32_init_knode() 839 new->flags = n->flags; in u32_init_knode() 847 new->pf = n->pf; in u32_init_knode() 851 new->val = n->val; in u32_init_knode() 852 new->mask = n->mask; in u32_init_knode() 859 kfree(new); in u32_init_knode() 867 return new; in u32_init_knode() [all …]
|
| A D | sch_api.c | 851 if (!err || !new || new == &noop_qdisc) in qdisc_offload_graft_helper() 889 .handle = new ? new->handle : 0, in qdisc_offload_graft_root() 890 .ingress = (new && new->flags & TCQ_F_INGRESS) || in qdisc_offload_graft_root() 1038 if (new && !tc_qdisc_dump_ignore(new, false)) { in qdisc_notify() 1102 (new && new->flags & TCQ_F_INGRESS)) { in qdisc_graft() 1127 if (new && new->ops->attach && !ingress) in qdisc_graft() 1155 if (new && !new->ops->attach) in qdisc_graft() 1161 if (new && new->ops->attach) in qdisc_graft() 1162 new->ops->attach(new); in qdisc_graft() 1185 if (new && new->ops == &noqueue_qdisc_ops) { in qdisc_graft() [all …]
|
| A D | sch_mq.c | 175 static int mq_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mq_graft() argument 185 *old = dev_graft_qdisc(dev_queue, new); in mq_graft() 186 if (new) in mq_graft() 187 new->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; in mq_graft() 193 graft_offload.graft_params.child_handle = new ? new->handle : 0; in mq_graft() 196 qdisc_offload_graft_helper(qdisc_dev(sch), sch, new, *old, in mq_graft()
|
| A D | sch_prio.c | 286 static int prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, in prio_graft() argument 293 if (!new) { in prio_graft() 294 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in prio_graft() 296 if (!new) in prio_graft() 297 new = &noop_qdisc; in prio_graft() 299 qdisc_hash_add(new, true); in prio_graft() 302 *old = qdisc_replace(sch, new, &q->queues[band]); in prio_graft() 307 graft_offload.graft_params.child_handle = new->handle; in prio_graft() 310 qdisc_offload_graft_helper(qdisc_dev(sch), sch, new, *old, in prio_graft()
|
| /net/netfilter/ |
| A D | nf_conntrack_extend.c | 95 struct nf_ct_ext *new; in nf_ct_ext_add() local 110 oldlen = sizeof(*new); in nf_ct_ext_add() 117 new = krealloc(ct->ext, alloc, gfp); in nf_ct_ext_add() 118 if (!new) in nf_ct_ext_add() 122 memset(new->offset, 0, sizeof(new->offset)); in nf_ct_ext_add() 123 new->gen_id = atomic_read(&nf_conntrack_ext_genid); in nf_ct_ext_add() 126 new->offset[id] = newoff; in nf_ct_ext_add() 127 new->len = newlen; in nf_ct_ext_add() 128 memset((void *)new + newoff, 0, newlen - newoff); in nf_ct_ext_add() 130 ct->ext = new; in nf_ct_ext_add() [all …]
|
| A D | core.c | 107 struct nf_hook_entries *new; in nf_hook_entries_grow() local 138 if (!new) in nf_hook_entries_grow() 153 new->hooks[nhooks] = old->hooks[i]; in nf_hook_entries_grow() 166 new->hooks[nhooks].hook = reg->hook; in nf_hook_entries_grow() 170 return new; in nf_hook_entries_grow() 235 struct nf_hook_entries *new = NULL; in __nf_hook_entries_try_shrink() local 258 if (!new) in __nf_hook_entries_try_shrink() 265 new->hooks[j] = old->hooks[i]; in __nf_hook_entries_try_shrink() 269 hooks_validate(new); in __nf_hook_entries_try_shrink() 271 rcu_assign_pointer(*pp, new); in __nf_hook_entries_try_shrink() [all …]
|
| A D | nft_set_rbtree.c | 306 struct nft_rbtree_elem *new, in __nft_rbtree_insert() argument 326 d = nft_rbtree_cmp(set, rbe, new); in __nft_rbtree_insert() 376 d = nft_rbtree_cmp(set, rbe, new); in __nft_rbtree_insert() 393 if (nft_rbtree_cmp(set, rbe_ge, new) != 0) { in __nft_rbtree_insert() 402 if ((nft_rbtree_interval_start(new) && in __nft_rbtree_insert() 404 (nft_rbtree_interval_end(new) && in __nft_rbtree_insert() 423 if (rbe_ge && !nft_rbtree_cmp(set, new, rbe_ge) && in __nft_rbtree_insert() 432 if (rbe_le && !nft_rbtree_cmp(set, new, rbe_le) && in __nft_rbtree_insert() 467 d = nft_rbtree_cmp(set, rbe, new); in __nft_rbtree_insert() 479 rb_link_node_rcu(&new->node, parent, p); in __nft_rbtree_insert() [all …]
|
| /net/openvswitch/ |
| A D | flow_table.c | 223 new = kzalloc(struct_size(new, masks, size) + in tbl_mask_array_alloc() 225 if (!new) in tbl_mask_array_alloc() 228 new->masks_usage_zero_cntr = (u64 *)((u8 *)new + in tbl_mask_array_alloc() 242 return new; in tbl_mask_array_alloc() 251 if (!new) in tbl_mask_array_realloc() 260 new->masks[new->count++] = old->masks[i]; in tbl_mask_array_realloc() 371 new = kzalloc(sizeof(*new), GFP_KERNEL); in tbl_mask_cache_alloc() 372 if (!new) in tbl_mask_cache_alloc() 402 if (!new) in ovs_flow_tbl_masks_cache_resize() 1171 if (!new) in ovs_flow_masks_rebalance() [all …]
|
| /net/smc/ |
| A D | smc_cdc.h | 151 union smc_host_cursor *new) in smc_curs_diff() argument 153 if (old->wrap != new->wrap) in smc_curs_diff() 165 union smc_host_cursor *new) in smc_curs_comp() argument 167 if (old->wrap > new->wrap || in smc_curs_comp() 168 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp() 169 return -smc_curs_diff(size, new, old); in smc_curs_comp() 170 return smc_curs_diff(size, old, new); in smc_curs_comp() 178 union smc_host_cursor *new) in smc_curs_diff_large() argument 180 if (old->wrap < new->wrap) in smc_curs_diff_large() 182 (size - old->count) + new->count + in smc_curs_diff_large() [all …]
|
| /net/sunrpc/ |
| A D | auth.c | 293 new = kmalloc(sizeof(*new), GFP_KERNEL); in rpcauth_init_credcache() 294 if (!new) in rpcauth_init_credcache() 299 if (!new->hashtable) in rpcauth_init_credcache() 305 kfree(new); in rpcauth_init_credcache() 520 *entry, *new; in rpcauth_lookup_credcache() local 539 if (IS_ERR(new)) { in rpcauth_lookup_credcache() 540 cred = new; in rpcauth_lookup_credcache() 553 cred = new; in rpcauth_lookup_credcache() 668 if (new) in rpcauth_bindcred() 676 if (IS_ERR(new)) in rpcauth_bindcred() [all …]
|
| A D | svcauth_unix.c | 60 struct unix_domain *new = NULL; in unix_domain_find() local 65 if (new && rv != &new->h) in unix_domain_find() 75 new = kmalloc(sizeof(*new), GFP_KERNEL); in unix_domain_find() 76 if (new == NULL) in unix_domain_find() 78 kref_init(&new->h.ref); in unix_domain_find() 80 if (new->h.name == NULL) { in unix_domain_find() 81 kfree(new); in unix_domain_find() 84 new->h.flavour = &svcauth_unix; in unix_domain_find() 134 new->m_addr = item->m_addr; in ip_map_init() 449 new->uid = item->uid; in unix_gid_init() [all …]
|
| A D | backchannel_rqst.c | 237 struct rpc_rqst *new) in xprt_get_bc_request() argument 243 if (!new) in xprt_get_bc_request() 247 list_add_tail(&new->rq_bc_pa_list, &xprt->bc_pa_list); in xprt_get_bc_request() 326 struct rpc_rqst *req, *new = NULL; in xprt_lookup_bc_request() local 336 req = xprt_get_bc_request(xprt, xid, new); in xprt_lookup_bc_request() 339 if (new) { in xprt_lookup_bc_request() 340 if (req != new) in xprt_lookup_bc_request() 341 xprt_free_allocation(new); in xprt_lookup_bc_request() 345 new = xprt_alloc_bc_req(xprt); in xprt_lookup_bc_request() 346 } while (new); in xprt_lookup_bc_request()
|
| /net/ipv6/ |
| A D | calipso.c | 926 if (!new) in calipso_opt_insert() 934 kfree(new); in calipso_opt_insert() 948 new->nexthdr = 0; in calipso_opt_insert() 951 return new; in calipso_opt_insert() 981 *new = NULL; in calipso_opt_del() 987 if (!*new) in calipso_opt_del() 1146 if (IS_ERR(new)) in calipso_sock_setattr() 1151 kfree(new); in calipso_sock_setattr() 1220 if (IS_ERR(new)) in calipso_req_setattr() 1225 kfree(new); in calipso_req_setattr() [all …]
|
| /net/mac80211/ |
| A D | key.c | 457 if (new) { in ieee80211_key_replace() 458 idx = new->conf.keyidx; in ieee80211_key_replace() 494 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace() 507 if (new) in ieee80211_key_replace() 521 if (new) in ieee80211_key_replace() 527 if (new && in ieee80211_key_replace() 537 if (new && !old) in ieee80211_key_replace() 553 if (defunikey && !new) in ieee80211_key_replace() 567 if (defunikey && new) in ieee80211_key_replace() 573 if (defmgmtkey && new) in ieee80211_key_replace() [all …]
|
| A D | cfg.c | 986 if (!new) in ieee80211_set_probe_resp() 1028 if (!new) in ieee80211_set_fils_discovery() 1061 if (!new) in ieee80211_set_unsol_bcast_probe_resp() 1092 if (!new) in ieee80211_set_s1g_short_beacon() 1096 new->short_head = (u8 *)new + sizeof(*new); in ieee80211_set_s1g_short_beacon() 1131 new = kzalloc(sizeof(*new) + len, GFP_KERNEL); in ieee80211_set_ftm_responder_params() 1132 if (!new) in ieee80211_set_ftm_responder_params() 1249 if (!new) in ieee80211_assign_beacon() 1258 new->head = ((u8 *) new) + sizeof(*new); in ieee80211_assign_beacon() 1259 new->tail = new->head + new_head_len; in ieee80211_assign_beacon() [all …]
|
| /net/x25/ |
| A D | x25_facilities.c | 266 struct x25_facilities *new, struct x25_dte_facilities *dte) in x25_negotiate_facilities() argument 274 memcpy(new, ours, sizeof(*new)); in x25_negotiate_facilities() 289 new->reverse = theirs.reverse; in x25_negotiate_facilities() 298 new->throughput = (new->throughput & 0xf0) | theirs_in; in x25_negotiate_facilities() 303 new->throughput = (new->throughput & 0x0f) | theirs_out; in x25_negotiate_facilities() 310 new->pacsize_in = theirs.pacsize_in; in x25_negotiate_facilities() 314 new->pacsize_out = theirs.pacsize_out; in x25_negotiate_facilities() 321 new->winsize_in = theirs.winsize_in; in x25_negotiate_facilities() 325 new->winsize_out = theirs.winsize_out; in x25_negotiate_facilities()
|
| /net/sunrpc/auth_gss/ |
| A D | svcauth_gss.c | 166 new->out_handle.len = 0; in rsi_init() 168 new->out_token.len = 0; in rsi_init() 184 BUG_ON(new->out_handle.data || new->out_token.data); in update_rsi() 431 new->mechctx = NULL; in rsc_init() 443 memset(&new->seqdata, 0, sizeof(new->seqdata)); in update_rsc() 445 new->cred = tmp->cred; in update_rsc() 817 new = kmalloc(sizeof(*new), GFP_KERNEL); in svcauth_gss_register_pseudoflavor() 818 if (!new) in svcauth_gss_register_pseudoflavor() 822 if (!new->h.name) in svcauth_gss_register_pseudoflavor() 838 kfree(new->h.name); in svcauth_gss_register_pseudoflavor() [all …]
|
| /net/sctp/ |
| A D | auth.c | 81 struct sctp_shared_key *new; in sctp_auth_shkey_create() local 85 if (!new) in sctp_auth_shkey_create() 88 INIT_LIST_HEAD(&new->key_list); in sctp_auth_shkey_create() 89 refcount_set(&new->refcnt, 1); in sctp_auth_shkey_create() 90 new->key_id = key_id; in sctp_auth_shkey_create() 92 return new; in sctp_auth_shkey_create() 190 struct sctp_auth_bytes *new; in sctp_auth_make_key_vector() local 203 if (!new) in sctp_auth_make_key_vector() 216 return new; in sctp_auth_make_key_vector() 364 if (!new) in sctp_auth_asoc_copy_shkeys() [all …]
|
| /net/core/ |
| A D | netprio_cgroup.c | 43 struct netprio_map *old, *new; in extend_netdev_table() local 59 sizeof(new->priomap[0]); in extend_netdev_table() 69 new = kzalloc(new_sz, GFP_KERNEL); in extend_netdev_table() 70 if (!new) in extend_netdev_table() 74 memcpy(new->priomap, old->priomap, in extend_netdev_table() 77 new->priomap_len = new_len; in extend_netdev_table() 80 rcu_assign_pointer(dev->priomap, new); in extend_netdev_table()
|
| /net/wireless/ |
| A D | scan.c | 1835 if (WARN_ON(!new)) in cfg80211_check_stuck_ecsa() 1847 new->data, new->len); in cfg80211_check_stuck_ecsa() 1947 known->ts = new->ts; in cfg80211_update_known_bss() 1994 new = kzalloc(sizeof(*new) + rdev->wiphy.bss_priv_size, in __cfg80211_bss_update() 1996 if (!new) in __cfg80211_bss_update() 1998 memcpy(new, tmp, sizeof(*new)); in __cfg80211_bss_update() 1999 new->refcount = 1; in __cfg80211_bss_update() 2037 bss_ref_put(rdev, new); in __cfg80211_bss_update() 2048 found = new; in __cfg80211_bss_update() 3447 new = bss; in cfg80211_update_assoc_bss_entry() [all …]
|
| /net/vmw_vsock/ |
| A D | hyperv_transport.c | 301 struct sock *sk, *new = NULL; in hvs_open_connection() local 329 new = vsock_create_connected(sk); in hvs_open_connection() 330 if (!new) in hvs_open_connection() 333 new->sk_state = TCP_SYN_SENT; in hvs_open_connection() 334 vnew = vsock_sk(new); in hvs_open_connection() 347 sock_put(new); in hvs_open_connection() 387 conn_from_host ? new : sk); in hvs_open_connection() 391 sock_put(new); in hvs_open_connection() 401 sock_hold(conn_from_host ? new : sk); in hvs_open_connection() 412 new->sk_state = TCP_ESTABLISHED; in hvs_open_connection() [all …]
|
| /net/ipv4/netfilter/ |
| A D | nf_nat_h323.c | 368 static void ip_nat_q931_expect(struct nf_conn *new, in ip_nat_q931_expect() argument 374 nf_nat_follow_master(new, this); in ip_nat_q931_expect() 379 BUG_ON(new->status & IPS_NAT_DONE_MASK); in ip_nat_q931_expect() 384 new->tuplehash[!this->dir].tuple.src.u3; in ip_nat_q931_expect() 385 nf_nat_setup_info(new, &range, NF_NAT_MANIP_SRC); in ip_nat_q931_expect() 391 new->master->tuplehash[!this->dir].tuple.src.u3; in ip_nat_q931_expect() 392 nf_nat_setup_info(new, &range, NF_NAT_MANIP_DST); in ip_nat_q931_expect() 463 BUG_ON(new->status & IPS_NAT_DONE_MASK); in ip_nat_callforwarding_expect() 468 new->tuplehash[!this->dir].tuple.src.u3; in ip_nat_callforwarding_expect() 469 nf_nat_setup_info(new, &range, NF_NAT_MANIP_SRC); in ip_nat_callforwarding_expect() [all …]
|