/net/6lowpan/ |
D | iphc.c | 264 u8 tmp = 0, val = 0; in uncompress_udp_header() local 266 fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp)); in uncompress_udp_header() 268 if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) { in uncompress_udp_header() 270 switch (tmp & LOWPAN_NHC_UDP_CS_P_11) { in uncompress_udp_header() 305 if (tmp & LOWPAN_NHC_UDP_CS_C) { in uncompress_udp_header() 341 u8 tmp, num_context = 0; in lowpan_process_data() local 362 if (lowpan_fetch_skb(skb, &tmp, sizeof(tmp))) in lowpan_process_data() 367 hdr.priority = ((tmp >> 2) & 0x0f); in lowpan_process_data() 368 hdr.flow_lbl[0] = ((tmp >> 2) & 0x30) | (tmp << 6) | in lowpan_process_data() 375 if (lowpan_fetch_skb(skb, &tmp, sizeof(tmp))) in lowpan_process_data() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 1100 struct ebt_replace tmp; in do_replace() local 1102 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) in do_replace() 1105 if (len != sizeof(tmp) + tmp.entries_size) { in do_replace() 1110 if (tmp.entries_size == 0) { in do_replace() 1115 if (tmp.nentries >= ((INT_MAX - sizeof(struct ebt_table_info)) / in do_replace() 1118 if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) in do_replace() 1121 tmp.name[sizeof(tmp.name) - 1] = 0; in do_replace() 1123 countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; in do_replace() 1131 newinfo->entries = vmalloc(tmp.entries_size); in do_replace() 1137 newinfo->entries, tmp.entries, tmp.entries_size) != 0) { in do_replace() [all …]
|
D | ebt_mark.c | 42 int tmp; in ebt_mark_tg_check() local 44 tmp = info->target | ~EBT_VERDICT_BITS; in ebt_mark_tg_check() 45 if (BASE_CHAIN && tmp == EBT_RETURN) in ebt_mark_tg_check() 47 if (tmp < -NUM_STANDARD_TARGETS || tmp >= 0) in ebt_mark_tg_check() 49 tmp = info->target & ~EBT_VERDICT_BITS; in ebt_mark_tg_check() 50 if (tmp != MARK_SET_VALUE && tmp != MARK_OR_VALUE && in ebt_mark_tg_check() 51 tmp != MARK_AND_VALUE && tmp != MARK_XOR_VALUE) in ebt_mark_tg_check()
|
D | ebt_snat.c | 48 int tmp; in ebt_snat_tg_check() local 50 tmp = info->target | ~EBT_VERDICT_BITS; in ebt_snat_tg_check() 51 if (BASE_CHAIN && tmp == EBT_RETURN) in ebt_snat_tg_check() 54 if (tmp < -NUM_STANDARD_TARGETS || tmp >= 0) in ebt_snat_tg_check() 56 tmp = info->target | EBT_VERDICT_BITS; in ebt_snat_tg_check() 57 if ((tmp & ~NAT_ARP_BIT) != ~NAT_ARP_BIT) in ebt_snat_tg_check()
|
/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() 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() 380 u8 tmp; in cfctrl_recv() local 387 cfpkt_extr_head(pkt, &tmp, 1); in cfctrl_recv() 389 serv = tmp & CFCTRL_SRV_MASK; in cfctrl_recv() 392 servtype = tmp >> 4; in cfctrl_recv() [all …]
|
D | cffrml.c | 84 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()
|
D | cfrfml.c | 48 int tmp; in cfrfml_create() local 60 tmp = (mtu_size - RFM_HEAD_SIZE - 6) / 16; in cfrfml_create() 61 tmp *= 16; in cfrfml_create() 63 this->fragment_size = tmp; in cfrfml_create() 99 u8 tmp; in cfrfml_receive() local 112 if (cfpkt_extr_head(pkt, &tmp, 1) < 0) in cfrfml_receive() 114 segmented = tmp & RFM_SEGMENTATION_BIT; in cfrfml_receive()
|
/net/wireless/ |
D | scan.c | 146 struct cfg80211_internal_bss *bss, *tmp; in __cfg80211_bss_expire() local 151 list_for_each_entry_safe(bss, tmp, &rdev->bss_list, list) { in __cfg80211_bss_expire() 691 struct cfg80211_internal_bss *tmp, in cfg80211_bss_update() argument 696 if (WARN_ON(!tmp->pub.channel)) in cfg80211_bss_update() 699 tmp->ts = jiffies; in cfg80211_bss_update() 703 if (WARN_ON(!rcu_access_pointer(tmp->pub.ies))) { in cfg80211_bss_update() 708 found = rb_find_bss(rdev, tmp, BSS_CMP_REGULAR); in cfg80211_bss_update() 712 if (rcu_access_pointer(tmp->pub.proberesp_ies)) { in cfg80211_bss_update() 718 tmp->pub.proberesp_ies); in cfg80211_bss_update() 721 tmp->pub.proberesp_ies); in cfg80211_bss_update() [all …]
|
/net/ipv6/ |
D | esp6.c | 49 void *tmp; member 87 static inline __be32 *esp_tmp_seqhi(void *tmp) in esp_tmp_seqhi() argument 89 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); in esp_tmp_seqhi() 92 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv() argument 95 PTR_ALIGN((u8 *)tmp + seqhilen, in esp_tmp_iv() 96 crypto_aead_alignmask(aead) + 1) : tmp + seqhilen; in esp_tmp_iv() 140 kfree(ESP_SKB_CB(skb)->tmp); in esp_output_done() 153 void *tmp; in esp6_output() local 199 tmp = esp_alloc_tmp(aead, nfrags + sglists, seqhilen); in esp6_output() 200 if (!tmp) { in esp6_output() [all …]
|
D | syncookies.c | 66 __u32 *tmp; in cookie_hash() local 70 tmp = this_cpu_ptr(ipv6_cookie_scratch); in cookie_hash() 77 memcpy(tmp + 10, syncookie6_secret[c], 44); in cookie_hash() 78 memcpy(tmp, saddr, 16); in cookie_hash() 79 memcpy(tmp + 4, daddr, 16); in cookie_hash() 80 tmp[8] = ((__force u32)sport << 16) + (__force u32)dport; in cookie_hash() 81 tmp[9] = count; in cookie_hash() 82 sha_transform(tmp + 16, (__u8 *)tmp, tmp + 16 + 5); in cookie_hash() 84 return tmp[17]; in cookie_hash()
|
/net/ipv4/ |
D | esp4.c | 23 void *tmp; member 60 static inline __be32 *esp_tmp_seqhi(void *tmp) in esp_tmp_seqhi() argument 62 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); in esp_tmp_seqhi() 64 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv() argument 67 PTR_ALIGN((u8 *)tmp + seqhilen, in esp_tmp_iv() 68 crypto_aead_alignmask(aead) + 1) : tmp + seqhilen; in esp_tmp_iv() 112 kfree(ESP_SKB_CB(skb)->tmp); in esp_output_done() 125 void *tmp; in esp_output() local 172 tmp = esp_alloc_tmp(aead, nfrags + sglists, seqhilen); in esp_output() 173 if (!tmp) { in esp_output() [all …]
|
D | syncookies.c | 39 __u32 *tmp; in cookie_hash() local 43 tmp = this_cpu_ptr(ipv4_cookie_scratch); in cookie_hash() 44 memcpy(tmp + 4, syncookie_secret[c], sizeof(syncookie_secret[c])); in cookie_hash() 45 tmp[0] = (__force u32)saddr; in cookie_hash() 46 tmp[1] = (__force u32)daddr; in cookie_hash() 47 tmp[2] = ((__force u32)sport << 16) + (__force u32)dport; in cookie_hash() 48 tmp[3] = count; in cookie_hash() 49 sha_transform(tmp + 16, (__u8 *)tmp, tmp + 16 + 5); in cookie_hash() 51 return tmp[17]; in cookie_hash()
|
/net/netlabel/ |
D | netlabel_addrlist.h | 106 #define netlbl_af4list_foreach_safe(iter, tmp, head) \ argument 108 tmp = __af4list_valid(iter->list.next, head); \ 110 iter = tmp, tmp = __af4list_valid(iter->list.next, head)) 173 #define netlbl_af6list_foreach_safe(iter, tmp, head) \ argument 175 tmp = __af6list_valid(iter->list.next, head); \ 177 iter = tmp, tmp = __af6list_valid(iter->list.next, head))
|
/net/ipv4/netfilter/ |
D | arp_tables.c | 934 struct xt_table_info tmp; in get_info() local 937 ret = compat_table_info(private, &tmp); in get_info() 939 private = &tmp; in get_info() 1088 struct arpt_replace tmp; in do_replace() local 1093 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) in do_replace() 1097 if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) in do_replace() 1099 tmp.name[sizeof(tmp.name)-1] = 0; in do_replace() 1101 newinfo = xt_alloc_table_info(tmp.size); in do_replace() 1107 if (copy_from_user(loc_cpu_entry, user + sizeof(tmp), in do_replace() 1108 tmp.size) != 0) { in do_replace() [all …]
|
D | ip_tables.c | 1124 struct xt_table_info tmp; in get_info() local 1127 ret = compat_table_info(private, &tmp); in get_info() 1129 private = &tmp; in get_info() 1277 struct ipt_replace tmp; in do_replace() local 1282 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) in do_replace() 1286 if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) in do_replace() 1288 tmp.name[sizeof(tmp.name)-1] = 0; in do_replace() 1290 newinfo = xt_alloc_table_info(tmp.size); in do_replace() 1296 if (copy_from_user(loc_cpu_entry, user + sizeof(tmp), in do_replace() 1297 tmp.size) != 0) { in do_replace() [all …]
|
/net/core/ |
D | dev_addr_lists.c | 177 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync_multiple() local 179 list_for_each_entry_safe(ha, tmp, &from_list->list, list) { in __hw_addr_sync_multiple() 201 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync() local 203 list_for_each_entry_safe(ha, tmp, &from_list->list, list) { in __hw_addr_sync() 219 struct netdev_hw_addr *ha, *tmp; in __hw_addr_unsync() local 221 list_for_each_entry_safe(ha, tmp, &from_list->list, list) { in __hw_addr_unsync() 247 struct netdev_hw_addr *ha, *tmp; in __hw_addr_sync_dev() local 251 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 264 list_for_each_entry_safe(ha, tmp, &list->list, list) { in __hw_addr_sync_dev() 297 struct netdev_hw_addr *ha, *tmp; in __hw_addr_unsync_dev() local [all …]
|
/net/sunrpc/ |
D | cache.c | 64 struct cache_head *tmp = *hp; in sunrpc_cache_lookup() local 65 if (detail->match(tmp, key)) { in sunrpc_cache_lookup() 66 if (cache_is_expired(detail, tmp)) in sunrpc_cache_lookup() 69 cache_get(tmp); in sunrpc_cache_lookup() 71 return tmp; in sunrpc_cache_lookup() 91 struct cache_head *tmp = *hp; in sunrpc_cache_lookup() local 92 if (detail->match(tmp, key)) { in sunrpc_cache_lookup() 93 if (cache_is_expired(detail, tmp)) { in sunrpc_cache_lookup() 94 *hp = tmp->next; in sunrpc_cache_lookup() 95 tmp->next = NULL; in sunrpc_cache_lookup() [all …]
|
/net/ieee802154/ |
D | af_ieee802154.c | 48 struct net_device *tmp; in ieee802154_get_dev() local 69 for_each_netdev(net, tmp) { in ieee802154_get_dev() 70 if (tmp->type != ARPHRD_IEEE802154) in ieee802154_get_dev() 73 pan_id = ieee802154_mlme_ops(tmp)->get_pan_id(tmp); in ieee802154_get_dev() 75 ieee802154_mlme_ops(tmp)->get_short_addr(tmp); in ieee802154_get_dev() 79 dev = tmp; in ieee802154_get_dev()
|
/net/rds/ |
D | tcp_recv.c | 66 struct iovec *iov, tmp; in rds_tcp_inc_copy_to_user() local 76 tmp = *iov; in rds_tcp_inc_copy_to_user() 81 while (tmp.iov_len == 0) { in rds_tcp_inc_copy_to_user() 83 tmp = *iov; in rds_tcp_inc_copy_to_user() 86 to_copy = min(tmp.iov_len, size); in rds_tcp_inc_copy_to_user() 92 tmp.iov_base, tmp.iov_len, to_copy); in rds_tcp_inc_copy_to_user() 95 if (skb_copy_datagram_iovec(skb, skb_off, &tmp, in rds_tcp_inc_copy_to_user()
|
D | send.c | 66 struct rds_message *rm, *tmp; in rds_send_reset() local 94 list_for_each_entry_safe(rm, tmp, &conn->c_retrans, m_conn_item) { in rds_send_reset() 139 unsigned int tmp; in rds_send_xmit() local 315 tmp = min_t(int, ret, in rds_send_xmit() 318 conn->c_xmit_hdr_off += tmp; in rds_send_xmit() 319 ret -= tmp; in rds_send_xmit() 324 tmp = min_t(int, ret, sg->length - in rds_send_xmit() 326 conn->c_xmit_data_off += tmp; in rds_send_xmit() 327 ret -= tmp; in rds_send_xmit() 529 struct rds_message *rm, *tmp, *found = NULL; in rds_send_get_message() local [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/ipv6/netfilter/ |
D | ip6_tables.c | 1134 struct xt_table_info tmp; in get_info() local 1137 ret = compat_table_info(private, &tmp); in get_info() 1139 private = &tmp; in get_info() 1287 struct ip6t_replace tmp; in do_replace() local 1292 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) in do_replace() 1296 if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) in do_replace() 1298 tmp.name[sizeof(tmp.name)-1] = 0; in do_replace() 1300 newinfo = xt_alloc_table_info(tmp.size); in do_replace() 1306 if (copy_from_user(loc_cpu_entry, user + sizeof(tmp), in do_replace() 1307 tmp.size) != 0) { in do_replace() [all …]
|
/net/atm/ |
D | resources.c | 179 struct atm_dev_stats tmp; in fetch_stats() local 182 copy_aal_stats(&dev->stats.aal0, &tmp.aal0); in fetch_stats() 183 copy_aal_stats(&dev->stats.aal34, &tmp.aal34); in fetch_stats() 184 copy_aal_stats(&dev->stats.aal5, &tmp.aal5); in fetch_stats() 186 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats() 188 subtract_aal_stats(&dev->stats.aal0, &tmp.aal0); in fetch_stats() 189 subtract_aal_stats(&dev->stats.aal34, &tmp.aal34); in fetch_stats() 190 subtract_aal_stats(&dev->stats.aal5, &tmp.aal5); in fetch_stats()
|
/net/bluetooth/ |
D | 6lowpan.c | 117 struct lowpan_peer *peer, *tmp; in peer_lookup_ba() local 122 list_for_each_entry_safe(peer, tmp, &dev->peers, list) { in peer_lookup_ba() 139 struct lowpan_peer *peer, *tmp; in peer_lookup_chan() local 141 list_for_each_entry_safe(peer, tmp, &dev->peers, list) { in peer_lookup_chan() 152 struct lowpan_peer *peer, *tmp; in peer_lookup_conn() local 154 list_for_each_entry_safe(peer, tmp, &dev->peers, list) { in peer_lookup_conn() 166 struct lowpan_peer *peer, *tmp; in peer_lookup_dst() local 198 list_for_each_entry_safe(peer, tmp, &dev->peers, list) { in peer_lookup_dst() 212 struct lowpan_dev *entry, *tmp; in lookup_peer() local 218 list_for_each_entry_safe(entry, tmp, &bt_6lowpan_devices, list) { in lookup_peer() [all …]
|
/net/nfc/hci/ |
D | command.c | 177 u8 *tmp; in nfc_hci_set_param() local 189 tmp = kmalloc(1 + param_len, GFP_KERNEL); in nfc_hci_set_param() 190 if (tmp == NULL) in nfc_hci_set_param() 193 *tmp = idx; in nfc_hci_set_param() 194 memcpy(tmp + 1, param, param_len); in nfc_hci_set_param() 197 tmp, param_len + 1, NULL); in nfc_hci_set_param() 199 kfree(tmp); in nfc_hci_set_param()
|