Searched refs:blknr_to_addr (Results 1 – 8 of 8) sorted by relevance
/external/erofs-utils/include/erofs/ |
D | io.h | 32 return dev_write(buf, blknr_to_addr(blkaddr), in blk_write() 33 blknr_to_addr(nblocks)); in blk_write() 39 return dev_read(buf, blknr_to_addr(start), in blk_read() 40 blknr_to_addr(nblocks)); in blk_read()
|
D | internal.h | 57 #define blknr_to_addr(nr) ((erofs_off_t)(nr) * EROFS_BLKSIZ) macro 89 return blknr_to_addr(sbi.meta_blkaddr) + (nid << sbi.islotbits); in iloc()
|
D | cache.h | 78 return blknr_to_addr(bb->blkaddr) + in erofs_btell()
|
/external/erofs-utils/lib/ |
D | data.c | 38 if (offset < blknr_to_addr(lastblk)) { in erofs_map_blocks_flatmode() 39 map->m_pa = blknr_to_addr(vi->u.i_blkaddr) + map->m_la; in erofs_map_blocks_flatmode() 40 map->m_plen = blknr_to_addr(lastblk) - offset; in erofs_map_blocks_flatmode()
|
D | inode.c | 143 bh = erofs_balloc(DATA, blknr_to_addr(nblocks), 0, 0); in __allocate_inode_bh_data() 309 memcpy(inode->idata, buf + blknr_to_addr(nblocks), in erofs_write_file_from_buffer() 904 meta_offset = blknr_to_addr(sbi.meta_blkaddr); in erofs_lookupnid()
|
D | cache.c | 307 dev_fillzero(blknr_to_addr(blkaddr) - padding, in erofs_bflush()
|
D | zmap.c | 405 map->m_pa = blknr_to_addr(m.pblk); in z_erofs_map_blocks_iter()
|
D | compress.c | 459 ret = erofs_bh_balloon(bh, blknr_to_addr(compressed_blocks)); in erofs_write_compressed_file()
|