/kernel/linux/linux-5.10/net/sctp/ |
H A D | bind_addr.c | 34 union sctp_addr *addr, enum sctp_scope scope, 48 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_copy() local 55 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 67 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 68 error = sctp_copy_one_addr(net, dest, &addr->a, in sctp_bind_addr_copy() 98 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_dup() local 104 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_dup() 105 error = sctp_add_bind_addr(dest, &addr->a, sizeof(addr in sctp_bind_addr_dup() 126 struct sctp_sockaddr_entry *addr, *temp; sctp_bind_addr_clean() local 147 struct sctp_sockaddr_entry *addr; sctp_add_bind_addr() local 181 struct sctp_sockaddr_entry *addr, *temp; sctp_del_bind_addr() local 220 struct sctp_sockaddr_entry *addr; sctp_bind_addrs_to_raw() local 268 union sctp_addr addr; sctp_raw_to_bind_addrs() local 313 sctp_bind_addr_match(struct sctp_bind_addr *bp, const union sctp_addr *addr, struct sctp_sock *opt) sctp_bind_addr_match() argument 365 sctp_bind_addr_conflict(struct sctp_bind_addr *bp, const union sctp_addr *addr, struct sctp_sock *bp_sp, struct sctp_sock *addr_sp) sctp_bind_addr_conflict() argument 400 sctp_bind_addr_state(const struct sctp_bind_addr *bp, const union sctp_addr *addr) sctp_bind_addr_state() argument 429 union sctp_addr *addr; sctp_find_unmatch_addr() local 459 sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest, union sctp_addr *addr, enum sctp_scope scope, gfp_t gfp, int flags) sctp_copy_one_addr() argument 486 sctp_is_any(struct sock *sk, const union sctp_addr *addr) sctp_is_any() argument 505 sctp_in_scope(struct net *net, const union sctp_addr *addr, enum sctp_scope scope) sctp_in_scope() argument 549 struct sctp_sockaddr_entry *addr; sctp_is_ep_boundall() local 566 sctp_scope(const union sctp_addr *addr) sctp_scope() argument [all...] |
/kernel/linux/linux-6.6/net/sctp/ |
H A D | bind_addr.c | 34 union sctp_addr *addr, enum sctp_scope scope, 48 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_copy() local 55 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 67 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 68 error = sctp_copy_one_addr(net, dest, &addr->a, in sctp_bind_addr_copy() 98 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_dup() local 104 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_dup() 105 error = sctp_add_bind_addr(dest, &addr->a, sizeof(addr in sctp_bind_addr_dup() 126 struct sctp_sockaddr_entry *addr, *temp; sctp_bind_addr_clean() local 147 struct sctp_sockaddr_entry *addr; sctp_add_bind_addr() local 181 struct sctp_sockaddr_entry *addr, *temp; sctp_del_bind_addr() local 220 struct sctp_sockaddr_entry *addr; sctp_bind_addrs_to_raw() local 268 union sctp_addr addr; sctp_raw_to_bind_addrs() local 313 sctp_bind_addr_match(struct sctp_bind_addr *bp, const union sctp_addr *addr, struct sctp_sock *opt) sctp_bind_addr_match() argument 365 sctp_bind_addr_conflict(struct sctp_bind_addr *bp, const union sctp_addr *addr, struct sctp_sock *bp_sp, struct sctp_sock *addr_sp) sctp_bind_addr_conflict() argument 400 sctp_bind_addr_state(const struct sctp_bind_addr *bp, const union sctp_addr *addr) sctp_bind_addr_state() argument 429 union sctp_addr *addr; sctp_find_unmatch_addr() local 459 sctp_copy_one_addr(struct net *net, struct sctp_bind_addr *dest, union sctp_addr *addr, enum sctp_scope scope, gfp_t gfp, int flags) sctp_copy_one_addr() argument 486 sctp_is_any(struct sock *sk, const union sctp_addr *addr) sctp_is_any() argument 505 sctp_in_scope(struct net *net, const union sctp_addr *addr, enum sctp_scope scope) sctp_in_scope() argument 549 struct sctp_sockaddr_entry *addr; sctp_is_ep_boundall() local 566 sctp_scope(const union sctp_addr *addr) sctp_scope() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/ |
H A D | subpage_prot.c | 25 unsigned long i, j, addr; in subpage_prot_free() local 37 addr = 0; in subpage_prot_free() 43 for (j = 0; j < SBP_L2_COUNT && addr < spt->maxaddr; in subpage_prot_free() 44 ++j, addr += PAGE_SIZE) in subpage_prot_free() 53 static void hpte_flush_range(struct mm_struct *mm, unsigned long addr, in hpte_flush_range() argument 63 pgd = pgd_offset(mm, addr); in hpte_flush_range() 64 p4d = p4d_offset(pgd, addr); in hpte_flush_range() 67 pud = pud_offset(p4d, addr); in hpte_flush_range() 70 pmd = pmd_offset(pud, addr); in hpte_flush_range() 73 pte = pte_offset_map_lock(mm, pmd, addr, in hpte_flush_range() 90 subpage_prot_clear(unsigned long addr, unsigned long len) subpage_prot_clear() argument 138 subpage_walk_pmd_entry(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk) subpage_walk_pmd_entry() argument 151 subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, unsigned long len) subpage_mark_vma_nohuge() argument 167 subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, unsigned long len) subpage_mark_vma_nohuge() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
H A D | ble_security.cpp | 107 void BleSecurity::LeLocalEncryptionKeyReqEvent(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context) in LeLocalEncryptionKeyReqEvent() argument 118 (void)memcpy_s(&gapCallbackParam.leLocalEncryptionKeyReqEvent_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LeLocalEncryptionKeyReqEvent() 125 void BleSecurity::LeRemoteEncryptionKeyReqEvent(const BtAddr *addr, void *context) in LeRemoteEncryptionKeyReqEvent() argument 136 (void)memcpy_s(&gapCallbackParam.leRemoteEncryptionKeyReqEvent_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LeRemoteEncryptionKeyReqEvent() 142 const BtAddr *addr, GAP_SignCounterType type, uint32_t counter, void *context) in LeSignCounterChangeNotification() 153 (void)memcpy_s(&gapCallbackParam.leSignCounterChangeNotification_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LeSignCounterChangeNotification() 177 void BleSecurity::LePairFeatureInd(const BtAddr *addr, GapLePairFeatur argument 141 LeSignCounterChangeNotification( const BtAddr *addr, GAP_SignCounterType type, uint32_t counter, void *context) LeSignCounterChangeNotification() argument 194 LePairMethodNotify(const BtAddr *addr, uint8_t pairMethod, void *context) LePairMethodNotify() argument 211 LePairKeyPressNotification(const BtAddr *addr, uint8_t pressType, void *context) LePairKeyPressNotification() argument 228 LePairPassKeyReq(const BtAddr *addr, void *context) LePairPassKeyReq() argument 244 LePairOobReq(const BtAddr *addr, void *context) LePairOobReq() argument 260 LePairScOobReq(const BtAddr *addr, void *context) LePairScOobReq() argument 276 LePairScUserConfirmReq(const BtAddr *addr, uint32_t number, void *context) LePairScUserConfirmReq() argument 293 LePairComplete(const BtAddr *addr, uint8_t result, uint8_t keyType, void *context) LePairComplete() argument 311 LePairKeyNotify(const BtAddr *addr, LePairedKeys leKeys, void *context) LePairKeyNotify() argument 363 GapRequestSigningAlgorithmInfo(const BtAddr *addr, void *context) GapRequestSigningAlgorithmInfo() argument 379 LePairPassKeyNotification(const BtAddr *addr, uint32_t number, void *context) LePairPassKeyNotification() argument 396 GapLeRequestSecurityResult( const BtAddr *addr, uint8_t result, GAP_LeSecurityStatus status, void *context) GapLeRequestSecurityResult() argument 420 RawAddress addr = RawAddress::ConvertToString(param.lePairKeyNotify_.addr.addr); SavePairKeyNotify() local 450 SaveLocalPairKey(const RawAddress &addr, const BleGapCallbackParam ¶m) SaveLocalPairKey() argument 477 SavePeerPairKey(const RawAddress &addr, const BleGapCallbackParam ¶m) SavePeerPairKey() argument 521 RawAddress addr = RawAddress::ConvertToString(param.encryptionComplete_.peerAddr.addr); GapEncryptionComplete() local 534 RawAddress addr = RawAddress::ConvertToString(param.leLocalEncryptionKeyReqEvent_.addr.addr); GapLeLocalEncryptionKeyReqEvent() local 563 RawAddress addr = RawAddress::ConvertToString(param.leRemoteEncryptionKeyReqEvent_.addr.addr); GapLeRemoteEncryptionKeyReqEvent() local 591 RawAddress addr = RawAddress::ConvertToString(param.leSignCounterChangeNotification_.addr.addr); GapLeSignCounterChangeNotification() local 605 RawAddress addr = RawAddress::ConvertToString(param.gapRequestSigningAlgorithmInfo_.addr.addr); GapRequestSigningAlgorithmInfoEvt() local 640 RawAddress addr = RawAddress::ConvertToString(param.lePairFeatureReq_.peerAddr.addr); LePairFeatureReq() local 674 PairRequestReply(const RawAddress &addr, int addrType, bool accept) const PairRequestReply() argument 697 RawAddress addr = RawAddress::ConvertToString(param.lePairFeatureReq_.peerAddr.addr); GapLePairFeatureReq() local 713 RawAddress addr = RawAddress::ConvertToString(param.lePairFeatureInd_.addr.addr); GapLePairFeatureInd() local 738 RawAddress addr = RawAddress::ConvertToString(param.lePairPassKeyReq_.addr.addr); GapLePairPassKeyReq() local 752 RawAddress addr = RawAddress::ConvertToString(param.lePairPassKeyNotification_.addr.addr); GapLePairPassKeyNotification() local 767 RawAddress addr = RawAddress::ConvertToString(param.lePairOobReq_.addr.addr); GapLePairOobReq() local 781 RawAddress addr = RawAddress::ConvertToString(param.lePairScOob_req_.addr.addr); GapLePairScOobReq() local 795 RawAddress addr = RawAddress::ConvertToString(param.lePairScUserConfirmReq_.addr.addr); GapLePairScUserConfirmReq() local 810 RawAddress addr = RawAddress::ConvertToString(param.lePairComplete_.addr.addr); GapLePairComplete() local 839 GapLeRequestSecurity(uint16_t connectionHandle, const BtAddr &addr, uint8_t role) GapLeRequestSecurity() argument 899 BtAddr addr = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, peerAddrType}; StartPair() local 916 BtAddr addr = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, peerAddrType}; SetDevicePasskey() local 933 BtAddr addr = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, peerAddrType}; SetUserConfirm() local 948 BtAddr addr = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, peerAddrType}; CancelPairing() local [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | thp.h | 13 TP_PROTO(unsigned long addr, unsigned long pte), 14 TP_ARGS(addr, pte), 16 __field(unsigned long, addr) 21 __entry->addr = addr; 25 TP_printk("hugepage invalidate at addr 0x%lx and pte = 0x%lx", 26 __entry->addr, __entry->pte) 31 TP_PROTO(unsigned long addr, unsigned long pmd), 32 TP_ARGS(addr, pmd), 34 __field(unsigned long, addr) [all...] |
/kernel/linux/linux-5.10/net/ceph/ |
H A D | decode.c | 7 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_versioned() 22 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned() 24 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned() 27 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned() 30 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned() 32 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned() 34 addr in ceph_decode_entity_addr_versioned() 6 ceph_decode_entity_addr_versioned(void **p, void *end, struct ceph_entity_addr *addr) ceph_decode_entity_addr_versioned() argument 46 ceph_decode_entity_addr_legacy(void **p, void *end, struct ceph_entity_addr *addr) ceph_decode_entity_addr_legacy() argument 71 ceph_decode_entity_addr(void **p, void *end, struct ceph_entity_addr *addr) ceph_decode_entity_addr() argument [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | extable.c | 47 struct exception_table_entry *search_kernel_exception_table(unsigned long addr) in search_kernel_exception_table() argument 50 __stop___ex_table - __start___ex_table, addr); in search_kernel_exception_table() 54 const struct exception_table_entry *search_exception_tables(unsigned long addr) in search_exception_tables() argument 58 e = search_kernel_exception_table(addr); in search_exception_tables() 60 e = search_module_extables(addr); in search_exception_tables() 62 e = search_bpf_extables(addr); in search_exception_tables() 66 int notrace core_kernel_text(unsigned long addr) in core_kernel_text() argument 68 if (is_kernel_text(addr)) in core_kernel_text() 72 is_kernel_inittext(addr)) in core_kernel_text() 77 int __kernel_text_address(unsigned long addr) in __kernel_text_address() argument 94 kernel_text_address(unsigned long addr) kernel_text_address() argument 165 unsigned long addr; func_ptr_is_kernel_text() local [all...] |
/kernel/linux/linux-5.10/arch/sparc/mm/ |
H A D | hugetlbpage.c | 27 unsigned long addr, in hugetlb_get_unmapped_area_bottomup() 45 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup() 47 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in hugetlb_get_unmapped_area_bottomup() 48 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_bottomup() 51 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup() 54 return addr; in hugetlb_get_unmapped_area_bottomup() 65 unsigned long addr = addr0; in hugetlb_get_unmapped_area_topdown() local 77 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown() 85 if (addr & ~PAGE_MASK) { in hugetlb_get_unmapped_area_topdown() 86 VM_BUG_ON(addr ! in hugetlb_get_unmapped_area_topdown() 26 hugetlb_get_unmapped_area_bottomup(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) hugetlb_get_unmapped_area_bottomup() argument 97 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) hugetlb_get_unmapped_area() argument 275 huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz) huge_pte_alloc() argument 298 huge_pte_offset(struct mm_struct *mm, unsigned long addr, unsigned long sz) huge_pte_offset() argument 325 set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t entry) set_huge_pte_at() argument 361 huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) huge_ptep_get_and_clear() argument 410 hugetlb_free_pte_range(struct mmu_gather *tlb, pmd_t *pmd, unsigned long addr) hugetlb_free_pte_range() argument 420 hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) hugetlb_free_pmd_range() argument 457 hugetlb_free_pud_range(struct mmu_gather *tlb, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) hugetlb_free_pud_range() argument 495 hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) hugetlb_free_pgd_range() argument [all...] |
/kernel/liteos_a/kernel/include/ |
H A D | los_base.h | 79 * Align the beginning of the object with the base address addr, with boundary bytes being the smallest unit of 83 #define ALIGN(addr, boundary) LOS_Align(addr, boundary) 88 * Align the tail of the object with the base address addr, with size bytes being the smallest unit of alignment. 90 #define TRUNCATE(addr, size) ((UINTPTR)(addr) & ~((size) - 1)) 94 * Read a UINT8 value from addr and stored in value. 96 #define READ_UINT8(value, addr) ({ (value) = *((volatile UINT8 *)((UINTPTR)(addr))); DSB; }) 100 * Read a UINT16 value from addr an [all...] |
/kernel/linux/linux-6.6/arch/parisc/include/asm/ |
H A D | io.h | 11 static inline unsigned long isa_bus_to_virt(unsigned long addr) { in isa_bus_to_virt() argument 16 static inline unsigned long isa_virt_to_bus(void *addr) { in isa_virt_to_bus() argument 30 static inline unsigned char gsc_readb(unsigned long addr) in gsc_readb() argument 39 : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); in gsc_readb() 44 static inline unsigned short gsc_readw(unsigned long addr) in gsc_readw() argument 53 : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); in gsc_readw() 58 static inline unsigned int gsc_readl(unsigned long addr) in gsc_readl() argument 64 : "=r" (ret) : "r" (addr) ); in gsc_readl() 69 static inline unsigned long long gsc_readq(unsigned long addr) in gsc_readq() argument 76 : "=r" (ret) : "r" (addr) ); in gsc_readq() 85 gsc_writeb(unsigned char val, unsigned long addr) gsc_writeb() argument 95 gsc_writew(unsigned short val, unsigned long addr) gsc_writew() argument 105 gsc_writel(unsigned int val, unsigned long addr) gsc_writel() argument 112 gsc_writeq(unsigned long long val, unsigned long addr) gsc_writeq() argument 184 inb(unsigned long addr) inb() argument 190 inw(unsigned long addr) inw() argument 196 inl(unsigned long addr) inl() argument [all...] |
/third_party/node/deps/cares/src/lib/ |
H A D | ares_gethostbyaddr.c | 54 struct ares_addr addr; member 68 const struct ares_addr *addr, 71 static void ares_gethostbyaddr_int(ares_channel_t *channel, const void *addr, in ares_gethostbyaddr_int() argument 82 if ((family == AF_INET && addrlen != sizeof(aquery->addr.addr.addr4)) || in ares_gethostbyaddr_int() 83 (family == AF_INET6 && addrlen != sizeof(aquery->addr.addr.addr6))) { in ares_gethostbyaddr_int() 101 memcpy(&aquery->addr.addr.addr4, addr, sizeo in ares_gethostbyaddr_int() 114 ares_gethostbyaddr(ares_channel_t *channel, const void *addr, int addrlen, int family, ares_host_callback callback, void *arg) ares_gethostbyaddr() argument 199 file_lookup(ares_channel_t *channel, const struct ares_addr *addr, struct hostent **host) file_lookup() argument [all...] |
H A D | ares_update_servers.c | 58 struct ares_addr addr; member 81 if (addr1->family == AF_INET && memcmp(&addr1->addr.addr4, &addr2->addr.addr4, in ares__addr_match() 82 sizeof(addr1->addr.addr4)) == 0) { in ares__addr_match() 87 memcmp(&addr1->addr.addr6._S6_un._S6_u8, &addr2->addr.addr6._S6_un._S6_u8, in ares__addr_match() 88 sizeof(addr1->addr.addr6._S6_un._S6_u8)) == 0) { in ares__addr_match() 95 ares_bool_t ares__subnet_match(const struct ares_addr *addr, in ares__subnet_match() argument 104 if (addr == NULL || subnet == NULL) { in ares__subnet_match() 108 if (addr in ares__subnet_match() 149 ares__addr_is_linklocal(const struct ares_addr *addr) ares__addr_is_linklocal() argument 163 ares_server_blacklisted(const struct ares_addr *addr) ares_server_blacklisted() argument 373 ares__sconfig_append(ares__llist_t **sconfig, const struct ares_addr *addr, unsigned short udp_port, unsigned short tcp_port, const char *ll_iface) ares__sconfig_append() argument 1130 char addr[64]; ares_get_servers_csv() local [all...] |
/kernel/linux/linux-5.10/mm/kasan/ |
H A D | generic.c | 49 static __always_inline bool memory_is_poisoned_1(unsigned long addr) in memory_is_poisoned_1() argument 51 s8 shadow_value = *(s8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_1() 54 s8 last_accessible_byte = addr & KASAN_SHADOW_MASK; in memory_is_poisoned_1() 61 static __always_inline bool memory_is_poisoned_2_4_8(unsigned long addr, in memory_is_poisoned_2_4_8() argument 64 u8 *shadow_addr = (u8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_2_4_8() 70 if (unlikely(((addr + size - 1) & KASAN_SHADOW_MASK) < size - 1)) in memory_is_poisoned_2_4_8() 71 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8() 73 return memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8() 76 static __always_inline bool memory_is_poisoned_16(unsigned long addr) in memory_is_poisoned_16() argument 78 u16 *shadow_addr = (u16 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_16() 129 memory_is_poisoned_n(unsigned long addr, size_t size) memory_is_poisoned_n() argument 148 memory_is_poisoned(unsigned long addr, size_t size) memory_is_poisoned() argument 168 check_memory_region_inline(unsigned long addr, size_t size, bool write, unsigned long ret_ip) check_memory_region_inline() argument 195 check_memory_region(unsigned long addr, size_t size, bool write, unsigned long ret_ip) check_memory_region() argument 261 __asan_loadN(unsigned long addr, size_t size) __asan_loadN() argument 271 __asan_storeN(unsigned long addr, size_t size) __asan_storeN() argument 286 __asan_alloca_poison(unsigned long addr, size_t size) __asan_alloca_poison() argument 334 kasan_record_aux_stack(void *addr) kasan_record_aux_stack() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/mm/ |
H A D | hugetlbpage.c | 103 static int find_num_contig(struct mm_struct *mm, unsigned long addr, in find_num_contig() argument 106 pgd_t *pgdp = pgd_offset(mm, addr); in find_num_contig() 112 p4dp = p4d_offset(pgdp, addr); in find_num_contig() 113 pudp = pud_offset(p4dp, addr); in find_num_contig() 114 pmdp = pmd_offset(pudp, addr); in find_num_contig() 182 unsigned long addr, in get_clear_contig() 190 for (i = 0; i < ncontig; i++, addr += pgsize, ptep++) { in get_clear_contig() 191 pte_t pte = ptep_get_and_clear(mm, addr, ptep); in get_clear_contig() 208 unsigned long addr, in get_clear_contig_flush() 213 pte_t orig_pte = get_clear_contig(mm, addr, pte in get_clear_contig_flush() 181 get_clear_contig(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long pgsize, unsigned long ncontig) get_clear_contig() argument 207 get_clear_contig_flush(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long pgsize, unsigned long ncontig) get_clear_contig_flush() argument 229 clear_flush(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long pgsize, unsigned long ncontig) clear_flush() argument 244 set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte, unsigned long sz) set_huge_pte_at() argument 276 huge_pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, unsigned long sz) huge_pte_alloc() argument 314 huge_pte_offset(struct mm_struct *mm, unsigned long addr, unsigned long sz) huge_pte_offset() argument 394 huge_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long sz) huge_pte_clear() argument 406 huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) huge_ptep_get_and_clear() argument 450 huge_ptep_set_access_flags(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t pte, int dirty) huge_ptep_set_access_flags() argument 486 huge_ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) huge_ptep_set_wrprotect() argument 513 huge_ptep_clear_flush(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep) huge_ptep_clear_flush() argument 545 huge_ptep_modify_prot_start(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep) huge_ptep_modify_prot_start() argument 560 huge_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) huge_ptep_modify_prot_commit() argument [all...] |
/kernel/linux/linux-5.10/arch/arm64/mm/ |
H A D | mmu.c | 154 static void init_pte(pmd_t *pmdp, unsigned long addr, unsigned long end, in init_pte() argument 159 ptep = pte_set_fixmap_offset(pmdp, addr); in init_pte() 173 } while (ptep++, addr += PAGE_SIZE, addr != end); in init_pte() 178 static void alloc_init_cont_pte(pmd_t *pmdp, unsigned long addr, in alloc_init_cont_pte() argument 200 next = pte_cont_addr_end(addr, end); in alloc_init_cont_pte() 203 if ((((addr | next | phys) & ~CONT_PTE_MASK) == 0) && in alloc_init_cont_pte() 207 init_pte(pmdp, addr, next, phys, __prot); in alloc_init_cont_pte() 209 phys += next - addr; in alloc_init_cont_pte() 210 } while (addr in alloc_init_cont_pte() 213 init_pmd(pud_t *pudp, unsigned long addr, unsigned long end, phys_addr_t phys, pgprot_t prot, phys_addr_t (*pgtable_alloc)(int), int flags) init_pmd() argument 250 alloc_init_cont_pmd(pud_t *pudp, unsigned long addr, unsigned long end, phys_addr_t phys, pgprot_t prot, phys_addr_t (*pgtable_alloc)(int), int flags) alloc_init_cont_pmd() argument 287 use_1G_block(unsigned long addr, unsigned long next, unsigned long phys) use_1G_block() argument 299 alloc_init_pud(pgd_t *pgdp, unsigned long addr, unsigned long end, phys_addr_t phys, pgprot_t prot, phys_addr_t (*pgtable_alloc)(int), int flags) alloc_init_pud() argument 364 unsigned long addr, end, next; __create_pgd_mapping() local 771 kern_addr_valid(unsigned long addr) kern_addr_valid() argument 851 unmap_hotplug_pte_range(pmd_t *pmdp, unsigned long addr, unsigned long end, bool free_mapped, struct vmem_altmap *altmap) unmap_hotplug_pte_range() argument 872 unmap_hotplug_pmd_range(pud_t *pudp, unsigned long addr, unsigned long end, bool free_mapped, struct vmem_altmap *altmap) unmap_hotplug_pmd_range() argument 905 unmap_hotplug_pud_range(p4d_t *p4dp, unsigned long addr, unsigned long end, bool free_mapped, struct vmem_altmap *altmap) unmap_hotplug_pud_range() argument 938 unmap_hotplug_p4d_range(pgd_t *pgdp, unsigned long addr, unsigned long end, bool free_mapped, struct vmem_altmap *altmap) unmap_hotplug_p4d_range() argument 957 unmap_hotplug_range(unsigned long addr, unsigned long end, bool free_mapped, struct vmem_altmap *altmap) unmap_hotplug_range() argument 983 free_empty_pte_table(pmd_t *pmdp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) free_empty_pte_table() argument 1020 free_empty_pmd_table(pud_t *pudp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) free_empty_pmd_table() argument 1060 free_empty_pud_table(p4d_t *p4dp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) free_empty_pud_table() argument 1100 free_empty_p4d_table(pgd_t *pgdp, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) free_empty_p4d_table() argument 1119 free_empty_tables(unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling) free_empty_tables() argument 1149 unsigned long addr = start; vmemmap_populate() local 1199 fixmap_pud(unsigned long addr) fixmap_pud() argument 1210 fixmap_pmd(unsigned long addr) fixmap_pmd() argument 1220 fixmap_pte(unsigned long addr) fixmap_pte() argument 1237 unsigned long addr = FIXADDR_START; early_fixmap_init() local 1291 unsigned long addr = __fix_to_virt(idx); __set_fixmap() local 1424 pmd_free_pte_page(pmd_t *pmdp, unsigned long addr) pmd_free_pte_page() argument 1443 pud_free_pmd_page(pud_t *pudp, unsigned long addr) pud_free_pmd_page() argument 1471 p4d_free_pud_page(p4d_t *p4d, unsigned long addr) p4d_free_pud_page() argument [all...] |
/third_party/lwip/src/netif/ |
H A D | lowpan6_common.c | 68 if ((ip6addr->addr[2] == (u32_t)PP_HTONL(0x000000ff)) && in lowpan6_get_address_mode() 69 ((ip6addr->addr[3] & PP_HTONL(0xffff0000)) == PP_NTOHL(0xfe000000))) { in lowpan6_get_address_mode() 70 if ((ip6addr->addr[3] & PP_HTONL(0x0000ffff)) == lwip_ntohl((mac_addr->addr[0] << 8) | mac_addr->addr[1])) { in lowpan6_get_address_mode() 75 if ((ip6addr->addr[2] == lwip_ntohl(((mac_addr->addr[0] ^ 2) << 24) | (mac_addr->addr[1] << 16) | mac_addr->addr[2] << 8 | mac_addr->addr[ in lowpan6_get_address_mode() [all...] |
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_connection_addr_utils.c | 64 bool LnnConvertAddrToOption(const ConnectionAddr *addr, ConnectOption *option) in LnnConvertAddrToOption() argument 66 if (addr == NULL || option == NULL) { in LnnConvertAddrToOption() 67 LNN_LOGW(LNN_STATE, "addr or option is null"); in LnnConvertAddrToOption() 70 if (addr->type == CONNECTION_ADDR_BR) { in LnnConvertAddrToOption() 72 if (strncpy_s(option->brOption.brMac, BT_MAC_LEN, addr->info.br.brMac, in LnnConvertAddrToOption() 73 strlen(addr->info.br.brMac)) != EOK) { in LnnConvertAddrToOption() 74 LNN_LOGE(LNN_STATE, "copy br mac to addr fail"); in LnnConvertAddrToOption() 79 if (addr->type == CONNECTION_ADDR_BLE) { in LnnConvertAddrToOption() 81 if (strncpy_s(option->bleOption.bleMac, BT_MAC_LEN, addr->info.ble.bleMac, in LnnConvertAddrToOption() 82 strlen(addr in LnnConvertAddrToOption() 109 LnnConvertOptionToAddr(ConnectionAddr *addr, const ConnectOption *option, ConnectionAddrType hintType) LnnConvertOptionToAddr() argument 187 LnnConvertAddrToAuthConnInfo(const ConnectionAddr *addr, AuthConnInfo *connInfo) LnnConvertAddrToAuthConnInfo() argument 227 LnnConvertAuthConnInfoToAddr(ConnectionAddr *addr, const AuthConnInfo *connInfo, ConnectionAddrType hintType) LnnConvertAuthConnInfoToAddr() argument 265 LnnIsConnectionAddrInvalid(const ConnectionAddr *addr) LnnIsConnectionAddrInvalid() argument 304 LnnPrintConnectionAddr(const ConnectionAddr *addr) LnnPrintConnectionAddr() argument [all...] |
/kernel/linux/linux-5.10/arch/csky/abiv1/ |
H A D | alignment.c | 27 * Get byte-value from addr and set it to *valp. 32 static int ldb_asm(uint32_t addr, uint32_t *valp) in ldb_asm() argument 51 : "r" (addr) in ldb_asm() 60 * Put byte-value to addr. 65 static int stb_asm(uint32_t addr, uint32_t val) in stb_asm() argument 83 : "r"(val), "r" (addr) in stb_asm() 95 static int ldh_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) in ldh_c() argument 99 if (ldb_asm(addr, &byte0)) in ldh_c() 101 addr += 1; in ldh_c() 102 if (ldb_asm(addr, in ldh_c() 117 sth_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) sth_c() argument 142 ldw_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) ldw_c() argument 176 stw_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) stw_c() argument 220 uint32_t addr = 0; csky_alignment() local [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | bitops.h | 36 * bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1). 42 #define ADDR RLONG_ADDR(addr) 48 #define CONST_MASK_ADDR(nr, addr) WBYTE_ADDR((void *)(addr) + ((nr)>>3)) 52 arch_set_bit(long nr, volatile unsigned long *addr) in arch_set_bit() argument 56 : CONST_MASK_ADDR(nr, addr) in arch_set_bit() 61 : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); in arch_set_bit() 66 arch___set_bit(long nr, volatile unsigned long *addr) in arch___set_bit() argument 72 arch_clear_bit(long nr, volatile unsigned long *addr) in arch_clear_bit() argument 85 arch_clear_bit_unlock(long nr, volatile unsigned long *addr) arch_clear_bit_unlock() argument 92 arch___clear_bit(long nr, volatile unsigned long *addr) arch___clear_bit() argument 98 arch_clear_bit_unlock_is_negative_byte(long nr, volatile unsigned long *addr) arch_clear_bit_unlock_is_negative_byte() argument 111 arch___clear_bit_unlock(long nr, volatile unsigned long *addr) arch___clear_bit_unlock() argument 117 arch___change_bit(long nr, volatile unsigned long *addr) arch___change_bit() argument 123 arch_change_bit(long nr, volatile unsigned long *addr) arch_change_bit() argument 136 arch_test_and_set_bit(long nr, volatile unsigned long *addr) arch_test_and_set_bit() argument 142 arch_test_and_set_bit_lock(long nr, volatile unsigned long *addr) arch_test_and_set_bit_lock() argument 148 arch___test_and_set_bit(long nr, volatile unsigned long *addr) arch___test_and_set_bit() argument 160 arch_test_and_clear_bit(long nr, volatile unsigned long *addr) arch_test_and_clear_bit() argument 174 arch___test_and_clear_bit(long nr, volatile unsigned long *addr) arch___test_and_clear_bit() argument 186 arch___test_and_change_bit(long nr, volatile unsigned long *addr) arch___test_and_change_bit() argument 199 arch_test_and_change_bit(long nr, volatile unsigned long *addr) arch_test_and_change_bit() argument 204 constant_test_bit(long nr, const volatile unsigned long *addr) constant_test_bit() argument 210 variable_test_bit(long nr, volatile const unsigned long *addr) variable_test_bit() argument [all...] |
/kernel/linux/linux-6.6/arch/csky/abiv1/ |
H A D | alignment.c | 27 * Get byte-value from addr and set it to *valp. 32 static int ldb_asm(uint32_t addr, uint32_t *valp) in ldb_asm() argument 51 : "r" (addr) in ldb_asm() 60 * Put byte-value to addr. 65 static int stb_asm(uint32_t addr, uint32_t val) in stb_asm() argument 83 : "r"(val), "r" (addr) in stb_asm() 95 static int ldh_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) in ldh_c() argument 99 if (ldb_asm(addr, &byte0)) in ldh_c() 101 addr += 1; in ldh_c() 102 if (ldb_asm(addr, in ldh_c() 117 sth_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) sth_c() argument 142 ldw_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) ldw_c() argument 176 stw_c(struct pt_regs *regs, uint32_t rz, uint32_t addr) stw_c() argument 220 uint32_t addr = 0; csky_alignment() local [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | patch.c | 20 void *addr; member 30 static inline bool is_kernel_exittext(uintptr_t addr) in is_kernel_exittext() argument 33 addr >= (uintptr_t)__exittext_begin && in is_kernel_exittext() 34 addr < (uintptr_t)__exittext_end; in is_kernel_exittext() 42 static __always_inline void *patch_map(void *addr, const unsigned int fixmap) in patch_map() argument 44 uintptr_t uintaddr = (uintptr_t) addr; in patch_map() 48 page = phys_to_page(__pa_symbol(addr)); in patch_map() 50 page = vmalloc_to_page(addr); in patch_map() 52 return addr; in patch_map() 66 static int __patch_insn_set(void *addr, u argument 99 __patch_insn_write(void *addr, const void *insn, size_t len) __patch_insn_write() argument 141 __patch_insn_set(void *addr, u8 c, size_t len) __patch_insn_set() argument 149 __patch_insn_write(void *addr, const void *insn, size_t len) __patch_insn_write() argument 156 patch_insn_set(void *addr, u8 c, size_t len) patch_insn_set() argument 177 patch_text_set_nosync(void *addr, u8 c, size_t len) patch_text_set_nosync() argument 191 patch_insn_write(void *addr, const void *insn, size_t len) patch_insn_write() argument 212 patch_text_nosync(void *addr, const void *insns, size_t len) patch_text_nosync() argument 249 patch_text(void *addr, u32 *insns, int ninsns) patch_text() argument [all...] |
/kernel/linux/linux-5.10/arch/hexagon/include/asm/ |
H A D | bitops.h | 29 * @addr: pointer to memory 31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument 43 : "r" (addr), "r" (nr) in test_and_clear_bit() 53 * @addr: pointer to memory 55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument 67 : "r" (addr), "r" (nr) in test_and_set_bit() 79 * @addr: pointer to memory 81 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument 93 : "r" (addr), "r" (nr) in test_and_change_bit() 106 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument 111 set_bit(int nr, volatile void *addr) set_bit() argument 116 change_bit(int nr, volatile void *addr) change_bit() argument 130 __clear_bit(int nr, volatile unsigned long *addr) __clear_bit() argument 135 __set_bit(int nr, volatile unsigned long *addr) __set_bit() argument 140 __change_bit(int nr, volatile unsigned long *addr) __change_bit() argument 146 __test_and_clear_bit(int nr, volatile unsigned long *addr) __test_and_clear_bit() argument 151 __test_and_set_bit(int nr, volatile unsigned long *addr) __test_and_set_bit() argument 156 __test_and_change_bit(int nr, volatile unsigned long *addr) __test_and_change_bit() argument 161 __test_bit(int nr, const volatile unsigned long *addr) __test_bit() argument [all...] |
/kernel/linux/linux-6.6/arch/hexagon/include/asm/ |
H A D | bitops.h | 29 * @addr: pointer to memory 31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument 43 : "r" (addr), "r" (nr) in test_and_clear_bit() 53 * @addr: pointer to memory 55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument 67 : "r" (addr), "r" (nr) in test_and_set_bit() 79 * @addr: pointer to memory 81 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument 93 : "r" (addr), "r" (nr) in test_and_change_bit() 106 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument 111 set_bit(int nr, volatile void *addr) set_bit() argument 116 change_bit(int nr, volatile void *addr) change_bit() argument 131 arch___clear_bit(unsigned long nr, volatile unsigned long *addr) arch___clear_bit() argument 137 arch___set_bit(unsigned long nr, volatile unsigned long *addr) arch___set_bit() argument 143 arch___change_bit(unsigned long nr, volatile unsigned long *addr) arch___change_bit() argument 150 arch___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) arch___test_and_clear_bit() argument 156 arch___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) arch___test_and_set_bit() argument 162 arch___test_and_change_bit(unsigned long nr, volatile unsigned long *addr) arch___test_and_change_bit() argument 168 arch_test_bit(unsigned long nr, const volatile unsigned long *addr) arch_test_bit() argument 183 arch_test_bit_acquire(unsigned long nr, const volatile unsigned long *addr) arch_test_bit_acquire() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | etherdevice.h | 35 int device_get_mac_address(struct device *dev, char *addr); 37 int fwnode_get_mac_address(struct fwnode_handle *fwnode, char *addr); 76 * @addr: Pointer to a six-byte array containing the Ethernet address 78 * Return true if address is link local reserved addr (01:80:c2:00:00:0X) per 81 * Please note: addr must be aligned to u16. 83 static inline bool is_link_local_ether_addr(const u8 *addr) in is_link_local_ether_addr() argument 85 __be16 *a = (__be16 *)addr; in is_link_local_ether_addr() 90 return (((*(const u32 *)addr) ^ (*(const u32 *)b)) | in is_link_local_ether_addr() 99 * @addr: Pointer to a six-byte array containing the Ethernet address 103 * Please note: addr mus 105 is_zero_ether_addr(const u8 *addr) is_zero_ether_addr() argument 123 is_multicast_ether_addr(const u8 *addr) is_multicast_ether_addr() argument 137 is_multicast_ether_addr_64bits(const u8 *addr) is_multicast_ether_addr_64bits() argument 156 is_local_ether_addr(const u8 *addr) is_local_ether_addr() argument 169 is_broadcast_ether_addr(const u8 *addr) is_broadcast_ether_addr() argument 182 is_unicast_ether_addr(const u8 *addr) is_unicast_ether_addr() argument 198 is_valid_ether_addr(const u8 *addr) is_valid_ether_addr() argument 230 eth_random_addr(u8 *addr) eth_random_addr() argument 243 eth_broadcast_addr(u8 *addr) eth_broadcast_addr() argument 254 eth_zero_addr(u8 *addr) eth_zero_addr() argument 270 u8 addr[ETH_ALEN]; eth_hw_addr_random() local 317 eth_hw_addr_set(struct net_device *dev, const u8 *addr) eth_hw_addr_set() argument 431 ether_addr_is_ipv4_mcast(const u8 *addr) ether_addr_is_ipv4_mcast() argument 439 ether_addr_is_ipv6_mcast(const u8 *addr) ether_addr_is_ipv6_mcast() argument 447 ether_addr_is_ip_mcast(const u8 *addr) ether_addr_is_ip_mcast() argument 459 ether_addr_to_u64(const u8 *addr) ether_addr_to_u64() argument 475 u64_to_ether_addr(u64 u, u8 *addr) u64_to_ether_addr() argument 490 eth_addr_dec(u8 *addr) eth_addr_dec() argument 502 eth_addr_inc(u8 *addr) eth_addr_inc() argument 516 eth_addr_add(u8 *addr, long offset) eth_addr_add() argument 603 u8 addr[ETH_ALEN]; eth_hw_addr_gen() local [all...] |
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | turbosparc.h | 63 static inline void turbosparc_inv_insn_tag(unsigned long addr) in turbosparc_inv_insn_tag() argument 67 : "r" (addr), "i" (ASI_M_TXTC_TAG) in turbosparc_inv_insn_tag() 72 static inline void turbosparc_inv_data_tag(unsigned long addr) in turbosparc_inv_data_tag() argument 76 : "r" (addr), "i" (ASI_M_DATAC_TAG) in turbosparc_inv_data_tag() 82 unsigned long addr; in turbosparc_flush_icache() local 84 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_icache() 85 turbosparc_inv_insn_tag(addr); in turbosparc_flush_icache() 90 unsigned long addr; in turbosparc_flush_dcache() local 98 unsigned long addr; turbosparc_idflash_clear() local [all...] |