Home
last modified time | relevance | path

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

123

/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 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()
2128 unsigned len, total_len = bh_result->b_size; in ocfs2_dio_wr_get_block()
2228 bh_result->b_size = len; in ocfs2_dio_wr_get_block()
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()
/linux/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()
544 map_bh.b_size = 1 << blkbits; in mpage_write_folio()
H A Dbuffer.c244 bh->b_state, bh->b_size, bdev, in __find_get_block_slow()
316 valid = fsverity_verify_blocks(ctx->vi, bh->b_folio, bh->b_size, in verify_bh()
329 err = fscrypt_decrypt_pagecache_blocks(bh->b_folio, bh->b_size, in decrypt_bh()
940 bh->b_size = size; in folio_alloc_buffers()
1054 if (bh->b_size == size) { in grow_dev_folio()
1373 bh->b_size == size) { in lookup_bh_lru()
1647 size_t next_off = curr_off + bh->b_size; in block_invalidate_folio()
1858 blocksize = bh->b_size; in __block_write_full_folio()
1881 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
2014 block_end = block_start + bh->b_size; in folio_zero_new_buffers()
[all …]
/linux/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/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()
337 int bs = round_up(*b_size, crypto_aead_blocksize(tfm)); 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
596 b_size = aead_sizes; in test_aead_speed()
598 u32 bs = round_up(*b_size, crypto_aead_blocksize(tfm)); in test_aead_speed()
679 b_size++; in test_aead_speed()
681 } while (*b_size); in test_aead_speed()
[all …]
/linux/fs/gfs2/
H A Dbmap.c282 return (const __be64 *)(bh->b_data + bh->b_size); in metaend()
429 const __be64 *end = (__be64 *)(bh->b_data + bh->b_size); in gfs2_extent_length()
1233 loff_t length = bh_map->b_size; in gfs2_block_map()
1249 if (iomap.length > bh_map->b_size) { in gfs2_block_map()
1250 iomap.length = bh_map->b_size; in gfs2_block_map()
1255 bh_map->b_size = iomap.length; in gfs2_block_map()
1651 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr()
1692 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range()
2279 bh.b_size = size; in gfs2_map_journal_extents()
2283 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
[all …]
H A Ddir.c641 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
701 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del()
751 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_split_alloc()
834 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
854 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
896 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()
1428 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()
H A Dlops.c184 size -= bh->b_size; in gfs2_end_log_write_bh()
362 bh->b_size, bh_offset(bh), dblock, REQ_OP_WRITE); in gfs2_log_write_bh()
692 memcpy_from_page(p, page, bh_offset(bd2->bd_bh), bd2->bd_bh->b_size); in gfs2_before_commit()
804 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements()
1029 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
/linux/fs/hpfs/
H A Dfile.c89 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block()
90 n_secs = bh_result->b_size >> 9; in hpfs_get_block()
97 bh_result->b_size = n_secs << 9; in hpfs_get_block()
/linux/fs/nilfs2/
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()
741 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/fs/jfs/
H A Dinode.c213 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
243 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
260 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
/linux/include/linux/firmware/meson/
H A Dmeson_sm.h24 unsigned int b_size, unsigned int cmd_index, u32 arg0,
/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/jbd2/
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()
1401 committed_data = jbd2_alloc(jh2bh(jh)->b_size, in jbd2_journal_get_undo_access()
1416 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1422 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access()
1456 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger()
2453 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidate_folio()
H A Djournal.c388 tmp = jbd2_alloc(bh_in->b_size, GFP_NOFS | __GFP_NOFAIL); in jbd2_journal_write_metadata_buffer()
391 jbd2_free(tmp, bh_in->b_size); in jbd2_journal_write_metadata_buffer()
396 memcpy_from_folio(tmp, new_folio, new_offset, bh_in->b_size); in jbd2_journal_write_metadata_buffer()
412 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer()
2977 static void journal_release_journal_head(struct journal_head *jh, size_t b_size) in journal_release_journal_head() argument
2981 jbd2_free(jh->b_frozen_data, b_size); in journal_release_journal_head()
2985 jbd2_free(jh->b_committed_data, b_size); in journal_release_journal_head()
3004 journal_release_journal_head(jh, bh->b_size); in jbd2_journal_put_journal_head()
/linux/fs/qnx4/
H A Dnamei.c75 if (offset < bh->b_size) { in qnx4_find_entry()
/linux/fs/omfs/
H A Dfile.c229 int max_blocks = bh_result->b_size >> inode->i_blkbits; in omfs_get_block()
259 bh_result->b_size = (remain << inode->i_blkbits); in omfs_get_block()
/linux/fs/minix/
H A Ditree_common.c27 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end()
95 memset(bh->b_data, 0, bh->b_size); in alloc_branch()
/linux/include/linux/
H A Dbuffer_head.h69 size_t b_size; /* size of mapping */ member
413 bh->b_size = sb->s_blocksize; in map_bh()
/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()

123