/external/erofs-utils/lib/ |
D | cache.c | 21 static bool erofs_bh_flush_drop_directly(struct erofs_buffer_head *bh) in erofs_bh_flush_drop_directly() argument 23 return erofs_bh_flush_generic_end(bh); in erofs_bh_flush_drop_directly() 30 static bool erofs_bh_flush_skip_write(struct erofs_buffer_head *bh) in erofs_bh_flush_skip_write() argument 39 int erofs_bh_flush_generic_write(struct erofs_buffer_head *bh, void *buf) in erofs_bh_flush_generic_write() argument 41 struct erofs_buffer_head *nbh = list_next_entry(bh, list); in erofs_bh_flush_generic_write() 42 erofs_off_t offset = erofs_btell(bh, false); in erofs_bh_flush_generic_write() 44 DBG_BUGON(nbh->off < bh->off); in erofs_bh_flush_generic_write() 45 return dev_write(buf, offset, nbh->off - bh->off); in erofs_bh_flush_generic_write() 48 static bool erofs_bh_flush_buf_write(struct erofs_buffer_head *bh) in erofs_bh_flush_buf_write() argument 50 int err = erofs_bh_flush_generic_write(bh, bh->fsprivate); in erofs_bh_flush_buf_write() [all …]
|
D | inode.c | 133 struct erofs_buffer_head *bh; in __allocate_inode_bh_data() local 143 bh = erofs_balloc(DATA, blknr_to_addr(nblocks), 0, 0); in __allocate_inode_bh_data() 144 if (IS_ERR(bh)) in __allocate_inode_bh_data() 145 return PTR_ERR(bh); in __allocate_inode_bh_data() 147 bh->op = &erofs_skip_write_bhops; in __allocate_inode_bh_data() 148 inode->bh_data = bh; in __allocate_inode_bh_data() 151 ret = erofs_mapbh(bh->block, true); in __allocate_inode_bh_data() 155 inode->u.i_blkaddr = bh->block->blkaddr; in __allocate_inode_bh_data() 391 static bool erofs_bh_flush_write_inode(struct erofs_buffer_head *bh) in erofs_bh_flush_write_inode() argument 393 struct erofs_inode *const inode = bh->fsprivate; in erofs_bh_flush_write_inode() [all …]
|
/external/squashfs-tools/kernel/fs/squashfs/ |
D | block.c | 50 struct buffer_head *bh; in get_block_length() local 52 bh = sb_bread(sb, *cur_index); in get_block_length() 53 if (bh == NULL) in get_block_length() 57 *length = (unsigned char) bh->b_data[*offset]; in get_block_length() 58 put_bh(bh); in get_block_length() 59 bh = sb_bread(sb, ++(*cur_index)); in get_block_length() 60 if (bh == NULL) in get_block_length() 62 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length() 65 *length = (unsigned char) bh->b_data[*offset] | in get_block_length() 66 (unsigned char) bh->b_data[*offset + 1] << 8; in get_block_length() [all …]
|
/external/e2fsprogs/debugfs/ |
D | journal.c | 126 struct buffer_head *bh; in getblk() local 127 int bufsize = sizeof(*bh) + kdev->k_fs->blocksize - in getblk() 128 sizeof(bh->b_data); in getblk() 131 retval = ext2fs_get_memzero(bufsize, &bh); in getblk() 142 bh->b_fs = kdev->k_fs; in getblk() 144 bh->b_io = kdev->k_fs->io; in getblk() 146 bh->b_io = kdev->k_fs->journal_io; in getblk() 147 bh->b_size = blocksize; in getblk() 148 bh->b_blocknr = blocknr; in getblk() 150 return bh; in getblk() [all …]
|
D | recovery.c | 75 struct buffer_head *bh; in do_readahead() local 98 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead() 99 if (!bh) { in do_readahead() 104 if (!buffer_uptodate(bh) && !buffer_locked(bh)) { in do_readahead() 105 bufs[nbufs++] = bh; in do_readahead() 112 brelse(bh); in do_readahead() 158 struct buffer_head *bh; in jread() local 175 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread() 176 if (!bh) in jread() 179 if (!buffer_uptodate(bh)) { in jread() [all …]
|
D | do_journal.c | 69 struct buffer_head *bh, *cbh = NULL; in journal_commit_trans() local 82 bh = getblk(trans->journal->j_dev, 0, trans->journal->j_blocksize); in journal_commit_trans() 83 if (bh == NULL) in journal_commit_trans() 87 commit = (struct commit_header *)bh->b_data; in journal_commit_trans() 135 jbd2_commit_block_csum_set(trans->journal, bh); in journal_commit_trans() 136 err = journal_bmap(trans->journal, trans->block, &bh->b_blocknr); in journal_commit_trans() 141 bh->b_blocknr); in journal_commit_trans() 142 mark_buffer_dirty(bh); in journal_commit_trans() 143 ll_rw_block(WRITE, 1, &bh); in journal_commit_trans() 144 err = bh->b_err; in journal_commit_trans() [all …]
|
D | revoke.c | 334 struct buffer_head *bh = NULL; in journal_revoke() local 350 bh = bh_in; in journal_revoke() 352 if (!bh) { in journal_revoke() 353 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke() 354 if (bh) in journal_revoke() 355 BUFFER_TRACE(bh, "found on hash"); in journal_revoke() 366 if (bh2 != bh && buffer_revokevalid(bh2)) in journal_revoke() 382 if (bh) { in journal_revoke() 383 if (!J_EXPECT_BH(bh, !buffer_revoked(bh), in journal_revoke() 386 brelse(bh); in journal_revoke() [all …]
|
D | journal.h | 21 void jbd2_commit_block_csum_set(journal_t *j, struct buffer_head *bh); 22 void jbd2_revoke_csum_set(journal_t *j, struct buffer_head *bh); 23 void jbd2_descr_block_csum_set(journal_t *j, struct buffer_head *bh); 25 struct buffer_head *bh, __u32 sequence);
|
/external/mesa3d/prebuilt-intermediates/isl/ |
D | isl_format_layout.c | 35 .bh = 1, 55 .bh = 1, 75 .bh = 1, 95 .bh = 1, 115 .bh = 1, 135 .bh = 1, 155 .bh = 1, 175 .bh = 1, 195 .bh = 1, 215 .bh = 1, [all …]
|
/external/e2fsprogs/e2fsck/ |
D | recovery.c | 75 struct buffer_head *bh; in do_readahead() local 98 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead() 99 if (!bh) { in do_readahead() 104 if (!buffer_uptodate(bh) && !buffer_locked(bh)) { in do_readahead() 105 bufs[nbufs++] = bh; in do_readahead() 112 brelse(bh); in do_readahead() 158 struct buffer_head *bh; in jread() local 175 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread() 176 if (!bh) in jread() 179 if (!buffer_uptodate(bh)) { in jread() [all …]
|
D | revoke.c | 334 struct buffer_head *bh = NULL; in journal_revoke() local 350 bh = bh_in; in journal_revoke() 352 if (!bh) { in journal_revoke() 353 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke() 354 if (bh) in journal_revoke() 355 BUFFER_TRACE(bh, "found on hash"); in journal_revoke() 366 if (bh2 != bh && buffer_revokevalid(bh2)) in journal_revoke() 382 if (bh) { in journal_revoke() 383 if (!J_EXPECT_BH(bh, !buffer_revoked(bh), in journal_revoke() 386 brelse(bh); in journal_revoke() [all …]
|
D | journal.c | 121 struct buffer_head *bh; in getblk() local 122 int bufsize = sizeof(*bh) + kdev->k_ctx->fs->blocksize - in getblk() 123 sizeof(bh->b_data); in getblk() 125 bh = e2fsck_allocate_memory(kdev->k_ctx, bufsize, "block buffer"); in getblk() 126 if (!bh) in getblk() 136 bh->b_ctx = kdev->k_ctx; in getblk() 138 bh->b_io = kdev->k_ctx->fs->io; in getblk() 140 bh->b_io = kdev->k_ctx->journal_io; in getblk() 141 bh->b_size = blocksize; in getblk() 142 bh->b_blocknr = blocknr; in getblk() [all …]
|
D | jfs_user.h | 79 #define lock_buffer(bh) do {} while (0) argument 80 #define unlock_buffer(bh) do {} while (0) argument 81 #define buffer_req(bh) 1 argument 186 void ll_rw_block(int rw, int dummy, struct buffer_head *bh[]); 187 void mark_buffer_dirty(struct buffer_head *bh); 188 void mark_buffer_uptodate(struct buffer_head *bh, int val); 189 void brelse(struct buffer_head *bh); 190 int buffer_uptodate(struct buffer_head *bh); 191 void wait_on_buffer(struct buffer_head *bh); 197 #define set_buffer_uptodate(bh) mark_buffer_uptodate(bh, 1) argument
|
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/ |
D | BranchHandleTestCase.java | 28 …final BranchHandle bh = BranchHandle.getBranchHandle(new GOTO(null));// have to start with a valid… in testsetInstructionNull() local 29 Assert.assertNotNull(bh); in testsetInstructionNull() 30 bh.setInstruction(null); in testsetInstructionNull() 31 Assert.assertNotNull(bh); in testsetInstructionNull() 36 …final BranchHandle bh = BranchHandle.getBranchHandle(new GOTO(null));// have to start with a valid… in testsetInstructionBI() local 37 Assert.assertNotNull(bh); in testsetInstructionBI() 38 bh.setInstruction(new GOTO(null)); in testsetInstructionBI() 39 Assert.assertNotNull(bh); in testsetInstructionBI() 44 …final BranchHandle bh = BranchHandle.getBranchHandle(new GOTO(null));// have to start with a valid… in testsetInstructionnotBI() local 45 Assert.assertNotNull(bh); in testsetInstructionnotBI() [all …]
|
/external/grpc-grpc-java/netty/src/jmh/java/io/grpc/netty/ |
D | InboundHeadersBenchmark.java | 91 public void grpcHeaders_serverHandler(Blackhole bh) { in grpcHeaders_serverHandler() argument 92 serverHandler(bh, new GrpcHttp2RequestHeaders(4)); in grpcHeaders_serverHandler() 101 public void defaultHeaders_serverHandler(Blackhole bh) { in defaultHeaders_serverHandler() argument 102 serverHandler(bh, new DefaultHttp2Headers(true, 9)); in defaultHeaders_serverHandler() 111 public void grpcHeaders_clientHandler(Blackhole bh) { in grpcHeaders_clientHandler() argument 112 clientHandler(bh, new GrpcHttp2ResponseHeaders(2)); in grpcHeaders_clientHandler() 121 public void defaultHeaders_clientHandler(Blackhole bh) { in defaultHeaders_clientHandler() argument 122 clientHandler(bh, new DefaultHttp2Headers(true, 2)); in defaultHeaders_clientHandler() 126 private static void serverHandler(Blackhole bh, Http2Headers headers) { in serverHandler() argument 128 bh.consume(headers.add(requestHeaders[i], requestHeaders[i + 1])); in serverHandler() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | intrapred.c | 23 static INLINE void v_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in v_predictor() argument 28 for (r = 0; r < bh; r++) { in v_predictor() 34 static INLINE void h_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in h_predictor() argument 39 for (r = 0; r < bh; r++) { in h_predictor() 61 int bh, const uint8_t *above, in paeth_predictor() argument 66 for (r = 0; r < bh; r++) { in paeth_predictor() 79 assert(weights_scale - weights_h[bh - 1] < weights_scale); \ 85 int bh, const uint8_t *above, in smooth_predictor() argument 87 const uint8_t below_pred = left[bh - 1]; // estimated by bottom-left pixel in smooth_predictor() 90 const uint8_t *const sm_weights_h = sm_weight_arrays + bh; in smooth_predictor() [all …]
|
/external/erofs-utils/include/erofs/ |
D | cache.h | 26 bool (*preflush)(struct erofs_buffer_head *bh); 27 bool (*flush)(struct erofs_buffer_head *bh); 71 static inline erofs_off_t erofs_btell(struct erofs_buffer_head *bh, bool end) in erofs_btell() argument 73 const struct erofs_buffer_block *bb = bh->block; in erofs_btell() 79 (end ? list_next_entry(bh, list)->off : bh->off); in erofs_btell() 82 static inline bool erofs_bh_flush_generic_end(struct erofs_buffer_head *bh) in erofs_bh_flush_generic_end() argument 84 list_del(&bh->list); in erofs_bh_flush_generic_end() 85 free(bh); in erofs_bh_flush_generic_end() 90 int erofs_bh_balloon(struct erofs_buffer_head *bh, erofs_off_t incr); 95 struct erofs_buffer_head *erofs_battach(struct erofs_buffer_head *bh, [all …]
|
/external/libaom/libaom/aom_dsp/x86/ |
D | blk_sse_sum_sse2.c | 16 static INLINE void sse_sum_wd4_sse2(const int16_t *data, int stride, int bh, in sse_sum_wd4_sse2() argument 25 for (int j = 0; j < (bh >> 1); ++j) { in sse_sum_wd4_sse2() 55 static INLINE void sse_sum_wd8_sse2(const int16_t *data, int stride, int bh, in sse_sum_wd8_sse2() argument 67 for (int j = 0; j < bh; ++j) { in sse_sum_wd8_sse2() 97 void aom_get_blk_sse_sum_sse2(const int16_t *data, int stride, int bw, int bh, in aom_get_blk_sse_sum_sse2() argument 102 if ((bh & 3) == 0) { in aom_get_blk_sse_sum_sse2() 104 case 4: sse_sum_wd4_sse2(data, stride, bh, x_sum, x2_sum); break; in aom_get_blk_sse_sum_sse2() 107 sse_sum_wd8_sse2(data, stride, bh, x_sum, x2_sum, bw >> 3); in aom_get_blk_sse_sum_sse2() 112 if (bh <= 32) { in aom_get_blk_sse_sum_sse2() 113 sse_sum_wd8_sse2(data, stride, bh, x_sum, x2_sum, bw >> 3); in aom_get_blk_sse_sum_sse2() [all …]
|
D | blk_sse_sum_avx2.c | 45 static INLINE void sse_sum_wd4_avx2(const int16_t *data, int stride, int bh, in sse_sum_wd4_avx2() argument 57 for (int j = 0; j < (bh >> 2); ++j) { in sse_sum_wd4_avx2() 85 static INLINE void sse_sum_wd8_avx2(const int16_t *data, int stride, int bh, in sse_sum_wd8_avx2() argument 97 for (int j = 0; j < (bh >> 1); ++j) { in sse_sum_wd8_avx2() 120 static INLINE void sse_sum_wd16_avx2(const int16_t *data, int stride, int bh, in sse_sum_wd16_avx2() argument 134 for (int j = 0; j < bh; ++j) { in sse_sum_wd16_avx2() 154 void aom_get_blk_sse_sum_avx2(const int16_t *data, int stride, int bw, int bh, in aom_get_blk_sse_sum_avx2() argument 159 if ((bh & 3) == 0) { in aom_get_blk_sse_sum_avx2() 162 case 4: sse_sum_wd4_avx2(data, stride, bh, x_sum, x2_sum); break; in aom_get_blk_sse_sum_avx2() 163 case 8: sse_sum_wd8_avx2(data, stride, bh, x_sum, x2_sum); break; in aom_get_blk_sse_sum_avx2() [all …]
|
/external/mesa3d/src/util/format/ |
D | u_format_rgtc.c | 43 const unsigned bw = 4, bh = 4, comps = 4; in util_format_rgtc1_unorm_unpack_rgba_8unorm() local 47 for(y = 0; y < height; y += bh) { in util_format_rgtc1_unorm_unpack_rgba_8unorm() 50 for(j = 0; j < bh; ++j) { in util_format_rgtc1_unorm_unpack_rgba_8unorm() 69 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_8unorm() local 72 for(y = 0; y < height; y += bh) { in util_format_rgtc1_unorm_pack_rgba_8unorm() 76 for(j = 0; j < bh; ++j) { in util_format_rgtc1_unorm_pack_rgba_8unorm() 116 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_float() local 119 for(y = 0; y < height; y += bh) { in util_format_rgtc1_unorm_pack_rgba_float() 123 for(j = 0; j < bh; ++j) { in util_format_rgtc1_unorm_pack_rgba_float() 173 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_snorm_pack_rgba_float() local [all …]
|
/external/llvm-project/openmp/runtime/src/ |
D | kmp_alloc.cpp | 156 bhead_t bh; /* Common header */ member 162 bhead_t bh; /* Common allocated/free header */ member 300 KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0); in __kmp_bget_dequeue() 301 KMP_DEBUG_ASSERT(((kmp_uintptr_t)TCR_PTR(b->bh.bb.bthr) & ~1) == in __kmp_bget_dequeue() 321 KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0); in __kmp_bget_enqueue() 322 KMP_DEBUG_ASSERT(((kmp_uintptr_t)TCR_PTR(b->bh.bb.bthr) & ~1) == in __kmp_bget_enqueue() 369 KMP_DEBUG_ASSERT(b->bh.bb.bsize % SizeQuant == 0); in __kmp_bget_insert_into_freelist() 371 bin = bget_get_bin(b->bh.bb.bsize); in __kmp_bget_insert_into_freelist() 408 *total_free += (b->bh.bb.bsize - sizeof(bhead_t)); in bcheck() 409 if ((best == &thr->freelist[bin]) || (b->bh.bb.bsize < best->bh.bb.bsize)) in bcheck() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | model_rd.h | 55 const int bh) { in calculate_sse() argument 61 bw, bh); in calculate_sse() 64 aom_sse(p->src.buf, p->src.stride, pd->dst.buf, pd->dst.stride, bw, bh); in calculate_sse() 67 sse = aom_sse(p->src.buf, p->src.stride, pd->dst.buf, pd->dst.stride, bw, bh); in calculate_sse() 78 int bw, bh; in compute_sse_plane() local 81 &bh); in compute_sse_plane() 83 int64_t sse = calculate_sse(xd, p, pd, bw, bh); in compute_sse_plane() 188 const int bh = block_size_high[plane_bsize]; in model_rd_for_sb() local 193 sse = calculate_sse(xd, p, pd, bw, bh); in model_rd_for_sb() 195 model_rd_from_sse(cpi, x, plane_bsize, plane, sse, bw * bh, &rate, &dist); in model_rd_for_sb() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_non_greedy_mv.c | 424 int bh = 4 << b_height_log2_lookup[bsize]; in vp9_get_smooth_motion_field() local 427 input[idx].row = (float)search_mf[idx].row / bh; in vp9_get_smooth_motion_field() 437 FloatMV scaled_search_mv = { (float)search_mv.row / bh, in vp9_get_smooth_motion_field() 450 smooth_mf[idx].row = (int)(input[idx].row * bh); in vp9_get_smooth_motion_field() 464 const int bh = 4 << b_height_log2_lookup[bsize]; in vp9_get_local_structure() local 472 int cur_offset = row * bh * cur_stride + col * bw; in vp9_get_local_structure() 474 int ref_h = row * bh + search_mf[row * cols + col].row; in vp9_get_local_structure() 484 ref_h = ref_h < 0 ? 0 : (ref_h >= height - bh ? height - bh - 1 : ref_h); in vp9_get_local_structure() 496 if (ref_h - bh >= 0) { in vp9_get_local_structure() 497 nb = target - ref_stride * bh; in vp9_get_local_structure() [all …]
|
/external/libaom/libaom/test/ |
D | dr_prediction_test.cc | 49 typedef void (*DrPred_Hbd)(uint16_t *dst, ptrdiff_t stride, int bw, int bh, 54 typedef void (*DrPred)(uint8_t *dst, ptrdiff_t stride, int bw, int bh, 59 typedef void (*Z1_Lbd)(uint8_t *dst, ptrdiff_t stride, int bw, int bh, 63 void z1_wrapper(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in z1_wrapper() argument 68 fn(dst, stride, bw, bh, above, left, upsample_above, dx, dy); in z1_wrapper() 71 typedef void (*Z2_Lbd)(uint8_t *dst, ptrdiff_t stride, int bw, int bh, 75 void z2_wrapper(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in z2_wrapper() argument 80 fn(dst, stride, bw, bh, above, left, upsample_above, upsample_left, dx, dy); in z2_wrapper() 83 typedef void (*Z3_Lbd)(uint8_t *dst, ptrdiff_t stride, int bw, int bh, 87 void z3_wrapper(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in z3_wrapper() argument [all …]
|
/external/libaom/libaom/av1/common/x86/ |
D | filterintra_sse4.c | 26 const int bh = tx_size_high[tx_size]; in av1_filter_intra_predictor_sse4_1() local 28 assert(bw <= 32 && bh <= 32); in av1_filter_intra_predictor_sse4_1() 31 for (r = 0; r < bh + 1; ++r) in av1_filter_intra_predictor_sse4_1() 34 for (r = 0; r < bh; ++r) buffer[r + 1][0] = left[r]; in av1_filter_intra_predictor_sse4_1() 44 for (r = 1; r < bh + 1; r += 2) { in av1_filter_intra_predictor_sse4_1() 71 for (r = 0; r < bh; ++r) { in av1_filter_intra_predictor_sse4_1()
|