Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/main/
Dtexcompress_s3tc_tmp.h188 static void fancybasecolorsearch( UNUSED GLubyte *blkaddr, GLubyte srccolors[4][4][4], GLubyte *bes… in fancybasecolorsearch() argument
380 static void storedxtencodedblock( GLubyte *blkaddr, GLubyte srccolors[4][4][4], GLubyte *bestcolor[… in storedxtencodedblock() argument
482 *blkaddr++ = color1 & 0xff; in storedxtencodedblock()
483 *blkaddr++ = color1 >> 8; in storedxtencodedblock()
484 *blkaddr++ = color0 & 0xff; in storedxtencodedblock()
485 *blkaddr++ = color0 >> 8; in storedxtencodedblock()
486 *blkaddr++ = bits2 & 0xff; in storedxtencodedblock()
487 *blkaddr++ = ( bits2 >> 8) & 0xff; in storedxtencodedblock()
488 *blkaddr++ = ( bits2 >> 16) & 0xff; in storedxtencodedblock()
489 *blkaddr = bits2 >> 24; in storedxtencodedblock()
[all …]
Dtexcompress_rgtc.c86 GLubyte *blkaddr; in _mesa_texstore_red_rgtc1() local
108 blkaddr = dst; in _mesa_texstore_red_rgtc1()
118 util_format_unsigned_encode_rgtc_ubyte(blkaddr, srcpixels, numxpixels, numypixels); in _mesa_texstore_red_rgtc1()
120 blkaddr += 8; in _mesa_texstore_red_rgtc1()
122 blkaddr += dstRowDiff; in _mesa_texstore_red_rgtc1()
139 GLbyte *blkaddr; in _mesa_texstore_signed_red_rgtc1() local
161 blkaddr = dst; in _mesa_texstore_signed_red_rgtc1()
171 util_format_signed_encode_rgtc_ubyte(blkaddr, srcpixels, numxpixels, numypixels); in _mesa_texstore_signed_red_rgtc1()
173 blkaddr += 8; in _mesa_texstore_signed_red_rgtc1()
175 blkaddr += dstRowDiff; in _mesa_texstore_signed_red_rgtc1()
[all …]
/third_party/f2fs-tools/fsck/
Dsegment.c25 u64 blkaddr, offset; in reserve_new_block() local
54 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
56 if (find_next_free_block(sbi, &blkaddr, 0, type, false)) { in reserve_new_block()
61 se = get_seg_entry(sbi, GET_SEGNO(sbi, blkaddr)); in reserve_new_block()
62 offset = OFFSET_IN_SEG(sbi, blkaddr); in reserve_new_block()
72 f2fs_set_main_bitmap(sbi, blkaddr, type); in reserve_new_block()
73 f2fs_set_sit_bitmap(sbi, blkaddr); in reserve_new_block()
95 *to = (block_t)blkaddr; in reserve_new_block()
106 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block() local
120 if (blkaddr == NULL_ADDR) in new_data_block()
[all …]
Dmount.c311 block_t blkaddr; in print_inode_info() local
317 blkaddr = le32_to_cpu(inode->i_addr[i + ofs]); in print_inode_info()
319 if (blkaddr == 0x0) in print_inode_info()
321 if (blkaddr == COMPRESS_ADDR) in print_inode_info()
323 else if (blkaddr == NEW_ADDR) in print_inode_info()
326 blkaddr, blkaddr); in print_inode_info()
572 static inline bool is_valid_data_blkaddr(block_t blkaddr) in is_valid_data_blkaddr() argument
574 if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR || in is_valid_data_blkaddr()
575 blkaddr == COMPRESS_ADDR) in is_valid_data_blkaddr()
581 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
[all …]
Dresize.c242 block_t blkaddr; in migrate_ssa() local
248 blkaddr = new_sum_blkaddr; in migrate_ssa()
249 while (blkaddr < end_sum_blkaddr) { in migrate_ssa()
250 if (blkaddr < expand_sum_blkaddr) { in migrate_ssa()
251 move_ssa(sbi, offset++, blkaddr++); in migrate_ssa()
253 ret = dev_write_block(zero_block, blkaddr++); in migrate_ssa()
258 blkaddr = end_sum_blkaddr - 1; in migrate_ssa()
260 while (blkaddr >= new_sum_blkaddr) { in migrate_ssa()
261 if (blkaddr >= expand_sum_blkaddr) { in migrate_ssa()
262 ret = dev_write_block(zero_block, blkaddr--); in migrate_ssa()
[all …]
Ddir.c342 block_t blkaddr = NULL_ADDR; in make_empty_dir() local
366 ret = reserve_new_block(sbi, &blkaddr, &sum, CURSEG_HOT_DATA, 0); in make_empty_dir()
369 ret = dev_write_block(dent_blk, blkaddr); in make_empty_dir()
372 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in make_empty_dir()
383 block_t blkaddr = NULL_ADDR; in page_symlink() local
402 ret = reserve_new_block(sbi, &blkaddr, &sum, CURSEG_WARM_DATA, 1); in page_symlink()
405 ret = dev_write_block(data_blk, blkaddr); in page_symlink()
408 inode->i.i_addr[get_extra_isize(inode)] = cpu_to_le32(blkaddr); in page_symlink()
642 block_t blkaddr = NULL_ADDR; in f2fs_create() local
694 ret = reserve_new_block(sbi, &blkaddr, &sum, CURSEG_HOT_NODE, 1); in f2fs_create()
[all …]
Dxattr.c91 block_t blkaddr; in write_all_xattrs() local
106 blkaddr = new_node_block(sbi, &dn, XATTR_NODE_OFFSET); in write_all_xattrs()
113 blkaddr = ni.blk_addr; in write_all_xattrs()
126 ret = dev_write_block(xattr_node, blkaddr); in write_all_xattrs()
Dnode.c69 block_t blkaddr = NULL_ADDR; in new_node_block() local
94 ret = reserve_new_block(sbi, &blkaddr, &sum, type, !ofs); in new_node_block()
102 dn->nid, blkaddr); in new_node_block()
106 return blkaddr; in new_node_block()
Dfsck.c584 block_t blkaddr, int last) in check_extent_info() argument
606 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) in check_extent_info()
611 if (is_hole || (blkaddr != pgofs - ei->fofs + ei->blk)) in check_extent_info()
618 } else if (child->last_blk + 1 != blkaddr) { in check_extent_info()
622 child->last_blk = blkaddr; in check_extent_info()
629 if (blkaddr < ei->blk || blkaddr >= ei->blk + ei->len) in check_extent_info()
797 block_t blkaddr = le32_to_cpu(node_blk->i.i_addr[ofs]); in fsck_chk_inode_blk() local
799 if (blkaddr != 0) { in fsck_chk_inode_blk()
801 nid, blkaddr); in fsck_chk_inode_blk()
804 blkaddr); in fsck_chk_inode_blk()
[all …]
Ddump.c230 static void dump_data_blk(struct f2fs_sb_info *sbi, __u64 offset, u32 blkaddr) in dump_data_blk() argument
234 if (blkaddr == NULL_ADDR) in dump_data_blk()
238 if (blkaddr == NEW_ADDR || !IS_VALID_BLK_ADDR(sbi, blkaddr)) { in dump_data_blk()
242 ret = dev_read_block(buf, blkaddr); in dump_data_blk()
Df2fs.h481 block_t blkaddr; /* block address locating the last fsync */ member
/third_party/mesa3d/src/util/
Dtexcompress_rgtc_tmp.h61 static void TAG(write_rgtc_encoded_channel)(TYPE *blkaddr, in TAG()
66 *blkaddr++ = alphabase1; in TAG()
67 *blkaddr++ = alphabase2; in TAG()
68 *blkaddr++ = alphaenc[0] | (alphaenc[1] << 3) | ((alphaenc[2] & 3) << 6); in TAG()
69 …*blkaddr++ = (alphaenc[2] >> 2) | (alphaenc[3] << 1) | (alphaenc[4] << 4) | ((alphaenc[5] & 1) << … in TAG()
70 *blkaddr++ = (alphaenc[5] >> 1) | (alphaenc[6] << 2) | (alphaenc[7] << 5); in TAG()
71 *blkaddr++ = alphaenc[8] | (alphaenc[9] << 3) | ((alphaenc[10] & 3) << 6); in TAG()
72 …*blkaddr++ = (alphaenc[10] >> 2) | (alphaenc[11] << 1) | (alphaenc[12] << 4) | ((alphaenc[13] & 1)… in TAG()
73 *blkaddr++ = (alphaenc[13] >> 1) | (alphaenc[14] << 2) | (alphaenc[15] << 5); in TAG()
76 void TAG(encode_rgtc_ubyte)(TYPE *blkaddr, TYPE srccolors[4][4], in TAG()
[all …]
Drgtc.h34 void util_format_unsigned_encode_rgtc_ubyte(unsigned char *blkaddr, unsigned char srccolors[4][4],
37 void util_format_signed_encode_rgtc_ubyte(signed char *blkaddr, signed char srccolors[4][4],
/third_party/f2fs-tools/mkfs/
Df2fs_format.c1208 static int f2fs_write_default_quota(int qtype, unsigned int blkaddr, in f2fs_write_default_quota() argument
1266 if (dev_write_block(filebuf, blkaddr) || in f2fs_write_default_quota()
1267 dev_write_block(filebuf + F2FS_BLKSIZE, blkaddr + 1)) { in f2fs_write_default_quota()
1273 blkaddr, blkaddr + 1); in f2fs_write_default_quota()
/third_party/f2fs-tools/lib/
Dlibf2fs.c591 int write_inode(struct f2fs_node *inode, u64 blkaddr) in write_inode() argument
596 return dev_write_block(inode, blkaddr); in write_inode()
/third_party/iowow/src/kv/
Diwkv.c2172 off_t blkaddr = BLK2ADDR(blkn); in _lx_roll_forward() local
2175 if (lx->pupper[ulvl] && lx->pupper[ulvl]->addr == blkaddr) { in _lx_roll_forward()
2177 } else if (lx->plower[ulvl] && lx->plower[ulvl]->addr == blkaddr) { in _lx_roll_forward()
2180 rc = _sblk_at(lx, blkaddr, 0, &sblk); in _lx_roll_forward()
2183 rc = _sblk_at(lx, blkaddr, 0, &sblk); in _lx_roll_forward()