Home
last modified time | relevance | path

Searched refs:addr2 (Results 1 – 25 of 225) sorted by relevance

123456789

/linux-6.1.9/include/linux/
Dfind.h13 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2,
15 unsigned long _find_next_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
21 unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2,
23 unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
26 const unsigned long *addr2, unsigned long size);
79 const unsigned long *addr2, unsigned long size, in find_next_and_bit() argument
88 val = *addr1 & *addr2 & GENMASK(size - 1, offset); in find_next_and_bit()
92 return _find_next_and_bit(addr1, addr2, size, offset); in find_next_and_bit()
110 const unsigned long *addr2, unsigned long size, in find_next_andnot_bit() argument
119 val = *addr1 & ~*addr2 & GENMASK(size - 1, offset); in find_next_andnot_bit()
[all …]
Detherdevice.h346 static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2) in ether_addr_equal() argument
349 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) | in ether_addr_equal()
350 ((*(const u16 *)(addr1 + 4)) ^ (*(const u16 *)(addr2 + 4))); in ether_addr_equal()
355 const u16 *b = (const u16 *)addr2; in ether_addr_equal()
375 static inline bool ether_addr_equal_64bits(const u8 *addr1, const u8 *addr2) in ether_addr_equal_64bits() argument
378 u64 fold = (*(const u64 *)addr1) ^ (*(const u64 *)addr2); in ether_addr_equal_64bits()
386 return ether_addr_equal(addr1, addr2); in ether_addr_equal_64bits()
399 static inline bool ether_addr_equal_unaligned(const u8 *addr1, const u8 *addr2) in ether_addr_equal_unaligned() argument
402 return ether_addr_equal(addr1, addr2); in ether_addr_equal_unaligned()
404 return memcmp(addr1, addr2, ETH_ALEN) == 0; in ether_addr_equal_unaligned()
[all …]
/linux-6.1.9/tools/include/linux/
Dfind.h13 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2,
19 const unsigned long *addr2, unsigned long size);
63 const unsigned long *addr2, unsigned long size, in find_next_and_bit() argument
72 val = *addr1 & *addr2 & GENMASK(size - 1, offset); in find_next_and_bit()
76 return _find_next_and_bit(addr1, addr2, size, offset); in find_next_and_bit()
142 const unsigned long *addr2, in find_first_and_bit() argument
146 unsigned long val = *addr1 & *addr2 & GENMASK(size - 1, 0); in find_first_and_bit()
151 return _find_first_and_bit(addr1, addr2, size); in find_first_and_bit()
/linux-6.1.9/lib/
Dfind_bit.c111 const unsigned long *addr2, in _find_first_and_bit() argument
114 return FIND_FIRST_BIT(addr1[idx] & addr2[idx], /* nop */, size); in _find_first_and_bit()
144 unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2, in __find_nth_and_bit() argument
147 return FIND_NTH_BIT(addr1[idx] & addr2[idx], size, n); in __find_nth_and_bit()
151 unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, in __find_nth_andnot_bit() argument
154 return FIND_NTH_BIT(addr1[idx] & ~addr2[idx], size, n); in __find_nth_andnot_bit()
159 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, in _find_next_and_bit() argument
162 return FIND_NEXT_BIT(addr1[idx] & addr2[idx], /* nop */, nbits, start); in _find_next_and_bit()
168 unsigned long _find_next_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, in _find_next_andnot_bit() argument
171 return FIND_NEXT_BIT(addr1[idx] & ~addr2[idx], /* nop */, nbits, start); in _find_next_andnot_bit()
/linux-6.1.9/arch/xtensa/kernel/
Dsmp.c470 unsigned long addr2; member
511 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_tlb_range()
520 .addr2 = end, in flush_tlb_range()
528 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in ipi_flush_tlb_kernel_range()
535 .addr2 = end, in flush_tlb_kernel_range()
555 local_flush_cache_page(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_page()
564 .addr2 = pfn, in flush_cache_page()
572 local_flush_cache_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_range()
581 .addr2 = end, in flush_cache_range()
589 local_flush_icache_range(fd->addr1, fd->addr2); in ipi_flush_icache_range()
[all …]
/linux-6.1.9/arch/sh/mm/
Dtlb-debugfs.c42 unsigned long addr1, addr2, data1, data2; in tlb_seq_show() local
56 addr2 = MMU_ITLB_ADDRESS_ARRAY2; in tlb_seq_show()
62 addr2 = MMU_UTLB_ADDRESS_ARRAY2; in tlb_seq_show()
79 addr2 = MMU_ITLB_ADDRESS_ARRAY2; in tlb_seq_show()
85 addr2 = MMU_UTLB_ADDRESS_ARRAY2; in tlb_seq_show()
105 val = __raw_readl(addr2 | (entry << MMU_TLB_ENTRY_SHIFT)); in tlb_seq_show()
/linux-6.1.9/tools/testing/selftests/net/
Dudpgro.sh71 local addr1 addr2 pid family="" ipt_cmd=ip6tables
80 addr2=192.168.1.3/24
83 addr2="2001:db8::3/64 nodad"
87 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}
90 …ns exec "${PEER_NS}" $ipt_cmd -t nat -I PREROUTING -d ${addr1} -j DNAT --to-destination ${addr2%/*}
96 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${family} -b ${addr2%/*} ${rx_args} && \
/linux-6.1.9/tools/testing/selftests/vm/
Dhugetlb-madvise.c102 void *addr, *addr2; in main() local
360 addr2 = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
363 if (addr2 == MAP_FAILED) { in main()
369 read_fault_pages(addr2, NR_HUGE_PAGES); in main()
373 write_fault_pages(addr2, NR_HUGE_PAGES); in main()
384 if (madvise(addr2, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
391 write_fault_pages(addr2, NR_HUGE_PAGES); in main()
406 (void)munmap(addr2, NR_HUGE_PAGES * huge_page_size); in main()
/linux-6.1.9/tools/lib/
Dfind_bit.c85 const unsigned long *addr2, in _find_first_and_bit() argument
88 return FIND_FIRST_BIT(addr1[idx] & addr2[idx], /* nop */, size); in _find_first_and_bit()
110 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, in _find_next_and_bit() argument
113 return FIND_NEXT_BIT(addr1[idx] & addr2[idx], /* nop */, nbits, start); in _find_next_and_bit()
/linux-6.1.9/arch/parisc/kernel/
Dftrace.c121 unsigned long addr2 = in ftrace_make_call() local
128 addr2 >> 32, in ftrace_make_call()
129 addr2 & 0xffffffff, in ftrace_make_call()
134 addr2 >> 32, in ftrace_make_call()
135 addr2 & 0xffffffff, in ftrace_make_call()
/linux-6.1.9/arch/sh/kernel/
Dsmp.c378 unsigned long addr2; member
385 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in flush_tlb_range_ipi()
399 fd.addr2 = end; in flush_tlb_range()
415 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in flush_tlb_kernel_range_ipi()
423 fd.addr2 = end; in flush_tlb_kernel_range()
457 local_flush_tlb_one(fd->addr1, fd->addr2); in flush_tlb_one_ipi()
465 fd.addr2 = vaddr; in flush_tlb_one()
/linux-6.1.9/Documentation/powerpc/
Dptrace.rst78 uint64_t addr2;
104 p.addr2 = 0;
114 p.addr2 = 0;
124 p.addr2 = 0;
134 p.addr2 = (uint64_t) end_range;
147 /* For PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE addr2 needs to be specified, where
148 * addr2 - addr <= 8 Bytes.
150 p.addr2 = (uint64_t) end_range;
/linux-6.1.9/kernel/kcsan/
Dencoding.h94 unsigned long addr2, size_t size2) in matching_access() argument
97 unsigned long end_range2 = addr2 + size2 - 1; in matching_access()
99 return addr1 <= end_range2 && addr2 <= end_range1; in matching_access()
/linux-6.1.9/drivers/net/wireless/intersil/hostap/
Dhostap_80211_rx.c53 printk(" A2=%pM", hdr->addr2); in hostap_dump_rx_80211()
284 memcpy(entry->src_addr, hdr->addr2, ETH_ALEN); in prism2_frag_cache_get()
289 entry = prism2_frag_cache_find(local, seq, frag, hdr->addr2, in prism2_frag_cache_get()
312 entry = prism2_frag_cache_find(local, seq, -1, hdr->addr2, hdr->addr1); in prism2_frag_cache_invalidate()
579 *wds = prism2_rx_get_wds(local, hdr->addr2); in hostap_rx_frame_wds()
583 memcmp(hdr->addr2, local->bssid, ETH_ALEN) != 0)) { in hostap_rx_frame_wds()
588 local->dev->name, hdr->addr2); in hostap_rx_frame_wds()
590 hostap_wds_link_oper(local, hdr->addr2, WDS_ADD); in hostap_rx_frame_wds()
595 hostap_is_sta_assoc(local->ap, hdr->addr2)) { in hostap_rx_frame_wds()
666 local->dev->name, hdr->addr2); in hostap_rx_frame_decrypt()
[all …]
/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dunaligned-memory-access.rst132 bool ether_addr_equal(const u8 *addr1, const u8 *addr2)
135 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) |
136 ((*(const u16 *)(addr1 + 4)) ^ (*(const u16 *)(addr2 + 4)));
141 const u16 *b = (const u16 *)addr2;
/linux-6.1.9/net/sctp/
Dipv6.c67 const union sctp_addr *addr2);
624 const union sctp_addr *addr2) in __sctp_v6_cmp_addr() argument
626 if (addr1->sa.sa_family != addr2->sa.sa_family) { in __sctp_v6_cmp_addr()
628 addr2->sa.sa_family == AF_INET6 && in __sctp_v6_cmp_addr()
629 ipv6_addr_v4mapped(&addr2->v6.sin6_addr) && in __sctp_v6_cmp_addr()
630 addr2->v6.sin6_addr.s6_addr32[3] == in __sctp_v6_cmp_addr()
634 if (addr2->sa.sa_family == AF_INET && in __sctp_v6_cmp_addr()
638 addr2->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr()
644 if (!ipv6_addr_equal(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr)) in __sctp_v6_cmp_addr()
649 addr1->v6.sin6_scope_id && addr2->v6.sin6_scope_id && in __sctp_v6_cmp_addr()
[all …]
/linux-6.1.9/net/wireless/
Dlib80211_crypt_tkip.c299 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr()
392 hdr->addr2); in lib80211_tkip_decrypt()
403 hdr->addr2); in lib80211_tkip_decrypt()
414 hdr->addr2, keyidx); in lib80211_tkip_decrypt()
424 hdr->addr2, tkey->rx_iv32, tkey->rx_iv16, in lib80211_tkip_decrypt()
432 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in lib80211_tkip_decrypt()
455 hdr->addr2); in lib80211_tkip_decrypt()
516 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
528 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
578 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in lib80211_michael_mic_failure()
[all …]
/linux-6.1.9/arch/csky/abiv1/inc/abi/
Dpage.h8 unsigned long addr2) in pages_do_alias() argument
10 return (addr1 ^ addr2) & (SHMLBA-1); in pages_do_alias()
/linux-6.1.9/fs/jfs/
Djfs_types.h54 __le32 addr2; member
69 pxd->addr2 = cpu_to_le32(addr & 0xffffffff); in PXDaddress()
81 return (n << 8) + le32_to_cpu(pxd->addr2); in addressPXD()
Djfs_dtree.h103 __le32 addr2; /* 4: lower 32 bits of leaf page address -OR- member
116 (dir_table_slot)->addr2 = __cpu_to_le32((address64) & 0xffffffff);\
120 ( ((s64)((dts)->addr1)) << 32 | __le32_to_cpu((dts)->addr2) )
/linux-6.1.9/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c287 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt()
367 hdr->addr2); in rtllib_tkip_decrypt()
382 hdr->addr2, keyidx); in rtllib_tkip_decrypt()
397 hdr->addr2, tkey->rx_iv32, in rtllib_tkip_decrypt()
407 hdr->addr2, iv32); in rtllib_tkip_decrypt()
434 hdr->addr2); in rtllib_tkip_decrypt()
493 ether_addr_copy(hdr + ETH_ALEN, hdr11->addr2); /* SA */ in michael_mic_hdr()
505 ether_addr_copy(hdr + ETH_ALEN, hdr11->addr2); /* SA */ in michael_mic_hdr()
558 ether_addr_copy(ev.src_addr.sa_data, hdr->addr2); in rtllib_michael_mic_failure()
590 hdr->addr2, keyidx); in rtllib_michael_mic_verify()
/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c287 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in ieee80211_tkip_encrypt()
360 " flag from %pM\n", hdr->addr2); in ieee80211_tkip_decrypt()
374 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt()
388 "%08x%04x\n", hdr->addr2, in ieee80211_tkip_decrypt()
396 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in ieee80211_tkip_decrypt()
423 "%pM\n", hdr->addr2); in ieee80211_tkip_decrypt()
482 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
494 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
550 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in ieee80211_michael_mic_failure()
584 hdr->addr2, keyidx); in ieee80211_michael_mic_verify()
Dieee80211_crypt_ccmp.c131 memcpy(iv + 2, hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad()
145 memcpy(&aad[8], &hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad()
249 hdr->addr2); in ieee80211_ccmp_decrypt()
263 hdr->addr2, keyidx); in ieee80211_ccmp_decrypt()
279 hdr->addr2, key->rx_pn, pn); in ieee80211_ccmp_decrypt()
312 hdr->addr2); in ieee80211_ccmp_decrypt()
/linux-6.1.9/net/rds/
Dthreads.c270 const struct in6_addr *addr2) in rds_addr_cmp() argument
277 a2 = (__be64 *)addr2; in rds_addr_cmp()
299 if (addr1->s6_addr32[i] != addr2->s6_addr32[i]) { in rds_addr_cmp()
301 b = ntohl(addr2->s6_addr32[i]); in rds_addr_cmp()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_tc_tunnel.sh79 ip netns exec "${ns1}" timeout 2 nc "${netcat_opt}" -w 1 "${addr2}" "${port}" < "${infile}"
154 readonly addr2="${ns2_v4}"
165 readonly addr2="${ns2_v6}"
184 echo "encap ${addr1} to ${addr2}, type ${tuntype}, mac ${mac} len ${datalen}"
238 link_addr2="${addr2}"

123456789