Home
last modified time | relevance | path

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

12345678

/external/libvncserver/test/
Dbmp.c181 bmphdr bh; int flags=O_RDONLY; in loadbmp() local
193 readme(fd, &bh.bfType, sizeof(unsigned short)); in loadbmp()
194 if(!littleendian()) bh.bfType=byteswap16(bh.bfType); in loadbmp()
196 if(bh.bfType==0x3650) in loadbmp()
201 if(bh.bfType==0x3350) in loadbmp()
207 readme(fd, &bh.bfSize, sizeof(unsigned int)); in loadbmp()
208 readme(fd, &bh.bfReserved1, sizeof(unsigned short)); in loadbmp()
209 readme(fd, &bh.bfReserved2, sizeof(unsigned short)); in loadbmp()
210 readme(fd, &bh.bfOffBits, sizeof(unsigned int)); in loadbmp()
211 readme(fd, &bh.biSize, sizeof(unsigned int)); in loadbmp()
[all …]
/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/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()
137 struct buffer_head *bh; in jread() local
154 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread()
155 if (!bh) in jread()
158 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.c338 struct buffer_head *bh = NULL; in journal_revoke() local
354 bh = bh_in; in journal_revoke()
356 if (!bh) { in journal_revoke()
357 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
358 if (bh) in journal_revoke()
359 BUFFER_TRACE(bh, "found on hash"); in journal_revoke()
370 if (bh2 != bh && buffer_revokevalid(bh2)) in journal_revoke()
386 if (bh) { in journal_revoke()
387 if (!J_EXPECT_BH(bh, !buffer_revoked(bh), in journal_revoke()
390 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/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()
137 struct buffer_head *bh; in jread() local
154 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread()
155 if (!bh) in jread()
158 if (!buffer_uptodate(bh)) { in jread()
[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 …]
Drevoke.c338 struct buffer_head *bh = NULL; in journal_revoke() local
354 bh = bh_in; in journal_revoke()
356 if (!bh) { in journal_revoke()
357 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
358 if (bh) in journal_revoke()
359 BUFFER_TRACE(bh, "found on hash"); in journal_revoke()
370 if (bh2 != bh && buffer_revokevalid(bh2)) in journal_revoke()
386 if (bh) { in journal_revoke()
387 if (!J_EXPECT_BH(bh, !buffer_revoked(bh), in journal_revoke()
390 brelse(bh); in journal_revoke()
[all …]
Djfs_user.h70 #define lock_buffer(bh) do {} while (0) argument
71 #define unlock_buffer(bh) do {} while (0) argument
72 #define buffer_req(bh) 1 argument
149 void ll_rw_block(int rw, int dummy, struct buffer_head *bh[]);
150 void mark_buffer_dirty(struct buffer_head *bh);
151 void mark_buffer_uptodate(struct buffer_head *bh, int val);
152 void brelse(struct buffer_head *bh);
153 int buffer_uptodate(struct buffer_head *bh);
154 void wait_on_buffer(struct buffer_head *bh);
160 #define set_buffer_uptodate(bh) mark_buffer_uptodate(bh, 1) argument
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_rgtc.c53 const unsigned bw = 4, bh = 4, comps = 4; in util_format_rgtc1_unorm_unpack_rgba_8unorm() local
57 for(y = 0; y < height; y += bh) { in util_format_rgtc1_unorm_unpack_rgba_8unorm()
60 for(j = 0; j < bh; ++j) { in util_format_rgtc1_unorm_unpack_rgba_8unorm()
79 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_8unorm() local
82 for(y = 0; y < height; y += bh) { in util_format_rgtc1_unorm_pack_rgba_8unorm()
86 for(j = 0; j < bh; ++j) { in util_format_rgtc1_unorm_pack_rgba_8unorm()
126 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_float() local
129 for(y = 0; y < height; y += bh) { in util_format_rgtc1_unorm_pack_rgba_float()
133 for(j = 0; j < bh; ++j) { in util_format_rgtc1_unorm_pack_rgba_float()
177 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_snorm_pack_rgba_float() local
[all …]
Du_format_etc.c28 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in util_format_etc1_rgb8_unpack_rgba_float() local
32 for (y = 0; y < height; y += bh) { in util_format_etc1_rgb8_unpack_rgba_float()
38 for (j = 0; j < bh; j++) { in util_format_etc1_rgb8_unpack_rgba_float()
68 const unsigned bw = 4, bh = 4; in util_format_etc1_rgb8_fetch_rgba_float() local
72 assert(i < bw && j < bh); in util_format_etc1_rgb8_fetch_rgba_float()
Du_format_s3tc.c250 const unsigned bw = 4, bh = 4, comps = 4; in util_format_dxtn_rgb_unpack_rgba_8unorm() local
252 for(y = 0; y < height; y += bh) { in util_format_dxtn_rgb_unpack_rgba_8unorm()
255 for(j = 0; j < bh; ++j) { in util_format_dxtn_rgb_unpack_rgba_8unorm()
393 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_dxt1_rgb_pack_rgba_8unorm() local
395 for(y = 0; y < height; y += bh) { in util_format_dxt1_rgb_pack_rgba_8unorm()
399 for(j = 0; j < bh; ++j) { in util_format_dxt1_rgb_pack_rgba_8unorm()
418 const unsigned bw = 4, bh = 4, comps = 4, bytes_per_block = 8; in util_format_dxt1_rgba_pack_rgba_8unorm() local
420 for(y = 0; y < height; y += bh) { in util_format_dxt1_rgba_pack_rgba_8unorm()
424 for(j = 0; j < bh; ++j) { in util_format_dxt1_rgba_pack_rgba_8unorm()
443 const unsigned bw = 4, bh = 4, comps = 4, bytes_per_block = 16; in util_format_dxt3_rgba_pack_rgba_8unorm() local
[all …]
/external/libjpeg-turbo/simd/
Djdcolext-altivec.c49 crl, crh, rl, rh, gl, gh, bl, bh, g0w, g1w, g2w, g3w; in jsimd_ycc_rgb_convert_altivec() local
110 bh = vec_add(cbh, cbh); in jsimd_ycc_rgb_convert_altivec()
112 bh = vec_madds(bh, pw_mf0228, pw_one); in jsimd_ycc_rgb_convert_altivec()
114 bh = vec_sra(bh, (__vector unsigned short)pw_one); in jsimd_ycc_rgb_convert_altivec()
116 bh = vec_add(bh, cbh); in jsimd_ycc_rgb_convert_altivec()
118 bh = vec_add(bh, cbh); in jsimd_ycc_rgb_convert_altivec()
120 bh = vec_add(bh, yh); in jsimd_ycc_rgb_convert_altivec()
158 bx2 = vec_mergeh(bh, pw_255); in jsimd_ycc_rgb_convert_altivec()
160 bx3 = vec_mergel(bh, pw_255); in jsimd_ycc_rgb_convert_altivec()
/external/mesa3d/src/mesa/main/
Dtexcompress.c451 GLuint bw, bh; in _mesa_compressed_image_address() local
454 _mesa_get_format_block_size(mesaFormat, &bw, &bh); in _mesa_compressed_image_address()
457 ASSERT(row % bh == 0); in _mesa_compressed_image_address()
459 offset = ((width + bw - 1) / bw) * (row / bh) + col / bw; in _mesa_compressed_image_address()
480 GLuint bytes, bw, bh; in _mesa_decompress_image() local
483 _mesa_get_format_block_size(format, &bw, &bh); in _mesa_decompress_image()
492 texImage.RowStride = srcRowStride * bh / bytes; in _mesa_decompress_image()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_segmentation.c108 int *t_unpred_seg_counts, int bw, int bh, int mi_row, in count_segs() argument
117 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs()
148 int bw, bh; in count_segs_sb() local
154 bh = num_8x8_blocks_high_lookup[mi[0]->sb_type]; in count_segs_sb()
156 if (bw == bs && bh == bs) { in count_segs_sb()
159 } else if (bw == bs && bh < bs) { in count_segs_sb()
165 } else if (bw < bs && bh == bs) { in count_segs_sb()
175 assert(bw < bs && bh < bs); in count_segs_sb()
Dvp9_aq_variance.c152 const int bh = 8 * num_8x8_blocks_high_lookup[bs] - bottom_overflow; in block_variance() local
157 CONVERT_TO_BYTEPTR(vp9_highbd_64_zeros), 0, bw, bh, in block_variance()
163 bw, bh, &sse, &avg); in block_variance()
167 bw, bh, &sse, &avg); in block_variance()
169 var = sse - (unsigned int)(((int64_t)avg * avg) / (bw * bh)); in block_variance()
170 return (unsigned int)(((uint64_t)256 * var) / (bw * bh)); in block_variance()
/external/libyuv/files/unit_test/
Dcolor_test.cc445 static void PrintHistogram(int rh[256], int gh[256], int bh[256]) { in PrintHistogram()
449 if (rh[i] || gh[i] || bh[i]) { in PrintHistogram()
455 if (rh[i] || gh[i] || bh[i]) { in PrintHistogram()
461 if (rh[i] || gh[i] || bh[i]) { in PrintHistogram()
467 if (rh[i] || gh[i] || bh[i]) { in PrintHistogram()
468 printf("\t%8d", bh[i]); in PrintHistogram()
483 bh[256] = { in TEST_F() local
498 ++bh[b1 - b0 + 128]; in TEST_F()
502 PrintHistogram(rh, gh, bh); in TEST_F()
514 bh[256] = { in TEST_F() local
[all …]
/external/swiftshader/third_party/LLVM/utils/
DNightlyTest.gnuplot37 "running_Olden_cbe_time.txt" u 1:2 t "bh" with lines, \
54 "running_Olden_cbe_time.txt" u 1:2 t "bh" with lines, \
74 "running_Olden_jit_time.txt" u 1:2 t "bh" with lines, \
91 "running_Olden_jit_time.txt" u 1:2 t "bh" with lines, \
111 "running_Olden_llc_time.txt" u 1:2 t "bh" with lines, \
128 "running_Olden_llc_time.txt" u 1:2 t "bh" with lines, \
149 "running_Olden_opt_time.txt" u 1:2 t "bh" with lines, \
166 "running_Olden_opt_time.txt" u 1:2 t "bh" with lines, \
187 "running_Olden_bytecode.txt" u 1:2 t "bh" with lines, \
204 "running_Olden_bytecode.txt" u 1:2 t "bh" with lines, \
/external/squashfs-tools/kernel-2.4/fs/squashfs/
Dinode.c93 struct buffer_head *bh; in get_block_length() local
95 if (!(bh = sb_bread(s, *cur_index))) in get_block_length()
101 (bh->b_data + *offset)); in get_block_length()
104 (bh->b_data + *offset)); in get_block_length()
105 brelse(bh); in get_block_length()
106 if (!(bh = sb_bread(s, ++(*cur_index)))) in get_block_length()
110 bh->b_data); in get_block_length()
113 bh->b_data); in get_block_length()
119 (bh->b_data + *offset)); in get_block_length()
121 (bh->b_data + *offset + 1)); in get_block_length()
[all …]
/external/llvm/test/CodeGen/X86/
D2012-11-30-handlemove-dbg.ll44 …!DIFile(filename: "MultiSource/Benchmarks/Olden/bh/newbh.c", directory: "MultiSource/Benchmarks/Ol…
47 …!DIFile(filename: "MultiSource/Benchmarks/Olden/bh/newbh.c", directory: "MultiSource/Benchmarks/Ol…
/external/libvpx/libvpx/vp9/common/
Dvp9_reconinter.c91 int bh, int ss_x, int ss_y) { in clamp_mv_to_umv_border_sb() argument
97 const int spel_top = (VP9_INTERP_EXTEND + bh) << SUBPEL_BITS; in clamp_mv_to_umv_border_sb()
127 int bw, int bh, int x, int y, int w, int h, in build_inter_predictors() argument
150 xd, &mv, bw, bh, pd->subsampling_x, pd->subsampling_y); in build_inter_predictors()
220 const int bh = 4 * num_4x4_h; in build_inter_predictors_for_planes() local
227 build_inter_predictors(xd, plane, i++, bw, bh, 4 * x, 4 * y, 4, 4, in build_inter_predictors_for_planes()
230 build_inter_predictors(xd, plane, 0, bw, bh, 0, 0, bw, bh, mi_x, mi_y); in build_inter_predictors_for_planes()
/external/bison/runtime-po/
Dga.po41 msgstr "earr�id chomhr�ire, %s gan choinne, bh�othas ag s�il le %s"
46 msgstr "earr�id chomhr�ire, %s gan choinne, bh�othas ag s�il le %s n� %s"
51 msgstr "earr�id chomhr�ire, %s gan choinne, bh�othas ag s�il le %s n� %s n� %s"
57 "earr�id chomhr�ire, %s gan choinne, bh�othas ag s�il le %s n� %s n� %s n� %s"
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_format.c58 GLuint bw, bh; in intel_compressed_num_bytes() local
62 _mesa_get_format_block_size(mesaFormat, &bw, &bh); in intel_compressed_num_bytes()

12345678