Home
last modified time | relevance | path

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

/third_party/f2fs-tools/fsck/
Ddump.c66 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
68 if (ni.blk_addr != 0x0) { in nat_dump()
76 ni.blk_addr, pack); in nat_dump()
85 if (ni.blk_addr == 0) in nat_dump()
88 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
97 ni.blk_addr, pack); in nat_dump()
326 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
530 static bool is_sit_bitmap_set(struct f2fs_sb_info *sbi, u32 blk_addr) in is_sit_bitmap_set() argument
535 se = get_seg_entry(sbi, GET_SEGNO(sbi, blk_addr)); in is_sit_bitmap_set()
536 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
158 segno = GET_SEGNO(sbi, blk_addr); in is_valid_ssa_node_blk()
159 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_valid_ssa_node_blk()
187 DBG(0, "target blk_addr [0x%x]\n", blk_addr); in is_valid_ssa_node_blk()
190 GET_SEGNO(sbi, blk_addr))); in is_valid_ssa_node_blk()
192 GET_SEGNO(sbi, blk_addr), in is_valid_ssa_node_blk()
193 OFFSET_IN_SEG(sbi, blk_addr)); in is_valid_ssa_node_blk()
201 segno, nid, blk_addr); in is_valid_ssa_node_blk()
222 u32 blk_addr) in is_valid_summary() argument
239 if (!IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) in is_valid_summary()
[all …]
Df2fs.h123 u32 blk_addr; member
444 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument
445 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
447 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
448 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg)
450 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
451 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (sbi->blocks_per_seg - 1))
555 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN() argument
557 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); in BLKOFF_FROM_MAIN()
558 return blk_addr - SM_I(sbi)->main_blkaddr; in BLKOFF_FROM_MAIN()
[all …]
Dsegment.c149 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_quota_size()
181 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_read()
283 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_write_ex()
358 ASSERT(write_inode(inode, ni.blk_addr) >= 0); in f2fs_write_ex()
397 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in f2fs_filesize_update()
403 ASSERT(write_inode(inode, ni.blk_addr) >= 0); in f2fs_filesize_update()
472 inode->i.i_ext.blk_addr = cpu_to_le32(ext->blk); in update_extent_info()
496 ASSERT(dev_read_block(inode, ni.blk_addr) >= 0); in update_largest_extent()
547 ASSERT(write_inode(inode, ni.blk_addr) >= 0); in update_largest_extent()
592 ret = dev_read_block(node_blk, ni.blk_addr); in f2fs_build_file()
[all …]
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.c288 le32_to_cpu(inode->i_ext.blk_addr), in print_inode_info()
1938 block_t blk_addr = 0; in read_normal_summaries() local
1944 blk_addr = sum_blk_addr(sbi, NR_CURSEG_TYPE, type); in read_normal_summaries()
1946 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries()
1950 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries()
1953 blk_addr = GET_SUM_BLKADDR(sbi, segno); in read_normal_summaries()
1959 ret = dev_read_block(sum_blk, blk_addr); in read_normal_summaries()
1971 void update_sum_entry(struct f2fs_sb_info *sbi, block_t blk_addr, in update_sum_entry() argument
1983 segno = GET_SEGNO(sbi, blk_addr); in update_sum_entry()
1984 offset = OFFSET_IN_SEG(sbi, blk_addr); in update_sum_entry()
[all …]
Dresize.c401 block_t blk_addr = 0; in migrate_sit() local
425 blk_addr = get_newsb(sit_blkaddr) + pre_ofs; in migrate_sit()
426 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
428 DBG(1, "Write valid sit: %x\n", blk_addr); in migrate_sit()
439 blk_addr = get_newsb(sit_blkaddr) + ofs; in migrate_sit()
440 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
441 DBG(1, "Write valid sit: %x\n", blk_addr); in migrate_sit()
Ddir.c689 if (ni.blk_addr == NULL_ADDR) { in f2fs_create()
700 ret = dev_read_block(parent, ni.blk_addr); in f2fs_create()
704 ret = convert_inline_dentry(sbi, parent, ni.blk_addr); in f2fs_create()
728 if (hardlink_ni.blk_addr == NULL_ADDR) { in f2fs_create()
736 blkaddr = hardlink_ni.blk_addr; in f2fs_create()
749 ni.blk_addr, 1); in f2fs_create()
842 if (ni.blk_addr == NULL_ADDR) { in f2fs_find_path()
846 ret = dev_read_block(parent, ni.blk_addr); in f2fs_find_path()
Dnode.c265 nblk[0] = ni.blk_addr; in get_dnode_of_data()
291 ret = dev_read_block(dn->node_blk, ni.blk_addr); in get_dnode_of_data()
294 nblk[i] = ni.blk_addr; in get_dnode_of_data()
Dmain.c394 .blk_addr = -1, in f2fs_parse_options()
451 &dump_opt.blk_addr); in f2fs_parse_options()
454 &dump_opt.blk_addr); in f2fs_parse_options()
935 if (opt->blk_addr != -1) in do_dump()
936 dump_info_from_blkaddr(sbi, opt->blk_addr); in do_dump()
Dnode.h42 ASSERT(dev_read_block(inode_blk, ni.blk_addr) >= 0); in ADDRS_PER_PAGE()
Dfsck.h264 int32_t blk_addr; member
/third_party/f2fs-tools/lib/
Dlibf2fs_io.c58 __u64 blk_addr = *offset >> F2FS_BLKSIZE_BITS; in __get_device_fd() local
62 if (c.devices[i].start_blkaddr <= blk_addr && in __get_device_fd()
63 c.devices[i].end_blkaddr >= blk_addr) { in __get_device_fd()
600 int dev_write_block(void *buf, __u64 blk_addr) in dev_write_block() argument
602 return dev_write(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_write_block()
639 int dev_fill_block(void *buf, __u64 blk_addr) in dev_fill_block() argument
641 return dev_fill(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_fill_block()
644 int dev_read_block(void *buf, __u64 blk_addr) in dev_read_block() argument
646 return dev_read(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_read_block()
649 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.h880 __le16 blk_addr; /* block index in current CP */ member
893 __le32 blk_addr; /* start block address of the extent */ member
1676 raw_node->i.i_ext.blk_addr = 0; in f2fs_init_qf_inode()
/third_party/f2fs-tools/mkfs/
Df2fs_format.c1276 raw_node->i.i_ext.blk_addr = 0; in f2fs_write_root_inode()
/third_party/libabigail/tests/data/test-read-dwarf/
DPR25007-sdhci.ko.abi3841 …<var-decl name='blk_addr' type-id='type-id-176' visibility='default' filepath='/ws/android/kernel/…