Home
last modified time | relevance | path

Searched refs:b_data (Results 1 – 25 of 194) sorted by relevance

12345678

/linux/fs/hpfs/
A Dbuffer.c84 return bh->b_data; in hpfs_map_sector()
105 return bh->b_data; in hpfs_get_sector()
135 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_map_4sectors()
136 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_map_4sectors()
137 likely(qbh->bh[3]->b_data == qbh->bh[0]->b_data + 3 * 512)) { in hpfs_map_4sectors()
138 return qbh->data = qbh->bh[0]->b_data; in hpfs_map_4sectors()
185 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_get_4sectors()
186 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_get_4sectors()
187 likely(qbh->bh[3]->b_data == qbh->bh[0]->b_data + 3 * 512)) { in hpfs_get_4sectors()
188 return qbh->data = qbh->bh[0]->b_data; in hpfs_get_4sectors()
[all …]
/linux/fs/affs/
A Dbitmap.c70 data = (__be32 *)bh->b_data + bit / 32 + 1; in affs_free_block()
79 tmp = be32_to_cpu(*(__be32 *)bh->b_data); in affs_free_block()
80 *(__be32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block()
183 data = (__be32 *)bh->b_data + bit / 32 + 1; in affs_alloc_block()
223 tmp = be32_to_cpu(*(__be32 *)bh->b_data); in affs_alloc_block()
224 *(__be32 *)bh->b_data = cpu_to_be32(tmp + mask); in affs_alloc_block()
274 bmap_blk = (__be32 *)sbi->s_root_bh->b_data; in affs_init_bitmap()
310 bmap_blk = (__be32 *)bmap_bh->b_data; in affs_init_bitmap()
324 old = be32_to_cpu(((__be32 *)bh->b_data)[offset]); in affs_init_bitmap()
338 ((__be32 *)bh->b_data)[offset] = 0; in affs_init_bitmap()
[all …]
A Daffs.h21 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data)
22 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t…
23 #define AFFS_ROOT_HEAD(bh) ((struct affs_root_head *)(bh)->b_data)
24 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str…
25 #define AFFS_DATA_HEAD(bh) ((struct affs_data_head *)(bh)->b_data)
26 #define AFFS_DATA(bh) (((struct affs_data_head *)(bh)->b_data)->data)
258 memset(bh->b_data, 0 , sb->s_blocksize); in affs_getzeroblk()
289 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[5]); in affs_adjust_checksum()
290 ((__be32 *)bh->b_data)[5] = cpu_to_be32(tmp - val); in affs_adjust_checksum()
295 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[0]); in affs_adjust_bitmapchecksum()
[all …]
/linux/fs/qnx6/
A Dsuper_mmi.c51 sb1 = (struct qnx6_mmi_super_block *)bh1->b_data; in qnx6_mmi_fill_super()
62 crc32_be(0, (char *)(bh1->b_data + 8), 504)) { in qnx6_mmi_fill_super()
81 sb1 = (struct qnx6_mmi_super_block *)bh1->b_data; in qnx6_mmi_fill_super()
89 sb2 = (struct qnx6_mmi_super_block *)bh2->b_data; in qnx6_mmi_fill_super()
98 != crc32_be(0, (char *)(bh2->b_data + 8), 504)) { in qnx6_mmi_fill_super()
116 memcpy(bh1->b_data, qsb, sizeof(struct qnx6_super_block)); in qnx6_mmi_fill_super()
119 sbi->sb = (struct qnx6_super_block *)bh1->b_data; in qnx6_mmi_fill_super()
128 memcpy(bh2->b_data, qsb, sizeof(struct qnx6_super_block)); in qnx6_mmi_fill_super()
131 sbi->sb = (struct qnx6_super_block *)bh2->b_data; in qnx6_mmi_fill_super()
/linux/fs/jbd2/
A Drecovery.c206 tagp = &bh->b_data[sizeof(journal_header_t)]; in count_tags()
208 while ((tagp - bh->b_data + tag_bytes) <= size) { in count_tags()
536 tmp = (journal_header_t *)bh->b_data; in do_one_pass()
565 bh->b_data)) { in do_one_pass()
611 tagp = &bh->b_data[sizeof(journal_header_t)]; in do_one_pass()
612 while ((tagp - bh->b_data + tag_bytes) in do_one_pass()
678 memcpy(nbh->b_data, obh->b_data, in do_one_pass()
681 *((__be32 *)nbh->b_data) = in do_one_pass()
776 (struct commit_header *)bh->b_data; in do_one_pass()
802 bh->b_data)) { in do_one_pass()
[all …]
/linux/fs/omfs/
A Ddir.c50 oi = (struct omfs_inode *) bh->b_data; in omfs_scan_list()
94 memset(bh->b_data, 0, sizeof(struct omfs_inode)); in omfs_make_empty()
97 memset(&bh->b_data[OMFS_DIR_START], 0xff, in omfs_make_empty()
102 oi = (struct omfs_inode *) bh->b_data; in omfs_make_empty()
127 entry = (__be64 *) &bh->b_data[ofs]; in omfs_add_link()
138 oi = (struct omfs_inode *) bh->b_data; in omfs_add_link()
174 entry = (__be64 *) &bh->b_data[ofs]; in omfs_delete_entry()
183 oi = (struct omfs_inode *) bh2->b_data; in omfs_delete_entry()
194 oi = (struct omfs_inode *) bh->b_data; in omfs_delete_entry()
228 ptr = (u64 *) &bh->b_data[OMFS_DIR_START]; in omfs_dir_is_empty()
[all …]
A Dfile.c22 struct omfs_extent *oe = (struct omfs_extent *) &bh->b_data[offset]; in omfs_make_empty_table()
56 oe = (struct omfs_extent *)(&bh->b_data[OMFS_EXTENT_START]); in omfs_shrink_inode()
61 if (omfs_is_bad(sbi, (struct omfs_header *) bh->b_data, next)) in omfs_shrink_inode()
82 omfs_make_empty_table(bh, (char *) oe - bh->b_data); in omfs_shrink_inode()
95 oe = (struct omfs_extent *) (&bh->b_data[OMFS_EXTENT_CONT]); in omfs_shrink_inode()
237 oe = (struct omfs_extent *)(&bh->b_data[OMFS_EXTENT_START]); in omfs_get_block()
243 if (omfs_is_bad(sbi, (struct omfs_header *) bh->b_data, next)) in omfs_get_block()
269 oe = (struct omfs_extent *) (&bh->b_data[OMFS_EXTENT_CONT]); in omfs_get_block()
/linux/fs/udf/
A Dballoc.c153 if (udf_set_bit(bit + i, bh->b_data)) { in udf_bitmap_free_blocks()
156 ((__u8 *)bh->b_data)[(bit + i) >> 3]); in udf_bitmap_free_blocks()
203 if (!udf_clear_bit(bit, bh->b_data)) in udf_bitmap_prealloc_blocks()
248 ptr = memscan((char *)bh->b_data + group_start, 0xFF, in udf_bitmap_new_block()
253 if (udf_test_bit(bit, bh->b_data)) in udf_bitmap_new_block()
263 newbit = (ptr - ((char *)bh->b_data)) << 3; in udf_bitmap_new_block()
269 newbit = udf_find_next_one_bit(bh->b_data, in udf_bitmap_new_block()
291 bit = (ptr - ((char *)bh->b_data)) << 3; in udf_bitmap_new_block()
295 bit = udf_find_next_one_bit(bh->b_data, in udf_bitmap_new_block()
319 udf_test_bit(bit - 1, bh->b_data)) { in udf_bitmap_new_block()
[all …]
A Dinode.c1357 fe = (struct fileEntry *)bh->b_data; in udf_read_inode()
1704 fe = (struct fileEntry *)bh->b_data; in udf_update_inode()
2038 udf_update_tag(epos->bh->b_data, in __udf_add_aext()
2041 udf_update_tag(epos->bh->b_data, in __udf_add_aext()
2098 ptr = epos->bh->b_data + epos->offset; in udf_write_aext()
2123 udf_update_tag(epos->bh->b_data, in udf_write_aext()
2194 ptr = epos->bh->b_data + epos->offset; in udf_current_aext()
2300 udf_update_tag(oepos.bh->b_data, in udf_delete_aext()
2303 udf_update_tag(oepos.bh->b_data, in udf_delete_aext()
2317 udf_update_tag(oepos.bh->b_data, in udf_delete_aext()
[all …]
/linux/fs/minix/
A Dbitmap.c34 __u16 *p = (__u16 *)(*map++)->b_data; in count_free()
63 if (!minix_test_and_clear_bit(bit, bh->b_data)) in minix_free_block()
82 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_block()
84 minix_set_bit(j, bh->b_data); in minix_new_block()
126 p = (void *)(*bh)->b_data; in minix_V1_raw_inode()
152 p = (void *)(*bh)->b_data; in minix_V2_raw_inode()
207 if (!minix_test_and_clear_bit(bit, bh->b_data)) in minix_free_inode()
233 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_inode()
242 if (minix_test_and_set_bit(j, bh->b_data)) { /* shouldn't happen */ in minix_new_inode()
/linux/fs/gfs2/
A Dmeta_io.h16 memset(bh->b_data, 0, bh->b_size); in gfs2_buffer_clear()
22 memset(bh->b_data + head, 0, bh->b_size - head); in gfs2_buffer_clear_tail()
31 memcpy(to_bh->b_data + to_head, from_bh->b_data + from_head, in gfs2_buffer_copy_tail()
33 memset(to_bh->b_data + to_bh->b_size + to_head - from_head, in gfs2_buffer_copy_tail()
A Ddir.c134 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_stuffed()
211 memcpy(bh->b_data + o, buf, amount); in gfs2_dir_write_data()
233 gfs2_dinode_out(ip, dibh->b_data); in gfs2_dir_write_data()
314 memcpy(buf, bh->b_data + o, amount); in gfs2_dir_read_data()
942 args.name = bh->b_data; in dir_make_exhash()
983 gfs2_dinode_out(dip, dibh->b_data); in dir_make_exhash()
1088 void *ptr = ((char *)dent - obh->b_data) + nbh->b_data; in dir_split_leaf()
1189 gfs2_dinode_out(dip, dibh->b_data); in dir_double_exhash()
1197 gfs2_dinode_out(dip, dibh->b_data); in dir_double_exhash()
1349 (bh->b_data + gfs2_dirent_offset(sdp, bh->b_data)); in gfs2_set_cookies()
[all …]
/linux/fs/sysv/
A Dsuper.c56 sbd1 = sbd2 = (struct xenix_super_block *) bh1->b_data; in detected_xenix()
59 sbd1 = (struct xenix_super_block *) bh1->b_data; in detected_xenix()
60 sbd2 = (struct xenix_super_block *) (bh2->b_data - 512); in detected_xenix()
86 sbd = (struct sysv4_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv4()
88 sbd = (struct sysv4_super_block *) bh2->b_data; in detected_sysv4()
116 sbd = (struct sysv2_super_block *) bh2->b_data; in detected_sysv2()
140 sbd = (struct coh_super_block *) bh1->b_data; in detected_coherent()
207 sbd = (struct sysv4_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_sysv()
257 sbd = (struct coh_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_coherent()
446 v7sb = (struct v7_super_block *) bh->b_data; in v7_sanity_check()
[all …]
A Dballoc.c33 char *bh_data = bh->b_data; in get_chunk()
84 memset(bh->b_data, 0, sb->s_blocksize); in sysv_free_block()
85 *(__fs16*)bh->b_data = cpu_to_fs16(sbi, count); in sysv_free_block()
137 count = fs16_to_cpu(sbi, *(__fs16*)bh->b_data); in sysv_new_block()
207 n = fs16_to_cpu(sbi, *(__fs16*)bh->b_data); in sysv_count_free_blocks()
/linux/fs/reiserfs/
A Dlbalance.c45 source->b_data + ih_location(ih) + in leaf_copy_dir_entries()
379 memmove(dest->b_data + last_loc, in leaf_copy_items_entirely()
384 memcpy(dest->b_data + last_inserted_loc, in leaf_copy_items_entirely()
1017 memmove(bh->b_data + last_loc - paste_size, bh->b_data + last_loc, in leaf_paste_in_buffer()
1030 memmove(bh->b_data + ih_location(ih) + in leaf_paste_in_buffer()
1032 bh->b_data + ih_location(ih), in leaf_paste_in_buffer()
1037 memcpy(bh->b_data + ih_location(ih) + in leaf_paste_in_buffer()
1095 item = bh->b_data + ih_location(ih); in leaf_cut_entries()
1182 memmove(bh->b_data + ih_location(ih), in leaf_cut_from_buffer()
1210 memmove(bh->b_data + last_loc + cut_size, bh->b_data + last_loc, in leaf_cut_from_buffer()
[all …]
/linux/fs/ocfs2/
A Ddir.c405 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
727 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el()
968 0, dir_ent_bh->b_data, in ocfs2_dx_dir_search()
1019 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1361 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_delete_entry_id()
1594 char *data_start = insert_bh->b_data; in __ocfs2_add_entry()
1751 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dir_foreach_blk_id()
2088 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_empty_dir_dx()
2598 de_buf = dirent_bh->b_data; in ocfs2_dx_dir_index_block()
2645 de_buf = dirent_bh->b_data; in ocfs2_dx_dir_index_root_block()
[all …]
A Dresize.c86 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) bm_bh->b_data; in ocfs2_update_last_group_and_inode()
105 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode()
192 memcpy(backup->b_data, data, inode->i_sb->s_blocksize); in update_backups()
194 backup_di = (struct ocfs2_dinode *)backup->b_data; in update_backups()
229 super_di = (struct ocfs2_dinode *)super_bh->b_data; in ocfs2_update_super_and_backups()
240 ret = update_backups(inode, clusters, super_bh->b_data); in ocfs2_update_super_and_backups()
296 fe = (struct ocfs2_dinode *)main_bm_bh->b_data; in ocfs2_group_extend()
321 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_group_extend()
376 (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_check_new_group()
481 fe = (struct ocfs2_dinode *)main_bm_bh->b_data; in ocfs2_group_add()
[all …]
A Dsuballoc.c491 (struct ocfs2_group_desc *)bg_bh->b_data; in ocfs2_block_group_grow_discontig()
556 bg = (struct ocfs2_group_desc *)bg_bh->b_data; in ocfs2_bg_alloc_cleanup()
708 bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_block_group_alloc()
796 fe = (struct ocfs2_dinode *) bh->b_data; in ocfs2_reserve_suballoc_bits()
1691 gd = (struct ocfs2_group_desc *) group_bh->b_data; in ocfs2_search_one_group()
1767 bg = (struct ocfs2_group_desc *) group_bh->b_data; in ocfs2_search_chain()
1791 bg = (struct ocfs2_group_desc *) group_bh->b_data; in ocfs2_search_chain()
1896 fe = (struct ocfs2_dinode *) ac->ac_bh->b_data; in ocfs2_claim_suballoc_bits()
2153 bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_claim_new_inode_at_loc()
2716 inode_fe = (struct ocfs2_dinode *) inode_bh->b_data; in ocfs2_get_suballoc_slot_bit()
[all …]
A Dquota_local.c182 dqhead = (struct ocfs2_disk_dqheader *)(bh->b_data); in ocfs2_local_check_quota_file()
214 dqhead = (struct ocfs2_disk_dqheader *)(bh->b_data); in ocfs2_local_check_quota_file()
358 dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; in ocfs2_recovery_load_quota()
486 dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; in ocfs2_recover_local_quota_file()
823 (chunk->qc_headerbh->b_data); in ocfs2_local_free_info()
877 dqblk = (struct ocfs2_local_disk_dqblk *)(bh->b_data in olq_set_dquot()
932 chunk->qc_headerbh->b_data; in ocfs2_find_free_entry()
1021 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in ocfs2_local_quota_add_chunk()
1167 memset(bh->b_data, 0, sb->s_blocksize); in ocfs2_extend_local_quota_file()
1212 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in olq_alloc_dquot()
[all …]
/linux/fs/freevxfs/
A Dvxfs_olt.c85 if (!bp || !bp->b_data) in vxfs_read_olt()
88 op = (struct vxfs_olt *)bp->b_data; in vxfs_read_olt()
104 oaddr = bp->b_data + fs32_to_cpu(infp, op->olt_size); in vxfs_read_olt()
105 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
/linux/fs/ext4/
A Dbitmap.c31 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_verify()
51 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_set()
70 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_verify()
94 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_set()
A Dmmp.c44 struct mmp_struct *mmp = (struct mmp_struct *)(bh->b_data); in write_mmp_block()
93 mmp = (struct mmp_struct *)((*bh)->b_data); in read_mmp_block()
144 mmp = (struct mmp_struct *)(bh->b_data); in kmmpd()
208 mmp_check = (struct mmp_struct *)(bh_check->b_data); in kmmpd()
300 mmp = (struct mmp_struct *)(bh->b_data); in ext4_multi_mount_protect()
337 mmp = (struct mmp_struct *)(bh->b_data); in ext4_multi_mount_protect()
366 mmp = (struct mmp_struct *)(bh->b_data); in ext4_multi_mount_protect()
/linux/fs/fat/
A Dfatent.c48 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()
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()
202 WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data + in fat12_ent_next()
204 WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data + in fat12_ent_next()
206 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
212 WARN_ON(ent12_p[0] != (u8 *)(bhs[0]->b_data + in fat12_ent_next()
214 WARN_ON(ent12_p[1] != (u8 *)bhs[1]->b_data); in fat12_ent_next()
[all …]
/linux/drivers/scsi/
A Dst.c1119 ((STp->buffer)->b_data[2] << 8) | (STp->buffer)->b_data[3]; in check_tape()
1121 (STp->buffer)->b_data[5]; in check_tape()
1152 (STp->buffer)->b_data[0], in check_tape()
1153 (STp->buffer)->b_data[1], in check_tape()
1154 (STp->buffer)->b_data[2], in check_tape()
1155 (STp->buffer)->b_data[3]); in check_tape()
1161 (STp->buffer)->b_data[10] * 256 + (STp->buffer)->b_data[11]; in check_tape()
1167 (STp->buffer)->b_data[7], in check_tape()
2551 unsigned char *b_data = (STp->buffer)->b_data; in st_compression() local
2914 (STp->buffer)->b_data[2] = in st_int_ioctl()
[all …]
/linux/fs/romfs/
A Dstorage.c117 memcpy(buf, bh->b_data + offset, segment); in romfs_blk_read()
146 buf = bh->b_data + offset; in romfs_blk_strnlen()
178 matched = (memcmp(bh->b_data + offset, str, segment) == 0); in romfs_blk_strcmp()
184 if (!bh->b_data[offset + segment]) in romfs_blk_strcmp()
201 matched = !bh->b_data[0]; in romfs_blk_strcmp()

Completed in 61 milliseconds

12345678