Home
last modified time | relevance | path

Searched refs:addr2 (Results 1 - 25 of 620) sorted by relevance

12345678910>>...25

/kernel/linux/linux-6.6/include/linux/
H A 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);
75 * @addr2: The second address to base the search on
84 const unsigned long *addr2, unsigned long size, in find_next_and_bit()
93 val = *addr1 & *addr2 in find_next_and_bit()
83 find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_and_bit() argument
114 find_next_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_andnot_bit() argument
144 find_next_or_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_or_bit() argument
251 find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long n) find_nth_and_bit() argument
278 find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long n) find_nth_andnot_bit() argument
306 find_nth_and_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, const unsigned long *addr3, unsigned long size, unsigned long n) find_nth_and_andnot_bit() argument
334 find_first_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size) find_first_and_bit() argument
402 find_next_and_bit_wrap(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_and_bit_wrap() argument
[all...]
/third_party/node/test/cctest/
H A Dtest_sockaddr.cc18 SocketAddress addr2(reinterpret_cast<const sockaddr*>(&storage2)); in TEST()
28 CHECK_NE(addr, addr2); in TEST()
32 CHECK_NE(SocketAddress::Hash()(addr), SocketAddress::Hash()(addr2)); in TEST()
90 SocketAddress addr2(reinterpret_cast<const sockaddr*>(&storage[1])); in TEST()
109 foo = lru.Upsert(addr2); in TEST()
112 CHECK_NOT_NULL(lru.Peek(addr2)); in TEST()
113 CHECK_EQ(lru.Peek(addr2)->c, 2); in TEST()
126 // addr2 was removed because it was expired. in TEST()
128 CHECK_NULL(lru.Peek(addr2)); in TEST()
142 SocketAddress addr2(reinterpret_cas in TEST()
203 std::shared_ptr<SocketAddress> addr2 = TEST() local
[all...]
/kernel/linux/linux-6.6/lib/
H A Dfind_bit.c111 const unsigned long *addr2, in _find_first_and_bit()
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()
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[id in _find_next_and_bit()
110 _find_first_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size) _find_first_and_bit() argument
158 __find_nth_and_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, const unsigned long *addr3, unsigned long size, unsigned long n) __find_nth_and_andnot_bit() argument
177 _find_next_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long nbits, unsigned long start) _find_next_andnot_bit() argument
186 _find_next_or_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long nbits, unsigned long start) _find_next_or_bit() argument
[all...]
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/
H A Dclient_bus_center_test.cpp63 const ConnectionAddr addr2 = { in HWTEST_F() local
67 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F()
83 const ConnectionAddr addr2 = { in HWTEST_F() local
87 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F()
103 const ConnectionAddr addr2 = { in HWTEST_F() local
107 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F()
123 const ConnectionAddr addr2 = { in HWTEST_F() local
127 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/bus_center/utils/
H A Dlnn_bus_center_utils_test.cpp76 ConnectionAddr addr2; in HWTEST_F() local
78 (void)memset_s(&addr2, sizeof(ConnectionAddr), 0, sizeof(ConnectionAddr)); in HWTEST_F()
87 (void)strcpy_s(addr2.info.br.brMac, BT_MAC_LEN, NODE2_BR_MAC); in HWTEST_F()
88 (void)strcpy_s(addr2.info.ble.bleMac, BT_MAC_LEN, NODE2_BLE_MAC); in HWTEST_F()
89 (void)memcpy_s(addr2.info.ble.udidHash, UDID_HASH_LEN, NODE2_UDID_HASH, UDID_HASH_LEN); in HWTEST_F()
90 (void)strcpy_s(addr2.info.ip.ip, IP_STR_MAX_LEN, NODE2_IP); in HWTEST_F()
91 addr2.info.ip.port = NODE2_PORT; in HWTEST_F()
92 addr2.info.session.sessionId = NODE2_SESSION_ID; in HWTEST_F()
93 addr2.info.session.channelId = NODE2_CHANNEL_ID; in HWTEST_F()
94 addr2 in HWTEST_F()
[all...]
/kernel/linux/linux-5.10/tools/lib/
H A Dfind_bit.c29 * - The optional "addr2", which is anded with "addr1" if present.
32 const unsigned long *addr2, unsigned long nbits, in _find_next_bit()
41 if (addr2) in _find_next_bit()
42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
55 if (addr2) in _find_next_bit()
56 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
119 const unsigned long *addr2, unsigned long size, in find_next_and_bit()
122 return _find_next_bit(addr1, addr2, size, offset, 0UL); in find_next_and_bit()
31 _find_next_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long nbits, unsigned long start, unsigned long invert) _find_next_bit() argument
118 find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_and_bit() argument
/kernel/liteos_a/net/lwip-2.1/enhancement/include/lwip/
H A Dfixme.h76 #define ip_addr_netcmp_val(addr1, addr2, mask) ((IP_IS_V6_VAL(*(addr1)) && IP_IS_V6_VAL(*(addr2))) ? \
78 ip4_addr_netcmp(ip_2_ip4(addr1), ip_2_ip4(addr2), mask))
91 #define ip6_addr_cmp(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \
92 ((addr1)->addr[1] == (addr2)->addr[1]) && \
93 ((addr1)->addr[2] == (addr2)->addr[2]) && \
94 ((addr1)->addr[3] == (addr2)->addr[3]))
/kernel/linux/linux-6.6/tools/include/linux/
H A Dfind.h13 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2,
19 const unsigned long *addr2, unsigned long size);
54 * @addr2: The second address to base the search on
63 const unsigned long *addr2, unsigned long size, in find_next_and_bit()
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()
134 * @addr2: The second address to base the search on
142 const unsigned long *addr2, in find_first_and_bit()
146 unsigned long val = *addr1 & *addr2 & GENMASK(size - 1, 0); in find_first_and_bit()
151 return _find_first_and_bit(addr1, addr2, siz in find_first_and_bit()
62 find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_and_bit() argument
141 find_first_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size) find_first_and_bit() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
H A Dip6_addr.h180 #define ip6_addr_netcmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \
181 ((addr1)->addr[1] == (addr2)->addr[1]))
187 * @param addr2 IPv6 address 2
190 #define ip6_addr_netcmp(addr1, addr2) (ip6_addr_netcmp_zoneless((addr1), (addr2)) && \
191 ip6_addr_cmp_zone((addr1), (addr2)))
194 #define ip6_addr_nethostcmp(addr1, addr2) (((addr1)->addr[2] == (addr2)->addr[2]) && \
195 ((addr1)->addr[3] == (addr2)
[all...]
H A Dip_addr.h198 #define ip_addr_netcmp(addr1, addr2, mask) ((IP_IS_V6(addr1) && IP_IS_V6(addr2)) ? \
200 ip4_addr_netcmp(ip_2_ip4(addr1), ip_2_ip4(addr2), mask))
202 #define ip_addr_netcmp_val(addr1, addr2, mask) ((IP_IS_V6_VAL(*(addr1)) && IP_IS_V6_VAL(*(addr2))) ? \
204 ip4_addr_netcmp(ip_2_ip4(addr1), ip_2_ip4(addr2), mask))
208 int ip_addr_cmp(const ip_addr_t *addr1, const ip_addr_t *addr2);
211 #define ip_addr_cmp(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \
212 ip6_addr_cmp(ip_2_ip6(addr1), ip_2_ip6(addr2))
[all...]
/kernel/linux/linux-5.10/lib/
H A Dfind_bit.c29 * - The optional "addr2", which is anded with "addr1" if present.
32 const unsigned long *addr2, unsigned long nbits, in _find_next_bit()
41 if (addr2) in _find_next_bit()
42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
60 if (addr2) in _find_next_bit()
61 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
95 const unsigned long *addr2, unsigned long size, in find_next_and_bit()
98 return _find_next_bit(addr1, addr2, size, offset, 0UL, 0); in find_next_and_bit()
31 _find_next_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long nbits, unsigned long start, unsigned long invert, unsigned long le) _find_next_bit() argument
94 find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size, unsigned long offset) find_next_and_bit() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/falcon/
H A 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()
/third_party/lwip/src/include/lwip/
H A Dip6_addr.h150 #define ip6_addr_netcmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \
151 ((addr1)->addr[1] == (addr2)->addr[1]))
157 * @param addr2 IPv6 address 2
160 #define ip6_addr_netcmp(addr1, addr2) (ip6_addr_netcmp_zoneless((addr1), (addr2)) && \
161 ip6_addr_cmp_zone((addr1), (addr2)))
164 #define ip6_addr_nethostcmp(addr1, addr2) (((addr1)->addr[2] == (addr2)->addr[2]) && \
165 ((addr1)->addr[3] == (addr2)
[all...]
H A Dip_addr.h198 #define ip_addr_netcmp(addr1, addr2, mask) ((IP_IS_V6(addr1) && IP_IS_V6(addr2)) ? \
200 ip4_addr_netcmp(ip_2_ip4(addr1), ip_2_ip4(addr2), mask))
202 #define ip_addr_cmp(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \
203 ip6_addr_cmp(ip_2_ip6(addr1), ip_2_ip6(addr2)) : \
204 ip4_addr_cmp(ip_2_ip4(addr1), ip_2_ip4(addr2))))
206 #define ip_addr_cmp_zoneless(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \
207 ip6_addr_cmp_zoneless(ip_2_ip6(addr1), ip_2_ip6(addr2))
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Detherdevice.h332 * @addr2: Pointer other six-byte array containing the Ethernet address
336 * Please note: addr1 & addr2 must both be aligned to u16.
338 static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2) in ether_addr_equal() argument
341 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) | in ether_addr_equal()
342 ((*(const u16 *)(addr1 + 4)) ^ (*(const u16 *)(addr2 + 4))); in ether_addr_equal()
347 const u16 *b = (const u16 *)addr2; in ether_addr_equal()
356 * @addr2: Pointer to an other array of 8 bytes
364 * Please note that alignment of addr1 & addr2 are only guaranteed to be 16 bits.
367 static inline bool ether_addr_equal_64bits(const u8 *addr1, const u8 *addr2) in ether_addr_equal_64bits() argument
370 u64 fold = (*(const u64 *)addr1) ^ (*(const u64 *)addr2); in ether_addr_equal_64bits()
391 ether_addr_equal_unaligned(const u8 *addr1, const u8 *addr2) ether_addr_equal_unaligned() argument
410 ether_addr_equal_masked(const u8 *addr1, const u8 *addr2, const u8 *mask) ether_addr_equal_masked() argument
[all...]
/kernel/linux/linux-5.10/arch/sh/mm/
H A 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()
/kernel/linux/linux-6.6/arch/sh/mm/
H A 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()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap02.c40 static unsigned long *addr2; variable
84 addr2 = mmap((void *)low_addr2, map_sz, PROT_READ | PROT_WRITE, in test_hugemmap()
87 if (addr2 == MAP_FAILED) { in test_hugemmap()
94 if (addr2 == MAP_FAILED) in test_hugemmap()
97 else if (addr2 > 0) { in test_hugemmap()
110 if (munmap(addr2, map_sz) == -1) in test_hugemmap()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
H A Dsmp.c463 unsigned long addr2; member
504 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_tlb_range()
513 .addr2 = end, in flush_tlb_range()
521 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in ipi_flush_tlb_kernel_range()
528 .addr2 = end, in flush_tlb_kernel_range()
548 local_flush_cache_page(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_page()
557 .addr2 = pfn, in flush_cache_page()
565 local_flush_cache_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_range()
574 .addr2 = end, in flush_cache_range()
582 local_flush_icache_range(fd->addr1, fd->addr2); in ipi_flush_icache_range()
[all...]
/kernel/linux/linux-6.6/arch/xtensa/kernel/
H A 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...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dudpgro.sh69 local addr1 addr2 pid family="" ipt_cmd=ip6tables
78 addr2=192.168.1.3/24
81 addr2="2001:db8::3/64 nodad"
85 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}
88 ip netns exec "${PEER_NS}" $ipt_cmd -t nat -I PREROUTING -d ${addr1} -j DNAT --to-destination ${addr2%/*}
94 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${family} -b ${addr2%/*} ${rx_args} && \
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A 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 ip netns 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} && \
/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_connection_addr_utils.c30 bool LnnIsSameConnectionAddr(const ConnectionAddr *addr1, const ConnectionAddr *addr2, bool isShort) in LnnIsSameConnectionAddr() argument
32 if (addr1 == NULL || addr2 == NULL) { in LnnIsSameConnectionAddr()
33 LNN_LOGD(LNN_STATE, "addr1 or addr2 is null"); in LnnIsSameConnectionAddr()
36 if (addr1->type != addr2->type) { in LnnIsSameConnectionAddr()
37 LNN_LOGD(LNN_STATE, "addr1 type not equal addr2 type"); in LnnIsSameConnectionAddr()
41 return strncmp(addr1->info.br.brMac, addr2->info.br.brMac, BT_MAC_LEN) == 0; in LnnIsSameConnectionAddr()
45 return memcmp(addr1->info.ble.udidHash, addr2->info.ble.udidHash, SHORT_UDID_HASH_LEN) == 0 || in LnnIsSameConnectionAddr()
46 strncmp(addr1->info.ble.bleMac, addr2->info.ble.bleMac, BT_MAC_LEN) == 0; in LnnIsSameConnectionAddr()
48 return memcmp(addr1->info.ble.udidHash, addr2->info.ble.udidHash, UDID_HASH_LEN) == 0 || in LnnIsSameConnectionAddr()
49 strncmp(addr1->info.ble.bleMac, addr2 in LnnIsSameConnectionAddr()
[all...]
/kernel/linux/linux-6.6/tools/lib/
H A Dfind_bit.c85 const unsigned long *addr2, in _find_first_and_bit()
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()
84 _find_first_and_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long size) _find_first_and_bit() argument
/third_party/ltp/testcases/kernel/syscalls/bind/
H A Dbind06.c26 static struct sockaddr_ll addr1, addr2; variable
42 addr2.sll_family = AF_PACKET; in setup()
56 SAFE_BIND(fd, (struct sockaddr *)&addr2, sizeof(addr2)); in do_bind()

Completed in 13 milliseconds

12345678910>>...25