Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 116) sorted by relevance

12345

/fs/nilfs2/
Ddirect.c43 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument
45 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
51 __u64 ptr; in nilfs_direct_lookup() local
55 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
56 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup()
59 *ptrp = ptr; in nilfs_direct_lookup()
68 __u64 ptr, ptr2; in nilfs_direct_lookup_contig() local
74 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
75 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup_contig()
80 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig()
[all …]
Dbtree.c72 __u64 ptr, struct buffer_head **bhp) in nilfs_btree_get_new_block() argument
77 bh = nilfs_btnode_create_block(btnc, ptr); in nilfs_btree_get_new_block()
168 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument
171 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr()
252 __u64 key, __u64 ptr, int ncmax) in nilfs_btree_node_insert() argument
268 dptrs[index] = cpu_to_le64(ptr); in nilfs_btree_node_insert()
278 __u64 ptr; in nilfs_btree_node_delete() local
286 ptr = le64_to_cpu(dptrs[index]); in nilfs_btree_node_delete()
291 *ptrp = ptr; in nilfs_btree_node_delete()
474 static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, in __nilfs_btree_get_block() argument
[all …]
Dbmap.h94 static inline int nilfs_bmap_is_new_ptr(unsigned long ptr) in nilfs_bmap_is_new_ptr() argument
96 return !!(ptr & NILFS_BMAP_NEW_PTR_INIT); in nilfs_bmap_is_new_ptr()
177 __u64 *ptr) in nilfs_bmap_lookup() argument
179 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
241 __u64 ptr) in nilfs_bmap_set_target_v() argument
244 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
/fs/xfs/
Dkmem.c32 void *ptr; in kmem_alloc() local
35 ptr = kmalloc(size, lflags); in kmem_alloc()
36 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_alloc()
37 return ptr; in kmem_alloc()
51 void *ptr; in kmem_zalloc_large() local
54 ptr = kmem_zalloc(size, flags | KM_MAYFAIL); in kmem_zalloc_large()
55 if (ptr) in kmem_zalloc_large()
56 return ptr; in kmem_zalloc_large()
69 ptr = __vmalloc(size, lflags | __GFP_HIGHMEM | __GFP_ZERO, PAGE_KERNEL); in kmem_zalloc_large()
74 return ptr; in kmem_zalloc_large()
[all …]
Dxfs_dir2_readdir.c170 char *ptr; /* current data entry */ in xfs_dir2_block_getdents() local
199 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_block_getdents()
206 while (ptr < endptr) { in xfs_dir2_block_getdents()
209 dup = (xfs_dir2_data_unused_t *)ptr; in xfs_dir2_block_getdents()
214 ptr += be16_to_cpu(dup->length); in xfs_dir2_block_getdents()
218 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_block_getdents()
223 ptr += dp->d_ops->data_entsize(dep->namelen); in xfs_dir2_block_getdents()
495 char *ptr = NULL; /* pointer to current data */ in xfs_dir2_leaf_getdents() local
541 if (!bp || ptr >= (char *)bp->b_addr + geo->blksize) { in xfs_dir2_leaf_getdents()
572 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_leaf_getdents()
[all …]
Dkmem.h66 static inline void kmem_free(const void *ptr) in kmem_free() argument
68 kvfree(ptr); in kmem_free()
103 kmem_zone_free(kmem_zone_t *zone, void *ptr) in kmem_zone_free() argument
105 kmem_cache_free(zone, ptr); in kmem_zone_free()
/fs/btrfs/
Dinode-item.c30 unsigned long ptr; in find_name_in_backref() local
38 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in find_name_in_backref()
40 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in find_name_in_backref()
60 unsigned long ptr; in btrfs_find_name_in_ext_backref() local
68 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_find_name_in_ext_backref()
77 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
133 unsigned long ptr; in btrfs_del_inode_extref() local
179 ptr = (unsigned long)extref; in btrfs_del_inode_extref()
182 memmove_extent_buffer(leaf, ptr, ptr + del_len, in btrfs_del_inode_extref()
183 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref()
[all …]
Ddev-replace.c65 struct btrfs_dev_replace_item *ptr; in btrfs_init_dev_replace() local
103 ptr = btrfs_item_ptr(eb, slot, struct btrfs_dev_replace_item); in btrfs_init_dev_replace()
111 src_devid = btrfs_dev_replace_src_devid(eb, ptr); in btrfs_init_dev_replace()
113 btrfs_dev_replace_cont_reading_from_srcdev_mode(eb, ptr); in btrfs_init_dev_replace()
114 dev_replace->replace_state = btrfs_dev_replace_replace_state(eb, ptr); in btrfs_init_dev_replace()
115 dev_replace->time_started = btrfs_dev_replace_time_started(eb, ptr); in btrfs_init_dev_replace()
117 btrfs_dev_replace_time_stopped(eb, ptr); in btrfs_init_dev_replace()
119 btrfs_dev_replace_num_write_errors(eb, ptr)); in btrfs_init_dev_replace()
121 btrfs_dev_replace_num_uncorrectable_read_errors(eb, ptr)); in btrfs_init_dev_replace()
122 dev_replace->cursor_left = btrfs_dev_replace_cursor_left(eb, ptr); in btrfs_init_dev_replace()
[all …]
Dstruct-funcs.c54 const void *ptr, unsigned long off, \
57 unsigned long part_offset = (unsigned long)ptr; \
93 const void *ptr, unsigned long off, \
97 unsigned long part_offset = (unsigned long)ptr; \
140 unsigned long ptr = btrfs_node_key_ptr_offset(nr); in btrfs_node_key() local
141 read_eb_member(eb, (struct btrfs_key_ptr *)ptr, in btrfs_node_key()
Droot-tree.c144 unsigned long ptr; in btrfs_update_root() local
166 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
197 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
206 write_extent_buffer(l, item, ptr, sizeof(*item)); in btrfs_update_root()
376 unsigned long ptr; in btrfs_del_root_ref() local
397 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
398 WARN_ON(memcmp_extent_buffer(leaf, name, ptr, name_len)); in btrfs_del_root_ref()
447 unsigned long ptr; in btrfs_add_root_ref() local
470 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()
471 write_extent_buffer(leaf, name, ptr, name_len); in btrfs_add_root_ref()
/fs/xfs/libxfs/
Dxfs_btree.c207 union xfs_btree_ptr *ptr, /* btree block disk address */ in xfs_btree_check_ptr() argument
213 be64_to_cpu((&ptr->l)[index]), level); in xfs_btree_check_ptr()
216 be32_to_cpu((&ptr->s)[index]), level); in xfs_btree_check_ptr()
865 union xfs_btree_ptr *ptr) in xfs_btree_ptr_to_daddr() argument
868 ASSERT(ptr->l != cpu_to_be64(NULLFSBLOCK)); in xfs_btree_ptr_to_daddr()
870 return XFS_FSB_TO_DADDR(cur->bc_mp, be64_to_cpu(ptr->l)); in xfs_btree_ptr_to_daddr()
873 ASSERT(ptr->s != cpu_to_be32(NULLAGBLOCK)); in xfs_btree_ptr_to_daddr()
876 be32_to_cpu(ptr->s)); in xfs_btree_ptr_to_daddr()
889 union xfs_btree_ptr *ptr, in xfs_btree_readahead_ptr() argument
893 xfs_btree_ptr_to_daddr(cur, ptr), in xfs_btree_readahead_ptr()
[all …]
Dxfs_attr_remote.c69 void *ptr, in xfs_attr3_rmt_hdr_ok() argument
75 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_hdr_ok()
93 void *ptr, in xfs_attr3_rmt_verify() argument
97 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_verify()
123 char *ptr; in xfs_attr3_rmt_read_verify() local
132 ptr = bp->b_addr; in xfs_attr3_rmt_read_verify()
138 if (!xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) { in xfs_attr3_rmt_read_verify()
142 if (!xfs_attr3_rmt_verify(mp, ptr, blksize, bno)) { in xfs_attr3_rmt_read_verify()
147 ptr += blksize; in xfs_attr3_rmt_read_verify()
163 char *ptr; in xfs_attr3_rmt_write_verify() local
[all …]
Dxfs_alloc_btree.c48 union xfs_btree_ptr *ptr, in xfs_allocbt_set_root() argument
57 ASSERT(ptr->s != 0); in xfs_allocbt_set_root()
59 agf->agf_roots[btnum] = ptr->s; in xfs_allocbt_set_root()
134 int ptr, in xfs_allocbt_update_lastrec() argument
151 if (ptr != xfs_btree_get_numrecs(block)) in xfs_allocbt_update_lastrec()
163 if (ptr <= numrecs) in xfs_allocbt_update_lastrec()
165 ASSERT(ptr == numrecs + 1); in xfs_allocbt_update_lastrec()
241 union xfs_btree_ptr *ptr) in xfs_allocbt_init_ptr_from_cur() argument
248 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_allocbt_init_ptr_from_cur()
/fs/coda/
Dcoda_linux.h65 #define CODA_ALLOC(ptr, cast, size) do { \ argument
67 ptr = kzalloc((unsigned long) size, GFP_KERNEL); \
69 ptr = (cast)vzalloc((unsigned long) size); \
70 if (!ptr) \
75 #define CODA_FREE(ptr,size) \ argument
76 do { if (size < PAGE_SIZE) kfree((ptr)); else vfree((ptr)); } while (0)
/fs/udf/
Ddirectory.c163 uint8_t *ptr; in udf_get_fileident() local
172 ptr = buffer; in udf_get_fileident()
175 ptr += *offset; in udf_get_fileident()
176 fi = (struct fileIdentDesc *)ptr; in udf_get_fileident()
200 struct short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, uint32_t *offset, in udf_get_fileshortad() argument
205 if ((!ptr) || (!offset)) { in udf_get_fileshortad()
213 sa = (struct short_ad *)ptr; in udf_get_fileshortad()
223 struct long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, uint32_t *offset, int inc) in udf_get_filelongad() argument
227 if ((!ptr) || (!offset)) { in udf_get_filelongad()
235 la = (struct long_ad *)ptr; in udf_get_filelongad()
Dunicode.c50 int udf_build_ustr(struct ustr *dest, dstring *ptr, int size) in udf_build_ustr() argument
54 if (!dest || !ptr || !size) in udf_build_ustr()
58 usesize = min_t(size_t, ptr[size - 1], sizeof(dest->u_name)); in udf_build_ustr()
60 dest->u_cmpID = ptr[0]; in udf_build_ustr()
62 memcpy(dest->u_name, ptr + 1, usesize); in udf_build_ustr()
71 static void udf_build_ustr_exact(struct ustr *dest, dstring *ptr, int exactsize) in udf_build_ustr_exact() argument
74 dest->u_cmpID = ptr[0]; in udf_build_ustr_exact()
76 memcpy(dest->u_name, ptr + 1, exactsize - 1); in udf_build_ustr_exact()
/fs/adfs/
Ddir_f.c44 static inline int adfs_readname(char *buf, char *ptr, int maxlen) in adfs_readname() argument
48 while ((unsigned char)*ptr >= ' ' && maxlen--) { in adfs_readname()
49 if (*ptr == '/') in adfs_readname()
52 *buf++ = *ptr; in adfs_readname()
53 ptr++; in adfs_readname()
89 union { __le32 *ptr32; u8 *ptr8; } ptr, end; in adfs_dir_checkbyte() local
113 ptr.ptr8 = bufoff(bh, i); in adfs_dir_checkbyte()
114 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte()
117 dircheck = *ptr.ptr8++ ^ ror13(dircheck); in adfs_dir_checkbyte()
118 } while (ptr.ptr8 < end.ptr8); in adfs_dir_checkbyte()
[all …]
/fs/f2fs/
Dxattr.h56 #define XATTR_HDR(ptr) ((struct f2fs_xattr_header *)(ptr)) argument
57 #define XATTR_ENTRY(ptr) ((struct f2fs_xattr_entry *)(ptr)) argument
58 #define XATTR_FIRST_ENTRY(ptr) (XATTR_ENTRY(XATTR_HDR(ptr) + 1)) argument
/fs/ocfs2/
Docfs2.h683 #define OCFS2_IS_VALID_DINODE(ptr) \ argument
684 (!strcmp((ptr)->i_signature, OCFS2_INODE_SIGNATURE))
686 #define OCFS2_IS_VALID_EXTENT_BLOCK(ptr) \ argument
687 (!strcmp((ptr)->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE))
689 #define OCFS2_IS_VALID_GROUP_DESC(ptr) \ argument
690 (!strcmp((ptr)->bg_signature, OCFS2_GROUP_DESC_SIGNATURE))
693 #define OCFS2_IS_VALID_XATTR_BLOCK(ptr) \ argument
694 (!strcmp((ptr)->xb_signature, OCFS2_XATTR_BLOCK_SIGNATURE))
696 #define OCFS2_IS_VALID_DIR_TRAILER(ptr) \ argument
697 (!strcmp((ptr)->db_signature, OCFS2_DIR_TRAILER_SIGNATURE))
[all …]
/fs/gfs2/
Dbmap.c318 __be64 *ptr; in lookup_metapath() local
323 ptr = metapointer(x, mp); in lookup_metapath()
324 dblock = be64_to_cpu(*ptr); in lookup_metapath()
362 static inline unsigned int gfs2_extent_length(void *start, unsigned int len, __be64 *ptr, size_t li… in gfs2_extent_length() argument
365 const __be64 *first = ptr; in gfs2_extent_length()
366 u64 d = be64_to_cpu(*ptr); in gfs2_extent_length()
370 ptr++; in gfs2_extent_length()
371 if (ptr >= end) in gfs2_extent_length()
377 } while(be64_to_cpu(*ptr) == d); in gfs2_extent_length()
378 if (ptr >= end) in gfs2_extent_length()
[all …]
Dlops.c389 __be32 *ptr; in gfs2_check_magic() local
393 ptr = kaddr + bh_offset(bh); in gfs2_check_magic()
394 if (*ptr == cpu_to_be32(GFS2_MAGIC)) in gfs2_check_magic()
422 __be64 *ptr; in gfs2_before_commit() local
437 ptr = (__be64 *)(ld + 1); in gfs2_before_commit()
441 *ptr++ = cpu_to_be64(bd1->bd_bh->b_blocknr); in gfs2_before_commit()
444 *ptr++ = cpu_to_be64(buffer_escaped(bd1->bd_bh) ? 1 : 0); in gfs2_before_commit()
463 ptr = page_address(page); in gfs2_before_commit()
465 memcpy(ptr, kaddr + bh_offset(bd2->bd_bh), in gfs2_before_commit()
468 *(__be32 *)ptr = 0; in gfs2_before_commit()
[all …]
/fs/ramfs/
Dfile-nommu.c211 struct page **pages = NULL, **ptr, *page; in ramfs_nommu_get_unmapped_area() local
240 ptr = pages; in ramfs_nommu_get_unmapped_area()
241 page = *ptr++; in ramfs_nommu_get_unmapped_area()
244 if (*ptr++ != page++) in ramfs_nommu_get_unmapped_area()
251 ptr = pages; in ramfs_nommu_get_unmapped_area()
253 put_page(*ptr++); in ramfs_nommu_get_unmapped_area()
/fs/ext4/
Dsysfs.c261 void *ptr = calc_ptr(a, sbi); in ext4_attr_show() local
278 if (!ptr) in ext4_attr_show()
282 le32_to_cpup(ptr)); in ext4_attr_show()
285 *((unsigned int *) ptr)); in ext4_attr_show()
287 if (!ptr) in ext4_attr_show()
290 atomic_read((atomic_t *) ptr)); in ext4_attr_show()
305 void *ptr = calc_ptr(a, sbi); in ext4_attr_store() local
313 if (!ptr) in ext4_attr_store()
319 *((__le32 *) ptr) = cpu_to_le32(t); in ext4_attr_store()
321 *((unsigned int *) ptr) = t; in ext4_attr_store()
/fs/omfs/
Dinode.c85 unsigned char *ptr = (unsigned char *) oi; in omfs_update_checksums() local
90 crc = crc_itu_t(crc, ptr + ofs, count); in omfs_update_checksums()
93 xor = ptr[0]; in omfs_update_checksums()
95 xor ^= ptr[i]; in omfs_update_checksums()
313 unsigned long **ptr; in omfs_get_imap() local
331 ptr = sbi->s_imap; in omfs_get_imap()
336 *ptr = kmalloc(sb->s_blocksize, GFP_KERNEL); in omfs_get_imap()
337 if (!*ptr) { in omfs_get_imap()
341 memcpy(*ptr, bh->b_data, sb->s_blocksize); in omfs_get_imap()
343 memset((void *)*ptr + count, 0xff, in omfs_get_imap()
[all …]
/fs/hfs/
Dmdb.c72 char *ptr; in hfs_mdb_get() local
177 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_get()
186 memcpy(ptr, bh->b_data + off2, len); in hfs_mdb_get()
188 ptr += len; in hfs_mdb_get()
303 char *ptr; in hfs_mdb_commit() local
310 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_commit()
320 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit()
327 ptr += len; in hfs_mdb_commit()

12345