Home
last modified time | relevance | path

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

12

/linux/drivers/usb/mon/
H A Dmon_bin.c188 unsigned int b_size; /* Current size of the buffer - bytes */ member
255 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
288 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
306 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc()
310 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc()
311 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
332 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous()
334 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous()
340 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous()
341 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous()
[all …]
/linux/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 Dlocalalloc.c427 alloc_copy = kmemdup(alloc, bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
508 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
513 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
1267 alloc_copy = kmemdup(alloc, osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
H A Dxattr.c524 if (bh->b_size < region_offset) in ocfs2_validate_xattr_block()
528 bh->b_size); in ocfs2_validate_xattr_block()
532 bh->b_size - in ocfs2_validate_xattr_block()
1789 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_journal_access()
1918 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_fill_value_buf()
2522 (struct ocfs2_xattr_header *)(bh->b_data + bh->b_size - in ocfs2_init_dinode_xa_loc()
2541 loc->xl_size = bh->b_size - offsetof(struct ocfs2_xattr_block, in ocfs2_init_xattr_block_xa_loc()
3081 xs->end = (void *)(blk_bh->b_data) + blk_bh->b_size; in ocfs2_xattr_block_find()
/linux/fs/
H A Dmpage.c190 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
217 map_bh->b_size = 0; in do_mpage_readpage()
220 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
254 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
300 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
543 map_bh.b_size = 1 << blkbits; in mpage_write_folio()
H A Dbuffer.c280 bh->b_state, bh->b_size, bdev, in __find_get_block_slow()
352 valid = fsverity_verify_blocks(ctx->vi, bh->b_folio, bh->b_size, in verify_bh()
751 bh->b_size = size; in folio_alloc_buffers()
865 if (bh->b_size == size) { in grow_dev_folio()
1116 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in __bh_submit()
1119 bio_add_folio_nofail(bio, bh->b_folio, bh->b_size, bh_offset(bh)); in __bh_submit()
1129 wbc_account_cgroup_owner(wbc, bh->b_folio, bh->b_size); in __bh_submit()
1261 bh->b_size == size) { in lookup_bh_lru()
1535 size_t next_off = curr_off + bh->b_size; in block_invalidate_folio()
1746 blocksize = bh->b_size; in __block_write_full_folio()
[all …]
/linux/fs/gfs2/
H A Dbmap.c282 return (const __be64 *)(bh->b_data + bh->b_size); in metaend()
430 const __be64 *end = (__be64 *)(bh->b_data + bh->b_size); in gfs2_extent_length()
1236 loff_t length = bh_map->b_size; in gfs2_block_map()
1252 if (iomap.length > bh_map->b_size) { in gfs2_block_map()
1253 iomap.length = bh_map->b_size; in gfs2_block_map()
1258 bh_map->b_size = iomap.length; in gfs2_block_map()
1667 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr()
1708 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range()
2301 bh.b_size = size; in gfs2_map_journal_extents()
2305 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
[all …]
H A Dxattr.c104 bh->b_data + bh->b_size)) { in ea_foreach_i()
118 bh->b_data + bh->b_size) { in ea_foreach_i()
H A Dquota.c777 bh->b_size); in gfs2_write_buf_to_page()
/linux/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/fs/qnx4/
H A Dnamei.c75 if (offset < bh->b_size) { in qnx4_find_entry()
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_fw.h124 int b_size; /* Size of script B */ member
/linux/fs/bfs/
H A Dfile.c43 memcpy(new->b_data, bh->b_data, bh->b_size); in bfs_move_block()
/linux/fs/ext4/
H A Dxattr.c303 return check_xattrs(inode, bh, BFIRST(bh), bh->b_data + bh->b_size, in __ext4_xattr_check_block()
613 end = bh->b_data + bh->b_size; in ext4_xattr_block_get()
1186 end = (void *)bh->b_data + bh->b_size; in ext4_xattr_inode_dec_ref_all()
1891 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find()
1984 s->base = kmemdup(BHDR(bs->bh), bs->bh->b_size, GFP_NOFS); in ext4_xattr_block_set()
1991 s->end = s->base + bs->bh->b_size; in ext4_xattr_block_set()
2171 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set()
2818 end = bh->b_data + bh->b_size; in ext4_expand_extra_isize_ea()
H A Dnamei.c1078 bh->b_data, bh->b_size, in htree_dirblock_to_tree()
1286 unsigned int buflen = bh->b_size; in dx_make_map()
2930 size_t blocksize = bh->b_size; in ext4_init_dirblock()
3092 if (ext4_check_dir_entry(inode, NULL, de, bh, bh->b_data, bh->b_size, in ext4_empty_dir()
3102 if (ext4_check_dir_entry(inode, NULL, de, bh, bh->b_data, bh->b_size, in ext4_empty_dir()
3127 bh->b_data, bh->b_size, offset) || in ext4_empty_dir()
3547 bh->b_size, 0) || in ext4_get_first_dir_block()
3559 bh->b_size, offset) || in ext4_get_first_dir_block()
H A Dinode.c921 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block()
928 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
932 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
1121 unsigned blocksize = head->b_size; in ext4_walk_page_buffers()
1208 WARN_ON(bh->b_size != blocksize); in ext4_block_write_begin()
1515 block_end = block_start + bh->b_size; in ext4_journalled_zero_new_buffers()
2022 BUG_ON(bh->b_size != inode->i_sb->s_blocksize); in ext4_da_get_block_prep()
4971 memset(bh->b_data, 0, bh->b_size); in __ext4_get_inode_loc()
H A Ddir.c279 bh->b_data, bh->b_size, in ext4_readdir()
H A Dballoc.c202 if ((bit_max >> 3) >= bh->b_size) in ext4_init_block_bitmap()
H A Dresize.c595 s_group_desc, j)->b_data, gdb->b_size); in setup_new_flex_group_blocks()
1618 gdb_bh->b_data, gdb_bh->b_size, meta_bg); in ext4_flex_group_add()
/linux/fs/adfs/
H A Ddir_fplus.c84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte()
/linux/fs/jbd2/
H A Djournal.c387 tmp = kmalloc(bh_in->b_size, GFP_NOFS | __GFP_NOFAIL); in jbd2_journal_write_metadata_buffer()
395 memcpy_from_folio(tmp, new_folio, new_offset, bh_in->b_size); in jbd2_journal_write_metadata_buffer()
411 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer()
/linux/drivers/acpi/
H A Dcppc_acpi.c225 u64 b_size = cpc_sysmem_access_size(b); in cpc_sysmem_access_units_overlap() local
228 if (!a_size || !b_size) in cpc_sysmem_access_units_overlap()
234 return a_gas->address - b_gas->address < b_size; in cpc_sysmem_access_units_overlap()
/linux/drivers/scsi/
H A Dst.c4000 int segs, max_segs, b_size, order, got; in enlarge_buffer() local
4018 b_size = PAGE_SIZE << order; in enlarge_buffer()
4020 for (b_size = PAGE_SIZE, order = 0; in enlarge_buffer()
4023 order++, b_size *= 2) in enlarge_buffer()
4046 got += b_size; in enlarge_buffer()
/linux/fs/ntfs3/
H A Dsuper.c1002 if (bh->b_size - sizeof(*boot) < boot_off) in ntfs_init_from_boot()
/linux/fs/udf/
H A Dinode.c2288 if (alen > epos->bh->b_size) in udf_current_aext()

12