Home
last modified time | relevance | path

Searched refs:blk_addr (Results 1 – 16 of 16) sorted by relevance

/third_party/f2fs-tools/fsck/
Ddump.c63 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
65 if (ni.blk_addr != 0x0) { in nat_dump()
73 ni.blk_addr, pack); in nat_dump()
82 if (ni.blk_addr == 0) in nat_dump()
85 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
94 ni.blk_addr, pack); in nat_dump()
263 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
463 static bool is_sit_bitmap_set(struct f2fs_sb_info *sbi, u32 blk_addr) in is_sit_bitmap_set() argument
468 se = get_seg_entry(sbi, GET_SEGNO(sbi, blk_addr)); in is_sit_bitmap_set()
469 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_sit_bitmap_set()
[all …]
Dfsck.c145 u32 blk_addr) in is_valid_ssa_node_blk() argument
154 segno = GET_SEGNO(sbi, blk_addr); in is_valid_ssa_node_blk()
155 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_valid_ssa_node_blk()
183 DBG(0, "target blk_addr [0x%x]\n", blk_addr); in is_valid_ssa_node_blk()
186 GET_SEGNO(sbi, blk_addr))); in is_valid_ssa_node_blk()
188 GET_SEGNO(sbi, blk_addr), in is_valid_ssa_node_blk()
189 OFFSET_IN_SEG(sbi, blk_addr)); in is_valid_ssa_node_blk()
197 segno, nid, blk_addr); in is_valid_ssa_node_blk()
218 u32 blk_addr) in is_valid_summary() argument
235 if (!IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) in is_valid_summary()
[all …]
Df2fs.h119 u32 blk_addr; member
430 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument
431 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
433 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
434 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg)
436 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
437 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (sbi->blocks_per_seg - 1))
533 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN() argument
535 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); in BLKOFF_FROM_MAIN()
536 return blk_addr - SM_I(sbi)->main_blkaddr; in BLKOFF_FROM_MAIN()
[all …]
Dsegment.c139 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_quota_size()
171 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_read()
254 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_write()
316 ASSERT(write_inode(inode, ni.blk_addr) >= 0); in f2fs_write()
335 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_filesize_update()
341 ASSERT(write_inode(inode, ni.blk_addr) >= 0); in f2fs_filesize_update()
371 ret = dev_read_block(node_blk, ni.blk_addr); in f2fs_build_file()
386 ASSERT(write_inode(node_blk, ni.blk_addr) >= 0); in f2fs_build_file()
Dxattr.c54 ret = dev_read_block(txattr_addr + inline_size, ni.blk_addr); in read_all_xattrs()
113 blkaddr = ni.blk_addr; in write_all_xattrs()
116 ret = dev_read_block(xattr_node, ni.blk_addr); in write_all_xattrs()
166 ret = dev_read_block(inode, ni.blk_addr); in f2fs_setxattr()
243 ASSERT(write_inode(inode, ni.blk_addr) >= 0); in f2fs_setxattr()
Dmount.c287 le32_to_cpu(inode->i_ext.blk_addr), in print_inode_info()
1850 block_t blk_addr = 0; in read_normal_summaries() local
1856 blk_addr = sum_blk_addr(sbi, NR_CURSEG_TYPE, type); in read_normal_summaries()
1858 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries()
1862 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries()
1865 blk_addr = GET_SUM_BLKADDR(sbi, segno); in read_normal_summaries()
1871 ret = dev_read_block(sum_blk, blk_addr); in read_normal_summaries()
1883 void update_sum_entry(struct f2fs_sb_info *sbi, block_t blk_addr, in update_sum_entry() argument
1891 segno = GET_SEGNO(sbi, blk_addr); in update_sum_entry()
1892 offset = OFFSET_IN_SEG(sbi, blk_addr); in update_sum_entry()
[all …]
Dresize.c400 block_t blk_addr = 0; in migrate_sit() local
424 blk_addr = get_newsb(sit_blkaddr) + pre_ofs; in migrate_sit()
425 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
427 DBG(1, "Write valid sit: %x\n", blk_addr); in migrate_sit()
438 blk_addr = get_newsb(sit_blkaddr) + ofs; in migrate_sit()
439 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
440 DBG(1, "Write valid sit: %x\n", blk_addr); in migrate_sit()
Dnode.c213 nblk[0] = ni.blk_addr; in get_dnode_of_data()
239 ret = dev_read_block(dn->node_blk, ni.blk_addr); in get_dnode_of_data()
242 nblk[i] = ni.blk_addr; in get_dnode_of_data()
Dmain.c357 .blk_addr = -1, in f2fs_parse_options()
411 &dump_opt.blk_addr); in f2fs_parse_options()
414 &dump_opt.blk_addr); in f2fs_parse_options()
726 if (opt->blk_addr != -1) in do_dump()
727 dump_info_from_blkaddr(sbi, opt->blk_addr); in do_dump()
Ddir.c647 if (ni.blk_addr == NULL_ADDR) { in f2fs_create()
655 ret = dev_read_block(parent, ni.blk_addr); in f2fs_create()
659 ret = convert_inline_dentry(sbi, parent, ni.blk_addr); in f2fs_create()
685 ni.blk_addr, 1); in f2fs_create()
749 if (ni.blk_addr == NULL_ADDR) { in f2fs_find_path()
753 ret = dev_read_block(parent, ni.blk_addr); in f2fs_find_path()
Dnode.h42 ASSERT(dev_read_block(inode_blk, ni.blk_addr) >= 0); in ADDRS_PER_PAGE()
Dfsck.h250 int32_t blk_addr; member
/third_party/f2fs-tools/lib/
Dlibf2fs_io.c51 __u64 blk_addr = *offset >> F2FS_BLKSIZE_BITS; in __get_device_fd() local
55 if (c.devices[i].start_blkaddr <= blk_addr && in __get_device_fd()
56 c.devices[i].end_blkaddr >= blk_addr) { in __get_device_fd()
574 int dev_write_block(void *buf, __u64 blk_addr) in dev_write_block() argument
576 return dev_write(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_write_block()
610 int dev_fill_block(void *buf, __u64 blk_addr) in dev_fill_block() argument
612 return dev_fill(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_fill_block()
615 int dev_read_block(void *buf, __u64 blk_addr) in dev_read_block() argument
617 return dev_read(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_read_block()
620 int dev_reada_block(__u64 blk_addr) in dev_reada_block() argument
[all …]
/third_party/ffmpeg/libavcodec/
Dhqx.c341 int blk_addr, loc_addr, mb_x, mb_y, pos, loc_row, i; in decode_slice() local
353 blk_addr = g_tile + 16 * num_tiles * i; in decode_slice()
355 blk_addr = tile_no + 16 * num_tiles * i + in decode_slice()
357 loc_row = grp_h * (blk_addr / (grp_h * mb_w)); in decode_slice()
358 loc_addr = blk_addr % (grp_h * mb_w); in decode_slice()
/third_party/f2fs-tools/include/
Df2fs_fs.h751 __le16 blk_addr; /* block index in current CP */ member
762 __le32 blk_addr; /* start block address of the extent */ member
/third_party/f2fs-tools/mkfs/
Df2fs_format.c1187 raw_node->i.i_ext.blk_addr = 0; in f2fs_write_root_inode()
1354 raw_node->i.i_ext.blk_addr = 0; in f2fs_write_qf_inode()