Home
last modified time | relevance | path

Searched refs:bhs (Results 1 – 25 of 37) sorted by relevance

12

/linux/fs/fat/
H A Dfatent.c45 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local
47 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
48 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
49 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1); in fat12_ent_set_ptr()
51 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
52 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
53 fatent->u.ent12_p[1] = bhs[1]->b_data; in fat12_ent_set_ptr()
60 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset); in fat16_ent_set_ptr()
66 fatent->u.ent32_p = (__le32 *)(fatent->bhs[0]->b_data + offset); in fat32_ent_set_ptr()
72 struct buffer_head **bhs = fatent->bhs; in fat12_ent_bread() local
[all …]
/linux/fs/ocfs2/
H A Dblockcheck.c441 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument
455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs()
461 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_compute_bhs()
462 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs()
463 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
485 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument
508 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
524 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_validate_bhs()
525 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
526 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
[all …]
H A Dbuffer_head_io.c90 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() argument
105 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks_sync()
108 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
109 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
110 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
116 bh = bhs[i]; in ocfs2_read_blocks_sync()
155 bh = bhs[i - 1]; in ocfs2_read_blocks_sync()
166 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync()
194 struct buffer_head *bhs[], int flags, in ocfs2_read_blocks() argument
210 if (bhs == NULL) { in ocfs2_read_blocks()
[all …]
H A Dblockcheck.h35 struct buffer_head **bhs, int nr,
38 struct buffer_head **bhs, int nr,
47 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
49 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
H A Dbuffer_head_io.h19 unsigned int nr, struct buffer_head *bhs[]);
29 struct buffer_head *bhs[], int flags,
H A Dnamei.c1717 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1739 bhs = kzalloc_objs(struct buffer_head *, blocks, GFP_KERNEL); in ocfs2_create_symlink_data()
1740 if (!bhs) { in ocfs2_create_symlink_data()
1766 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1767 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1773 bhs[virtual]); in ocfs2_create_symlink_data()
1776 bhs[virtual], in ocfs2_create_symlink_data()
1783 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data()
1785 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1789 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
[all …]
H A Dextent_map.c975 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument
984 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks()
1029 if (!bhs[done + i]) in ocfs2_read_virt_blocks()
1031 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks()
1035 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
H A Dextent_map.h52 struct buffer_head *bhs[], int flags,
H A Docfs2_trace.h1597 void *bhs, unsigned int flags, void *validate),
1598 TP_ARGS(inode, vblock, nr, bhs, flags, validate),
1603 __field(void *, bhs)
1611 __entry->bhs = bhs;
1616 __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
/linux/fs/adfs/
H A Ddir.c31 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom()
38 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom()
56 memcpy(dir->bhs[index]->b_data + offset, src, remain); in adfs_dir_copyto()
63 memcpy(dir->bhs[index]->b_data + offset, src, len); in adfs_dir_copyto()
72 if (dir->bhs != dir->bh) in __adfs_dir_cleanup()
73 kfree(dir->bhs); in __adfs_dir_cleanup()
74 dir->bhs = NULL; in __adfs_dir_cleanup()
83 brelse(dir->bhs[i]); in adfs_dir_relse()
93 bforget(dir->bhs[i]); in adfs_dir_forget()
101 struct buffer_head **bhs; in adfs_dir_read_buffers() local
[all …]
H A Ddir_fplus.c83 bp = (void *)dir->bhs[bi]->b_data; in adfs_fplus_checkbyte()
84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte()
116 dir->bighead = h = (void *)dir->bhs[0]->b_data; in adfs_fplus_read()
136 (dir->bhs[dir->nr_buffers - 1]->b_data + (sb->s_blocksize - 8)); in adfs_fplus_read()
H A Dadfs.h95 struct buffer_head **bhs; member
/linux/fs/isofs/
H A Dcompress.c58 struct buffer_head **bhs; in zisofs_uncompress_block() local
78 bhs = kzalloc_objs(*bhs, needblocks + 1, GFP_KERNEL); in zisofs_uncompress_block()
79 if (!bhs) { in zisofs_uncompress_block()
83 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks); in zisofs_uncompress_block()
84 bh_read_batch(haveblocks, bhs); in zisofs_uncompress_block()
95 if (!bhs[0]) in zisofs_uncompress_block()
98 wait_on_buffer(bhs[0]); in zisofs_uncompress_block()
99 if (!buffer_uptodate(bhs[0])) { in zisofs_uncompress_block()
132 wait_on_buffer(bhs[curbh]); in zisofs_uncompress_block()
133 if (!buffer_uptodate(bhs[curbh])) { in zisofs_uncompress_block()
[all …]
/linux/fs/exfat/
H A Dmisc.c173 int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync) in exfat_update_bhs() argument
178 set_buffer_uptodate(bhs[i]); in exfat_update_bhs()
179 mark_buffer_dirty(bhs[i]); in exfat_update_bhs()
181 write_dirty_buffer(bhs[i], REQ_SYNC); in exfat_update_bhs()
185 wait_on_buffer(bhs[i]); in exfat_update_bhs()
186 if (!err && !buffer_uptodate(bhs[i])) in exfat_update_bhs()
/linux/include/linux/
H A Dbuffer_head.h247 void __bh_read_batch(int nr, struct buffer_head *bhs[],
459 static inline void bh_read_batch(int nr, struct buffer_head *bhs[]) in bh_read_batch() argument
461 __bh_read_batch(nr, bhs, 0, true); in bh_read_batch()
464 static inline void bh_readahead_batch(int nr, struct buffer_head *bhs[], in bh_readahead_batch() argument
467 __bh_read_batch(nr, bhs, op_flags, false); in bh_readahead_batch()
/linux/arch/arm/boot/dts/qcom/
H A Dmsm8926.dtsi10 /delete-property/ qcom,ext-bhs-reg;
/linux/fs/
H A Dbuffer.c1295 struct buffer_head *bhs[BH_LRU_SIZE]; member
1342 swap(evictee, b->bhs[i]); in bh_lru_install()
1370 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru()
1376 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru()
1377 __this_cpu_read(bh_lrus.bhs[i - 1])); in lookup_bh_lru()
1380 __this_cpu_write(bh_lrus.bhs[0], bh); in lookup_bh_lru()
1525 brelse(b->bhs[i]); in __invalidate_bh_lrus()
1526 b->bhs[i] = NULL; in __invalidate_bh_lrus()
1548 if (b->bhs[i]) in has_bh_in_lru()
3056 brelse(b->bhs[i]); in buffer_exit_cpu_dead()
[all …]
/linux/arch/arm/mm/
H A Dcache-v4wt.S89 bhs __flush_whole_cache
H A Dcache-v4wb.S116 bhs __flush_whole_cache @ flush whole D cache
H A Dcache-fa.S89 bhs __flush_whole_cache @ flush whole D cache
H A Dproc-arm1022.S175 bhs __flush_whole_cache
/linux/fs/ext4/
H A Dxattr.c389 struct buffer_head **bhs = bhs_inline; in ext4_xattr_inode_read() local
393 bhs = kmalloc_objs(*bhs, bh_count, GFP_NOFS); in ext4_xattr_inode_read()
394 if (!bhs) in ext4_xattr_inode_read()
399 true /* wait */, bhs); in ext4_xattr_inode_read()
405 if (!bhs[i]) { in ext4_xattr_inode_read()
409 memcpy((char *)buf + blocksize * i, bhs[i]->b_data, in ext4_xattr_inode_read()
415 brelse(bhs[i]); in ext4_xattr_inode_read()
417 if (bhs != bhs_inline) in ext4_xattr_inode_read()
418 kfree(bhs); in ext4_xattr_inode_read()
/linux/arch/arm/lib/
H A Dfindbit.S54 bhs 3b
/linux/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c1285 unsigned char *bhs; in do_rx_iscsi_hdr() local
1302 bhs = skb->data; in do_rx_iscsi_hdr()
1304 dlen = ntohl(*(unsigned int *)(bhs + 4)) & 0xFFFFFF; in do_rx_iscsi_hdr()
1325 csk, skb, *bhs, hlen, dlen, in do_rx_iscsi_hdr()
1326 ntohl(*((unsigned int *)(bhs + 16))), in do_rx_iscsi_hdr()
1327 ntohl(*((unsigned int *)(bhs + 24)))); in do_rx_iscsi_hdr()
/linux/fs/nilfs2/
H A Drecovery.c95 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument
107 (unsigned char *)bhs->b_data + offset, size); in nilfs_compute_checksum()

12