Home
last modified time | relevance | path

Searched refs:bh (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/external/squashfs-tools/kernel/fs/squashfs/
Dblock.c50 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/u-boot/drivers/usb/gadget/
Df_mass_storage.c415 struct fsg_buffhd *bh, unsigned int length) in set_bulk_out_req_length() argument
419 bh->bulk_out_intended_length = length; in set_bulk_out_req_length()
423 bh->outreq->length = length; in set_bulk_out_req_length()
492 struct fsg_buffhd *bh = req->context; in bulk_in_complete() local
501 bh->inreq_busy = 0; in bulk_in_complete()
502 bh->state = BUF_STATE_EMPTY; in bulk_in_complete()
509 struct fsg_buffhd *bh = req->context; in bulk_out_complete() local
512 if (req->status || req->actual != bh->bulk_out_intended_length) in bulk_out_complete()
515 bh->bulk_out_intended_length); in bulk_out_complete()
520 bh->outreq_busy = 0; in bulk_out_complete()
[all …]
/external/e2fsprogs/debugfs/
Djournal.c126 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 …]
Drecovery.c75 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 …]
Ddo_journal.c69 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 …]
Drevoke.c334 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 …]
Djournal.h21 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/
Disl_format_layout.c35 .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/
Drecovery.c75 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 …]
Drevoke.c334 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 …]
Djournal.c121 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 …]
Djfs_user.h79 #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/
DBranchHandleTestCase.java28 …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/
DInboundHeadersBenchmark.java91 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/
Dintrapred.c23 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/libaom/libaom/aom_dsp/x86/
Dblk_sse_sum_sse2.c16 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 …]
Dblk_sse_sum_avx2.c45 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/
Du_format_rgtc.c43 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/libjpeg-turbo/simd/powerpc/
Djdcolext-altivec.c49 crl, crh, rl, rh, gl, gh, bl, bh, g0w, g1w, g2w, g3w; in jsimd_ycc_rgb_convert_altivec() local
112 bh = vec_add(cbh, cbh); in jsimd_ycc_rgb_convert_altivec()
114 bh = vec_madds(bh, pw_mf0228, pw_one); in jsimd_ycc_rgb_convert_altivec()
116 bh = vec_sra(bh, (__vector unsigned short)pw_one); in jsimd_ycc_rgb_convert_altivec()
118 bh = vec_add(bh, cbh); in jsimd_ycc_rgb_convert_altivec()
120 bh = vec_add(bh, cbh); in jsimd_ycc_rgb_convert_altivec()
122 bh = vec_add(bh, yh); in jsimd_ycc_rgb_convert_altivec()
160 bx2 = vec_mergeh(bh, pw_255); in jsimd_ycc_rgb_convert_altivec()
162 bx3 = vec_mergel(bh, pw_255); in jsimd_ycc_rgb_convert_altivec()
/external/libaom/libaom/av1/encoder/
Dmodel_rd.h55 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 …]
Ddwt.c117 int av1_haar_ac_sad(tran_low_t *output, int bw, int bh, int stride) { in av1_haar_ac_sad() argument
120 for (int r = 0; r < bh; ++r) in av1_haar_ac_sad()
122 if (r >= bh / 2 || c >= bw / 2) acsad += abs(output[r * stride + c]); in av1_haar_ac_sad()
127 uint64_t av1_dct_ac_sad(tran_low_t *output, int bw, int bh, int stride) { in av1_dct_ac_sad() argument
130 for (int r = 0; r < bh; ++r) in av1_dct_ac_sad()
138 uint32_t av1_variance(uint8_t *input, int bw, int bh, int stride) { in av1_variance() argument
142 for (int r = 0; r < bh; ++r) in av1_variance()
147 return sse - (uint32_t)(((int64_t)sum * sum) / (bw * bh)); in av1_variance()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_non_greedy_mv.c424 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/
Ddr_prediction_test.cc49 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/
Dfilterintra_sse4.c26 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()
/external/u-boot/tools/
Dmtk_image.c417 struct brom_layout_header *bh; in mtk_image_verify_gen_header() local
437 bh = (struct brom_layout_header *)(ptr + le32_to_cpu(gbh->size)); in mtk_image_verify_gen_header()
439 if (strcmp(bh->name, BRLYT_NAME)) in mtk_image_verify_gen_header()
442 if (le32_to_cpu(bh->magic) != BRLYT_MAGIC || in mtk_image_verify_gen_header()
443 (le32_to_cpu(bh->type) != BRLYT_TYPE_NOR && in mtk_image_verify_gen_header()
444 le32_to_cpu(bh->type) != BRLYT_TYPE_EMMC && in mtk_image_verify_gen_header()
445 le32_to_cpu(bh->type) != BRLYT_TYPE_SDMMC)) in mtk_image_verify_gen_header()
448 gfh = (struct gfh_header *)(ptr + le32_to_cpu(bh->header_size)); in mtk_image_verify_gen_header()
467 struct brom_layout_header *bh; in mtk_image_verify_nand_header() local
475 bh = (struct brom_layout_header *)(ptr + le16_to_cpu(nh->pagesize)); in mtk_image_verify_nand_header()
[all …]

12345678910>>...20