Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 211) sorted by relevance

123456789

/net/6lowpan/
Dnhc_udp.c39 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 …]
Diphc.c798 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/
Decdh_helper.c64 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 kzfree(tmp); in compute_ecdh_secret()
124 u8 *buf, *tmp = NULL; in set_ecdh_privkey() local
[all …]
Dselftest.c145 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/
Debtables.c1077 struct ebt_replace tmp; in do_replace() local
1079 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) in do_replace()
1082 if (len != sizeof(tmp) + tmp.entries_size) in do_replace()
1085 if (tmp.entries_size == 0) in do_replace()
1089 if (tmp.nentries >= ((INT_MAX - sizeof(struct ebt_table_info)) / in do_replace()
1092 if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) in do_replace()
1095 tmp.name[sizeof(tmp.name) - 1] = 0; in do_replace()
1097 countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; in do_replace()
1106 newinfo->entries = __vmalloc(tmp.entries_size, GFP_KERNEL_ACCOUNT, in do_replace()
1113 newinfo->entries, tmp.entries, tmp.entries_size) != 0) { in do_replace()
[all …]
Debt_mark.c43 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()
Debt_snat.c49 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/
Doffchannel.c215 struct ieee80211_roc_work *roc, *tmp; in ieee80211_end_finished_rocs() local
220 list_for_each_entry_safe(roc, tmp, &local->roc_list, list) { in ieee80211_end_finished_rocs()
312 struct ieee80211_roc_work *roc, *tmp; in _ieee80211_start_next_roc() local
331 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc()
332 if (tmp == roc) in _ieee80211_start_next_roc()
334 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc()
336 max_dur = max(tmp->duration, max_dur); in _ieee80211_start_next_roc()
337 min_dur = min(tmp->duration, min_dur); in _ieee80211_start_next_roc()
338 type = max(tmp->type, type); in _ieee80211_start_next_roc()
352 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc()
[all …]
Dfils_aead.c28 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/
Dcfctrl.c62 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()
333 struct cfctrl_request_info *p, *tmp; in cfctrl_cancel_req() local
338 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_cancel_req()
379 u8 tmp; in cfctrl_recv() local
385 tmp = cfpkt_extr_head_u8(pkt); in cfctrl_recv()
387 serv = tmp & CFCTRL_SRV_MASK; in cfctrl_recv()
390 servtype = tmp >> 4; in cfctrl_recv()
[all …]
Dcffrml.c84 u16 tmp; in cffrml_receive() local
91 cfpkt_extr_head(pkt, &tmp, 2); in cffrml_receive()
92 len = le16_to_cpu(tmp); in cffrml_receive()
109 cfpkt_extr_trail(pkt, &tmp, 2); in cffrml_receive()
110 hdrchks = le16_to_cpu(tmp); in cffrml_receive()
113 cfpkt_add_trail(pkt, &tmp, 2); in cffrml_receive()
/net/ipv4/
Desp4.c26 void *tmp; member
66 static inline void *esp_tmp_extra(void *tmp) in esp_tmp_extra() argument
68 return PTR_ALIGN(tmp, __alignof__(struct esp_output_extra)); in esp_tmp_extra()
71 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int extralen) in esp_tmp_iv() argument
74 PTR_ALIGN((u8 *)tmp + extralen, in esp_tmp_iv()
75 crypto_aead_alignmask(aead) + 1) : tmp + extralen; in esp_tmp_iv()
96 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref() argument
98 struct esp_output_extra *extra = esp_tmp_extra(tmp); in esp_ssg_unref()
108 extra = esp_tmp_extra(tmp); in esp_ssg_unref()
109 iv = esp_tmp_iv(aead, tmp, extralen); in esp_ssg_unref()
[all …]
Dtcp_bpf.c167 struct sk_msg *tmp; in bpf_tcp_ingress() local
170 tmp = kzalloc(sizeof(*tmp), __GFP_NOWARN | GFP_KERNEL); in bpf_tcp_ingress()
171 if (unlikely(!tmp)) in bpf_tcp_ingress()
175 tmp->sg.start = msg->sg.start; in bpf_tcp_ingress()
188 sk_msg_xfer(tmp, msg, i, size); in bpf_tcp_ingress()
191 get_page(sk_msg_page(tmp, i)); in bpf_tcp_ingress()
193 tmp->sg.end = i; in bpf_tcp_ingress()
204 sk_psock_queue_msg(psock, tmp); in bpf_tcp_ingress()
207 sk_msg_free(sk, tmp); in bpf_tcp_ingress()
208 kfree(tmp); in bpf_tcp_ingress()
[all …]
/net/wireless/
Dscan.c236 u8 *pos, *tmp; in cfg80211_gen_new_ie() local
275 tmp = (u8 *)cfg80211_find_ext_ie(tmp_old[2], sub_copy, in cfg80211_gen_new_ie()
278 tmp = (u8 *)cfg80211_find_ie(tmp_old[0], sub_copy, in cfg80211_gen_new_ie()
281 if (!tmp) { in cfg80211_gen_new_ie()
299 if (!memcmp(tmp_old + 2, tmp + 2, 5)) { in cfg80211_gen_new_ie()
303 memcpy(pos, tmp, tmp[1] + 2); in cfg80211_gen_new_ie()
304 pos += tmp[1] + 2; in cfg80211_gen_new_ie()
305 tmp[0] = WLAN_EID_SSID; in cfg80211_gen_new_ie()
312 memcpy(pos, tmp, tmp[1] + 2); in cfg80211_gen_new_ie()
313 pos += tmp[1] + 2; in cfg80211_gen_new_ie()
[all …]
/net/ipv6/
Desp6.c39 void *tmp; member
75 static inline __be32 *esp_tmp_seqhi(void *tmp) in esp_tmp_seqhi() argument
77 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); in esp_tmp_seqhi()
80 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv() argument
83 PTR_ALIGN((u8 *)tmp + seqhilen, in esp_tmp_iv()
84 crypto_aead_alignmask(aead) + 1) : tmp + seqhilen; in esp_tmp_iv()
105 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref() argument
116 iv = esp_tmp_iv(aead, tmp, seqhilen); in esp_ssg_unref()
131 void *tmp; in esp_output_done() local
142 tmp = ESP_SKB_CB(skb)->tmp; in esp_output_done()
[all …]
/net/ipv4/netfilter/
Darp_tables.c611 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()
813 struct xt_table_info tmp; in get_info() local
816 ret = compat_table_info(private, &tmp); in get_info()
818 private = &tmp; in get_info()
[all …]
Dip_tables.c752 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()
970 struct xt_table_info tmp; in get_info() local
973 ret = compat_table_info(private, &tmp); in get_info()
975 private = &tmp; in get_info()
[all …]
/net/ipv6/netfilter/
Dip6_tables.c769 struct xt_counters *tmp; in get_counters() local
773 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_counters()
776 bcnt = tmp->bcnt; in get_counters()
777 pcnt = tmp->pcnt; in get_counters()
796 const struct xt_counters *tmp; in get_old_counters() local
798 tmp = xt_get_per_cpu_counter(&iter->counters, cpu); in get_old_counters()
799 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/
Daf_vsock_tap.c34 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/
Ddev_addr_lists.c173 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/netlabel/
Dnetlabel_addrlist.h92 #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/
Dcache.c64 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()
69 if (cache_is_expired(detail, tmp)) in sunrpc_cache_find_rcu()
71 tmp = cache_get_rcu(tmp); in sunrpc_cache_find_rcu()
73 return tmp; in sunrpc_cache_find_rcu()
84 struct cache_head *new, *tmp, *freeme = NULL; in sunrpc_cache_add_entry() local
100 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_add_entry()
101 if (detail->match(tmp, key)) { in sunrpc_cache_add_entry()
102 if (cache_is_expired(detail, tmp)) { in sunrpc_cache_add_entry()
[all …]
/net/tipc/
Daddr.c58 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/netfilter/
Dnf_conntrack_irc.c75 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/rxrpc/
Drecvmsg.c66 u32 tmp = 0; in rxrpc_recvmsg_term() local
73 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ACK, 0, &tmp); in rxrpc_recvmsg_term()
76 tmp = call->abort_code; in rxrpc_recvmsg_term()
77 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ABORT, 4, &tmp); in rxrpc_recvmsg_term()
80 tmp = call->abort_code; in rxrpc_recvmsg_term()
81 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ABORT, 4, &tmp); in rxrpc_recvmsg_term()
84 tmp = -call->error; in rxrpc_recvmsg_term()
85 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_NET_ERROR, 4, &tmp); in rxrpc_recvmsg_term()
88 tmp = -call->error; in rxrpc_recvmsg_term()
89 ret = put_cmsg(msg, SOL_RXRPC, RXRPC_LOCAL_ERROR, 4, &tmp); in rxrpc_recvmsg_term()
[all …]

123456789