Home
last modified time | relevance | path

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

12345

/fs/minix/
Dminix.h107 #define minix_test_and_set_bit(nr, addr) \ argument
108 __test_and_set_bit((nr), (unsigned long *)(addr))
109 #define minix_set_bit(nr, addr) \ argument
110 __set_bit((nr), (unsigned long *)(addr))
111 #define minix_test_and_clear_bit(nr, addr) \ argument
112 __test_and_clear_bit((nr), (unsigned long *)(addr))
113 #define minix_test_bit(nr, addr) \ argument
114 test_bit((nr), (unsigned long *)(addr))
115 #define minix_find_first_zero_bit(addr, size) \ argument
116 find_first_zero_bit((unsigned long *)(addr), (size))
[all …]
/fs/afs/
Dserver.c49 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()
105 const struct in_addr *addr) in afs_lookup_server() argument
109 _enter("%p,%pI4", cell, &addr->s_addr); in afs_lookup_server()
115 if (server->addr.s_addr == addr->s_addr) in afs_lookup_server()
120 candidate = afs_alloc_server(cell, addr); in afs_lookup_server()
130 if (server->addr.s_addr == addr->s_addr) in afs_lookup_server()
[all …]
Dcmservice.c179 struct in_addr addr; in afs_deliver_cb_callback() local
307 memcpy(&addr, &ip_hdr(skb)->saddr, 4); in afs_deliver_cb_callback()
308 server = afs_find_server(&addr); in afs_deliver_cb_callback()
340 struct in_addr addr; in afs_deliver_cb_init_call_back_state() local
354 memcpy(&addr, &ip_hdr(skb)->saddr, 4); in afs_deliver_cb_init_call_back_state()
355 server = afs_find_server(&addr); in afs_deliver_cb_init_call_back_state()
373 struct in_addr addr; in afs_deliver_cb_init_call_back_state3() local
385 memcpy(&addr, &ip_hdr(skb)->saddr, 4); in afs_deliver_cb_init_call_back_state3()
386 server = afs_find_server(&addr); in afs_deliver_cb_init_call_back_state3()
Dvnode.c358 server, ntohl(server->addr.s_addr)); in afs_vnode_fetch_status()
421 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_fetch_data()
477 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_create()
533 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_remove()
595 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_link()
659 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_symlink()
729 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_rename()
795 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_store_data()
848 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_setattr()
895 _debug("USING SERVER: %08x\n", ntohl(server->addr.s_addr)); in afs_vnode_get_volume_status()
[all …]
Dvlclient.c150 int afs_vl_get_entry_by_name(struct in_addr *addr, in afs_vl_get_entry_by_name() argument
184 return afs_make_call(addr, call, GFP_KERNEL, wait_mode); in afs_vl_get_entry_by_name()
190 int afs_vl_get_entry_by_id(struct in_addr *addr, in afs_vl_get_entry_by_id() argument
218 return afs_make_call(addr, call, GFP_KERNEL, wait_mode); in afs_vl_get_entry_by_id()
Dvlocation.c42 struct in_addr addr; in afs_vlocation_access_vl_by_name() local
50 addr = cell->vl_addrs[cell->vl_curr_svix]; in afs_vlocation_access_vl_by_name()
52 _debug("CellServ[%hu]: %08x", cell->vl_curr_svix, addr.s_addr); in afs_vlocation_access_vl_by_name()
55 ret = afs_vl_get_entry_by_name(&addr, key, vl->vldb.name, vldb, in afs_vlocation_access_vl_by_name()
100 struct in_addr addr; in afs_vlocation_access_vl_by_id() local
108 addr = cell->vl_addrs[cell->vl_curr_svix]; in afs_vlocation_access_vl_by_id()
110 _debug("CellServ[%hu]: %08x", cell->vl_curr_svix, addr.s_addr); in afs_vlocation_access_vl_by_id()
113 ret = afs_vl_get_entry_by_id(&addr, key, volid, voltype, vldb, in afs_vlocation_access_vl_by_id()
/fs/proc/
Dtask_mmu.c523 static void smaps_pte_entry(pte_t *pte, unsigned long addr, in smaps_pte_entry() argument
531 page = vm_normal_page(vma, addr, *pte); in smaps_pte_entry()
558 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument
566 page = follow_trans_huge_pmd(vma, addr, pmd, FOLL_DUMP); in smaps_pmd_entry()
574 static void smaps_pmd_entry(pmd_t *pmd, unsigned long addr, in smaps_pmd_entry() argument
580 static int smaps_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in smaps_pte_range() argument
588 smaps_pmd_entry(pmd, addr, walk); in smaps_pte_range()
600 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in smaps_pte_range()
601 for (; addr != end; pte++, addr += PAGE_SIZE) in smaps_pte_range()
602 smaps_pte_entry(pte, addr, walk); in smaps_pte_range()
[all …]
Dkcore.c64 kclist_add(struct kcore_list *new, void *addr, size_t size, int type) 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()
152 ent->addr = (unsigned long)__va(0); in kcore_update_ram()
167 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info()
180 if (start < tmp->addr + tmp->size) in get_sparsemem_vmemmap_info()
181 if (end > tmp->addr) in get_sparsemem_vmemmap_info()
182 end = tmp->addr; in get_sparsemem_vmemmap_info()
188 vmm->addr = start; in get_sparsemem_vmemmap_info()
214 ent->addr = (unsigned long)__va((pfn << PAGE_SHIFT)); in kclist_add_private()
[all …]
Dvmcore.c135 int __weak elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size) in elfcorehdr_alloc() argument
143 void __weak elfcorehdr_free(unsigned long long addr) in elfcorehdr_free() argument
1018 u64 addr; in parse_crash_elf64_headers() local
1020 addr = elfcorehdr_addr; in parse_crash_elf64_headers()
1023 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr); in parse_crash_elf64_headers()
1049 addr = elfcorehdr_addr; in parse_crash_elf64_headers()
1050 rc = elfcorehdr_read(elfcorebuf, elfcorebuf_sz_orig, &addr); in parse_crash_elf64_headers()
1074 u64 addr; in parse_crash_elf32_headers() local
1076 addr = elfcorehdr_addr; in parse_crash_elf32_headers()
1079 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr); in parse_crash_elf32_headers()
[all …]
/fs/quota/
Dquota.c104 static int quota_getfmt(struct super_block *sb, int type, void __user *addr) in quota_getfmt() argument
115 if (copy_to_user(addr, &fmt, sizeof(fmt))) in quota_getfmt()
120 static int quota_getinfo(struct super_block *sb, int type, void __user *addr) in quota_getinfo() argument
145 if (copy_to_user(addr, &uinfo, sizeof(uinfo))) in quota_getinfo()
150 static int quota_setinfo(struct super_block *sb, int type, void __user *addr) in quota_setinfo() argument
155 if (copy_from_user(&info, addr, sizeof(info))) in quota_setinfo()
205 void __user *addr) in quota_getquota() argument
221 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getquota()
253 void __user *addr) in quota_setquota() argument
259 if (copy_from_user(&idq, addr, sizeof(idq))) in quota_setquota()
[all …]
Dcompat.c44 qid_t id, void __user *addr) in sys32_quotactl() argument
60 compat_dqblk = addr; in sys32_quotactl()
71 compat_dqblk = addr; in sys32_quotactl()
81 compat_fsqstat = addr; in sys32_quotactl()
115 ret = sys_quotactl(cmd, special, id, addr); in sys32_quotactl()
/fs/
Ddax.c44 void __pmem *addr; in dax_clear_blocks() local
48 count = bdev_direct_access(bdev, sector, &addr, &pfn, size); in dax_clear_blocks()
53 unsigned pgsz = PAGE_SIZE - offset_in_page(addr); in dax_clear_blocks()
56 clear_pmem(addr, pgsz); in dax_clear_blocks()
57 addr += pgsz; in dax_clear_blocks()
71 static long dax_get_addr(struct buffer_head *bh, void __pmem **addr, in dax_get_addr() argument
76 return bdev_direct_access(bh->b_bdev, sector, addr, &pfn, bh->b_size); in dax_get_addr()
80 static void dax_new_buf(void __pmem *addr, unsigned size, unsigned first, in dax_new_buf() argument
86 clear_pmem(addr, first); in dax_new_buf()
88 clear_pmem(addr + final, size - final); in dax_new_buf()
[all …]
Dbinfmt_flat.c315 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()
721 unsigned long addr; in load_flat_file() local
723 addr = calc_reloc(*rp, libinfo, id, 0); in load_flat_file()
724 if (addr == RELOC_FAILED) { in load_flat_file()
728 *rp = addr; in load_flat_file()
747 unsigned long addr, relval; in load_flat_file() local
755 addr = flat_get_relocate_addr(relval); in load_flat_file()
[all …]
Dbinfmt_elf_fdpic.c819 seg->addr; in elf_fdpic_map_file()
845 seg->addr + in elf_fdpic_map_file()
866 seg->addr; in elf_fdpic_map_file()
895 if (seg->p_vaddr - mseg->p_vaddr == seg->addr - mseg->addr) { in elf_fdpic_map_file()
896 load_addr = PAGE_ALIGN(mseg->addr + mseg->p_memsz); in elf_fdpic_map_file()
897 if (load_addr == (seg->addr & PAGE_MASK)) { in elf_fdpic_map_file()
900 (mseg->addr + mseg->p_memsz); in elf_fdpic_map_file()
901 mseg->p_memsz += seg->addr & ~PAGE_MASK; in elf_fdpic_map_file()
923 seg->addr, seg->addr + seg->p_memsz - 1, in elf_fdpic_map_file()
984 seg->addr = maddr + (phdr->p_vaddr - base); in elf_fdpic_map_file_constdisp_on_uclinux()
[all …]
/fs/ubifs/
Dlpt.c233 static void pack_bits(uint8_t **addr, int *pos, uint32_t val, int nrbits) in pack_bits() argument
235 uint8_t *p = *addr; in pack_bits()
271 *addr = p; in pack_bits()
283 uint32_t ubifs_unpack_bits(uint8_t **addr, int *pos, int nrbits) in ubifs_unpack_bits() argument
286 uint8_t *p = *addr; in ubifs_unpack_bits()
338 *addr = p; in ubifs_unpack_bits()
353 uint8_t *addr = buf + UBIFS_LPT_CRC_BYTES; in ubifs_pack_pnode() local
357 pack_bits(&addr, &pos, UBIFS_LPT_PNODE, UBIFS_LPT_TYPE_BITS); in ubifs_pack_pnode()
359 pack_bits(&addr, &pos, pnode->num, c->pcnt_bits); in ubifs_pack_pnode()
361 pack_bits(&addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode()
[all …]
Dfile.c57 static int read_block(struct inode *inode, void *addr, unsigned int block, in read_block() argument
70 memset(addr, 0, UBIFS_BLOCK_SIZE); in read_block()
82 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block()
93 memset(addr + len, 0, UBIFS_BLOCK_SIZE - len); in read_block()
106 void *addr; in do_readpage() local
118 addr = kmap(page); in do_readpage()
125 memset(addr, 0, PAGE_CACHE_SIZE); in do_readpage()
142 memset(addr, 0, UBIFS_BLOCK_SIZE); in do_readpage()
144 ret = read_block(inode, addr, block, dn); in do_readpage()
154 memset(addr + ilen, 0, dlen - ilen); in do_readpage()
[all …]
/fs/dlm/
Dconfig.c229 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member
500 kfree(cm->addr[cm->addr_count]); in drop_comm()
615 struct sockaddr_storage *addr; in comm_addr_store() local
624 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store()
625 if (!addr) in comm_addr_store()
628 memcpy(addr, buf, len); in comm_addr_store()
630 rv = dlm_lowcomms_addr(cm->nodeid, addr, len); in comm_addr_store()
632 kfree(addr); in comm_addr_store()
636 cm->addr[cm->addr_count++] = addr; in comm_addr_store()
646 struct sockaddr_storage *addr; in comm_addr_list_show() local
[all …]
Dlowcomms.c147 struct sockaddr_storage *addr[DLM_MAX_ADDR_COUNT]; member
304 memcpy(&sas, na->addr[na->curr_addr_index], in nodeid_to_addr()
340 static int addr_to_nodeid(struct sockaddr_storage *addr, int *nodeid) in addr_to_nodeid() argument
352 if (addr_compare(na->addr[addr_i], addr)) { in addr_to_nodeid()
364 int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len) in dlm_lowcomms_addr() argument
379 memcpy(new_addr, addr, len); in dlm_lowcomms_addr()
385 new_node->addr[0] = new_addr; in dlm_lowcomms_addr()
399 na->addr[na->addr_count++] = new_addr; in dlm_lowcomms_addr()
1227 struct sockaddr_storage sas, *addr; in init_local() local
1235 addr = kmalloc(sizeof(*addr), GFP_NOFS); in init_local()
[all …]
/fs/ceph/
Dmdsmap.c91 struct ceph_entity_addr addr; in ceph_mdsmap_decode() local
106 sizeof(addr) + sizeof(struct ceph_timespec), in ceph_mdsmap_decode()
112 ceph_decode_copy(p, &addr, sizeof(addr)); in ceph_mdsmap_decode()
113 ceph_decode_addr(&addr); in ceph_mdsmap_decode()
128 ceph_pr_addr(&addr.in_addr), in ceph_mdsmap_decode()
137 info->addr = addr; in ceph_mdsmap_decode()
/fs/cifs/
Dcache.c57 } addr[0]; member
68 const struct sockaddr_in *addr = (struct sockaddr_in *) sa; in cifs_server_get_key() local
82 key->port = addr->sin_port; in cifs_server_get_key()
83 key->addr[0].ipv4_addr = addr->sin_addr; in cifs_server_get_key()
84 key_len += sizeof(key->addr[0].ipv4_addr); in cifs_server_get_key()
90 key->addr[0].ipv6_addr = addr6->sin6_addr; in cifs_server_get_key()
91 key_len += sizeof(key->addr[0].ipv6_addr); in cifs_server_get_key()
/fs/jfs/
Djfs_types.h78 static inline void PXDaddress(pxd_t *pxd, __u64 addr) in PXDaddress() argument
81 cpu_to_le32((addr >> 32)<<24); in PXDaddress()
82 pxd->addr2 = cpu_to_le32(addr & 0xffffffff); in PXDaddress()
126 #define DXDaddress(dxd, addr) PXDaddress(&(dxd)->loc, addr) argument
/fs/ocfs2/
Docfs2.h873 #define ocfs2_set_bit(bit, addr) _ocfs2_set_bit((bit), (unsigned long *)(addr)) argument
879 #define ocfs2_clear_bit(bit, addr) _ocfs2_clear_bit((bit), (unsigned long *)(addr)) argument
885 static inline void *correct_addr_and_bit_unaligned(int *bit, void *addr) in correct_addr_and_bit_unaligned() argument
888 *bit += ((unsigned long) addr & 7UL) << 3; in correct_addr_and_bit_unaligned()
889 addr = (void *) ((unsigned long) addr & ~7UL); in correct_addr_and_bit_unaligned()
891 *bit += ((unsigned long) addr & 3UL) << 3; in correct_addr_and_bit_unaligned()
892 addr = (void *) ((unsigned long) addr & ~3UL); in correct_addr_and_bit_unaligned()
896 return addr; in correct_addr_and_bit_unaligned()
/fs/nfs/
Dfscache-index.c61 } addr[0]; member
84 key->addr[0].ipv4_addr = sin->sin_addr; in nfs_server_get_key()
85 len += sizeof(key->addr[0].ipv4_addr); in nfs_server_get_key()
90 key->addr[0].ipv6_addr = sin6->sin6_addr; in nfs_server_get_key()
91 len += sizeof(key->addr[0].ipv6_addr); in nfs_server_get_key()
Ddns_resolve.c65 struct sockaddr_storage addr; member
79 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
184 rpc_ntop((struct sockaddr *)&item->addr, buf, sizeof(buf)); in nfs_dns_show()
235 (struct sockaddr *)&key.addr, in nfs_dns_parse()
236 sizeof(key.addr)); in nfs_dns_parse()
346 memcpy(sa, &item->addr, item->addrlen); in nfs_dns_resolve_name()
/fs/hugetlbfs/
Dinode.c195 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument
209 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area()
211 return addr; in hugetlb_get_unmapped_area()
214 if (addr) { in hugetlb_get_unmapped_area()
215 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
216 vma = find_vma(mm, addr); in hugetlb_get_unmapped_area()
217 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area()
218 (!vma || addr + len <= vm_start_gap(vma))) in hugetlb_get_unmapped_area()
219 return addr; in hugetlb_get_unmapped_area()
612 unsigned long addr; in hugetlbfs_fallocate() local
[all …]

12345