| /net/6lowpan/ |
| A D | nhc_udp.c | 38 u8 tmp = 0, val = 0; in udp_uncompress() local 43 fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp)); in udp_uncompress() 118 u8 tmp; in udp_compress() local 126 tmp = LOWPAN_NHC_UDP_CS_P_11; in udp_compress() 127 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 131 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 137 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 142 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 148 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 151 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() [all …]
|
| A D | iphc.c | 806 tmp.s6_addr[8] ^= 0x02; in lowpan_iphc_compress_ctx_802154_lladdr() 813 tmp.s6_addr[11] = 0xFF; in lowpan_iphc_compress_ctx_802154_lladdr() 814 tmp.s6_addr[12] = 0xFE; in lowpan_iphc_compress_ctx_802154_lladdr() 851 struct in6_addr tmp; in lowpan_compress_ctx_addr() local 870 memset(&tmp, 0, sizeof(tmp)); in lowpan_compress_ctx_addr() 872 tmp.s6_addr[11] = 0xFF; in lowpan_compress_ctx_addr() 873 tmp.s6_addr[12] = 0xFE; in lowpan_compress_ctx_addr() 883 memset(&tmp, 0, sizeof(tmp)); in lowpan_compress_ctx_addr() 926 tmp.s6_addr[0] = 0xFE; in lowpan_iphc_compress_802154_lladdr() 927 tmp.s6_addr[1] = 0x80; in lowpan_iphc_compress_802154_lladdr() [all …]
|
| /net/bluetooth/ |
| A D | ecdh_helper.c | 49 u8 *tmp; in compute_ecdh_secret() local 54 if (!tmp) in compute_ecdh_secret() 81 memcpy(secret, tmp, 32); in compute_ecdh_secret() 86 kfree_sensitive(tmp); in compute_ecdh_secret() 103 u8 *buf, *tmp = NULL; in set_ecdh_privkey() local 110 if (!tmp) in set_ecdh_privkey() 113 p.key = tmp; in set_ecdh_privkey() 133 kfree_sensitive(tmp); in set_ecdh_privkey() 149 u8 *tmp; in generate_ecdh_public_key() local 154 if (!tmp) in generate_ecdh_public_key() [all …]
|
| A D | selftest.c | 145 u8 *tmp, *dhkey_a, *dhkey_b; in test_ecdh_sample() local 148 tmp = kmalloc(64, GFP_KERNEL); in test_ecdh_sample() 149 if (!tmp) in test_ecdh_sample() 152 dhkey_a = &tmp[0]; in test_ecdh_sample() 153 dhkey_b = &tmp[32]; in test_ecdh_sample() 180 kfree(tmp); in test_ecdh_sample()
|
| /net/bridge/netfilter/ |
| A D | ebtables.c | 1119 if (len != sizeof(tmp) + tmp.entries_size) in do_replace() 1132 tmp.name[sizeof(tmp.name) - 1] = 0; in do_replace() 1390 if (!tmp) in do_update_counters() 1566 if (copy_from_user(&tmp, user, sizeof(tmp))) in copy_everything_to_user() 1874 if (copy_from_user(&tmp, user, sizeof(tmp))) in compat_copy_everything_to_user() 2225 if (copy_from_sockptr(&tmp, arg, sizeof(tmp))) in compat_copy_ebt_replace_from_user() 2228 if (len != sizeof(tmp) + tmp.entries_size) in compat_copy_ebt_replace_from_user() 2384 if (copy_from_user(&tmp, user, sizeof(tmp))) in compat_do_ebt_get_ctl() 2387 tmp.name[sizeof(tmp.name) - 1] = '\0'; in compat_do_ebt_get_ctl() 2463 if (copy_from_user(&tmp, user, sizeof(tmp))) in do_ebt_get_ctl() [all …]
|
| A D | ebt_mark.c | 43 int tmp; in ebt_mark_tg_check() local 45 tmp = info->target | ~EBT_VERDICT_BITS; in ebt_mark_tg_check() 46 if (BASE_CHAIN && tmp == EBT_RETURN) in ebt_mark_tg_check() 48 if (ebt_invalid_target(tmp)) in ebt_mark_tg_check() 50 tmp = info->target & ~EBT_VERDICT_BITS; in ebt_mark_tg_check() 51 if (tmp != MARK_SET_VALUE && tmp != MARK_OR_VALUE && in ebt_mark_tg_check() 52 tmp != MARK_AND_VALUE && tmp != MARK_XOR_VALUE) in ebt_mark_tg_check()
|
| A D | ebt_snat.c | 49 int tmp; in ebt_snat_tg_check() local 51 tmp = info->target | ~EBT_VERDICT_BITS; in ebt_snat_tg_check() 52 if (BASE_CHAIN && tmp == EBT_RETURN) in ebt_snat_tg_check() 55 if (ebt_invalid_target(tmp)) in ebt_snat_tg_check() 57 tmp = info->target | EBT_VERDICT_BITS; in ebt_snat_tg_check() 58 if ((tmp & ~NAT_ARP_BIT) != ~NAT_ARP_BIT) in ebt_snat_tg_check()
|
| /net/mac80211/ |
| A D | offchannel.c | 312 if (tmp == roc) in _ieee80211_start_next_roc() 314 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc() 318 type = max(tmp->type, type); in _ieee80211_start_next_roc() 334 tmp->chan != roc->chan) in _ieee80211_start_next_roc() 336 tmp->started = true; in _ieee80211_start_next_roc() 337 tmp->abort = true; in _ieee80211_start_next_roc() 345 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc() 347 tmp->started = true; in _ieee80211_start_next_roc() 377 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc() 646 if (tmp->chan != channel || tmp->sdata != sdata) in ieee80211_start_roc_work() [all …]
|
| A D | fils_aead.c | 28 u8 d[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE] = {}; in aes_s2v() local 35 crypto_shash_digest(desc, tmp, AES_BLOCK_SIZE, d); in aes_s2v() 40 crypto_shash_digest(desc, addr[i], len[i], tmp); in aes_s2v() 41 crypto_xor(d, tmp, AES_BLOCK_SIZE); in aes_s2v() 77 u8 *tmp; in aes_siv_encrypt() local 101 tmp = kmemdup(plain, plain_len, GFP_KERNEL); in aes_siv_encrypt() 102 if (!tmp) in aes_siv_encrypt() 118 kfree(tmp); in aes_siv_encrypt() 132 sg_init_one(src, tmp, plain_len); in aes_siv_encrypt() 138 kfree(tmp); in aes_siv_encrypt()
|
| /net/caif/ |
| A D | cfctrl.c | 363 u8 tmp; in cfctrl_link_setup() local 371 tmp = cfpkt_extr_head_u8(pkt); in cfctrl_link_setup() 373 serv = tmp & CFCTRL_SRV_MASK; in cfctrl_link_setup() 376 servtype = tmp >> 4; in cfctrl_link_setup() 380 physlinkid = tmp & 0x07; in cfctrl_link_setup() 381 prio = tmp >> 3; in cfctrl_link_setup() 422 *cp++ = tmp; in cfctrl_link_setup() 446 *cp++ = tmp; in cfctrl_link_setup() 455 *cp++ = tmp; in cfctrl_link_setup() 588 u8 linkid, linktype, tmp; in handle_loop() local [all …]
|
| /net/ipv6/ |
| A D | tcp_ao.c | 27 } __packed * tmp; in tcp_v6_ao_calc_key() local 35 tmp = hp.scratch; in tcp_v6_ao_calc_key() 36 tmp->counter = 1; in tcp_v6_ao_calc_key() 37 memcpy(tmp->label, "TCP-AO", 6); in tcp_v6_ao_calc_key() 38 tmp->ctx.saddr = *saddr; in tcp_v6_ao_calc_key() 39 tmp->ctx.daddr = *daddr; in tcp_v6_ao_calc_key() 40 tmp->ctx.sport = sport; in tcp_v6_ao_calc_key() 41 tmp->ctx.dport = dport; in tcp_v6_ao_calc_key() 42 tmp->ctx.sisn = sisn; in tcp_v6_ao_calc_key() 43 tmp->ctx.disn = disn; in tcp_v6_ao_calc_key() [all …]
|
| A D | esp6.c | 45 void *tmp; member 245 void *tmp; in esp_output_done() local 256 tmp = ESP_SKB_CB(skb)->tmp; in esp_output_done() 258 kfree(tmp); in esp_output_done() 285 void *tmp = ESP_SKB_CB(skb)->tmp; in esp_restore_header() local 294 void *tmp = ESP_SKB_CB(skb)->tmp; in esp_output_restore_header() local 527 void *tmp; in esp6_output_tail() local 552 if (!tmp) in esp6_output_tail() 616 ESP_SKB_CB(skb)->tmp = tmp; in esp6_output_tail() 932 if (!tmp) in esp6_input() [all …]
|
| /net/ipv4/netfilter/ |
| A D | arp_tables.c | 642 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters() 961 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in do_replace() 969 if ((u64)len < (u64)tmp.size + sizeof(tmp)) in do_replace() 972 tmp.name[sizeof(tmp.name)-1] = 0; in do_replace() 989 ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, in do_replace() 990 tmp.num_counters, tmp.counters); in do_replace() 1263 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in compat_do_replace() 1271 if ((u64)len < (u64)tmp.size + sizeof(tmp)) in compat_do_replace() 1274 tmp.name[sizeof(tmp.name)-1] = 0; in compat_do_replace() 1291 ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, in compat_do_replace() [all …]
|
| A D | ip_tables.c | 781 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters() 1113 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in do_replace() 1121 if ((u64)len < (u64)tmp.size + sizeof(tmp)) in do_replace() 1124 tmp.name[sizeof(tmp.name)-1] = 0; in do_replace() 1141 ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, in do_replace() 1142 tmp.num_counters, tmp.counters); in do_replace() 1501 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in compat_do_replace() 1509 if ((u64)len < (u64)tmp.size + sizeof(tmp)) in compat_do_replace() 1512 tmp.name[sizeof(tmp.name)-1] = 0; in compat_do_replace() 1529 ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, in compat_do_replace() [all …]
|
| /net/tipc/ |
| A D | core.h | 211 __be32 *tmp = (__be32 *)bytes; in hash128to32() local 214 res = ntohl(tmp[0] ^ tmp[1] ^ tmp[2] ^ tmp[3]); in hash128to32() 217 return ntohl(tmp[0] | tmp[1] | tmp[2] | tmp[3]); in hash128to32()
|
| A D | crypto.c | 389 if (unlikely(!tmp || !refcount_inc_not_zero(&tmp->refcnt))) in tipc_aead_get() 390 tmp = NULL; in tipc_aead_get() 393 return tmp; in tipc_aead_get() 438 if (tmp) in tipc_aead_users() 451 if (tmp) in tipc_aead_users_inc() 462 if (tmp) in tipc_aead_users_dec() 474 if (tmp) { in tipc_aead_users_set() 527 tmp = kzalloc(sizeof(*tmp), GFP_ATOMIC); in tipc_aead_init() 600 if (!tmp->key) { in tipc_aead_init() 609 *aead = tmp; in tipc_aead_init() [all …]
|
| /net/ipv6/netfilter/ |
| A D | ip6_tables.c | 798 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters() 1130 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in do_replace() 1138 if ((u64)len < (u64)tmp.size + sizeof(tmp)) in do_replace() 1141 tmp.name[sizeof(tmp.name)-1] = 0; in do_replace() 1158 ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, in do_replace() 1159 tmp.num_counters, tmp.counters); in do_replace() 1510 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in compat_do_replace() 1518 if ((u64)len < (u64)tmp.size + sizeof(tmp)) in compat_do_replace() 1521 tmp.name[sizeof(tmp.name)-1] = 0; in compat_do_replace() 1538 ret = __do_replace(net, tmp.name, tmp.valid_hooks, newinfo, in compat_do_replace() [all …]
|
| /net/ipv4/ |
| A D | esp4.c | 29 void *tmp; member 211 void *tmp; in esp_output_done() local 222 tmp = ESP_SKB_CB(skb)->tmp; in esp_output_done() 224 kfree(tmp); in esp_output_done() 249 void *tmp = ESP_SKB_CB(skb)->tmp; in esp_restore_header() local 258 void *tmp = ESP_SKB_CB(skb)->tmp; in esp_output_restore_header() local 496 void *tmp; in esp_output_tail() local 521 if (!tmp) in esp_output_tail() 585 ESP_SKB_CB(skb)->tmp = tmp; in esp_output_tail() 890 if (!tmp) in esp_input() [all …]
|
| /net/vmw_vsock/ |
| A D | af_vsock_tap.c | 34 struct vsock_tap *tmp; in vsock_remove_tap() local 39 list_for_each_entry(tmp, &vsock_tap_all, list) { in vsock_remove_tap() 40 if (vt == tmp) { in vsock_remove_tap() 83 struct vsock_tap *tmp; in __vsock_deliver_tap() local 85 list_for_each_entry_rcu(tmp, &vsock_tap_all, list) { in __vsock_deliver_tap() 86 ret = __vsock_deliver_tap_skb(skb, tmp->dev); in __vsock_deliver_tap()
|
| /net/core/ |
| A D | dev_addr_lists.c | 250 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync_multiple() local 275 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync() local 293 struct netdev_hw_addr *ha, *tmp; in __hw_addr_unsync() local 321 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync_dev() local 325 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 338 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 377 struct netdev_hw_addr *ha, *tmp; in __hw_addr_ref_sync_dev() local 381 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_ref_sync_dev() 434 struct netdev_hw_addr *ha, *tmp; in __hw_addr_ref_unsync_dev() local 468 struct netdev_hw_addr *ha, *tmp; in __hw_addr_unsync_dev() local [all …]
|
| /net/sunrpc/ |
| A D | cache.c | 66 struct cache_head *tmp; in sunrpc_cache_find_rcu() local 75 tmp = cache_get_rcu(tmp); in sunrpc_cache_find_rcu() 77 return tmp; in sunrpc_cache_find_rcu() 127 freeme = tmp; in sunrpc_cache_add_entry() 130 cache_get(tmp); in sunrpc_cache_add_entry() 133 return tmp; in sunrpc_cache_add_entry() 211 struct cache_head *tmp; in sunrpc_cache_update() local 225 tmp = detail->alloc(); in sunrpc_cache_update() 226 if (!tmp) { in sunrpc_cache_update() 237 cache_get(tmp); in sunrpc_cache_update() [all …]
|
| /net/wireless/ |
| A D | scan.c | 1975 tmp->ts = ts; in __cfg80211_bss_update() 2091 if (tmp && tmp->datalen >= sizeof(*he_oper) && in cfg80211_get_ies_channel_number() 2092 tmp->datalen >= ieee80211_he_oper_size(&tmp->data[1])) { in cfg80211_get_ies_channel_number() 2105 if (tmp && tmp->datalen >= sizeof(struct ieee80211_s1g_oper_ie)) { in cfg80211_get_ies_channel_number() 2112 if (tmp && tmp->datalen == 1) in cfg80211_get_ies_channel_number() 2116 if (tmp && in cfg80211_get_ies_channel_number() 2217 if (!tmp || tmp->datalen < sizeof(*he_oper) + 1 || in cfg80211_get_6ghz_power_type() 2218 tmp->datalen < ieee80211_he_oper_size(tmp->data + 1)) in cfg80211_get_6ghz_power_type() 3705 u8 *cfg, *p, *tmp; in ieee80211_bss() local 3901 tmp = p; in ieee80211_bss() [all …]
|
| /net/netlabel/ |
| A D | netlabel_addrlist.h | 92 #define netlbl_af4list_foreach_safe(iter, tmp, head) \ argument 94 tmp = __af4list_valid(iter->list.next, head); \ 96 iter = tmp, tmp = __af4list_valid(iter->list.next, head)) 159 #define netlbl_af6list_foreach_safe(iter, tmp, head) \ argument 161 tmp = __af6list_valid(iter->list.next, head); \ 163 iter = tmp, tmp = __af6list_valid(iter->list.next, head))
|
| /net/xfrm/ |
| A D | xfrm_interface_bpf.c | 72 struct metadata_dst __percpu *tmp; in bpf_skb_set_xfrm_info() local 74 tmp = metadata_dst_alloc_percpu(0, METADATA_XFRM, GFP_ATOMIC); in bpf_skb_set_xfrm_info() 75 if (!tmp) in bpf_skb_set_xfrm_info() 77 if (cmpxchg(&xfrm_bpf_md_dst, NULL, tmp)) in bpf_skb_set_xfrm_info() 78 metadata_dst_free_percpu(tmp); in bpf_skb_set_xfrm_info()
|
| /net/mctp/ |
| A D | route.c | 268 struct mctp_sk_key *tmp; in mctp_key_add() local 282 spin_lock(&tmp->lock); in mctp_key_add() 283 if (tmp->valid) in mctp_key_add() 754 if (tmp->net != netid) in mctp_alloc_local_tag() 773 spin_lock(&tmp->lock); in mctp_alloc_local_tag() 777 if (tmp->valid) in mctp_alloc_local_tag() 820 if (tmp->net != netid) in mctp_lookup_prealloc_tag() 829 if (!tmp->manual_alloc) in mctp_lookup_prealloc_tag() 832 spin_lock(&tmp->lock); in mctp_lookup_prealloc_tag() 833 if (tmp->valid) { in mctp_lookup_prealloc_tag() [all …]
|