Home
last modified time | relevance | path

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

123456

/fs/xfs/
Dkmem.c16 void *ptr; in kmem_alloc() local
21 ptr = kmalloc(size, lflags); in kmem_alloc()
22 if (ptr || (flags & KM_MAYFAIL)) in kmem_alloc()
23 return ptr; in kmem_alloc()
45 void *ptr; in __kmem_vmalloc() local
51 ptr = __vmalloc(size, lflags, PAGE_KERNEL); in __kmem_vmalloc()
56 return ptr; in __kmem_vmalloc()
68 void *ptr; in kmem_alloc_io() local
75 ptr = kmem_alloc(size, flags | KM_MAYFAIL); in kmem_alloc_io()
76 if (ptr) { in kmem_alloc_io()
[all …]
Dxfs_dir2_readdir.c144 char *ptr; /* current data entry */ in xfs_dir2_block_getdents() local
172 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_block_getdents()
179 while (ptr < endptr) { in xfs_dir2_block_getdents()
182 dup = (xfs_dir2_data_unused_t *)ptr; in xfs_dir2_block_getdents()
187 ptr += be16_to_cpu(dup->length); in xfs_dir2_block_getdents()
191 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_block_getdents()
196 ptr += dp->d_ops->data_entsize(dep->namelen); in xfs_dir2_block_getdents()
350 char *ptr = NULL; /* pointer to current data */ in xfs_dir2_leaf_getdents() local
383 if (!bp || ptr >= (char *)bp->b_addr + geo->blksize) { in xfs_dir2_leaf_getdents()
401 ptr = (char *)dp->d_ops->data_entry_p(hdr); in xfs_dir2_leaf_getdents()
[all …]
Dkmem.h59 static inline void kmem_free(const void *ptr) in kmem_free() argument
61 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/nilfs2/
Ddirect.c30 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument
32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
38 __u64 ptr; in nilfs_direct_lookup() local
42 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
43 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup()
46 *ptrp = ptr; in nilfs_direct_lookup()
55 __u64 ptr, ptr2; in nilfs_direct_lookup_contig() local
61 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
62 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup_contig()
67 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig()
[all …]
Dbtree.c59 __u64 ptr, struct buffer_head **bhp) in nilfs_btree_get_new_block() argument
64 bh = nilfs_btnode_create_block(btnc, ptr); in nilfs_btree_get_new_block()
155 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument
158 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr()
239 __u64 key, __u64 ptr, int ncmax) in nilfs_btree_node_insert() argument
255 dptrs[index] = cpu_to_le64(ptr); in nilfs_btree_node_insert()
265 __u64 ptr; in nilfs_btree_node_delete() local
273 ptr = le64_to_cpu(dptrs[index]); in nilfs_btree_node_delete()
278 *ptrp = ptr; in nilfs_btree_node_delete()
469 static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, in __nilfs_btree_get_block() argument
[all …]
Dbmap.h81 static inline int nilfs_bmap_is_new_ptr(unsigned long ptr) in nilfs_bmap_is_new_ptr() argument
83 return !!(ptr & NILFS_BMAP_NEW_PTR_INIT); in nilfs_bmap_is_new_ptr()
168 __u64 *ptr) in nilfs_bmap_lookup() argument
170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
232 __u64 ptr) in nilfs_bmap_set_target_v() argument
235 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
/fs/btrfs/
Dinode-item.c16 unsigned long ptr; in btrfs_find_name_in_backref() local
23 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref()
25 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_find_name_in_backref()
42 unsigned long ptr; in btrfs_find_name_in_ext_backref() local
49 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref()
58 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
110 unsigned long ptr; in btrfs_del_inode_extref() local
157 ptr = (unsigned long)extref; in btrfs_del_inode_extref()
160 memmove_extent_buffer(leaf, ptr, ptr + del_len, in btrfs_del_inode_extref()
161 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref()
[all …]
Dstruct-funcs.c42 const void *ptr, unsigned long off, \
45 unsigned long part_offset = (unsigned long)ptr; \
80 const void *ptr, unsigned long off) \
82 unsigned long part_offset = (unsigned long)ptr; \
105 const void *ptr, unsigned long off, \
109 unsigned long part_offset = (unsigned long)ptr; \
142 void btrfs_set_##bits(struct extent_buffer *eb, void *ptr, \
145 unsigned long part_offset = (unsigned long)ptr; \
175 unsigned long ptr = btrfs_node_key_ptr_offset(nr); in btrfs_node_key() local
176 read_eb_member(eb, (struct btrfs_key_ptr *)ptr, in btrfs_node_key()
Ddev-replace.c43 struct btrfs_dev_replace_item *ptr; in btrfs_init_dev_replace() local
80 ptr = btrfs_item_ptr(eb, slot, struct btrfs_dev_replace_item); in btrfs_init_dev_replace()
88 src_devid = btrfs_dev_replace_src_devid(eb, ptr); in btrfs_init_dev_replace()
90 btrfs_dev_replace_cont_reading_from_srcdev_mode(eb, ptr); in btrfs_init_dev_replace()
91 dev_replace->replace_state = btrfs_dev_replace_replace_state(eb, ptr); in btrfs_init_dev_replace()
92 dev_replace->time_started = btrfs_dev_replace_time_started(eb, ptr); in btrfs_init_dev_replace()
94 btrfs_dev_replace_time_stopped(eb, ptr); in btrfs_init_dev_replace()
96 btrfs_dev_replace_num_write_errors(eb, ptr)); in btrfs_init_dev_replace()
98 btrfs_dev_replace_num_uncorrectable_read_errors(eb, ptr)); in btrfs_init_dev_replace()
99 dev_replace->cursor_left = btrfs_dev_replace_cursor_left(eb, ptr); in btrfs_init_dev_replace()
[all …]
Droot-tree.c129 unsigned long ptr; in btrfs_update_root() local
152 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
183 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
192 write_extent_buffer(l, item, ptr, sizeof(*item)); in btrfs_update_root()
361 unsigned long ptr; in btrfs_del_root_ref() local
379 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
382 memcmp_extent_buffer(leaf, name, ptr, name_len)) { in btrfs_del_root_ref()
434 unsigned long ptr; in btrfs_add_root_ref() local
457 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()
458 write_extent_buffer(leaf, name, ptr, name_len); in btrfs_add_root_ref()
/fs/xfs/libxfs/
Dxfs_btree.c229 union xfs_btree_ptr *ptr, in xfs_btree_check_ptr() argument
234 if (xfs_btree_check_lptr(cur, be64_to_cpu((&ptr->l)[index]), in xfs_btree_check_ptr()
243 if (xfs_btree_check_sptr(cur, be32_to_cpu((&ptr->s)[index]), in xfs_btree_check_ptr()
989 union xfs_btree_ptr *ptr, in xfs_btree_ptr_to_daddr() argument
996 error = xfs_btree_check_ptr(cur, ptr, 0, 1); in xfs_btree_ptr_to_daddr()
1001 fsbno = be64_to_cpu(ptr->l); in xfs_btree_ptr_to_daddr()
1004 agbno = be32_to_cpu(ptr->s); in xfs_btree_ptr_to_daddr()
1021 union xfs_btree_ptr *ptr, in xfs_btree_readahead_ptr() argument
1026 if (xfs_btree_ptr_to_daddr(cur, ptr, &daddr)) in xfs_btree_readahead_ptr()
1066 union xfs_btree_ptr *ptr) in xfs_btree_ptr_is_null() argument
[all …]
Dxfs_attr_remote.c50 void *ptr, in xfs_attr3_rmt_hdr_ok() argument
56 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_hdr_ok()
75 void *ptr, in xfs_attr3_rmt_verify() argument
79 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_verify()
107 char *ptr; in __xfs_attr3_rmt_read_verify() local
116 ptr = bp->b_addr; in __xfs_attr3_rmt_read_verify()
123 !xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) { in __xfs_attr3_rmt_read_verify()
127 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify()
131 ptr += blksize; in __xfs_attr3_rmt_read_verify()
173 char *ptr; in xfs_attr3_rmt_write_verify() local
[all …]
/fs/erofs/
Dtagptr.h36 #define __tagptr_mask_1(ptr, n) \ argument
37 __builtin_types_compatible_p(typeof(ptr), struct __tagptr##n) ? \
40 #define __tagptr_mask(ptr) (\ argument
41 __tagptr_mask_1(ptr, 1) ( \
42 __tagptr_mask_1(ptr, 2) ( \
43 __tagptr_mask_1(ptr, 3) ( \
44 __tagptr_mask_1(ptr, 4) ( \
58 #define tagptr_fold(type, ptr, _tags) ({ \ argument
62 tagptr_init(type, (uintptr_t)(ptr) | tags); })
/fs/udf/
Ddirectory.c162 uint8_t *ptr; in udf_get_fileident() local
171 ptr = buffer; in udf_get_fileident()
174 ptr += *offset; in udf_get_fileident()
175 fi = (struct fileIdentDesc *)ptr; in udf_get_fileident()
199 struct short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, uint32_t *offset, in udf_get_fileshortad() argument
204 if ((!ptr) || (!offset)) { in udf_get_fileshortad()
212 sa = (struct short_ad *)ptr; in udf_get_fileshortad()
222 struct long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, uint32_t *offset, int inc) in udf_get_filelongad() argument
226 if ((!ptr) || (!offset)) { in udf_get_filelongad()
234 la = (struct long_ad *)ptr; in udf_get_filelongad()
/fs/ocfs2/
Docfs2.h686 #define OCFS2_IS_VALID_DINODE(ptr) \ argument
687 (!strcmp((ptr)->i_signature, OCFS2_INODE_SIGNATURE))
689 #define OCFS2_IS_VALID_EXTENT_BLOCK(ptr) \ argument
690 (!strcmp((ptr)->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE))
692 #define OCFS2_IS_VALID_GROUP_DESC(ptr) \ argument
693 (!strcmp((ptr)->bg_signature, OCFS2_GROUP_DESC_SIGNATURE))
696 #define OCFS2_IS_VALID_XATTR_BLOCK(ptr) \ argument
697 (!strcmp((ptr)->xb_signature, OCFS2_XATTR_BLOCK_SIGNATURE))
699 #define OCFS2_IS_VALID_DIR_TRAILER(ptr) \ argument
700 (!strcmp((ptr)->db_signature, OCFS2_DIR_TRAILER_SIGNATURE))
[all …]
/fs/f2fs/
Dxattr.h55 #define XATTR_HDR(ptr) ((struct f2fs_xattr_header *)(ptr)) argument
56 #define XATTR_ENTRY(ptr) ((struct f2fs_xattr_entry *)(ptr)) argument
57 #define XATTR_FIRST_ENTRY(ptr) (XATTR_ENTRY(XATTR_HDR(ptr) + 1)) argument
/fs/gfs2/
Dbmap.c328 __be64 *ptr = metapointer(x, mp); in __fillup_metapath() local
329 u64 dblock = be64_to_cpu(*ptr); in __fillup_metapath()
428 static inline unsigned int gfs2_extent_length(struct buffer_head *bh, __be64 *ptr, size_t limit, in… in gfs2_extent_length() argument
431 const __be64 *first = ptr; in gfs2_extent_length()
432 u64 d = be64_to_cpu(*ptr); in gfs2_extent_length()
436 ptr++; in gfs2_extent_length()
437 if (ptr >= end) in gfs2_extent_length()
440 } while(be64_to_cpu(*ptr) == d); in gfs2_extent_length()
441 if (ptr >= end) in gfs2_extent_length()
443 return ptr - first; in gfs2_extent_length()
[all …]
Dlops.c594 __be32 *ptr; in gfs2_check_magic() local
598 ptr = kaddr + bh_offset(bh); in gfs2_check_magic()
599 if (*ptr == cpu_to_be32(GFS2_MAGIC)) in gfs2_check_magic()
627 __be64 *ptr; in gfs2_before_commit() local
642 ptr = (__be64 *)(ld + 1); in gfs2_before_commit()
646 *ptr++ = cpu_to_be64(bd1->bd_bh->b_blocknr); in gfs2_before_commit()
649 *ptr++ = cpu_to_be64(buffer_escaped(bd1->bd_bh) ? 1 : 0); in gfs2_before_commit()
668 ptr = page_address(page); in gfs2_before_commit()
670 memcpy(ptr, kaddr + bh_offset(bd2->bd_bh), in gfs2_before_commit()
673 *(__be32 *)ptr = 0; in gfs2_before_commit()
[all …]
/fs/ramfs/
Dfile-nommu.c207 struct page **pages = NULL, **ptr, *page; in ramfs_nommu_get_unmapped_area() local
232 ptr = pages; in ramfs_nommu_get_unmapped_area()
233 page = *ptr++; in ramfs_nommu_get_unmapped_area()
236 if (*ptr++ != page++) in ramfs_nommu_get_unmapped_area()
243 ptr = pages; in ramfs_nommu_get_unmapped_area()
245 put_page(*ptr++); in ramfs_nommu_get_unmapped_area()
/fs/ext4/
Dsysfs.c296 void *ptr = calc_ptr(a, sbi); in ext4_attr_show() local
313 if (!ptr) in ext4_attr_show()
317 le32_to_cpup(ptr)); in ext4_attr_show()
320 *((unsigned int *) ptr)); in ext4_attr_show()
322 if (!ptr) in ext4_attr_show()
325 atomic_read((atomic_t *) ptr)); in ext4_attr_show()
346 void *ptr = calc_ptr(a, sbi); in ext4_attr_store() local
354 if (!ptr) in ext4_attr_store()
360 *((__le32 *) ptr) = cpu_to_le32(t); in ext4_attr_store()
362 *((unsigned int *) ptr) = t; in ext4_attr_store()
/fs/orangefs/
Dorangefs-bufmap.c271 ret = get_user_pages_fast((unsigned long)user_desc->ptr, in orangefs_bufmap_map()
302 (user_desc->ptr + (i * pages_per_desc * PAGE_SIZE)); in orangefs_bufmap_map()
324 user_desc->ptr, in orangefs_bufmap_initialize()
337 if (PAGE_ALIGN((unsigned long)user_desc->ptr) != in orangefs_bufmap_initialize()
338 (unsigned long)user_desc->ptr) { in orangefs_bufmap_initialize()
340 user_desc->ptr); in orangefs_bufmap_initialize()
344 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize()
345 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize()
347 user_desc->ptr, in orangefs_bufmap_initialize()
/fs/adfs/
Ddir_f.c76 union { __le32 *ptr32; u8 *ptr8; } ptr, end; in adfs_dir_checkbyte() local
100 ptr.ptr8 = bufoff(bh, i); in adfs_dir_checkbyte()
101 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte()
104 dircheck = *ptr.ptr8++ ^ ror13(dircheck); in adfs_dir_checkbyte()
105 } while (ptr.ptr8 < end.ptr8); in adfs_dir_checkbyte()
115 ptr.ptr8 = bufoff(bh, 2008); in adfs_dir_checkbyte()
116 end.ptr8 = ptr.ptr8 + 36; in adfs_dir_checkbyte()
119 __le32 v = *ptr.ptr32++; in adfs_dir_checkbyte()
121 } while (ptr.ptr32 < end.ptr32); in adfs_dir_checkbyte()
/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()
/fs/omfs/
Dinode.c87 unsigned char *ptr = (unsigned char *) oi; in omfs_update_checksums() local
92 crc = crc_itu_t(crc, ptr + ofs, count); in omfs_update_checksums()
95 xor = ptr[0]; in omfs_update_checksums()
97 xor ^= ptr[i]; in omfs_update_checksums()
343 unsigned long **ptr; in omfs_get_imap() local
361 ptr = sbi->s_imap; in omfs_get_imap()
366 *ptr = kmalloc(sb->s_blocksize, GFP_KERNEL); in omfs_get_imap()
367 if (!*ptr) { in omfs_get_imap()
371 memcpy(*ptr, bh->b_data, sb->s_blocksize); in omfs_get_imap()
373 memset((void *)*ptr + count, 0xff, in omfs_get_imap()
[all …]
/fs/xfs/scrub/
Ddir.c195 xfs_dir2_dataptr_t ptr; in xchk_dir_rec() local
207 ptr = be32_to_cpu(ent->address); in xchk_dir_rec()
208 if (ptr == 0) in xchk_dir_rec()
212 db = xfs_dir2_dataptr_to_db(mp->m_dir_geo, ptr); in xchk_dir_rec()
213 off = xfs_dir2_dataptr_to_off(mp->m_dir_geo, ptr); in xchk_dir_rec()
323 char *ptr; in xchk_directory_data_bestfree() local
386 ptr = (char *)d_ops->data_entry_p(bp->b_addr); in xchk_directory_data_bestfree()
390 while (ptr < endptr) { in xchk_directory_data_bestfree()
391 dup = (struct xfs_dir2_data_unused *)ptr; in xchk_directory_data_bestfree()
396 dep = (struct xfs_dir2_data_entry *)ptr; in xchk_directory_data_bestfree()
[all …]

123456