Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 140) sorted by relevance

123456

/fs/minix/
Dminix.h108 #define minix_test_and_set_bit(nr, addr) \ argument
109 __test_and_set_bit((nr), (unsigned long *)(addr))
110 #define minix_set_bit(nr, addr) \ argument
111 __set_bit((nr), (unsigned long *)(addr))
112 #define minix_test_and_clear_bit(nr, addr) \ argument
113 __test_and_clear_bit((nr), (unsigned long *)(addr))
114 #define minix_test_bit(nr, addr) \ argument
115 test_bit((nr), (unsigned long *)(addr))
116 #define minix_find_first_zero_bit(addr, size) \ argument
117 find_first_zero_bit((unsigned long *)(addr), (size))
[all …]
/fs/proc/
Dtask_mmu.c504 static int smaps_pte_hole(unsigned long addr, unsigned long end, in smaps_pte_hole() argument
511 linear_page_index(vma, addr), in smaps_pte_hole()
520 static void smaps_pte_hole_lookup(unsigned long addr, struct mm_walk *walk) in smaps_pte_hole_lookup() argument
525 smaps_pte_hole(addr, addr + PAGE_SIZE, 0, walk); in smaps_pte_hole_lookup()
530 static void smaps_pte_entry(pte_t *pte, unsigned long addr, in smaps_pte_entry() argument
540 page = vm_normal_page(vma, addr, *pte); in smaps_pte_entry()
568 smaps_pte_hole_lookup(addr, walk); in smaps_pte_entry()
579 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument
590 page = follow_trans_huge_pmd(vma, addr, pmd, FOLL_DUMP); in smaps_pmd_entry()
614 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument
[all …]
Dkcore.c81 void __init kclist_add(struct kcore_list *new, void *addr, size_t size, in kclist_add() argument
84 new->addr = (unsigned long)addr; in kclist_add()
101 try = kc_vaddr_to_offset((size_t)m->addr + m->size); in get_kcore_size()
133 ent->addr = (unsigned long)__va(0); in kcore_ram_list()
147 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info()
160 if (start < tmp->addr + tmp->size) in get_sparsemem_vmemmap_info()
161 if (end > tmp->addr) in get_sparsemem_vmemmap_info()
162 end = tmp->addr; in get_sparsemem_vmemmap_info()
168 vmm->addr = start; in get_sparsemem_vmemmap_info()
200 ent->addr = (unsigned long)page_to_virt(p); in kclist_add_private()
[all …]
Dvmcore.c183 int __weak elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size) in elfcorehdr_alloc() argument
191 void __weak elfcorehdr_free(unsigned long long addr) in elfcorehdr_free() argument
1212 u64 addr; in parse_crash_elf64_headers() local
1214 addr = elfcorehdr_addr; in parse_crash_elf64_headers()
1217 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr); in parse_crash_elf64_headers()
1243 addr = elfcorehdr_addr; in parse_crash_elf64_headers()
1244 rc = elfcorehdr_read(elfcorebuf, elfcorebuf_sz_orig, &addr); in parse_crash_elf64_headers()
1268 u64 addr; in parse_crash_elf32_headers() local
1270 addr = elfcorehdr_addr; in parse_crash_elf32_headers()
1273 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr); in parse_crash_elf32_headers()
[all …]
/fs/quota/
Dquota.c107 static int quota_getfmt(struct super_block *sb, int type, void __user *addr) in quota_getfmt() argument
114 if (copy_to_user(addr, &fmt, sizeof(fmt))) in quota_getfmt()
119 static int quota_getinfo(struct super_block *sb, int type, void __user *addr) in quota_getinfo() argument
142 if (copy_to_user(addr, &uinfo, sizeof(uinfo))) in quota_getinfo()
147 static int quota_setinfo(struct super_block *sb, int type, void __user *addr) in quota_setinfo() argument
152 if (copy_from_user(&info, addr, sizeof(info))) in quota_setinfo()
202 void __user *addr) in quota_getquota() argument
220 struct compat_if_dqblk __user *compat_dqblk = addr; in quota_getquota()
227 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getquota()
238 void __user *addr) in quota_getnextquota() argument
[all …]
/fs/smb/client/
Dcifs_swn.c81 struct sockaddr_storage *addr; in cifs_swn_send_register_message() local
115 addr = &swnreg->tcon->ses->server->swn_dstaddr; in cifs_swn_send_register_message()
117 addr = &swnreg->tcon->ses->server->dstaddr; in cifs_swn_send_register_message()
119 ret = nla_put(skb, CIFS_GENL_ATTR_SWN_IP, sizeof(struct sockaddr_storage), addr); in cifs_swn_send_register_message()
463 static int cifs_swn_reconnect(struct cifs_tcon *tcon, struct sockaddr_storage *addr) in cifs_swn_reconnect() argument
469 if (cifs_sockaddr_equal(&tcon->ses->server->dstaddr, addr)) in cifs_swn_reconnect()
472 ret = cifs_swn_store_swn_addr(addr, &tcon->ses->server->dstaddr, in cifs_swn_reconnect()
509 static int cifs_swn_client_move(struct cifs_swn_reg *swnreg, struct sockaddr_storage *addr) in cifs_swn_client_move() argument
511 struct sockaddr_in *ipv4 = (struct sockaddr_in *)addr; in cifs_swn_client_move()
512 struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)addr; in cifs_swn_client_move()
[all …]
Dcifsroot.c28 char addr[sizeof("aaa.bbb.ccc.ddd")]; in parse_srvaddr() local
31 while (start < end && i < sizeof(addr) - 1) { in parse_srvaddr()
33 addr[i++] = *start; in parse_srvaddr()
36 addr[i] = '\0'; in parse_srvaddr()
37 return in_aton(addr); in parse_srvaddr()
/fs/dlm/
Dconfig.c295 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member
552 kfree(cm->addr[cm->addr_count]); in drop_comm()
667 struct sockaddr_storage *addr; in comm_addr_store() local
676 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store()
677 if (!addr) in comm_addr_store()
680 memcpy(addr, buf, len); in comm_addr_store()
682 rv = dlm_lowcomms_addr(cm->nodeid, addr, len); in comm_addr_store()
684 kfree(addr); in comm_addr_store()
688 cm->addr[cm->addr_count++] = addr; in comm_addr_store()
698 struct sockaddr_storage *addr; in comm_addr_list_show() local
[all …]
Dlowcomms.c145 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member
154 struct sockaddr *addr, int addr_len);
376 memcpy(&sas, na->addr[na->curr_addr_index], in nodeid_to_addr()
414 static int addr_to_nodeid(struct sockaddr_storage *addr, int *nodeid, in addr_to_nodeid() argument
427 if (addr_compare(na->addr[addr_i], addr)) { in addr_to_nodeid()
442 const struct sockaddr_storage *addr) in dlm_lowcomms_na_has_addr() argument
447 if (addr_compare(na->addr[i], addr)) in dlm_lowcomms_na_has_addr()
454 int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len) in dlm_lowcomms_addr() argument
470 memcpy(new_addr, addr, len); in dlm_lowcomms_addr()
476 new_node->addr[0] = new_addr; in dlm_lowcomms_addr()
[all …]
/fs/ubifs/
Dlpt.c222 static void pack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, uint32_t val, int nrbit… in pack_bits() argument
224 uint8_t *p = *addr; in pack_bits()
260 *addr = p; in pack_bits()
273 uint32_t ubifs_unpack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, int nrbits) in ubifs_unpack_bits() argument
276 uint8_t *p = *addr; in ubifs_unpack_bits()
328 *addr = p; in ubifs_unpack_bits()
343 uint8_t *addr = buf + UBIFS_LPT_CRC_BYTES; in ubifs_pack_pnode() local
347 pack_bits(c, &addr, &pos, UBIFS_LPT_PNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_pnode()
349 pack_bits(c, &addr, &pos, pnode->num, c->pcnt_bits); in ubifs_pack_pnode()
351 pack_bits(c, &addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode()
[all …]
Dfile.c45 static int read_block(struct inode *inode, void *addr, unsigned int block, in read_block() argument
58 memset(addr, 0, UBIFS_BLOCK_SIZE); in read_block()
77 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block()
88 memset(addr + len, 0, UBIFS_BLOCK_SIZE - len); in read_block()
101 void *addr; in do_readpage() local
114 addr = kmap(page); in do_readpage()
121 memset(addr, 0, PAGE_SIZE); in do_readpage()
138 memset(addr, 0, UBIFS_BLOCK_SIZE); in do_readpage()
140 ret = read_block(inode, addr, block, dn); in do_readpage()
150 memset(addr + ilen, 0, dlen - ilen); in do_readpage()
[all …]
/fs/
Dbinfmt_flat.c304 unsigned long addr; in calc_reloc() local
322 addr = r + start_code; in calc_reloc()
324 addr = r - text_len + start_data; in calc_reloc()
327 return addr; in calc_reloc()
743 u32 addr, rp_val; in load_flat_file() local
749 addr = calc_reloc(rp_val, libinfo); in load_flat_file()
750 if (addr == RELOC_FAILED) { in load_flat_file()
754 if (put_user(addr, rp)) in load_flat_file()
773 u32 addr, relval; in load_flat_file() local
784 addr = flat_get_relocate_addr(relval); in load_flat_file()
[all …]
Dbinfmt_elf_fdpic.c800 seg->addr; in elf_fdpic_map_file()
826 seg->addr + in elf_fdpic_map_file()
850 seg->addr; in elf_fdpic_map_file()
880 if (seg->p_vaddr - mseg->p_vaddr == seg->addr - mseg->addr) { in elf_fdpic_map_file()
881 load_addr = PAGE_ALIGN(mseg->addr + mseg->p_memsz); in elf_fdpic_map_file()
882 if (load_addr == (seg->addr & PAGE_MASK)) { in elf_fdpic_map_file()
885 (mseg->addr + mseg->p_memsz); in elf_fdpic_map_file()
886 mseg->p_memsz += seg->addr & ~PAGE_MASK; in elf_fdpic_map_file()
908 seg->addr, seg->addr + seg->p_memsz - 1, in elf_fdpic_map_file()
965 seg->addr = maddr + (phdr->p_vaddr - base); in elf_fdpic_map_file_constdisp_on_uclinux()
[all …]
/fs/hugetlbfs/
Dinode.c198 hugetlb_get_unmapped_area_bottomup(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area_bottomup() argument
207 info.high_limit = arch_get_mmap_end(addr, len, flags); in hugetlb_get_unmapped_area_bottomup()
214 hugetlb_get_unmapped_area_topdown(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area_topdown() argument
223 info.high_limit = arch_get_mmap_base(addr, current->mm->mmap_base); in hugetlb_get_unmapped_area_topdown()
226 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
234 if (unlikely(offset_in_page(addr))) { in hugetlb_get_unmapped_area_topdown()
235 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown()
238 info.high_limit = arch_get_mmap_end(addr, len, flags); in hugetlb_get_unmapped_area_topdown()
239 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
242 return addr; in hugetlb_get_unmapped_area_topdown()
[all …]
/fs/xfs/
Dkmem.h76 kmem_to_page(void *addr) in kmem_to_page() argument
78 if (is_vmalloc_addr(addr)) in kmem_to_page()
79 return vmalloc_to_page(addr); in kmem_to_page()
80 return virt_to_page(addr); in kmem_to_page()
Dxfs_ioctl32.c203 u32 addr; in xfs_compat_ioc_fsbulkstat() local
246 if (get_user(addr, &p32->lastip)) in xfs_compat_ioc_fsbulkstat()
248 bulkreq.lastip = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat()
250 get_user(addr, &p32->ubuffer)) in xfs_compat_ioc_fsbulkstat()
252 bulkreq.ubuffer = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat()
253 if (get_user(addr, &p32->ocount)) in xfs_compat_ioc_fsbulkstat()
255 bulkreq.ocount = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat()
/fs/jfs/
Djfs_types.h65 static inline void PXDaddress(pxd_t *pxd, __u64 addr) in PXDaddress() argument
68 cpu_to_le32((addr >> 32)<<24); in PXDaddress()
69 pxd->addr2 = cpu_to_le32(addr & 0xffffffff); in PXDaddress()
113 #define DXDaddress(dxd, addr) PXDaddress(&(dxd)->loc, addr) argument
/fs/ocfs2/
Docfs2.h875 #define ocfs2_set_bit(bit, addr) _ocfs2_set_bit((bit), (unsigned long *)(addr)) argument
881 #define ocfs2_clear_bit(bit, addr) _ocfs2_clear_bit((bit), (unsigned long *)(addr)) argument
887 static inline void *correct_addr_and_bit_unaligned(int *bit, void *addr) in correct_addr_and_bit_unaligned() argument
890 *bit += ((unsigned long) addr & 7UL) << 3; in correct_addr_and_bit_unaligned()
891 addr = (void *) ((unsigned long) addr & ~7UL); in correct_addr_and_bit_unaligned()
893 *bit += ((unsigned long) addr & 3UL) << 3; in correct_addr_and_bit_unaligned()
894 addr = (void *) ((unsigned long) addr & ~3UL); in correct_addr_and_bit_unaligned()
898 return addr; in correct_addr_and_bit_unaligned()
/fs/nfsd/
Dtrace.h727 __sockaddr(addr, rqstp->rq_xprt->xpt_remotelen)
734 __assign_sockaddr(addr, &rqstp->rq_xprt->xpt_remote,
741 __get_sockaddr(addr)
757 __sockaddr(addr, rqstp->rq_xprt->xpt_remotelen)
766 __assign_sockaddr(addr, &rqstp->rq_xprt->xpt_remote,
773 __get_sockaddr(addr)
783 __array(unsigned char, addr, sizeof(struct sockaddr_in6))
791 memcpy(__entry->addr, &clp->cl_addr,
799 __entry->addr, __get_str(name),
1216 __sockaddr(addr, conn->cb_addrlen)
[all …]
Dflexfilelayout.c86 char addr[INET6_ADDRSTRLEN]; in nfsd4_ff_proc_getdeviceinfo() local
101 addr, INET6_ADDRSTRLEN); in nfsd4_ff_proc_getdeviceinfo()
119 snprintf(da->netaddr.addr, FF_ADDR_LEN + 1, in nfsd4_ff_proc_getdeviceinfo()
120 "%s.%d.%d", addr, port >> 8, port & 0xff); in nfsd4_ff_proc_getdeviceinfo()
Dnfsd.h421 static inline __be32 nfsd4_set_netaddr(struct sockaddr *addr, in nfsd4_set_netaddr() argument
424 struct sockaddr_in *sin = (struct sockaddr_in *)addr; in nfsd4_set_netaddr()
425 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)addr; in nfsd4_set_netaddr()
429 switch (addr->sa_family) { in nfsd4_set_netaddr()
443 ret_addr = rpc_ntop(addr, netaddr->addr, sizeof(netaddr->addr)); in nfsd4_set_netaddr()
444 ret_port = snprintf(netaddr->addr + ret_addr, in nfsd4_set_netaddr()
/fs/fuse/
Dreaddir.c44 void *addr; in fuse_add_dirent_to_cache() local
81 addr = kmap_local_page(page); in fuse_add_dirent_to_cache()
83 clear_page(addr); in fuse_add_dirent_to_cache()
86 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache()
87 kunmap_local(addr); in fuse_add_dirent_to_cache()
393 void *addr, unsigned int size, in fuse_parse_cache() argument
402 struct fuse_dirent *dirent = addr + offset; in fuse_parse_cache()
456 void *addr; in fuse_readdir_cached() local
560 addr = kmap(page); in fuse_readdir_cached()
561 res = fuse_parse_cache(ff, addr, size, ctx); in fuse_readdir_cached()
/fs/zonefs/
Dtrace.h81 __field(u64, addr)
88 __entry->addr = iomap->addr;
94 __entry->addr, __entry->offset, __entry->length
/fs/iomap/
Dswapfile.c48 first_ppage = ALIGN(iomap->addr, PAGE_SIZE) >> PAGE_SHIFT; in iomap_swapfile_add_extent()
49 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent()
125 } else if (isi->iomap.addr + isi->iomap.length == iomap->addr) { in iomap_swapfile_iter()
/fs/nfs/
Ddns_resolve.c67 struct sockaddr_storage addr; member
82 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
196 rpc_ntop((struct sockaddr *)&item->addr, buf, sizeof(buf)); in nfs_dns_show()
247 (struct sockaddr *)&key.addr, in nfs_dns_parse()
248 sizeof(key.addr)); in nfs_dns_parse()
358 memcpy(ss, &item->addr, item->addrlen); in nfs_dns_resolve_name()

123456