Home
last modified time | relevance | path

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

12345678

/linux-6.15/fs/hpfs/
H 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-6.15/fs/qnx6/
H 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-6.15/fs/affs/
H 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 …]
H A Daffs.h19 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data)
20 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t…
21 #define AFFS_ROOT_HEAD(bh) ((struct affs_root_head *)(bh)->b_data)
22 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str…
23 #define AFFS_DATA_HEAD(bh) ((struct affs_data_head *)(bh)->b_data)
24 #define AFFS_DATA(bh) (((struct affs_data_head *)(bh)->b_data)->data)
257 memset(bh->b_data, 0 , sb->s_blocksize); in affs_getzeroblk()
288 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[5]); in affs_adjust_checksum()
289 ((__be32 *)bh->b_data)[5] = cpu_to_be32(tmp - val); in affs_adjust_checksum()
294 u32 tmp = be32_to_cpu(((__be32 *)bh->b_data)[0]); in affs_adjust_bitmapchecksum()
[all …]
/linux-6.15/fs/jbd2/
H A Drecovery.c208 tagp = &bh->b_data[sizeof(journal_header_t)]; in count_tags()
509 tagp = &bh->b_data[sizeof(journal_header_t)]; in jbd2_do_replay()
510 while (tagp - bh->b_data + tag_bytes <= in jbd2_do_replay()
542 obh->b_data, next_commit_ID)) { in jbd2_do_replay()
560 memcpy(nbh->b_data, obh->b_data, journal->j_blocksize); in jbd2_do_replay()
562 *((__be32 *)nbh->b_data) = in jbd2_do_replay()
686 tmp = (journal_header_t *)bh->b_data; in do_one_pass()
707 bh->b_data)) { in do_one_pass()
828 (struct commit_header *)bh->b_data; in do_one_pass()
857 bh->b_data)) { in do_one_pass()
[all …]
/linux-6.15/fs/omfs/
H 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 …]
H 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-6.15/fs/gfs2/
H 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()
H 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()
945 args.name = bh->b_data; in dir_make_exhash()
986 gfs2_dinode_out(dip, dibh->b_data); in dir_make_exhash()
1091 void *ptr = ((char *)dent - obh->b_data) + nbh->b_data; in dir_split_leaf()
1192 gfs2_dinode_out(dip, dibh->b_data); in dir_double_exhash()
1200 gfs2_dinode_out(dip, dibh->b_data); in dir_double_exhash()
1352 (bh->b_data + gfs2_dirent_offset(sdp, bh->b_data)); in gfs2_set_cookies()
[all …]
/linux-6.15/fs/minix/
H 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()
230 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_inode()
239 if (minix_test_and_set_bit(j, bh->b_data)) { /* shouldn't happen */ in minix_new_inode()
/linux-6.15/fs/udf/
H A Dballoc.c68 if (udf_test_bit(i + off, bh->b_data)) { in read_block_bitmap()
156 if (udf_set_bit(bit + i, bh->b_data)) { in udf_bitmap_free_blocks()
159 ((__u8 *)bh->b_data)[(bit + i) >> 3]); in udf_bitmap_free_blocks()
206 if (!udf_clear_bit(bit, bh->b_data)) in udf_bitmap_prealloc_blocks()
256 if (udf_test_bit(bit, bh->b_data)) in udf_bitmap_new_block()
266 newbit = (ptr - ((char *)bh->b_data)) << 3; in udf_bitmap_new_block()
272 newbit = udf_find_next_one_bit(bh->b_data, in udf_bitmap_new_block()
294 bit = (ptr - ((char *)bh->b_data)) << 3; in udf_bitmap_new_block()
298 bit = udf_find_next_one_bit(bh->b_data, in udf_bitmap_new_block()
322 udf_test_bit(bit - 1, bh->b_data)) { in udf_bitmap_new_block()
[all …]
/linux-6.15/fs/freevxfs/
H A Dvxfs_olt.c61 if (!bp || !bp->b_data) in vxfs_read_olt()
64 op = (struct vxfs_olt *)bp->b_data; in vxfs_read_olt()
80 oaddr = bp->b_data + fs32_to_cpu(infp, op->olt_size); in vxfs_read_olt()
81 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
/linux-6.15/fs/ocfs2/
H A Ddir.c411 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
733 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el()
974 0, dir_ent_bh->b_data, in ocfs2_dx_dir_search()
1025 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1380 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_delete_entry_id()
1613 char *data_start = insert_bh->b_data; in __ocfs2_add_entry()
1769 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dir_foreach_blk_id()
2113 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_empty_dir_dx()
2623 de_buf = dirent_bh->b_data; in ocfs2_dx_dir_index_block()
2670 de_buf = dirent_bh->b_data; in ocfs2_dx_dir_index_root_block()
[all …]
H A Dresize.c86 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) bm_bh->b_data; in ocfs2_update_last_group_and_inode()
107 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode()
200 memcpy(backup->b_data, data, inode->i_sb->s_blocksize); in update_backups()
202 backup_di = (struct ocfs2_dinode *)backup->b_data; in update_backups()
237 super_di = (struct ocfs2_dinode *)super_bh->b_data; in ocfs2_update_super_and_backups()
248 ret = update_backups(inode, clusters, super_bh->b_data); in ocfs2_update_super_and_backups()
304 fe = (struct ocfs2_dinode *)main_bm_bh->b_data; in ocfs2_group_extend()
329 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_group_extend()
384 (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_check_new_group()
489 fe = (struct ocfs2_dinode *)main_bm_bh->b_data; in ocfs2_group_add()
[all …]
H 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()
824 (chunk->qc_headerbh->b_data); in ocfs2_local_free_info()
875 dqblk = (struct ocfs2_local_disk_dqblk *)(bh->b_data in olq_set_dquot()
930 iter->qc_headerbh->b_data; in ocfs2_find_free_entry()
1019 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in ocfs2_local_quota_add_chunk()
1165 memset(bh->b_data, 0, sb->s_blocksize); in ocfs2_extend_local_quota_file()
1210 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in olq_alloc_dquot()
[all …]
H A Drefcounttree.c77 (struct ocfs2_refcount_block *)bh->b_data; in ocfs2_validate_refcount_block()
409 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block()
622 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
1092 eb = (struct ocfs2_extent_block *) eb_bh->b_data; in ocfs2_get_refcount_rec()
1326 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1450 (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_divide_leaf_refcount_block()
2393 prev_bh->b_data; in ocfs2_calc_refcount_meta_credits()
3033 memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize); in ocfs2_duplicate_clusters_by_jbd()
4507 dis = (struct ocfs2_dinode *)s_bh->b_data; in ocfs2_reflink_remap_extent()
4614 dis = (struct ocfs2_dinode *)s_bh->b_data; in ocfs2_reflink_remap_blocks()
[all …]
H A Dsuballoc.c495 (struct ocfs2_group_desc *)bg_bh->b_data; in ocfs2_block_group_grow_discontig()
560 bg = (struct ocfs2_group_desc *)bg_bh->b_data; in ocfs2_bg_alloc_cleanup()
714 bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_block_group_alloc()
802 fe = (struct ocfs2_dinode *) bh->b_data; in ocfs2_reserve_suballoc_bits()
1742 gd = (struct ocfs2_group_desc *) group_bh->b_data; in ocfs2_search_one_group()
1820 bg = (struct ocfs2_group_desc *) group_bh->b_data; in ocfs2_search_chain()
1855 bg = (struct ocfs2_group_desc *) group_bh->b_data; in ocfs2_search_chain()
1962 fe = (struct ocfs2_dinode *) ac->ac_bh->b_data; in ocfs2_claim_suballoc_bits()
2230 bg = (struct ocfs2_group_desc *) bg_bh->b_data; in ocfs2_claim_new_inode_at_loc()
2816 inode_fe = (struct ocfs2_dinode *) inode_bh->b_data; in ocfs2_get_suballoc_slot_bit()
[all …]
/linux-6.15/fs/ext4/
H A Dbitmap.c33 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_verify()
55 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_set()
74 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_verify()
95 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_set()
H A Dmmp.c45 struct mmp_struct *mmp = (struct mmp_struct *)(bh->b_data); in write_mmp_block_thawed()
101 mmp = (struct mmp_struct *)((*bh)->b_data); in read_mmp_block()
152 mmp = (struct mmp_struct *)(bh->b_data); in kmmpd()
214 mmp_check = (struct mmp_struct *)(bh_check->b_data); in kmmpd()
301 mmp = (struct mmp_struct *)(bh->b_data); in ext4_multi_mount_protect()
340 mmp = (struct mmp_struct *)(bh->b_data); in ext4_multi_mount_protect()
375 mmp = (struct mmp_struct *)(bh->b_data); in ext4_multi_mount_protect()
H A Dsymlink.c49 caddr = bh->b_data; in ext4_encrypted_get_link()
112 nd_terminate_link(bh->b_data, inode->i_size, in ext4_get_link()
114 return bh->b_data; in ext4_get_link()
/linux-6.15/fs/nilfs2/
H A Dsegbuf.c106 memset(bh->b_data, 0, bh->b_size); in nilfs_segbuf_extend_segsum()
157 raw_sum = (struct nilfs_segment_summary *)bh_sum->b_data; in nilfs_segbuf_fill_in_segsum()
186 raw_sum = (struct nilfs_segment_summary *)bh->b_data; in nilfs_segbuf_fill_in_segsum_crc()
198 crc = crc32_le(crc, bh->b_data, size); in nilfs_segbuf_fill_in_segsum_crc()
212 raw_sum = (struct nilfs_segment_summary *)bh->b_data; in nilfs_segbuf_fill_in_data_crc()
219 crc = crc32_le(crc, bh->b_data, bh->b_size); in nilfs_segbuf_fill_in_data_crc()
222 size_t offset = offset_in_folio(bh->b_folio, bh->b_data); in nilfs_segbuf_fill_in_data_crc()
242 raw_sr = (struct nilfs_super_root *)segbuf->sb_super_root->b_data; in nilfs_segbuf_fill_in_super_root_crc()
392 offset_in_folio(bh->b_folio, bh->b_data))) { in nilfs_segbuf_submit_bh()
/linux-6.15/fs/fat/
H 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()
203 WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data + in fat12_ent_next()
205 WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data + in fat12_ent_next()
207 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
213 WARN_ON(ent12_p[0] != (u8 *)(bhs[0]->b_data + in fat12_ent_next()
215 WARN_ON(ent12_p[1] != (u8 *)bhs[1]->b_data); in fat12_ent_next()
[all …]
/linux-6.15/fs/romfs/
H 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()
/linux-6.15/fs/exfat/
H A Dballoc.c139 set_bit_le(b, sbi->vol_amap[i]->b_data); in exfat_set_bitmap()
158 if (!test_bit_le(b, sbi->vol_amap[i]->b_data)) in exfat_clear_bitmap()
161 clear_bit_le(b, sbi->vol_amap[i]->b_data); in exfat_clear_bitmap()
190 bitval = *(__le_long *)(sbi->vol_amap[map_i]->b_data + map_b); in exfat_find_free_bitmap()
228 bitmap = (void *)(sbi->vol_amap[map_i]->b_data + map_b); in exfat_count_used_clusters()
238 bitmap = (void *)(sbi->vol_amap[map_i]->b_data + map_b); in exfat_count_used_clusters()
/linux-6.15/drivers/scsi/
H A Dst.c1150 ((STp->buffer)->b_data[2] << 8) | (STp->buffer)->b_data[3]; in check_tape()
1152 (STp->buffer)->b_data[5]; in check_tape()
1183 (STp->buffer)->b_data[0], in check_tape()
1184 (STp->buffer)->b_data[1], in check_tape()
1185 (STp->buffer)->b_data[2], in check_tape()
1186 (STp->buffer)->b_data[3]); in check_tape()
1192 (STp->buffer)->b_data[10] * 256 + (STp->buffer)->b_data[11]; in check_tape()
1198 (STp->buffer)->b_data[7], in check_tape()
2582 unsigned char *b_data = (STp->buffer)->b_data; in st_compression() local
2944 (STp->buffer)->b_data[2] = in st_int_ioctl()
[all …]

12345678