Home
last modified time | relevance | path

Searched refs:b_size (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.15/drivers/usb/mon/
H A Dmon_bin.c309 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
368 rp->b_in += rp->b_size; in mon_buff_area_shrink()
382 rp->b_out -= rp->b_size; in mon_buff_area_free()
534 length = rp->b_size/5; in mon_bin_event()
602 offset -= rp->b_size; in mon_bin_event()
703 rp->b_size = BUFF_DFL; in mon_bin_open()
846 offset -= rp->b_size; in mon_bin_read()
940 cur_out -= rp->b_size; in mon_bin_fetch()
977 cur_out -= rp->b_size; in mon_bin_queued()
1011 ret = rp->b_size; in mon_bin_ioctl()
[all …]
/linux-6.15/fs/gfs2/
H A Dmeta_io.h16 memset(bh->b_data, 0, bh->b_size); in gfs2_buffer_clear()
21 BUG_ON(head > bh->b_size); in gfs2_buffer_clear_tail()
22 memset(bh->b_data + head, 0, bh->b_size - head); in gfs2_buffer_clear_tail()
32 from_bh->b_size - 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 Dbmap.c1218 loff_t length = bh_map->b_size; in gfs2_block_map()
1234 if (iomap.length > bh_map->b_size) { in gfs2_block_map()
1235 iomap.length = bh_map->b_size; in gfs2_block_map()
1240 bh_map->b_size = iomap.length; in gfs2_block_map()
1634 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr()
1675 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range()
2262 bh.b_size = size; in gfs2_map_journal_extents()
2269 size -= bh.b_size; in gfs2_map_journal_extents()
2285 bh.b_state, (unsigned long long)bh.b_size); in gfs2_map_journal_extents()
2328 bh.b_size = size; in gfs2_write_alloc_required()
[all …]
H A Dmeta_io.c212 len -= bh->b_size; in gfs2_meta_read_endio()
231 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in gfs2_submit_bhs()
234 if (!bio_add_folio(bio, bh->b_folio, bh->b_size, bh_offset(bh))) { in gfs2_submit_bhs()
H A Ddir.c640 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
700 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del()
750 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_split_alloc()
833 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
853 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
895 gfs2_qstr2dirent(&empty_name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf()
943 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash()
946 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash()
1430 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf()
1602 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
H A Daops.c44 unsigned int bsize = head->b_size; in gfs2_trans_add_databufs()
621 if (pos + bh->b_size > stop) in gfs2_invalidate_folio()
626 pos += bh->b_size; in gfs2_invalidate_folio()
H A Dlops.c184 size -= bh->b_size; in gfs2_end_log_write_bh()
363 bh->b_size, bh_offset(bh), dblock); in gfs2_log_write_bh()
694 memcpy_from_page(p, page, bh_offset(bd2->bd_bh), bd2->bd_bh->b_size); in gfs2_before_commit()
806 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements()
1031 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
/linux-6.15/fs/ocfs2/
H A Dblockcheck.c455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); 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()
508 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); 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()
534 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
535 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs()
540 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
H A Daops.c95 bh_result->b_size * iblock, in ocfs2_symlink_get_block()
97 bh_result->b_size); in ocfs2_symlink_get_block()
132 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block()
181 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block()
404 unsigned blocksize = head->b_size; in walk_page_buffers()
652 folio_zero_range(folio, block_start, bh->b_size); in ocfs2_map_folio_blocks()
869 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
2126 unsigned len, total_len = bh_result->b_size; in ocfs2_dio_wr_get_block()
2226 bh_result->b_size = len; in ocfs2_dio_wr_get_block()
/linux-6.15/fs/nilfs2/
H A Dsegbuf.c106 memset(bh->b_data, 0, bh->b_size); in nilfs_segbuf_extend_segsum()
187 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc()
197 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc()
215 bh->b_size - sizeof(raw_sum->ss_datasum)); 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()
227 crc = crc32_le(crc, from, bh->b_size); in nilfs_segbuf_fill_in_data_crc()
391 if (bio_add_folio(wi->bio, bh->b_folio, bh->b_size, in nilfs_segbuf_submit_bh()
H A Drecovery.c268 BUG_ON((*pbh)->b_size < *offset); in nilfs_read_summary_info()
269 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info()
297 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info()
303 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info()
517 memcpy_to_folio(folio, from, bh_org->b_data, bh_org->b_size); in nilfs_recovery_copy_block()
742 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
H A Dpage.c109 memcpy(daddr, saddr, sbh->b_size); in nilfs_copy_buffer()
208 dbh = create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_folio()
457 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
/linux-6.15/fs/
H A Dmpage.c191 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
218 map_bh->b_size = 0; in do_mpage_readpage()
221 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
255 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
301 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
539 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
H A Dbuffer.c243 bh->b_state, bh->b_size, bdev, in __find_get_block_slow()
943 bh->b_size = size; in folio_alloc_buffers()
1057 if (bh->b_size == size) { in grow_dev_folio()
1382 bh->b_size == size) { in lookup_bh_lru()
1867 blocksize = bh->b_size; in __block_write_full_folio()
2133 blocksize = head->b_size; in __block_write_begin_int()
2214 blocksize = bh->b_size; in block_commit_write()
2363 blocksize = head->b_size; in block_is_partially_uptodate()
2411 blocksize = head->b_size; in block_read_full_folio()
2701 WARN_ON(bh->b_size != blocksize); in block_truncate_page()
[all …]
/linux-6.15/fs/fat/
H A Dfatent.c47 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
51 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
204 (bhs[0]->b_size - 2))); in fat12_ent_next()
206 (bhs[0]->b_size - 1))); in fat12_ent_next()
207 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
214 (bhs[0]->b_size - 1))); in fat12_ent_next()
232 if (fatent->u.ent16_p < (__le16 *)(bh->b_data + (bh->b_size - 2))) { in fat16_ent_next()
244 if (fatent->u.ent32_p < (__le32 *)(bh->b_data + (bh->b_size - 4))) { in fat32_ent_next()
/linux-6.15/crypto/
H A Dtcrypt.c251 const int *b_size; in test_mb_aead_speed() local
335 b_size = aead_sizes; in test_mb_aead_speed()
427 b_size++; in test_mb_aead_speed()
429 } while (*b_size); in test_mb_aead_speed()
536 const int *b_size; in test_aead_speed() local
679 b_size++; in test_aead_speed()
681 } while (*b_size); in test_aead_speed()
1268 const int *b_size; in test_mb_skcipher_speed() local
1397 b_size++; in test_mb_skcipher_speed()
1504 const int *b_size; in test_skcipher_speed() local
[all …]
/linux-6.15/fs/hpfs/
H A Dfile.c87 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block()
88 n_secs = bh_result->b_size >> 9; in hpfs_get_block()
95 bh_result->b_size = n_secs << 9; in hpfs_get_block()
/linux-6.15/fs/ext4/
H A Dpage-io.c130 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio()
428 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio()
451 if (!bio_add_folio(io->io_bio, io_folio, bh->b_size, bh_offset(bh))) in io_submit_add_bh()
453 wbc_account_cgroup_owner(io->io_wbc, folio, bh->b_size); in io_submit_add_bh()
/linux-6.15/fs/jfs/
H A Dinode.c207 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
237 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
254 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
/linux-6.15/include/linux/firmware/meson/
H A Dmeson_sm.h24 unsigned int b_size, unsigned int cmd_index, u32 arg0,
/linux-6.15/fs/jbd2/
H A Dcommit.c306 checksum = crc32_be(crc32_sum, addr, bh->b_size); in jbd2_checksum_data()
334 csum32 = jbd2_chksum(j, csum32, addr, bh->b_size); in jbd2_block_tag_csum_set()
490 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
622 space_left = descriptor->b_size - in jbd2_journal_commit_transaction()
951 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
959 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
H A Dtransaction.c926 memcpy(jh->b_frozen_data, source, bh->b_size); in jbd2_freeze_jh_data()
1113 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access()
1141 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access()
1391 committed_data = jbd2_alloc(jh2bh(jh)->b_size, in jbd2_journal_get_undo_access()
1406 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1412 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access()
1446 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger()
2437 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidate_folio()
/linux-6.15/fs/ext2/
H A Dxattr.c226 end = bh->b_data + bh->b_size; in ext2_xattr_get()
312 end = bh->b_data + bh->b_size; in ext2_xattr_list()
453 end = bh->b_data + bh->b_size; in ext2_xattr_set()
539 header = kmemdup(HDR(bh), bh->b_size, GFP_KERNEL); in ext2_xattr_set()
761 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
/linux-6.15/fs/qnx4/
H A Dnamei.c75 if (offset < bh->b_size) { in qnx4_find_entry()
/linux-6.15/fs/ntfs3/
H A Dinode.c586 bh->b_size = block_size; in ntfs_get_block_vbo()
618 if (bh->b_size > bytes) in ntfs_get_block_vbo()
619 bh->b_size = bytes; in ntfs_get_block_vbo()
642 if (bytes > bh->b_size) in ntfs_get_block_vbo()
643 bytes = bh->b_size; in ntfs_get_block_vbo()
669 bh->b_size = block_size; in ntfs_get_block_vbo()
681 if (bh->b_size > bytes) in ntfs_get_block_vbo()
682 bh->b_size = bytes; in ntfs_get_block_vbo()
688 bh->b_size = 0x40000000u; in ntfs_get_block_vbo()

123