Home
last modified time | relevance | path

Searched refs:bh (Results 151 – 175 of 408) sorted by relevance

12345678910>>...17

/openbmc/linux/fs/isofs/
H A Dcompress.c216 struct buffer_head *bh; in zisofs_fill_pages() local
243 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
244 if (!bh) in zisofs_fill_pages()
247 (bh->b_data + (blockptr & (blksize - 1)))); in zisofs_fill_pages()
254 brelse(bh); in zisofs_fill_pages()
256 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
257 if (!bh) in zisofs_fill_pages()
261 (bh->b_data + (blockptr & (blksize - 1)))); in zisofs_fill_pages()
263 brelse(bh); in zisofs_fill_pages()
276 brelse(bh); in zisofs_fill_pages()
/openbmc/linux/fs/ocfs2/
H A Dioctl.c93 struct buffer_head *bh = NULL; in ocfs2_fileattr_set() local
138 brelse(bh); in ocfs2_fileattr_set()
284 struct buffer_head *bh = NULL; in ocfs2_info_scan_inode_alloc() local
320 brelse(bh); in ocfs2_info_scan_inode_alloc()
442 struct buffer_head *bh = NULL; in ocfs2_info_freefrag_scan_chain() local
458 if (bh) { in ocfs2_info_freefrag_scan_chain()
459 brelse(bh); in ocfs2_info_freefrag_scan_chain()
460 bh = NULL; in ocfs2_info_freefrag_scan_chain()
466 blkno, &bh); in ocfs2_info_freefrag_scan_chain()
530 brelse(bh); in ocfs2_info_freefrag_scan_chain()
[all …]
H A Dalloc.c628 dest->p_node[i].bh = src->p_node[i].bh; in ocfs2_cp_path()
650 dest->p_node[i].bh = src->p_node[i].bh; in ocfs2_mv_path()
939 *bh = tmp; in ocfs2_read_extent_block()
1480 bh = NULL; in ocfs2_find_branch_target()
1507 brelse(bh); in ocfs2_find_branch_target()
1586 brelse(bh); in ocfs2_grow_tree()
1834 bh = NULL; in __ocfs2_find_path()
1864 brelse(bh); in __ocfs2_find_path()
1888 get_bh(bh); in find_path_ins()
2572 bh = path->p_node[i].bh; in ocfs2_unlink_path()
[all …]
H A Dslot_map.c149 struct buffer_head **bh) in ocfs2_update_disk_slot_extended() argument
162 *bh = si->si_bh[blkind]; in ocfs2_update_disk_slot_extended()
167 struct buffer_head **bh) in ocfs2_update_disk_slot_old() argument
180 *bh = si->si_bh[0]; in ocfs2_update_disk_slot_old()
188 struct buffer_head *bh; in ocfs2_update_disk_slot() local
192 ocfs2_update_disk_slot_extended(si, slot_num, &bh); in ocfs2_update_disk_slot()
194 ocfs2_update_disk_slot_old(si, slot_num, &bh); in ocfs2_update_disk_slot()
342 struct buffer_head *bh; in ocfs2_map_slot_buffers() local
384 bh = NULL; /* Acquire a fresh bh */ in ocfs2_map_slot_buffers()
386 1, &bh, OCFS2_BH_IGNORE_CACHE, NULL); in ocfs2_map_slot_buffers()
[all …]
H A Dalloc.h57 struct buffer_head *bh);
60 struct buffer_head *bh);
67 struct buffer_head *bh);
70 struct buffer_head *bh);
78 struct buffer_head **bh);
270 struct buffer_head *bh; member
282 #define path_root_bh(_path) ((_path)->p_node[0].bh)
285 #define path_leaf_bh(_path) ((_path)->p_node[(_path)->p_tree_depth].bh)
/openbmc/u-boot/tools/
H A Dmtk_image.c417 struct brom_layout_header *bh; in mtk_image_verify_gen_header() local
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()
467 struct brom_layout_header *bh; in mtk_image_verify_nand_header() local
477 if (strcmp(bh->name, BRLYT_NAME)) in mtk_image_verify_nand_header()
480 if (le32_to_cpu(bh->magic) != BRLYT_MAGIC) { in mtk_image_verify_nand_header()
483 if (le32_to_cpu(bh->type) == BRLYT_TYPE_NAND) in mtk_image_verify_nand_header()
[all …]
/openbmc/linux/fs/ntfs/
H A Dlogfile.c788 struct buffer_head *bh; in ntfs_empty_logfile() local
791 bh = sb_getblk(sb, block); in ntfs_empty_logfile()
792 BUG_ON(!bh); in ntfs_empty_logfile()
794 lock_buffer(bh); in ntfs_empty_logfile()
796 get_bh(bh); in ntfs_empty_logfile()
799 if (!buffer_uptodate(bh)) in ntfs_empty_logfile()
800 set_buffer_uptodate(bh); in ntfs_empty_logfile()
801 if (buffer_dirty(bh)) in ntfs_empty_logfile()
802 clear_buffer_dirty(bh); in ntfs_empty_logfile()
813 wait_on_buffer(bh); in ntfs_empty_logfile()
[all …]
/openbmc/qemu/backends/
H A Drng-builtin.c19 QEMUBH *bh; member
41 replay_bh_schedule_event(s->bh); in rng_builtin_request_entropy()
48 s->bh = qemu_bh_new(rng_builtin_receive_entropy_bh, s); in rng_builtin_init()
55 qemu_bh_delete(s->bh); in rng_builtin_finalize()
/openbmc/linux/fs/ntfs3/
H A Dfsntfs.c1026 if (bh) in ntfs_bread()
1027 return bh; in ntfs_bread()
1045 if (!bh) in ntfs_sb_read()
1053 put_bh(bh); in ntfs_sb_read()
1081 if (!bh) { in ntfs_sb_write()
1088 if (!bh) in ntfs_sb_write()
1120 put_bh(bh); in ntfs_sb_write()
1246 if (!bh) { in ntfs_read_run_nb()
1262 nb->bh[nbh++] = bh; in ntfs_read_run_nb()
1381 nb->bh[nbh++] = bh; in ntfs_get_bh()
[all …]
/openbmc/linux/fs/adfs/
H A Dsuper.c282 struct buffer_head *bh, in adfs_probe() argument
287 struct buffer_head *bh; in adfs_probe() local
302 bh = sb_bread(sb, offset >> sb->s_blocksize_bits); in adfs_probe()
303 if (!bh) { in adfs_probe()
311 ret = validate(sb, bh, &dr); in adfs_probe()
313 brelse(bh); in adfs_probe()
321 brelse(bh); in adfs_probe()
325 brelse(bh); in adfs_probe()
337 b_data = bh->b_data + (ADFS_DISCRECORD % sb->s_blocksize); in adfs_validate_bblk()
350 static int adfs_validate_dr0(struct super_block *sb, struct buffer_head *bh, in adfs_validate_dr0() argument
[all …]
H A Ddir_f.c49 *(u8 *)(bh[_buf]->b_data + _off); \
55 *(__le32 *)(bh[_buf]->b_data + _off); \
72 struct buffer_head * const *bh = dir->bh; in adfs_dir_checkbyte() local
98 ptr.ptr8 = bufoff(bh, i); in adfs_dir_checkbyte()
113 ptr.ptr8 = bufoff(bh, 2008); in adfs_dir_checkbyte()
154 dir->dirhead = bufoff(dir->bh, 0); in adfs_f_read()
155 dir->newtail = bufoff(dir->bh, 2007); in adfs_f_read()
/openbmc/qemu/tests/tcg/ppc64/
H A Dnon_signalling_xscv.c8 uint64_t th, tl, bh = B_HI, bl = B_LO; \
17 : "r" (bh), "r" (bl) \
20 "%016" PRIx64 "\n", bh, bl, th, tl); \
/openbmc/linux/fs/ext2/
H A Dballoc.c41 struct buffer_head ** bh) in ext2_get_group_desc() argument
66 if (bh) in ext2_get_group_desc()
74 struct buffer_head *bh) in ext2_valid_block_bitmap() argument
125 struct buffer_head * bh = NULL; in read_block_bitmap() local
133 bh = sb_getblk(sb, bitmap_blk); in read_block_bitmap()
134 if (unlikely(!bh)) { in read_block_bitmap()
141 ret = bh_read(bh, 0); in read_block_bitmap()
143 return bh; in read_block_bitmap()
145 brelse(bh); in read_block_bitmap()
158 return bh; in read_block_bitmap()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dfix_node.c2092 struct buffer_head *bh; in get_direct_parent() local
2131 __wait_on_buffer(bh); in get_direct_parent()
2172 (bh == in get_neighbors()
2179 if (!bh) in get_neighbors()
2182 brelse(bh); in get_neighbors()
2199 tb->L[h] = bh; in get_neighbors()
2219 if (!bh) in get_neighbors()
2222 brelse(bh); in get_neighbors()
2227 tb->R[h] = bh; in get_neighbors()
2234 B_FREE_SPACE(bh), MAX_CHILD_SIZE(bh), in get_neighbors()
[all …]
/openbmc/linux/fs/udf/
H A Dsymlink.c104 struct buffer_head *bh = NULL; in udf_symlink_filler() local
119 bh = udf_bread(inode, 0, 0, &err); in udf_symlink_filler()
120 if (!bh) { in udf_symlink_filler()
125 symlink = bh->b_data; in udf_symlink_filler()
129 brelse(bh); in udf_symlink_filler()
/openbmc/linux/fs/bfs/
H A Dfile.c36 struct buffer_head *bh, *new; in bfs_move_block() local
38 bh = sb_bread(sb, from); in bfs_move_block()
39 if (!bh) in bfs_move_block()
42 memcpy(new->b_data, bh->b_data, bh->b_size); in bfs_move_block()
44 bforget(bh); in bfs_move_block()
/openbmc/qemu/hw/i2c/
H A Dcore.c79 return !QLIST_EMPTY(&bus->current_devs) || bus->bh; in i2c_bus_busy()
186 void i2c_bus_master(I2CBus *bus, QEMUBH *bh) in i2c_bus_master() argument
189 node->bh = bh; in i2c_bus_master()
208 bus->bh = node->bh; in i2c_schedule_pending_master()
213 qemu_bh_schedule(bus->bh); in i2c_schedule_pending_master()
218 bus->bh = NULL; in i2c_bus_release()
332 if (!bus->bh) { in i2c_ack()
338 qemu_bh_schedule(bus->bh); in i2c_ack()
/openbmc/linux/fs/sysv/
H A Dinode.c173 struct buffer_head * bh; in sysv_iget() local
191 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_iget()
214 brelse(bh); in sysv_iget()
233 struct buffer_head * bh; in __sysv_write_inode() local
245 raw_inode = sysv_raw_inode(sb, ino, &bh); in __sysv_write_inode()
266 mark_buffer_dirty(bh); in __sysv_write_inode()
268 sync_dirty_buffer(bh); in __sysv_write_inode()
269 if (buffer_req(bh) && !buffer_uptodate(bh)) { in __sysv_write_inode()
275 brelse(bh); in __sysv_write_inode()
/openbmc/linux/drivers/scsi/esas2r/
H A Desas2r_flash.c247 struct esas2r_boot_header *bh; in fix_bios() local
250 bh = in fix_bios()
281 struct esas2r_boot_header *bh; in fix_efi() local
634 struct esas2r_boot_header *bh; in chk_boot() local
646 if (bh->signature[0] != 'P' in chk_boot()
647 || bh->signature[1] != 'C' in chk_boot()
648 || bh->signature[2] != 'I' in chk_boot()
649 || bh->signature[3] != 'R' in chk_boot()
652 || bh->class_code[2] != 0x01 in chk_boot()
660 return bh->code_type; in chk_boot()
[all …]
/openbmc/linux/arch/sparc/math-emu/
H A Dsfp-util_64.h15 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
24 "r" ((UDItype)(bh)), \
29 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
38 "r" ((UDItype)(bh)), \
/openbmc/linux/tools/perf/
H A Dbuiltin-diff.c368 struct block_hist *bh; in block_hist_zalloc() local
370 bh = zalloc(size + sizeof(*bh)); in block_hist_zalloc()
371 if (!bh) in block_hist_zalloc()
374 return &bh->he; in block_hist_zalloc()
379 struct block_hist *bh; in block_hist_free() local
383 free(bh); in block_hist_free()
586 __hists__init(&bh->block_hists, &bh->block_list); in init_block_hist()
595 bh->valid = true; in init_block_hist()
707 init_block_hist(bh); in hists__precompute()
1412 if (bh->block_idx) in __hpp__color_compare()
[all …]
/openbmc/linux/arch/sh/math-emu/
H A Dsfp-util.h6 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
10 (sh) = (ah) + (bh) + (__x < (al)); \
14 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
18 (sh) = (ah) - (bh) - (__x > (al)); \
/openbmc/linux/fs/ufs/
H A Dballoc.c280 bh = head; in ufs_change_blocknr()
283 bh = bh->b_this_page; in ufs_change_blocknr()
310 mark_buffer_dirty(bh); in ufs_change_blocknr()
312 bh = bh->b_this_page; in ufs_change_blocknr()
313 } while (bh != head); in ufs_change_blocknr()
324 struct buffer_head *bh; in ufs_clear_frags() local
329 lock_buffer(bh); in ufs_clear_frags()
332 mark_buffer_dirty(bh); in ufs_clear_frags()
333 unlock_buffer(bh); in ufs_clear_frags()
335 sync_dirty_buffer(bh); in ufs_clear_frags()
[all …]
/openbmc/linux/fs/fat/
H A Dnfs.c66 struct buffer_head *bh = NULL; in __fat_nfs_get_inode() local
71 bh = sb_bread(sb, blocknr); in __fat_nfs_get_inode()
72 if (!bh) { in __fat_nfs_get_inode()
78 de = (struct msdos_dir_entry *)bh->b_data; in __fat_nfs_get_inode()
86 brelse(bh); in __fat_nfs_get_inode()
271 struct buffer_head *bh = NULL; in fat_get_parent() local
276 if (!fat_get_dotdot_entry(d_inode(child_dir), &bh, &de)) { in fat_get_parent()
282 brelse(bh); in fat_get_parent()
/openbmc/linux/fs/befs/
H A Ddatastream.c52 struct buffer_head *bh; in befs_read_datastream() local
67 bh = befs_bread_iaddr(sb, run); in befs_read_datastream()
68 if (!bh) { in befs_read_datastream()
76 return bh; in befs_read_datastream()
135 struct buffer_head *bh; in befs_read_lsymlink() local
140 bh = befs_read_datastream(sb, ds, bytes_read, NULL); in befs_read_lsymlink()
141 if (!bh) { in befs_read_lsymlink()
150 memcpy(buff + bytes_read, bh->b_data, plen); in befs_read_lsymlink()
151 brelse(bh); in befs_read_lsymlink()

12345678910>>...17