/fs/minix/ |
D | minix.h | 108 #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/quota/ |
D | quota.c | 105 static int quota_getfmt(struct super_block *sb, int type, void __user *addr) in quota_getfmt() argument 112 if (copy_to_user(addr, &fmt, sizeof(fmt))) in quota_getfmt() 117 static int quota_getinfo(struct super_block *sb, int type, void __user *addr) in quota_getinfo() argument 140 if (copy_to_user(addr, &uinfo, sizeof(uinfo))) in quota_getinfo() 145 static int quota_setinfo(struct super_block *sb, int type, void __user *addr) in quota_setinfo() argument 150 if (copy_from_user(&info, addr, sizeof(info))) in quota_setinfo() 200 void __user *addr) in quota_getquota() argument 216 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getquota() 226 void __user *addr) in quota_getnextquota() argument 244 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getnextquota() [all …]
|
D | compat.c | 46 void __user *, addr) in COMPAT_SYSCALL_DEFINE4() argument 62 compat_dqblk = addr; in COMPAT_SYSCALL_DEFINE4() 73 compat_dqblk = addr; in COMPAT_SYSCALL_DEFINE4() 83 compat_fsqstat = addr; in COMPAT_SYSCALL_DEFINE4() 117 ret = kernel_quotactl(cmd, special, id, addr); in COMPAT_SYSCALL_DEFINE4()
|
/fs/proc/ |
D | task_mmu.c | 564 static int smaps_pte_hole(unsigned long addr, unsigned long end, in smaps_pte_hole() argument 570 walk->vma->vm_file->f_mapping, addr, end); in smaps_pte_hole() 578 static void smaps_pte_entry(pte_t *pte, unsigned long addr, in smaps_pte_entry() argument 587 page = vm_normal_page(vma, addr, *pte); in smaps_pte_entry() 611 linear_page_index(vma, addr)); in smaps_pte_entry() 630 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument 639 page = follow_trans_huge_pmd(vma, addr, pmd, FOLL_DUMP); in smaps_pmd_entry() 653 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument 659 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument 669 smaps_pmd_entry(pmd, addr, walk); in smaps_pte_range() [all …]
|
D | kcore.c | 81 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() 202 ent->addr = (unsigned long)page_to_virt(p); in kclist_add_private() [all …]
|
D | vmcore.c | 157 int __weak elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size) in elfcorehdr_alloc() argument 165 void __weak elfcorehdr_free(unsigned long long addr) in elfcorehdr_free() argument 1192 u64 addr; in parse_crash_elf64_headers() local 1194 addr = elfcorehdr_addr; in parse_crash_elf64_headers() 1197 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr); in parse_crash_elf64_headers() 1223 addr = elfcorehdr_addr; in parse_crash_elf64_headers() 1224 rc = elfcorehdr_read(elfcorebuf, elfcorebuf_sz_orig, &addr); in parse_crash_elf64_headers() 1248 u64 addr; in parse_crash_elf32_headers() local 1250 addr = elfcorehdr_addr; in parse_crash_elf32_headers() 1253 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr); in parse_crash_elf32_headers() [all …]
|
/fs/dlm/ |
D | config.c | 231 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member 478 kfree(cm->addr[cm->addr_count]); in drop_comm() 593 struct sockaddr_storage *addr; in comm_addr_store() local 602 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store() 603 if (!addr) in comm_addr_store() 606 memcpy(addr, buf, len); in comm_addr_store() 608 rv = dlm_lowcomms_addr(cm->nodeid, addr, len); in comm_addr_store() 610 kfree(addr); in comm_addr_store() 614 cm->addr[cm->addr_count++] = addr; in comm_addr_store() 624 struct sockaddr_storage *addr; in comm_addr_list_show() local [all …]
|
/fs/iomap/ |
D | fiemap.c | 41 iomap->addr != IOMAP_NULL_ADDR ? iomap->addr : 0, in iomap_to_fiemap() 116 sector_t *bno = data, addr; in iomap_bmap_actor() local 119 addr = (pos - iomap->offset + iomap->addr) >> inode->i_blkbits; in iomap_bmap_actor() 120 if (addr > INT_MAX) in iomap_bmap_actor() 123 *bno = addr; in iomap_bmap_actor()
|
D | swapfile.c | 42 first_ppage = ALIGN(iomap->addr, PAGE_SIZE) >> PAGE_SHIFT; in iomap_swapfile_add_extent() 43 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent() 117 } else if (isi->iomap.addr + isi->iomap.length == iomap->addr) { in iomap_swapfile_activate_actor()
|
/fs/ubifs/ |
D | lpt.c | 222 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 …]
|
D | file.c | 45 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/f2fs/ |
D | verity.c | 48 void *addr; in pagecache_read() local 55 addr = kmap_atomic(page); in pagecache_read() 56 memcpy(buf, addr + offset_in_page(pos), n); in pagecache_read() 57 kunmap_atomic(addr); in pagecache_read() 83 void *addr; in pagecache_write() local 91 addr = kmap_atomic(page); in pagecache_write() 92 memcpy(addr + offset_in_page(pos), buf, n); in pagecache_write() 93 kunmap_atomic(addr); in pagecache_write()
|
/fs/cifs/ |
D | cifsroot.c | 28 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/ |
D | binfmt_flat.c | 316 unsigned long addr; in calc_reloc() local 367 addr = r + start_code; in calc_reloc() 369 addr = r - text_len + start_data; in calc_reloc() 372 return addr; in calc_reloc() 769 u32 addr, rp_val; in load_flat_file() local 775 addr = calc_reloc(rp_val, libinfo, id, 0); in load_flat_file() 776 if (addr == RELOC_FAILED) { in load_flat_file() 780 if (put_user(addr, rp)) in load_flat_file() 799 u32 addr, relval; in load_flat_file() local 810 addr = flat_get_relocate_addr(relval); in load_flat_file() [all …]
|
D | binfmt_elf_fdpic.c | 791 seg->addr; in elf_fdpic_map_file() 817 seg->addr + in elf_fdpic_map_file() 841 seg->addr; in elf_fdpic_map_file() 871 if (seg->p_vaddr - mseg->p_vaddr == seg->addr - mseg->addr) { in elf_fdpic_map_file() 872 load_addr = PAGE_ALIGN(mseg->addr + mseg->p_memsz); in elf_fdpic_map_file() 873 if (load_addr == (seg->addr & PAGE_MASK)) { in elf_fdpic_map_file() 876 (mseg->addr + mseg->p_memsz); in elf_fdpic_map_file() 877 mseg->p_memsz += seg->addr & ~PAGE_MASK; in elf_fdpic_map_file() 899 seg->addr, seg->addr + seg->p_memsz - 1, in elf_fdpic_map_file() 960 seg->addr = maddr + (phdr->p_vaddr - base); in elf_fdpic_map_file_constdisp_on_uclinux() [all …]
|
/fs/ext4/ |
D | verity.c | 48 void *addr; in pagecache_read() local 55 addr = kmap_atomic(page); in pagecache_read() 56 memcpy(buf, addr + offset_in_page(pos), n); in pagecache_read() 57 kunmap_atomic(addr); in pagecache_read() 83 void *addr; in pagecache_write() local 91 addr = kmap_atomic(page); in pagecache_write() 92 memcpy(addr + offset_in_page(pos), buf, n); in pagecache_write() 93 kunmap_atomic(addr); in pagecache_write()
|
/fs/jfs/ |
D | jfs_types.h | 65 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/ |
D | ocfs2.h | 876 #define ocfs2_set_bit(bit, addr) _ocfs2_set_bit((bit), (unsigned long *)(addr)) argument 882 #define ocfs2_clear_bit(bit, addr) _ocfs2_clear_bit((bit), (unsigned long *)(addr)) argument 888 static inline void *correct_addr_and_bit_unaligned(int *bit, void *addr) in correct_addr_and_bit_unaligned() argument 891 *bit += ((unsigned long) addr & 7UL) << 3; in correct_addr_and_bit_unaligned() 892 addr = (void *) ((unsigned long) addr & ~7UL); in correct_addr_and_bit_unaligned() 894 *bit += ((unsigned long) addr & 3UL) << 3; in correct_addr_and_bit_unaligned() 895 addr = (void *) ((unsigned long) addr & ~3UL); in correct_addr_and_bit_unaligned() 899 return addr; in correct_addr_and_bit_unaligned()
|
/fs/xfs/ |
D | kmem.h | 123 kmem_to_page(void *addr) in kmem_to_page() argument 125 if (is_vmalloc_addr(addr)) in kmem_to_page() 126 return vmalloc_to_page(addr); in kmem_to_page() 127 return virt_to_page(addr); in kmem_to_page()
|
/fs/nfsd/ |
D | flexfilelayout.c | 86 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.%hhu.%hhu", addr, port >> 8, port & 0xff); in nfsd4_ff_proc_getdeviceinfo()
|
/fs/fuse/ |
D | readdir.c | 42 void *addr; in fuse_add_dirent_to_cache() local 79 addr = kmap_atomic(page); in fuse_add_dirent_to_cache() 81 clear_page(addr); in fuse_add_dirent_to_cache() 82 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache() 83 kunmap_atomic(addr); in fuse_add_dirent_to_cache() 378 void *addr, unsigned int size, in fuse_parse_cache() argument 387 struct fuse_dirent *dirent = addr + offset; in fuse_parse_cache() 441 void *addr; in fuse_readdir_cached() local 539 addr = kmap(page); in fuse_readdir_cached() 540 res = fuse_parse_cache(ff, addr, size, ctx); in fuse_readdir_cached()
|
/fs/nfs/ |
D | dns_resolve.c | 67 struct sockaddr_storage addr; member 82 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update() 195 rpc_ntop((struct sockaddr *)&item->addr, buf, sizeof(buf)); in nfs_dns_show() 246 (struct sockaddr *)&key.addr, in nfs_dns_parse() 247 sizeof(key.addr)); in nfs_dns_parse() 357 memcpy(sa, &item->addr, item->addrlen); in nfs_dns_resolve_name()
|
D | nfs4client.c | 790 static bool nfs4_cb_match_client(const struct sockaddr *addr, in nfs4_cb_match_client() argument 808 return rpc_cmp_addr(addr, clap); in nfs4_cb_match_client() 819 nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr, in nfs4_find_client_sessionid() argument 827 if (!nfs4_cb_match_client(addr, clp, minorversion)) in nfs4_find_client_sessionid() 849 nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr, in nfs4_find_client_sessionid() argument 861 const struct sockaddr *addr, in nfs4_set_client() argument 870 .addr = addr, in nfs4_set_client() 890 server->port = rpc_get_port(addr); in nfs4_set_client() 933 .addr = ds_addr, in nfs4_set_ds_client() 1168 rpc_set_port(data->addr, NFS_RDMA_PORT); in nfs4_create_referral_server() [all …]
|
/fs/hugetlbfs/ |
D | inode.c | 199 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument 213 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area() 215 return addr; in hugetlb_get_unmapped_area() 218 if (addr) { in hugetlb_get_unmapped_area() 219 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area() 220 vma = find_vma(mm, addr); in hugetlb_get_unmapped_area() 221 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area() 222 (!vma || addr + len <= vm_start_gap(vma))) in hugetlb_get_unmapped_area() 223 return addr; in hugetlb_get_unmapped_area() 626 unsigned long addr; in hugetlbfs_fallocate() local [all …]
|
/fs/ceph/ |
D | mdsmap.c | 153 struct ceph_entity_addr addr; in ceph_mdsmap_decode() local 180 sizeof(addr) + sizeof(struct ceph_timespec), in ceph_mdsmap_decode() 186 err = ceph_decode_entity_addr(p, end, &addr); in ceph_mdsmap_decode() 209 ceph_pr_addr(&addr), in ceph_mdsmap_decode() 229 info->addr = addr; in ceph_mdsmap_decode()
|