Home
last modified time | relevance | path

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

1234

/linux/drivers/usb/mon/
A Dmon_bin.c306 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
365 rp->b_in += rp->b_size; in mon_buff_area_shrink()
379 rp->b_out -= rp->b_size; in mon_buff_area_free()
531 length = rp->b_size/5; in mon_bin_event()
599 offset -= rp->b_size; in mon_bin_event()
700 rp->b_size = BUFF_DFL; in mon_bin_open()
843 offset -= rp->b_size; in mon_bin_read()
937 cur_out -= rp->b_size; in mon_bin_fetch()
974 cur_out -= rp->b_size; in mon_bin_queued()
1008 ret = rp->b_size; in mon_bin_ioctl()
[all …]
/linux/fs/gfs2/
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()
A Dbmap.c1207 loff_t length = bh_map->b_size; in gfs2_block_map()
1223 if (iomap.length > bh_map->b_size) { in gfs2_block_map()
1224 iomap.length = bh_map->b_size; in gfs2_block_map()
1229 bh_map->b_size = iomap.length; in gfs2_block_map()
1623 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr()
1664 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range()
2258 bh.b_size = size; in gfs2_map_journal_extents()
2265 size -= bh.b_size; in gfs2_map_journal_extents()
2281 bh.b_state, (unsigned long long)bh.b_size); in gfs2_map_journal_extents()
2324 bh.b_size = size; in gfs2_write_alloc_required()
[all …]
A Dmeta_io.c206 len -= bh->b_size; in gfs2_meta_read_endio()
226 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in gfs2_submit_bhs()
230 if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) { in gfs2_submit_bhs()
A Ddir.c637 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
697 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del()
747 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_split_alloc()
830 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
850 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
892 gfs2_qstr2dirent(&empty_name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf()
940 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash()
943 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash()
1427 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf()
1600 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
A Dlops.c186 size -= bh->b_size; in gfs2_end_log_write_bh()
363 gfs2_log_write(sdp, sdp->sd_jdesc, bh->b_page, bh->b_size, in gfs2_log_write_bh()
707 bd2->bd_bh->b_size); in gfs2_before_commit()
820 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements()
1045 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
/linux/fs/ocfs2/
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()
A Daops.c101 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block()
103 bh_result->b_size); in ocfs2_symlink_get_block()
139 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block()
189 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block()
424 unsigned blocksize = head->b_size; in walk_page_buffers()
672 zero_user(page, block_start, bh->b_size); in ocfs2_map_page_blocks()
888 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
2141 unsigned len, total_len = bh_result->b_size; in ocfs2_dio_wr_get_block()
2241 bh_result->b_size = len; in ocfs2_dio_wr_get_block()
/linux/fs/reiserfs/
A Dlbalance.c158 || (!op_is_left_mergeable(&ih->ih_key, src->b_size))) in leaf_copy_boundary_item()
258 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item()
285 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size, in leaf_copy_boundary_item()
288 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size); in leaf_copy_boundary_item()
292 dest->b_size)); in leaf_copy_boundary_item()
452 RFALSE(op_is_left_mergeable(&ih->ih_key, src->b_size), in leaf_item_bottle()
497 dest->b_size); in leaf_item_bottle()
780 (leaf_key(S0, 0), S0->b_size)), in leaf_shift_left()
931 unmoved_loc = before ? ih_location(ih - 1) : bh->b_size; in leaf_insert_into_buf()
1195 bh->b_size); in leaf_cut_from_buffer()
[all …]
A Dprints.c159 bh->b_bdev, bh->b_size, in scnprintf_buffer_head()
738 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head()
741 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head()
752 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
756 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
A Dstree.c539 return is_leaf(bh->b_data, bh->b_size, bh); in is_tree_node()
541 return is_internal(bh->b_data, bh->b_size, bh); in is_tree_node()
1186 (PATH_PLAST_BUFFER(tb->tb_path)->b_size); in calc_deleted_bytes_number()
1547 cur_index += bh->b_size; in unmap_buffers()
2053 get_last_bh(path)->b_size) != in check_research_for_paste()
2056 get_last_bh(path)->b_size) != in check_research_for_paste()
2066 get_last_bh(path)->b_size) != in check_research_for_paste()
/linux/fs/nilfs2/
A Dsegbuf.c181 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc()
191 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc()
210 bh->b_size - sizeof(raw_sum->ss_datasum)); in nilfs_segbuf_fill_in_data_crc()
214 crc = crc32_le(crc, bh->b_data, bh->b_size); in nilfs_segbuf_fill_in_data_crc()
218 crc = crc32_le(crc, kaddr + bh_offset(bh), bh->b_size); in nilfs_segbuf_fill_in_data_crc()
423 len = bio_add_page(wi->bio, bh->b_page, bh->b_size, bh_offset(bh)); in nilfs_segbuf_submit_bh()
424 if (len == bh->b_size) { in nilfs_segbuf_submit_bh()
A Drecovery.c249 BUG_ON((*pbh)->b_size < *offset); in nilfs_read_summary_info()
250 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info()
278 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info()
284 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info()
485 memcpy(kaddr + bh_offset(bh_org), bh_org->b_data, bh_org->b_size); in nilfs_recovery_copy_block()
701 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
A Dpage.c108 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer()
205 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page()
412 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page()
432 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
/linux/fs/
A Dbuffer.c840 bh->b_size = size; in alloc_page_buffers()
955 if (bh->b_size == size) { in grow_dev_page()
1278 bh->b_size == size) { in lookup_bh_lru()
1737 blocksize = bh->b_size; in __block_write_full_page()
1990 blocksize = head->b_size; in __block_write_begin_int()
2073 blocksize = bh->b_size; in __block_commit_write()
2226 blocksize = head->b_size; in block_is_partially_uptodate()
2269 blocksize = head->b_size; in block_read_full_page()
2837 map_bh.b_size = blocksize; in nobh_truncate_page()
2915 WARN_ON(bh->b_size != blocksize); in block_truncate_page()
[all …]
A Dmpage.c199 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
227 map_bh->b_size = 0; in do_mpage_readpage()
230 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
262 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
319 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
563 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
/linux/fs/ext4/
A Dpage-io.c131 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio()
403 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio()
428 ret = bio_add_page(io->io_bio, page, bh->b_size, bh_offset(bh)); in io_submit_add_bh()
429 if (ret != bh->b_size) in io_submit_add_bh()
431 wbc_account_cgroup_owner(io->io_wbc, page, bh->b_size); in io_submit_add_bh()
/linux/fs/fat/
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()
203 (bhs[0]->b_size - 2))); in fat12_ent_next()
205 (bhs[0]->b_size - 1))); in fat12_ent_next()
206 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
213 (bhs[0]->b_size - 1))); in fat12_ent_next()
231 if (fatent->u.ent16_p < (__le16 *)(bh->b_data + (bh->b_size - 2))) { in fat16_ent_next()
243 if (fatent->u.ent32_p < (__le32 *)(bh->b_data + (bh->b_size - 4))) { in fat32_ent_next()
/linux/crypto/
A Dtcrypt.c259 const int *b_size; in test_mb_aead_speed() local
343 b_size = aead_sizes; in test_mb_aead_speed()
435 b_size++; in test_mb_aead_speed()
437 } while (*b_size); in test_mb_aead_speed()
544 const int *b_size; in test_aead_speed() local
687 b_size++; in test_aead_speed()
689 } while (*b_size); in test_aead_speed()
1269 const int *b_size; in test_mb_skcipher_speed() local
1407 b_size++; in test_mb_skcipher_speed()
1514 const int *b_size; in test_skcipher_speed() local
[all …]
/linux/fs/hpfs/
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/fs/jfs/
A Dinode.c206 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
245 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
263 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
/linux/fs/jbd2/
A Dcommit.c337 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data()
367 bh->b_size); in jbd2_block_tag_csum_set()
536 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
668 space_left = descriptor->b_size - in jbd2_journal_commit_transaction()
1001 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
1009 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
/linux/include/linux/firmware/meson/
A Dmeson_sm.h24 unsigned int b_size, unsigned int cmd_index, u32 arg0,
/linux/fs/ext2/
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()
454 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()
710 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
/linux/fs/ntfs3/
A Dinode.c555 bh->b_size = block_size; in ntfs_get_block_vbo()
574 if (bh->b_size > bytes) in ntfs_get_block_vbo()
575 bh->b_size = bytes; in ntfs_get_block_vbo()
601 if (bytes > bh->b_size) in ntfs_get_block_vbo()
602 bytes = bh->b_size; in ntfs_get_block_vbo()
629 bh->b_size = block_size; in ntfs_get_block_vbo()
642 if (bh->b_size > bytes) in ntfs_get_block_vbo()
643 bh->b_size = bytes; in ntfs_get_block_vbo()
649 bh->b_size = 0x40000000u; in ntfs_get_block_vbo()

Completed in 65 milliseconds

1234