/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/proc/ |
D | task_mmu.c | 504 static int smaps_pte_hole(unsigned long addr, unsigned long end, in smaps_pte_hole() argument 510 walk->vma->vm_file->f_mapping, addr, end); in smaps_pte_hole() 518 static void smaps_pte_entry(pte_t *pte, unsigned long addr, in smaps_pte_entry() argument 528 page = vm_normal_page(vma, addr, *pte); in smaps_pte_entry() 555 linear_page_index(vma, addr)); in smaps_pte_entry() 568 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument 579 page = follow_trans_huge_pmd(vma, addr, pmd, FOLL_DUMP); in smaps_pmd_entry() 603 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument 609 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument 618 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() 200 ent->addr = (unsigned long)page_to_virt(p); in kclist_add_private() [all …]
|
D | vmcore.c | 160 int __weak elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size) in elfcorehdr_alloc() argument 168 void __weak elfcorehdr_free(unsigned long long addr) in elfcorehdr_free() argument 1196 u64 addr; in parse_crash_elf64_headers() local 1198 addr = elfcorehdr_addr; in parse_crash_elf64_headers() 1201 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr); in parse_crash_elf64_headers() 1227 addr = elfcorehdr_addr; in parse_crash_elf64_headers() 1228 rc = elfcorehdr_read(elfcorebuf, elfcorebuf_sz_orig, &addr); in parse_crash_elf64_headers() 1252 u64 addr; in parse_crash_elf32_headers() local 1254 addr = elfcorehdr_addr; in parse_crash_elf32_headers() 1257 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr); in parse_crash_elf32_headers() [all …]
|
/fs/quota/ |
D | quota.c | 106 static int quota_getfmt(struct super_block *sb, int type, void __user *addr) in quota_getfmt() argument 113 if (copy_to_user(addr, &fmt, sizeof(fmt))) in quota_getfmt() 118 static int quota_getinfo(struct super_block *sb, int type, void __user *addr) in quota_getinfo() argument 141 if (copy_to_user(addr, &uinfo, sizeof(uinfo))) in quota_getinfo() 146 static int quota_setinfo(struct super_block *sb, int type, void __user *addr) in quota_setinfo() argument 151 if (copy_from_user(&info, addr, sizeof(info))) in quota_setinfo() 201 void __user *addr) in quota_getquota() argument 219 struct compat_if_dqblk __user *compat_dqblk = addr; in quota_getquota() 226 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getquota() 237 void __user *addr) in quota_getnextquota() argument [all …]
|
/fs/nfsd/ |
D | trace.h | 551 __array(unsigned char, addr, sizeof(struct sockaddr_in6)) 558 memcpy(__entry->addr, &rqstp->rq_xprt->xpt_remote, 564 show_nfsd_authflavor(__entry->new_flavor), __entry->addr 580 __array(unsigned char, addr, sizeof(struct sockaddr_in6)) 589 memcpy(__entry->addr, &rqstp->rq_xprt->xpt_remote, 596 __entry->addr 606 __array(unsigned char, addr, sizeof(struct sockaddr_in6)) 614 memcpy(__entry->addr, &clp->cl_addr, 622 __entry->addr, __get_str(name), 838 __array(unsigned char, addr, sizeof(struct sockaddr_in6)) [all …]
|
D | nfsd.h | 405 static inline __be32 nfsd4_set_netaddr(struct sockaddr *addr, in nfsd4_set_netaddr() argument 408 struct sockaddr_in *sin = (struct sockaddr_in *)addr; in nfsd4_set_netaddr() 409 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)addr; in nfsd4_set_netaddr() 413 switch (addr->sa_family) { in nfsd4_set_netaddr() 427 ret_addr = rpc_ntop(addr, netaddr->addr, sizeof(netaddr->addr)); in nfsd4_set_netaddr() 428 ret_port = snprintf(netaddr->addr + ret_addr, in nfsd4_set_netaddr()
|
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/dlm/ |
D | config.c | 291 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member 547 kfree(cm->addr[cm->addr_count]); in drop_comm() 662 struct sockaddr_storage *addr; in comm_addr_store() local 671 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store() 672 if (!addr) in comm_addr_store() 675 memcpy(addr, buf, len); in comm_addr_store() 677 rv = dlm_lowcomms_addr(cm->nodeid, addr, len); in comm_addr_store() 679 kfree(addr); in comm_addr_store() 683 cm->addr[cm->addr_count++] = addr; in comm_addr_store() 693 struct sockaddr_storage *addr; in comm_addr_list_show() local [all …]
|
D | lowcomms.c | 143 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member 152 struct sockaddr *addr, int addr_len); 355 memcpy(&sas, na->addr[na->curr_addr_index], in nodeid_to_addr() 393 static int addr_to_nodeid(struct sockaddr_storage *addr, int *nodeid, in addr_to_nodeid() argument 406 if (addr_compare(na->addr[addr_i], addr)) { in addr_to_nodeid() 421 const struct sockaddr_storage *addr) in dlm_lowcomms_na_has_addr() argument 426 if (addr_compare(na->addr[i], addr)) in dlm_lowcomms_na_has_addr() 433 int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len) in dlm_lowcomms_addr() argument 449 memcpy(new_addr, addr, len); in dlm_lowcomms_addr() 455 new_node->addr[0] = new_addr; in dlm_lowcomms_addr() [all …]
|
/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/cifs/ |
D | cifs_swn.c | 81 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() 475 static int cifs_swn_reconnect(struct cifs_tcon *tcon, struct sockaddr_storage *addr) in cifs_swn_reconnect() argument 481 if (cifs_sockaddr_equal(&tcon->ses->server->dstaddr, addr)) in cifs_swn_reconnect() 484 ret = cifs_swn_store_swn_addr(addr, &tcon->ses->server->dstaddr, in cifs_swn_reconnect() 524 static int cifs_swn_client_move(struct cifs_swn_reg *swnreg, struct sockaddr_storage *addr) in cifs_swn_client_move() argument 526 struct sockaddr_in *ipv4 = (struct sockaddr_in *)addr; in cifs_swn_client_move() 527 struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)addr; in cifs_swn_client_move() [all …]
|
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 | 327 unsigned long addr; in calc_reloc() local 378 addr = r + start_code; in calc_reloc() 380 addr = r - text_len + start_data; in calc_reloc() 383 return addr; in calc_reloc() 811 u32 addr, rp_val; in load_flat_file() local 817 addr = calc_reloc(rp_val, libinfo, id, 0); in load_flat_file() 818 if (addr == RELOC_FAILED) { in load_flat_file() 822 if (put_user(addr, rp)) in load_flat_file() 841 u32 addr, relval; in load_flat_file() local 852 addr = flat_get_relocate_addr(relval); in load_flat_file() [all …]
|
D | binfmt_elf_fdpic.c | 800 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/ |
D | inode.c | 211 hugetlb_get_unmapped_area_bottomup(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area_bottomup() argument 220 info.high_limit = arch_get_mmap_end(addr); in hugetlb_get_unmapped_area_bottomup() 227 hugetlb_get_unmapped_area_topdown(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area_topdown() argument 236 info.high_limit = arch_get_mmap_base(addr, current->mm->mmap_base); in hugetlb_get_unmapped_area_topdown() 239 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown() 247 if (unlikely(offset_in_page(addr))) { in hugetlb_get_unmapped_area_topdown() 248 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown() 251 info.high_limit = arch_get_mmap_end(addr); in hugetlb_get_unmapped_area_topdown() 252 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown() 255 return addr; in hugetlb_get_unmapped_area_topdown() [all …]
|
/fs/xfs/ |
D | kmem.h | 80 kmem_to_page(void *addr) in kmem_to_page() argument 82 if (is_vmalloc_addr(addr)) in kmem_to_page() 83 return vmalloc_to_page(addr); in kmem_to_page() 84 return virt_to_page(addr); in kmem_to_page()
|
/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 | 875 #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/zonefs/ |
D | trace.h | 79 __field(u64, addr) 86 __entry->addr = iomap->addr; 92 __entry->addr, __entry->offset, __entry->length
|
/fs/fuse/ |
D | readdir.c | 44 void *addr; in fuse_add_dirent_to_cache() local 81 addr = kmap_atomic(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_atomic(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/iomap/ |
D | swapfile.c | 48 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/ |
D | dns_resolve.c | 66 struct sockaddr_storage addr; member 81 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()
|
/fs/ceph/ |
D | mdsmap.c | 180 struct ceph_entity_addr addr; in ceph_mdsmap_decode() local 210 err = ceph_decode_entity_addrvec(p, end, msgr2, &addr); in ceph_mdsmap_decode() 212 err = ceph_decode_entity_addr(p, end, &addr); in ceph_mdsmap_decode() 238 ceph_pr_addr(&addr), in ceph_mdsmap_decode() 256 info->addr = addr; in ceph_mdsmap_decode()
|