Home
last modified time | relevance | path

Searched refs:addr1 (Results 1 – 25 of 202) sorted by relevance

123456789

/linux/include/linux/
H A Dfind.h11 unsigned long _find_next_bit(const unsigned long *addr1, unsigned long nbits,
13 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,
30 extern unsigned long _find_first_and_bit(const unsigned long *addr1,
32 unsigned long _find_first_and_and_bit(const unsigned long *addr1, const unsigned long *addr2,
85 unsigned long find_next_and_bit(const unsigned long *addr1, in find_next_and_bit() argument
[all …]
H A Detherdevice.h352 static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2) in ether_addr_equal() argument
355 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) | in ether_addr_equal()
356 ((*(const u16 *)(addr1 + 4)) ^ (*(const u16 *)(addr2 + 4))); in ether_addr_equal()
360 const u16 *a = (const u16 *)addr1; in ether_addr_equal()
381 static inline bool ether_addr_equal_64bits(const u8 *addr1, const u8 *addr2) in ether_addr_equal_64bits() argument
384 u64 fold = (*(const u64 *)addr1) ^ (*(const u64 *)addr2); in ether_addr_equal_64bits()
392 return ether_addr_equal(addr1, addr2); in ether_addr_equal_64bits()
405 static inline bool ether_addr_equal_unaligned(const u8 *addr1, const u8 *addr2) in ether_addr_equal_unaligned() argument
408 return ether_addr_equal(addr1, addr2); in ether_addr_equal_unaligned()
410 return memcmp(addr1, addr2, ETH_ALEN) == 0; in ether_addr_equal_unaligned()
[all …]
/linux/lib/
H A Dfind_bit.c110 unsigned long _find_first_and_bit(const unsigned long *addr1, in _find_first_and_bit() argument
114 return FIND_FIRST_BIT(addr1[idx] & addr2[idx], /* nop */, size); in _find_first_and_bit()
122 unsigned long _find_first_and_and_bit(const unsigned long *addr1, in _find_first_and_and_bit() argument
127 return FIND_FIRST_BIT(addr1[idx] & addr2[idx] & addr3[idx], /* nop */, size); in _find_first_and_and_bit()
156 unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2, in __find_nth_and_bit() argument
159 return FIND_NTH_BIT(addr1[idx] & addr2[idx], size, n); in __find_nth_and_bit()
163 unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, in __find_nth_andnot_bit() argument
166 return FIND_NTH_BIT(addr1[idx] & ~addr2[idx], size, n); in __find_nth_andnot_bit()
170 unsigned long __find_nth_and_andnot_bit(const unsigned long *addr1, in __find_nth_and_andnot_bit() argument
175 return FIND_NTH_BIT(addr1[id in __find_nth_and_andnot_bit()
180 _find_next_and_bit(const unsigned long * addr1,const unsigned long * addr2,unsigned long nbits,unsigned long start) _find_next_and_bit() argument
189 _find_next_andnot_bit(const unsigned long * addr1,const unsigned long * addr2,unsigned long nbits,unsigned long start) _find_next_andnot_bit() argument
198 _find_next_or_bit(const unsigned long * addr1,const unsigned long * addr2,unsigned long nbits,unsigned long start) _find_next_or_bit() argument
[all...]
/linux/tools/testing/selftests/drivers/dma-buf/
H A Dudmabuf.c109 static int compare_chunks(void *addr1, void *addr2, off64_t memfd_size) in compare_chunks() argument
118 char1 = *((char *)addr1 + off + (j * getpagesize())); in compare_chunks()
128 munmap(addr1, memfd_size); in compare_chunks()
138 void *addr1, *addr2; in main() local
204 addr1 = mmap_fd(memfd, size); in main()
205 write_to_memfd(addr1, size, 'a'); in main()
215 munmap(addr1, size); in main()
222 addr1 = mmap_fd(memfd, size); in main()
223 write_to_memfd(addr1, size, 'a'); in main()
226 write_to_memfd(addr1, size, 'b'); in main()
[all …]
/linux/tools/include/linux/
H A Dfind.h11 unsigned long _find_next_bit(const unsigned long *addr1, unsigned long nbits,
13 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2,
18 extern unsigned long _find_first_and_bit(const unsigned long *addr1,
62 unsigned long find_next_and_bit(const unsigned long *addr1, 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()
141 unsigned long find_first_and_bit(const unsigned long *addr1, 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/arch/xtensa/kernel/
H A Dsmp.c472 unsigned long addr1; member
499 local_flush_tlb_page(fd->vma, fd->addr1); in ipi_flush_tlb_page()
506 .addr1 = addr, in flush_tlb_page()
514 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_tlb_range()
522 .addr1 = start, in flush_tlb_range()
531 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in ipi_flush_tlb_kernel_range()
537 .addr1 = start, in flush_tlb_kernel_range()
558 local_flush_cache_page(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_page()
566 .addr1 = address, in flush_cache_page()
575 local_flush_cache_range(fd->vma, fd->addr1, fd->addr2); in ipi_flush_cache_range()
[all …]
/linux/arch/sh/kernel/cpu/sh3/
H A Dprobe.c18 unsigned long addr0, addr1, data0, data1, data2, data3; in cpu_probe() local
27 addr1 = CACHE_OC_ADDRESS_ARRAY + (1 << 12); in cpu_probe()
32 data1 = __raw_readl(addr1); in cpu_probe()
33 __raw_writel(data1&~(SH_CACHE_VALID|SH_CACHE_UPDATED), addr1); in cpu_probe()
39 data1 = __raw_readl(addr1); in cpu_probe()
41 __raw_writel(data2, addr1); in cpu_probe()
46 __raw_writel(data2&~SH_CACHE_VALID, addr1); in cpu_probe()
/linux/arch/sh/mm/
H A Dtlb-debugfs.c42 unsigned long addr1, addr2, data1, data2; in tlb_seq_show() local
55 addr1 = MMU_ITLB_ADDRESS_ARRAY; in tlb_seq_show()
61 addr1 = MMU_UTLB_ADDRESS_ARRAY; in tlb_seq_show()
78 addr1 = MMU_ITLB_ADDRESS_ARRAY; in tlb_seq_show()
84 addr1 = MMU_UTLB_ADDRESS_ARRAY; in tlb_seq_show()
100 val = __raw_readl(addr1 | (entry << MMU_TLB_ENTRY_SHIFT)); in tlb_seq_show()
/linux/arch/sh/kernel/
H A Dsmp.c381 unsigned long addr1; member
389 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in flush_tlb_range_ipi()
402 fd.addr1 = start; in flush_tlb_range()
419 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in flush_tlb_kernel_range_ipi()
426 fd.addr1 = start; in flush_tlb_kernel_range()
435 local_flush_tlb_page(fd->vma, fd->addr1); in flush_tlb_page_ipi()
446 fd.addr1 = page; in flush_tlb_page()
461 local_flush_tlb_one(fd->addr1, fd->addr2); in flush_tlb_one_ipi()
468 fd.addr1 = asid; in flush_tlb_one()
/linux/Documentation/translations/zh_CN/core-api/
H A 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)));
140 const u16 *a = (const u16 *)addr1;
147 边界上访问内存时,对a[0]的引用导致从地址addr1开始的2个字节(16位)被读取。
149 想一想,如果addr1是一个奇怪的地址,如0x10003,会发生什么?(提示:这将是一个非对齐访
/linux/tools/lib/
H A Dfind_bit.c84 unsigned long _find_first_and_bit(const unsigned long *addr1, 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/tools/testing/selftests/net/
H A Dudpgro.sh72 local addr1 addr2 pid family="" ipt_cmd=ip6tables
81 addr1=192.168.1.1
84 addr1=2001:db8::1
92 …ip netns exec "${PEER_NS}" $ipt_cmd -t nat -I PREROUTING -d ${addr1} -j DNAT --to-destination ${ad…
96 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -G ${family} -b ${addr1} -n 0 &
/linux/kernel/kcsan/
H A Dencoding.h93 static __always_inline bool matching_access(unsigned long addr1, size_t size1, in matching_access() argument
96 unsigned long end_range1 = addr1 + size1 - 1; in matching_access()
99 return addr1 <= end_range2 && addr2 <= end_range1; in matching_access()
/linux/arch/s390/boot/
H A Dboot.h105 unsigned long addr1, unsigned long size1) in intersects() argument
107 return addr0 + size0 > addr1 && addr1 + size1 > addr0; in intersects()
/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence-host.c224 u32 addr0, addr1, aperture, value; in cdns_pcie_host_bar_ib_config() local
234 addr1 = upper_32_bits(cpu_addr); in cdns_pcie_host_bar_ib_config()
236 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR1(bar), addr1); in cdns_pcie_host_bar_ib_config()
438 u32 addr0, addr1, desc1; in cdns_pcie_host_init_address_translation() local
450 addr1 = 0; /* Should be programmed to zero. */ in cdns_pcie_host_init_address_translation()
452 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR1(0), addr1); in cdns_pcie_host_init_address_translation()
460 addr1 = upper_32_bits(cpu_addr); in cdns_pcie_host_init_address_translation()
462 cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR1(0), addr1); in cdns_pcie_host_init_address_translation()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsetup.c228 union tcp_addr addr1, union tcp_addr addr2, in __test_init() argument
261 link_init(veth_name, family, prefix, addr2, addr1); in __test_init()
267 targ.dest_ip = addr1; in __test_init()
274 link_init(veth_name, family, prefix, addr1, addr2); in __test_init()
276 this_ip_addr = addr1; in __test_init()
/linux/arch/mips/kernel/
H A Dsmp.c570 unsigned long addr1; member
578 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in flush_tlb_range_ipi()
606 .addr1 = start, in flush_tlb_range()
635 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in flush_tlb_kernel_range_ipi()
641 .addr1 = start, in flush_tlb_kernel_range()
652 local_flush_tlb_page(fd->vma, fd->addr1); in flush_tlb_page_ipi()
674 .addr1 = page, in flush_tlb_page()
/linux/arch/openrisc/kernel/
H A Dsmp.c245 unsigned long addr1; member
253 local_flush_tlb_page(NULL, fd->addr1); in ipi_flush_tlb_page()
260 local_flush_tlb_range(NULL, fd->addr1, fd->addr2); in ipi_flush_tlb_range()
282 fd.addr1 = start; in smp_flush_tlb_range()
/linux/drivers/net/ethernet/apm/xgene-v2/
H A Dmac.c69 u32 addr0, addr1; in xge_mac_set_station_addr() local
73 addr1 = (dev_addr[5] << 24) | (dev_addr[4] << 16); in xge_mac_set_station_addr()
76 xge_wr_csr(pdata, STATION_ADDR1, addr1); in xge_mac_set_station_addr()
/linux/arch/csky/abiv1/inc/abi/
H A Dpage.h7 static inline unsigned long pages_do_alias(unsigned long addr1, in pages_do_alias() argument
10 return (addr1 ^ addr2) & (SHMLBA-1); in pages_do_alias()
/linux/net/rds/
H A Dthreads.c269 int rds_addr_cmp(const struct in6_addr *addr1, in rds_addr_cmp() argument
276 a1 = (__be64 *)addr1; in rds_addr_cmp()
299 if (addr1->s6_addr32[i] != addr2->s6_addr32[i]) { in rds_addr_cmp()
300 a = ntohl(addr1->s6_addr32[i]); in rds_addr_cmp()
/linux/include/soc/qcom/
H A Dcmd-db.h27 bool cmd_db_match_resource_addr(u32 addr1, u32 addr2);
39 static inline bool cmd_db_match_resource_addr(u32 addr1, u32 addr2) in cmd_db_match_resource_addr() argument
/linux/arch/loongarch/kernel/
H A Dsmp.c662 unsigned long addr1; member
670 local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); in flush_tlb_range_ipi()
681 .addr1 = start, in flush_tlb_range()
702 local_flush_tlb_kernel_range(fd->addr1, fd->addr2); in flush_tlb_kernel_range_ipi()
708 .addr1 = start, in flush_tlb_kernel_range()
719 local_flush_tlb_page(fd->vma, fd->addr1); in flush_tlb_page_ipi()
728 .addr1 = page, in flush_tlb_page()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.h35 hwsq_reg2(u32 addr1, u32 addr2) in hwsq_reg2() argument
40 .addr = addr1, in hwsq_reg2()
41 .stride = addr2 - addr1, in hwsq_reg2()
/linux/net/mac80211/
H A Dmesh_ps.c43 memcpy(nullfunc->addr1, sta->sta.addr, ETH_ALEN); in mps_qos_null_get()
198 if (WARN_ON(is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags()
203 if (is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags()
220 if ((is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags()
222 (is_multicast_ether_addr(hdr->addr1) && in ieee80211_mps_set_frame_flags()
345 if (is_unicast_ether_addr(hdr->addr1) && in ieee80211_mps_rx_h_sta_process()

123456789