Home
last modified time | relevance | path

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

12345678910

/linux-6.6.21/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,
17 unsigned long _find_next_or_bit(const unsigned long *addr1, const unsigned long *addr2,
23 unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2,
25 unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
27 unsigned long __find_nth_and_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
31 const unsigned long *addr2, unsigned long size);
84 const unsigned long *addr2, unsigned long size, in find_next_and_bit() argument
93 val = *addr1 & *addr2 & GENMASK(size - 1, offset); in find_next_and_bit()
97 return _find_next_and_bit(addr1, addr2, size, offset); in find_next_and_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.6.21/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 const unsigned long *addr2, in __find_nth_and_andnot_bit() argument
163 return FIND_NTH_BIT(addr1[idx] & addr2[idx] & ~addr3[idx], size, n); in __find_nth_and_andnot_bit()
168 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, in _find_next_and_bit() argument
171 return FIND_NEXT_BIT(addr1[idx] & addr2[idx], /* nop */, nbits, start); in _find_next_and_bit()
[all …]
/linux-6.6.21/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.6.21/arch/xtensa/kernel/
Dsmp.c473 unsigned long addr2; member
514 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_tlb_range()
523 .addr2 = end, in flush_tlb_range()
531 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in ipi_flush_tlb_kernel_range()
538 .addr2 = end, in flush_tlb_kernel_range()
558 local_flush_cache_page(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_page()
567 .addr2 = pfn, in flush_cache_page()
575 local_flush_cache_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_range()
584 .addr2 = end, in flush_cache_range()
592 local_flush_icache_range(fd->addr1, fd->addr2); in ipi_flush_icache_range()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/falcon/
Dga102.c94 if ((nvkm_falcon_rd32(falcon, falcon->addr2 + 0x668) & 0x00000010) != 0x00000000) { in ga102_flcn_select()
95 nvkm_falcon_wr32(falcon, falcon->addr2 + 0x668, 0x00000000); in ga102_flcn_select()
97 if (nvkm_falcon_rd32(falcon, falcon->addr2 + 0x668) & 0x00000001) in ga102_flcn_select()
111 nvkm_falcon_wr32(falcon, falcon->addr2 + 0x210, fw->dmem_sign); in ga102_flcn_fw_boot()
112 nvkm_falcon_wr32(falcon, falcon->addr2 + 0x19c, fw->engine_id); in ga102_flcn_fw_boot()
113 nvkm_falcon_wr32(falcon, falcon->addr2 + 0x198, fw->ucode_id); in ga102_flcn_fw_boot()
114 nvkm_falcon_wr32(falcon, falcon->addr2 + 0x180, 0x00000001); in ga102_flcn_fw_boot()
/linux-6.6.21/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.6.21/tools/testing/selftests/mm/
Dhugetlb-madvise.c82 void *addr, *addr2; in main() local
336 addr2 = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
339 if (addr2 == MAP_FAILED) { in main()
345 read_fault_pages(addr2, NR_HUGE_PAGES); in main()
349 write_fault_pages(addr2, NR_HUGE_PAGES); in main()
360 if (madvise(addr2, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
367 write_fault_pages(addr2, NR_HUGE_PAGES); in main()
382 (void)munmap(addr2, NR_HUGE_PAGES * huge_page_size); in main()
/linux-6.6.21/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} && \
Dbind_wildcard.c115 struct sockaddr *addr2, socklen_t addrlen2) in bind_sockets() argument
129 ((struct sockaddr_in *)addr2)->sin_port = ((struct sockaddr_in *)addr1)->sin_port; in bind_sockets()
131 fd[1] = socket(addr2->sa_family, SOCK_STREAM, 0); in bind_sockets()
134 ret = bind(fd[1], addr2, addrlen2); in bind_sockets()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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()
/linux-6.6.21/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.6.21/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.6.21/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()
/linux-6.6.21/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c273 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt()
351 hdr->addr2); in rtllib_tkip_decrypt()
366 hdr->addr2, keyidx); in rtllib_tkip_decrypt()
381 hdr->addr2, tkey->rx_iv32, in rtllib_tkip_decrypt()
391 hdr->addr2, iv32); in rtllib_tkip_decrypt()
418 hdr->addr2); in rtllib_tkip_decrypt()
475 ether_addr_copy(hdr + ETH_ALEN, hdr11->addr2); /* SA */ in michael_mic_hdr()
487 ether_addr_copy(hdr + ETH_ALEN, hdr11->addr2); /* SA */ in michael_mic_hdr()
542 ether_addr_copy(ev.src_addr.sa_data, hdr->addr2); in rtllib_michael_mic_failure()
574 hdr->addr2, keyidx); in rtllib_michael_mic_verify()
/linux-6.6.21/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.6.21/tools/testing/selftests/bpf/
Dtest_tc_tunnel.sh79 ip netns exec "${ns1}" timeout 2 nc "${netcat_opt}" -w 1 "${addr2}" "${port}" < "${infile}"
157 readonly addr2="${ns2_v4}"
168 readonly addr2="${ns2_v6}"
187 echo "encap ${addr1} to ${addr2}, type ${tuntype}, mac ${mac} len ${datalen}"
247 link_addr2="${addr2}"

12345678910