/fs/afs/ |
D | server.c | 49 if (server->addr.s_addr < xserver->addr.s_addr) in afs_install_server() 51 else if (server->addr.s_addr > xserver->addr.s_addr) in afs_install_server() 70 const struct in_addr *addr) in afs_alloc_server() argument 92 memcpy(&server->addr, addr, sizeof(struct in_addr)); in afs_alloc_server() 93 server->addr.s_addr = addr->s_addr; in afs_alloc_server() 104 const struct in_addr *addr) in afs_lookup_server() argument 108 _enter("%p,%pI4", cell, &addr->s_addr); in afs_lookup_server() 114 if (server->addr.s_addr == addr->s_addr) in afs_lookup_server() 119 candidate = afs_alloc_server(cell, addr); in afs_lookup_server() 129 if (server->addr.s_addr == addr->s_addr) in afs_lookup_server() [all …]
|
D | cmservice.c | 166 struct in_addr addr; in afs_deliver_cb_callback() local 284 memcpy(&addr, &ip_hdr(skb)->saddr, 4); in afs_deliver_cb_callback() 285 server = afs_find_server(&addr); in afs_deliver_cb_callback() 317 struct in_addr addr; in afs_deliver_cb_init_call_back_state() local 331 memcpy(&addr, &ip_hdr(skb)->saddr, 4); in afs_deliver_cb_init_call_back_state() 332 server = afs_find_server(&addr); in afs_deliver_cb_init_call_back_state() 350 struct in_addr addr; in afs_deliver_cb_init_call_back_state3() local 362 memcpy(&addr, &ip_hdr(skb)->saddr, 4); in afs_deliver_cb_init_call_back_state3() 363 server = afs_find_server(&addr); in afs_deliver_cb_init_call_back_state3()
|
D | vnode.c | 359 server, ntohl(server->addr.s_addr)); in afs_vnode_fetch_status() 422 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_fetch_data() 478 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_create() 534 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_remove() 596 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_link() 660 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_symlink() 730 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_rename() 796 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_store_data() 849 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_setattr() 896 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_get_volume_status() [all …]
|
/fs/yaffs2/ |
D | yaffs_mtdif.c | 84 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd_WriteChunkToNAND() local 89 retval = mtd->write(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND() 104 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd_WriteChunkToNAND() 112 mtd->write_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND() 117 mtd->write_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND() 123 mtd->write(mtd, addr, dev->nDataBytesPerChunk, &dummy, in nandmtd_WriteChunkToNAND() 127 mtd->write_oob(mtd, addr, YAFFS_BYTES_PER_SPARE, in nandmtd_WriteChunkToNAND() 148 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd_ReadChunkFromNAND() local 153 retval = mtd->read(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_ReadChunkFromNAND() 167 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd_ReadChunkFromNAND() [all …]
|
D | yaffs_mtdif2.c | 46 loff_t addr; in nandmtd2_WriteChunkWithTagsToNAND() local 55 addr = ((loff_t) chunkInNAND) * dev->totalBytesPerChunk; in nandmtd2_WriteChunkWithTagsToNAND() 77 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd2_WriteChunkWithTagsToNAND() 82 mtd->write_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd2_WriteChunkWithTagsToNAND() 86 mtd->write(mtd, addr, dev->totalBytesPerChunk, &dummy, in nandmtd2_WriteChunkWithTagsToNAND() 108 loff_t addr = ((loff_t) chunkInNAND) * dev->totalBytesPerChunk; in nandmtd2_ReadChunkWithTagsFromNAND() local 130 retval = mtd->read(mtd, addr, dev->totalBytesPerChunk, in nandmtd2_ReadChunkWithTagsFromNAND() 139 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd2_ReadChunkWithTagsFromNAND() 144 retval = mtd->read_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd2_ReadChunkWithTagsFromNAND() 150 mtd->read(mtd, addr, dev->nDataBytesPerChunk, &dummy, in nandmtd2_ReadChunkWithTagsFromNAND() [all …]
|
D | yaffs_mtdif1.c | 96 loff_t addr = ((loff_t)chunkInNAND) * chunkBytes; in nandmtd1_WriteChunkWithTagsToNAND() local 136 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd1_WriteChunkWithTagsToNAND() 174 loff_t addr = ((loff_t)chunkInNAND) * chunkBytes; in nandmtd1_ReadChunkWithTagsFromNAND() local 197 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd1_ReadChunkWithTagsFromNAND() 221 etags->blockBad = (mtd->block_isbad)(mtd, addr); in nandmtd1_ReadChunkWithTagsFromNAND() 326 loff_t addr = (loff_t)chunkNo * dev->nDataBytesPerChunk; in nandmtd1_QueryNANDBlock() local 339 etags.blockBad = (mtd->block_isbad)(mtd, addr); in nandmtd1_QueryNANDBlock()
|
/fs/proc/ |
D | mmu.c | 36 unsigned long addr = (unsigned long) vma->addr; in get_vmalloc_info() local 41 if (addr < VMALLOC_START) in get_vmalloc_info() 43 if (addr >= VMALLOC_END) in get_vmalloc_info() 48 free_area_size = addr - prev_end; in get_vmalloc_info() 52 prev_end = vma->size + addr; in get_vmalloc_info()
|
D | task_mmu.c | 320 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument 330 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in smaps_pte_range() 331 for (; addr != end; pte++, addr += PAGE_SIZE) { in smaps_pte_range() 344 page = vm_normal_page(vma, addr, ptent); in smaps_pte_range() 438 static int clear_refs_pte_range(pmd_t *pmd, unsigned long addr, in clear_refs_pte_range() argument 446 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in clear_refs_pte_range() 447 for (; addr != end; pte++, addr += PAGE_SIZE) { in clear_refs_pte_range() 452 page = vm_normal_page(vma, addr, ptent); in clear_refs_pte_range() 457 ptep_test_and_clear_young(vma, addr, pte); in clear_refs_pte_range() 533 static int add_to_pagemap(unsigned long addr, u64 pfn, in add_to_pagemap() argument [all …]
|
D | kcore.c | 64 kclist_add(struct kcore_list *new, void *addr, size_t size) in kclist_add() argument 66 new->addr = (unsigned long)addr; in kclist_add() 84 try = kc_vaddr_to_offset((size_t)m->addr + m->size); in get_kcore_size() 124 #define DUMP_WRITE(addr,nr) do { memcpy(bufp,addr,nr); bufp += nr; } while(0) in storenote() argument 202 phdr->p_offset = kc_vaddr_to_offset(m->addr) + dataoff; in elf_kcore_store_hdr() 203 phdr->p_vaddr = (size_t)m->addr; in elf_kcore_store_hdr() 321 if (start >= m->addr && start < (m->addr+m->size)) in read_kcore() 345 if (((unsigned long)m->addr + msize) < in read_kcore() 348 if ((unsigned long)m->addr > (curstart + in read_kcore() 351 vmstart = (curstart < (unsigned long)m->addr ? in read_kcore() [all …]
|
D | vmcore.c | 493 u64 addr; in parse_crash_elf64_headers() local 495 addr = elfcorehdr_addr; in parse_crash_elf64_headers() 498 rc = read_from_oldmem((char*)&ehdr, sizeof(Elf64_Ehdr), &addr, 0); in parse_crash_elf64_headers() 522 addr = elfcorehdr_addr; in parse_crash_elf64_headers() 523 rc = read_from_oldmem(elfcorebuf, elfcorebuf_sz, &addr, 0); in parse_crash_elf64_headers() 549 u64 addr; in parse_crash_elf32_headers() local 551 addr = elfcorehdr_addr; in parse_crash_elf32_headers() 554 rc = read_from_oldmem((char*)&ehdr, sizeof(Elf32_Ehdr), &addr, 0); in parse_crash_elf32_headers() 578 addr = elfcorehdr_addr; in parse_crash_elf32_headers() 579 rc = read_from_oldmem(elfcorebuf, elfcorebuf_sz, &addr, 0); in parse_crash_elf32_headers() [all …]
|
/fs/ |
D | quota.c | 230 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, void __user *addr) in do_quotactl() argument 238 if (IS_ERR(pathname = getname(addr))) in do_quotactl() 257 if (copy_to_user(addr, &fmt, sizeof(fmt))) in do_quotactl() 266 if (copy_to_user(addr, &info, sizeof(info))) in do_quotactl() 273 if (copy_from_user(&info, addr, sizeof(info))) in do_quotactl() 282 if (copy_to_user(addr, &idq, sizeof(idq))) in do_quotactl() 289 if (copy_from_user(&idq, addr, sizeof(idq))) in do_quotactl() 302 if (copy_from_user(&flags, addr, sizeof(flags))) in do_quotactl() 311 if (copy_to_user(addr, &fqs, sizeof(fqs))) in do_quotactl() 318 if (copy_from_user(&fdq, addr, sizeof(fdq))) in do_quotactl() [all …]
|
D | binfmt_flat.c | 302 unsigned long addr; in calc_reloc() local 354 addr = r + start_code; in calc_reloc() 356 addr = r - text_len + start_data; in calc_reloc() 359 return(addr); in calc_reloc() 711 unsigned long addr; in load_flat_file() local 713 addr = calc_reloc(*rp, libinfo, id, 0); in load_flat_file() 714 if (addr == RELOC_FAILED) { in load_flat_file() 718 *rp = addr; in load_flat_file() 737 unsigned long addr, relval; in load_flat_file() local 745 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() 838 seg->addr; in elf_fdpic_map_file() 867 if (seg->p_vaddr - mseg->p_vaddr == seg->addr - mseg->addr) { in elf_fdpic_map_file() 868 load_addr = PAGE_ALIGN(mseg->addr + mseg->p_memsz); in elf_fdpic_map_file() 869 if (load_addr == (seg->addr & PAGE_MASK)) { in elf_fdpic_map_file() 872 (mseg->addr + mseg->p_memsz); in elf_fdpic_map_file() 873 mseg->p_memsz += seg->addr & ~PAGE_MASK; in elf_fdpic_map_file() 895 seg->addr, seg->addr + seg->p_memsz - 1, in elf_fdpic_map_file() 961 seg->addr = maddr + (phdr->p_vaddr - base); in elf_fdpic_map_file_constdisp_on_uclinux() [all …]
|
D | binfmt_aout.c | 52 unsigned long addr; in set_brk() local 54 addr = do_brk(start, end - start); in set_brk() 56 if (BAD_ADDR(addr)) in set_brk() 57 return addr; in set_brk() 67 static int dump_write(struct file *file, const void *addr, int nr) in dump_write() argument 69 return file->f_op->write(file, addr, nr, &file->f_pos) == nr; in dump_write() 72 #define DUMP_WRITE(addr, nr) \ argument 73 if (!dump_write(file, (void *)(addr), (nr))) \
|
/fs/ubifs/ |
D | lpt.c | 232 static void pack_bits(uint8_t **addr, int *pos, uint32_t val, int nrbits) in pack_bits() argument 234 uint8_t *p = *addr; in pack_bits() 270 *addr = p; in pack_bits() 282 uint32_t ubifs_unpack_bits(uint8_t **addr, int *pos, int nrbits) in ubifs_unpack_bits() argument 285 uint8_t *p = *addr; in ubifs_unpack_bits() 337 *addr = p; in ubifs_unpack_bits() 352 uint8_t *addr = buf + UBIFS_LPT_CRC_BYTES; in ubifs_pack_pnode() local 356 pack_bits(&addr, &pos, UBIFS_LPT_PNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_pnode() 358 pack_bits(&addr, &pos, pnode->num, c->pcnt_bits); in ubifs_pack_pnode() 360 pack_bits(&addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode() [all …]
|
D | file.c | 58 static int read_block(struct inode *inode, void *addr, unsigned int block, in read_block() argument 71 memset(addr, 0, UBIFS_BLOCK_SIZE); in read_block() 83 err = ubifs_decompress(&dn->data, dlen, addr, &out_len, in read_block() 94 memset(addr + len, 0, UBIFS_BLOCK_SIZE - len); in read_block() 107 void *addr; in do_readpage() local 119 addr = kmap(page); in do_readpage() 126 memset(addr, 0, PAGE_CACHE_SIZE); in do_readpage() 143 memset(addr, 0, UBIFS_BLOCK_SIZE); in do_readpage() 145 ret = read_block(inode, addr, block, dn); in do_readpage() 155 memset(addr + ilen, 0, dlen - ilen); in do_readpage() [all …]
|
/fs/ntfs/ |
D | malloc.h | 86 static inline void ntfs_free(void *addr) in ntfs_free() argument 88 if (!is_vmalloc_addr(addr)) { in ntfs_free() 89 kfree(addr); in ntfs_free() 93 vfree(addr); in ntfs_free()
|
/fs/dlm/ |
D | config.c | 283 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member 557 kfree(cm->addr[cm->addr_count]); in drop_comm() 700 struct sockaddr_storage *addr; in comm_addr_write() local 708 addr = kzalloc(sizeof(*addr), GFP_KERNEL); in comm_addr_write() 709 if (!addr) in comm_addr_write() 712 memcpy(addr, buf, len); in comm_addr_write() 713 cm->addr[cm->addr_count++] = addr; in comm_addr_write() 809 static struct dlm_comm *get_comm(int nodeid, struct sockaddr_storage *addr) in get_comm() argument 830 if (!cm->addr_count || !addr_compare(cm->addr[0], addr)) in get_comm() 938 int dlm_nodeid_to_addr(int nodeid, struct sockaddr_storage *addr) in dlm_nodeid_to_addr() argument [all …]
|
D | config.h | 40 int dlm_nodeid_to_addr(int nodeid, struct sockaddr_storage *addr); 41 int dlm_addr_to_nodeid(struct sockaddr_storage *addr, int *nodeid); 43 int dlm_our_addr(struct sockaddr_storage *addr, int num);
|
/fs/nfs/ |
D | nfs4namespace.c | 115 struct sockaddr_storage addr; in try_location() local 120 mountdata->addr = (struct sockaddr *)&addr; in try_location() 125 mountdata->addr, &mountdata->addrlen); in try_location() 126 if (mountdata->addr->sa_family == AF_UNSPEC) in try_location() 128 nfs_set_port(mountdata->addr, NFS_PORT); in try_location()
|
/fs/nfsd/ |
D | nfs4callback.c | 367 struct sockaddr_in addr; in do_probe_callback() local 377 .address = (struct sockaddr *)&addr, in do_probe_callback() 378 .addrsize = sizeof(addr), in do_probe_callback() 400 memset(&addr, 0, sizeof(addr)); in do_probe_callback() 401 addr.sin_family = AF_INET; in do_probe_callback() 402 addr.sin_port = htons(cb->cb_port); in do_probe_callback() 403 addr.sin_addr.s_addr = htonl(cb->cb_addr); in do_probe_callback()
|
/fs/cifs/ |
D | cifs_spnego.c | 123 if (server->addr.sockAddr.sin_family == AF_INET) in cifs_get_spnego_key() 124 sprintf(dp, "ip4=%pI4", &server->addr.sockAddr.sin_addr); in cifs_get_spnego_key() 125 else if (server->addr.sockAddr.sin_family == AF_INET6) in cifs_get_spnego_key() 126 sprintf(dp, "ip6=%pi6", &server->addr.sockAddr6.sin6_addr); in cifs_get_spnego_key()
|
D | connect.c | 183 if (server->addr.sockAddr6.sin6_family == AF_INET6) in cifs_reconnect() 477 server->addr.sockAddr.sin_port = in cifs_demultiplex_thread() 1357 cifs_find_tcp_session(struct sockaddr_storage *addr) in cifs_find_tcp_session() argument 1361 struct sockaddr_in *addr4 = (struct sockaddr_in *) addr; in cifs_find_tcp_session() 1362 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) addr; in cifs_find_tcp_session() 1377 if (addr->ss_family == AF_INET && in cifs_find_tcp_session() 1379 server->addr.sockAddr.sin_addr.s_addr)) in cifs_find_tcp_session() 1381 else if (addr->ss_family == AF_INET6 && in cifs_find_tcp_session() 1382 !ipv6_addr_equal(&server->addr.sockAddr6.sin6_addr, in cifs_find_tcp_session() 1422 struct sockaddr_storage addr; in cifs_get_tcp_session() local [all …]
|
/fs/hugetlbfs/ |
D | inode.c | 131 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument 145 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area() 147 return addr; in hugetlb_get_unmapped_area() 150 if (addr) { in hugetlb_get_unmapped_area() 151 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area() 152 vma = find_vma(mm, addr); in hugetlb_get_unmapped_area() 153 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area() 154 (!vma || addr + len <= vma->vm_start)) in hugetlb_get_unmapped_area() 155 return addr; in hugetlb_get_unmapped_area() 164 addr = ALIGN(start_addr, huge_page_size(h)); in hugetlb_get_unmapped_area() [all …]
|
/fs/udf/ |
D | balloc.c | 31 #define udf_clear_bit(nr, addr) ext2_clear_bit(nr, addr) argument 32 #define udf_set_bit(nr, addr) ext2_set_bit(nr, addr) argument 33 #define udf_test_bit(nr, addr) ext2_test_bit(nr, addr) argument 34 #define udf_find_first_one_bit(addr, size) find_first_one_bit(addr, size) argument 35 #define udf_find_next_one_bit(addr, size, offset) \ argument 36 find_next_one_bit(addr, size, offset) 45 static inline int find_next_one_bit(void *addr, int size, int offset) in find_next_one_bit() argument 47 uintBPL_t *p = ((uintBPL_t *) addr) + (offset / BITS_PER_LONG); in find_next_one_bit() 81 #define find_first_one_bit(addr, size)\ argument 82 find_next_one_bit((addr), (size), 0)
|