/net/6lowpan/ |
D | nhc_udp.c | 39 u8 tmp = 0, val = 0; in udp_uncompress() local 44 fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp)); in udp_uncompress() 47 switch (tmp & LOWPAN_NHC_UDP_CS_P_11) { in udp_uncompress() 75 if (tmp & LOWPAN_NHC_UDP_CS_C) { in udp_uncompress() 119 u8 tmp; in udp_compress() local 127 tmp = LOWPAN_NHC_UDP_CS_P_11; in udp_compress() 128 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 130 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + in udp_compress() 132 lowpan_push_hc_data(hc_ptr, &tmp, sizeof(tmp)); in udp_compress() 137 tmp = LOWPAN_NHC_UDP_CS_P_01; in udp_compress() [all …]
|
D | iphc.c | 798 struct in6_addr tmp = {}; in lowpan_iphc_compress_ctx_802154_lladdr() local 804 memcpy(&tmp.s6_addr[8], &extended_addr, EUI64_ADDR_LEN); in lowpan_iphc_compress_ctx_802154_lladdr() 806 tmp.s6_addr[8] ^= 0x02; in lowpan_iphc_compress_ctx_802154_lladdr() 808 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_compress_ctx_802154_lladdr() 809 if (ipv6_addr_equal(&tmp, ipaddr)) 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() 815 ieee802154_le16_to_be16(&tmp.s6_addr16[7], in lowpan_iphc_compress_ctx_802154_lladdr() 818 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_compress_ctx_802154_lladdr() 819 if (ipv6_addr_equal(&tmp, ipaddr)) in lowpan_iphc_compress_ctx_802154_lladdr() [all …]
|
/net/bluetooth/ |
D | ecdh_helper.c | 64 u8 *tmp; in compute_ecdh_secret() local 69 tmp = kmalloc(64, GFP_KERNEL); in compute_ecdh_secret() 70 if (!tmp) in compute_ecdh_secret() 81 swap_digits((u64 *)public_key, (u64 *)tmp, 4); /* x */ in compute_ecdh_secret() 82 swap_digits((u64 *)&public_key[32], (u64 *)&tmp[32], 4); /* y */ in compute_ecdh_secret() 84 sg_init_one(&src, tmp, 64); in compute_ecdh_secret() 101 swap_digits((u64 *)secret, (u64 *)tmp, 4); in compute_ecdh_secret() 102 memcpy(secret, tmp, 32); in compute_ecdh_secret() 107 kfree_sensitive(tmp); in compute_ecdh_secret() 124 u8 *buf, *tmp = NULL; in set_ecdh_privkey() local [all …]
|
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/ |
D | ebtables.c | 1071 struct ebt_replace tmp; in do_replace() local 1073 if (copy_from_sockptr(&tmp, arg, sizeof(tmp)) != 0) in do_replace() 1076 if (len != sizeof(tmp) + tmp.entries_size) in do_replace() 1079 if (tmp.entries_size == 0) in do_replace() 1083 if (tmp.nentries >= ((INT_MAX - sizeof(struct ebt_table_info)) / in do_replace() 1086 if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) in do_replace() 1089 tmp.name[sizeof(tmp.name) - 1] = 0; in do_replace() 1091 countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; in do_replace() 1099 newinfo->entries = __vmalloc(tmp.entries_size, GFP_KERNEL_ACCOUNT); in do_replace() 1105 newinfo->entries, tmp.entries, tmp.entries_size) != 0) { in do_replace() [all …]
|
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()
|
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/ |
D | offchannel.c | 195 struct ieee80211_roc_work *roc, *tmp; in ieee80211_end_finished_rocs() local 200 list_for_each_entry_safe(roc, tmp, &local->roc_list, list) { in ieee80211_end_finished_rocs() 292 struct ieee80211_roc_work *roc, *tmp; in _ieee80211_start_next_roc() local 311 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc() 312 if (tmp == roc) in _ieee80211_start_next_roc() 314 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc() 316 max_dur = max(tmp->duration, max_dur); in _ieee80211_start_next_roc() 317 min_dur = min(tmp->duration, min_dur); in _ieee80211_start_next_roc() 318 type = max(tmp->type, type); in _ieee80211_start_next_roc() 332 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc() [all …]
|
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/ |
D | cfctrl.c | 62 struct cfctrl_request_info *p, *tmp; in cfctrl_remove() local 66 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_remove() 143 struct cfctrl_request_info *p, *tmp, *first; in cfctrl_remove_req() local 147 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_remove_req() 337 struct cfctrl_request_info *p, *tmp; in cfctrl_cancel_req() local 342 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_cancel_req() 383 u8 tmp; in cfctrl_recv() local 389 tmp = cfpkt_extr_head_u8(pkt); in cfctrl_recv() 391 serv = tmp & CFCTRL_SRV_MASK; in cfctrl_recv() 394 servtype = tmp >> 4; in cfctrl_recv() [all …]
|
/net/ipv4/netfilter/ |
D | arp_tables.c | 611 struct xt_counters *tmp; in get_counters() local 615 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_counters() 618 bcnt = tmp->bcnt; in get_counters() 619 pcnt = tmp->pcnt; in get_counters() 638 struct xt_counters *tmp; in get_old_counters() local 640 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_old_counters() 641 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters() 812 struct xt_table_info tmp; in get_info() local 815 ret = compat_table_info(private, &tmp); in get_info() 817 private = &tmp; in get_info() [all …]
|
D | ip_tables.c | 752 struct xt_counters *tmp; in get_counters() local 756 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_counters() 759 bcnt = tmp->bcnt; in get_counters() 760 pcnt = tmp->pcnt; in get_counters() 779 const struct xt_counters *tmp; in get_old_counters() local 781 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_old_counters() 782 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters() 969 struct xt_table_info tmp; in get_info() local 972 ret = compat_table_info(private, &tmp); in get_info() 974 private = &tmp; in get_info() [all …]
|
/net/ipv4/ |
D | esp4.c | 28 void *tmp; member 68 static inline void *esp_tmp_extra(void *tmp) in esp_tmp_extra() argument 70 return PTR_ALIGN(tmp, __alignof__(struct esp_output_extra)); in esp_tmp_extra() 73 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int extralen) in esp_tmp_iv() argument 76 PTR_ALIGN((u8 *)tmp + extralen, in esp_tmp_iv() 77 crypto_aead_alignmask(aead) + 1) : tmp + extralen; in esp_tmp_iv() 98 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref() argument 100 struct esp_output_extra *extra = esp_tmp_extra(tmp); in esp_ssg_unref() 110 extra = esp_tmp_extra(tmp); in esp_ssg_unref() 111 iv = esp_tmp_iv(aead, tmp, extralen); in esp_ssg_unref() [all …]
|
D | tcp_bpf.c | 100 struct sk_msg *tmp; in bpf_tcp_ingress() local 103 tmp = kzalloc(sizeof(*tmp), __GFP_NOWARN | GFP_KERNEL); in bpf_tcp_ingress() 104 if (unlikely(!tmp)) in bpf_tcp_ingress() 108 tmp->sg.start = msg->sg.start; in bpf_tcp_ingress() 121 sk_msg_xfer(tmp, msg, i, size); in bpf_tcp_ingress() 124 get_page(sk_msg_page(tmp, i)); in bpf_tcp_ingress() 126 tmp->sg.end = i; in bpf_tcp_ingress() 139 sk_psock_queue_msg(psock, tmp); in bpf_tcp_ingress() 142 sk_msg_free(sk, tmp); in bpf_tcp_ingress() 143 kfree(tmp); in bpf_tcp_ingress() [all …]
|
/net/ipv6/ |
D | esp6.c | 44 void *tmp; member 85 static inline void *esp_tmp_extra(void *tmp) in esp_tmp_extra() argument 87 return PTR_ALIGN(tmp, __alignof__(struct esp_output_extra)); in esp_tmp_extra() 90 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv() argument 93 PTR_ALIGN((u8 *)tmp + seqhilen, in esp_tmp_iv() 94 crypto_aead_alignmask(aead) + 1) : tmp + seqhilen; in esp_tmp_iv() 115 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref() argument 117 struct esp_output_extra *extra = esp_tmp_extra(tmp); in esp_ssg_unref() 127 iv = esp_tmp_iv(aead, tmp, extralen); in esp_ssg_unref() 285 void *tmp; in esp_output_done() local [all …]
|
/net/ipv6/netfilter/ |
D | ip6_tables.c | 770 struct xt_counters *tmp; in get_counters() local 774 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_counters() 777 bcnt = tmp->bcnt; in get_counters() 778 pcnt = tmp->pcnt; in get_counters() 797 const struct xt_counters *tmp; in get_old_counters() local 799 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_old_counters() 800 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters() 986 struct xt_table_info tmp; in get_info() local 989 ret = compat_table_info(private, &tmp); in get_info() 991 private = &tmp; in get_info() [all …]
|
/net/vmw_vsock/ |
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/ |
D | dev_addr_lists.c | 173 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync_multiple() local 175 list_for_each_entry_safe(ha, tmp, &from_list->list, list) { in __hw_addr_sync_multiple() 197 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync() local 199 list_for_each_entry_safe(ha, tmp, &from_list->list, list) { in __hw_addr_sync() 215 struct netdev_hw_addr *ha, *tmp; in __hw_addr_unsync() local 217 list_for_each_entry_safe(ha, tmp, &from_list->list, list) { in __hw_addr_unsync() 243 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync_dev() local 247 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 260 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 299 struct netdev_hw_addr *ha, *tmp; in __hw_addr_ref_sync_dev() local [all …]
|
/net/wireless/ |
D | scan.c | 481 struct cfg80211_internal_bss *bss, *tmp; in __cfg80211_bss_expire() local 486 list_for_each_entry_safe(bss, tmp, &rdev->bss_list, list) { in __cfg80211_bss_expire() 1145 struct cfg80211_sched_scan_request *req, *tmp; in cfg80211_sched_scan_results_wk() local 1151 list_for_each_entry_safe(req, tmp, &rdev->sched_scan_req_list, list) { in cfg80211_sched_scan_results_wk() 1744 struct cfg80211_internal_bss *tmp, in cfg80211_bss_update() argument 1749 if (WARN_ON(!tmp->pub.channel)) in cfg80211_bss_update() 1752 tmp->ts = ts; in cfg80211_bss_update() 1756 if (WARN_ON(!rcu_access_pointer(tmp->pub.ies))) { in cfg80211_bss_update() 1761 found = rb_find_bss(rdev, tmp, BSS_CMP_REGULAR); in cfg80211_bss_update() 1764 if (!cfg80211_update_known_bss(rdev, found, tmp, signal_valid)) in cfg80211_bss_update() [all …]
|
/net/tipc/ |
D | crypto.c | 379 struct tipc_aead *tmp; in tipc_aead_get() local 382 tmp = rcu_dereference(aead); in tipc_aead_get() 383 if (unlikely(!tmp || !refcount_inc_not_zero(&tmp->refcnt))) in tipc_aead_get() 384 tmp = NULL; in tipc_aead_get() 387 return tmp; in tipc_aead_get() 403 struct tipc_tfm *tfm_entry, *head, *tmp; in tipc_aead_free() local 410 list_for_each_entry_safe(tfm_entry, tmp, &head->list, list) { in tipc_aead_free() 427 struct tipc_aead *tmp; in tipc_aead_users() local 431 tmp = rcu_dereference(aead); in tipc_aead_users() 432 if (tmp) in tipc_aead_users() [all …]
|
D | addr.c | 58 u32 *tmp = (u32 *)id; in tipc_set_node_id() local 62 tn->trial_addr = tmp[0] ^ tmp[1] ^ tmp[2] ^ tmp[3]; in tipc_set_node_id()
|
/net/netlabel/ |
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/sunrpc/ |
D | cache.c | 64 struct cache_head *tmp; in sunrpc_cache_find_rcu() local 67 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_find_rcu() 68 if (!detail->match(tmp, key)) in sunrpc_cache_find_rcu() 70 if (test_bit(CACHE_VALID, &tmp->flags) && in sunrpc_cache_find_rcu() 71 cache_is_expired(detail, tmp)) in sunrpc_cache_find_rcu() 73 tmp = cache_get_rcu(tmp); in sunrpc_cache_find_rcu() 75 return tmp; in sunrpc_cache_find_rcu() 101 struct cache_head *new, *tmp, *freeme = NULL; in sunrpc_cache_add_entry() local 117 hlist_for_each_entry_rcu(tmp, head, cache_list, in sunrpc_cache_add_entry() 119 if (!detail->match(tmp, key)) in sunrpc_cache_add_entry() [all …]
|
/net/netfilter/ |
D | nf_conntrack_irc.c | 75 char *tmp; in parse_dcc() local 84 for (tmp = data; tmp <= data_end; tmp++) in parse_dcc() 85 if (*tmp == '\n') in parse_dcc() 87 if (tmp > data_end || *tmp != '\n') in parse_dcc()
|
/net/atm/ |
D | resources.c | 180 struct atm_dev_stats tmp; in fetch_stats() local 183 copy_aal_stats(&dev->stats.aal0, &tmp.aal0); in fetch_stats() 184 copy_aal_stats(&dev->stats.aal34, &tmp.aal34); in fetch_stats() 185 copy_aal_stats(&dev->stats.aal5, &tmp.aal5); in fetch_stats() 187 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats() 189 subtract_aal_stats(&dev->stats.aal0, &tmp.aal0); in fetch_stats() 190 subtract_aal_stats(&dev->stats.aal34, &tmp.aal34); in fetch_stats() 191 subtract_aal_stats(&dev->stats.aal5, &tmp.aal5); in fetch_stats()
|