/linux-4.4.14/drivers/usb/mon/ |
D | mon_bin.c | 183 unsigned int b_size; /* Current size of the buffer - bytes */ member 247 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff() 280 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf() 298 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc() 302 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc() 303 rp->b_in -= rp->b_size; in mon_buff_area_alloc() 324 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous() 326 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous() 332 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous() 333 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous() [all …]
|
/linux-4.4.14/fs/gfs2/ |
D | meta_io.h | 19 memset(bh->b_data, 0, bh->b_size); in gfs2_buffer_clear() 24 BUG_ON(head > bh->b_size); in gfs2_buffer_clear_tail() 25 memset(bh->b_data + head, 0, bh->b_size - head); in gfs2_buffer_clear_tail() 35 from_bh->b_size - from_head); in gfs2_buffer_copy_tail() 36 memset(to_bh->b_data + to_bh->b_size + to_head - from_head, in gfs2_buffer_copy_tail()
|
D | bmap.c | 74 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in gfs2_unstuffer_page() 75 dsize = dibh->b_size - sizeof(struct gfs2_dinode); in gfs2_unstuffer_page() 277 const __be64 *endp = (const __be64 *)(bh->b_data + bh->b_size); in gfs2_metapath_ra() 479 dblks = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, in gfs2_bmap_alloc() 584 bh_map->b_size = dblks << inode->i_blkbits; in gfs2_bmap_alloc() 609 const size_t maxlen = bh_map->b_size >> inode->i_blkbits; in gfs2_block_map() 655 len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, &eob); in gfs2_block_map() 656 bh_map->b_size = (len << inode->i_blkbits); in gfs2_block_map() 692 bh.b_size = 1 << (inode->i_blkbits + (create ? 0 : 5)); in gfs2_extent_map() 694 *extlen = bh.b_size >> inode->i_blkbits; in gfs2_extent_map() [all …]
|
D | lops.c | 188 size -= bh->b_size; in gfs2_end_log_write_bh() 350 gfs2_log_write(sdp, bh->b_page, bh->b_size, bh_offset(bh)); in gfs2_log_write_bh() 466 bd2->bd_bh->b_size); in gfs2_before_commit() 553 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements() 791 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
|
D | file.c | 362 bh.b_size = size; in gfs2_allocate_page_backing() 366 size -= bh.b_size; in gfs2_allocate_page_backing() 367 lblock += (bh.b_size >> inode->i_blkbits); in gfs2_allocate_page_backing() 747 bh_map.b_size = len; in fallocate_chunk() 753 len -= bh_map.b_size; in fallocate_chunk() 754 nr_blks = bh_map.b_size >> inode->i_blkbits; in fallocate_chunk()
|
D | aops.c | 45 unsigned int bsize = head->b_size; in gfs2_page_add_databufs() 471 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in stuffed_readpage() 472 dsize = (dibh->b_size - sizeof(struct gfs2_dinode)); in stuffed_readpage() 820 BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode))); in gfs2_stuffed_write_end() 1007 if (pos + bh->b_size > stop) in gfs2_invalidatepage() 1012 pos += bh->b_size; in gfs2_invalidatepage()
|
D | dir.c | 618 char *bh_end = bh->b_data + bh->b_size; in dirent_next() 678 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del() 714 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_alloc() 794 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search() 814 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search() 857 gfs2_qstr2dirent(&name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf() 905 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash() 908 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash() 1354 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf() 1512 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
|
D | recovery.c | 394 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in clean_journal() 405 memset(bh->b_data, 0, bh->b_size); in clean_journal()
|
D | trace_gfs2.h | 338 __entry->len = bd->bd_bh->b_size; 457 __entry->len = bh->b_size;
|
D | xattr.c | 92 bh->b_data + bh->b_size)) in ea_foreach_i() 103 bh->b_data + bh->b_size) in ea_foreach_i()
|
D | quota.c | 387 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in bh_get() 695 zero_user(page, bnum * bsize, bh->b_size); in gfs2_write_buf_to_page()
|
D | rgrp.c | 375 end = start + bi->bi_bh->b_size; in gfs2_free_extlen() 2203 bi->bi_clone = kmalloc(bi->bi_bh->b_size, in rgblk_free()
|
D | inode.c | 423 …gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), d… in gfs2_init_dir()
|
/linux-4.4.14/fs/ocfs2/ |
D | blockcheck.c | 497 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 504 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs() 505 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs() 550 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs() 567 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 568 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs() 576 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 577 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs() 582 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
|
D | localalloc.c | 437 alloc_copy = kmalloc(bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc() 442 memcpy(alloc_copy, alloc, bh->b_size); in ocfs2_shutdown_local_alloc() 520 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery() 525 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery() 1288 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window() 1294 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
|
D | aops.c | 117 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 119 bh_result->b_size); in ocfs2_symlink_get_block() 142 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block() 192 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block() 435 unsigned blocksize = head->b_size; in walk_page_buffers() 524 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_direct_IO_get_blocks() 525 unsigned long len = bh_result->b_size; in ocfs2_direct_IO_get_blocks() 611 bh_result->b_size = contig_blocks << blocksize_bits; in ocfs2_direct_IO_get_blocks() 1179 zero_user(page, block_start, bh->b_size); in ocfs2_map_page_blocks() 1362 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
|
D | xattr.c | 1532 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_journal_access() 1661 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_fill_value_buf() 2265 (struct ocfs2_xattr_header *)(bh->b_data + bh->b_size - in ocfs2_init_dinode_xa_loc() 2284 loc->xl_size = bh->b_size - offsetof(struct ocfs2_xattr_block, in ocfs2_init_xattr_block_xa_loc() 2822 xs->end = (void *)(blk_bh->b_data) + blk_bh->b_size; in ocfs2_xattr_block_find()
|
D | journal.c | 664 (unsigned long long)bh->b_blocknr, type, bh->b_size); in __ocfs2_journal_access()
|
D | dir.c | 1335 leaf_bh, leaf_bh->b_data, leaf_bh->b_size); in ocfs2_delete_entry_dx() 1397 bh->b_size); in ocfs2_delete_entry_el()
|
D | super.c | 2373 bh->b_size, in ocfs2_verify_volume()
|
D | alloc.c | 6153 *tl_copy = kmalloc(tl_bh->b_size, GFP_KERNEL); in ocfs2_begin_truncate_log_recovery() 6162 memcpy(*tl_copy, tl_bh->b_data, tl_bh->b_size); in ocfs2_begin_truncate_log_recovery()
|
/linux-4.4.14/fs/ |
D | dax.c | 76 return bdev_direct_access(bh->b_bdev, sector, addr, &pfn, bh->b_size); in dax_get_addr() 133 bh->b_size = PAGE_ALIGN(end - pos); in dax_io() 140 bh->b_size = 1 << blkbits; in dax_io() 141 bh_max = pos - first + bh->b_size; in dax_io() 143 unsigned done = bh->b_size - in dax_io() 146 bh->b_size -= done; in dax_io() 152 size = bh->b_size - first; in dax_io() 318 error = bdev_direct_access(bh->b_bdev, sector, &addr, &pfn, bh->b_size); in dax_insert_mapping() 376 bh.b_size = PAGE_SIZE; in __dax_fault() 402 if (!error && (bh.b_size < PAGE_SIZE)) in __dax_fault() [all …]
|
D | mpage.c | 174 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 201 map_bh->b_size = 0; in do_mpage_readpage() 204 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 236 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 293 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 367 map_bh.b_size = 0; in mpage_readpages() 403 map_bh.b_size = 0; in mpage_readpage() 550 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
|
D | buffer.c | 247 bh->b_state, bh->b_size); in __find_get_block_slow() 890 bh->b_size = size; in alloc_page_buffers() 1020 if (bh->b_size == size) { in grow_dev_page() 1341 bh->b_size == size) { in lookup_bh_lru() 1552 unsigned int next_off = curr_off + bh->b_size; in block_invalidatepage() 1727 blocksize = bh->b_size; in __block_write_full_page() 1751 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() 1880 block_end = block_start + bh->b_size; in page_zero_new_buffers() 1923 blocksize = head->b_size; in __block_write_begin() 1941 WARN_ON(bh->b_size != blocksize); in __block_write_begin() [all …]
|
D | ioctl.c | 292 map_bh.b_size = len; in __generic_block_fiemap() 368 size = map_bh.b_size; in __generic_block_fiemap()
|
D | direct-io.c | 621 map_bh->b_size = fs_count << i_blkbits; in get_more_blocks() 843 nblocks = map_bh->b_size >> dio->inode->i_blkbits; in clean_blockdev_aliases() 951 map_bh->b_size >> sdio->blkbits; in do_direct_IO()
|
/linux-4.4.14/arch/tile/kernel/ |
D | machine_kexec.c | 46 Elf32_Word b_size; member 122 bhdrp->b_size > PAGE_SIZE) in kexec_bn2cl() 129 csum = ip_compute_csum(pg, bhdrp->b_size); in kexec_bn2cl() 132 __func__, csum, bhdrp->b_size); in kexec_bn2cl() 147 ((unsigned char *) pg) + bhdrp->b_size) { in kexec_bn2cl()
|
/linux-4.4.14/crypto/ |
D | tcrypt.c | 319 unsigned int *b_size; in test_aead_speed() local 373 b_size = aead_sizes; in test_aead_speed() 378 if ((*keysize + *b_size) > TVMEMSIZE * PAGE_SIZE) { in test_aead_speed() 380 *keysize + *b_size, in test_aead_speed() 401 i, *keysize * 8, *b_size); in test_aead_speed() 413 *b_size + (enc ? authsize : 0)); in test_aead_speed() 416 *b_size + (enc ? authsize : 0)); in test_aead_speed() 421 aead_request_set_crypt(req, sg, sgout, *b_size, iv); in test_aead_speed() 425 ret = test_aead_jiffies(req, enc, *b_size, in test_aead_speed() 428 ret = test_aead_cycles(req, enc, *b_size); in test_aead_speed() [all …]
|
/linux-4.4.14/fs/reiserfs/ |
D | lbalance.c | 158 || (!op_is_left_mergeable(&ih->ih_key, src->b_size))) in leaf_copy_boundary_item() 224 if (!dest_nr_item || !op_is_left_mergeable(&dih->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() 364 j = location = (dest_before == 0) ? dest->b_size : ih_location(ih - 1); in leaf_copy_items_entirely() 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() [all …]
|
D | prints.c | 146 bdevname(bh->b_bdev, b), bh->b_size, in sprintf_buffer_head() 720 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head() 723 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head() 737 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head() 741 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
|
D | stree.c | 511 return is_leaf(bh->b_data, bh->b_size, bh); in is_tree_node() 513 return is_internal(bh->b_data, bh->b_size, bh); in is_tree_node() 1168 (PATH_PLAST_BUFFER(tb->tb_path)->b_size); in calc_deleted_bytes_number() 1529 cur_index += bh->b_size; in unmap_buffers() 2035 get_last_bh(path)->b_size) != in check_research_for_paste() 2038 get_last_bh(path)->b_size) != in check_research_for_paste() 2048 get_last_bh(path)->b_size) != in check_research_for_paste()
|
D | resize.c | 60 if (SB_BUFFER_WITH_SB(s)->b_blocknr * SB_BUFFER_WITH_SB(s)->b_size in reiserfs_resize()
|
D | fix_node.c | 84 if (op_is_left_mergeable(&ih->ih_key, Sh->b_size) in create_virtual_node() 154 if (op_is_left_mergeable(key, Sh->b_size) in create_virtual_node() 161 if (op_is_left_mergeable(key, Sh->b_size) && in create_virtual_node() 1291 && op_is_left_mergeable(&ih->ih_key, Sh->b_size)) ? IH_SIZE : 0) in can_node_be_removed() 1294 && op_is_left_mergeable(r_key, Sh->b_size)) ? IH_SIZE : 0) in can_node_be_removed() 2343 if (bh->b_size != sb->s_blocksize) in tb_buffer_sanity_check()
|
D | dir.c | 153 d_name + d_reclen > bh->b_data + bh->b_size) { in reiserfs_readdir_inode()
|
D | inode.c | 527 bh_result->b_size = (1 << inode->i_blkbits); in reiserfs_get_blocks_direct_io() 586 if ((tail_offset & (bh_result->b_size - 1)) != 1) in convert_tail_for_hole() 591 tail_end = (tail_start | (bh_result->b_size - 1)) + 1; in convert_tail_for_hole() 2465 if (bytes_copied < bh_result->b_size && in map_block_for_writepage() 3197 unsigned int next_off = curr_off + bh->b_size; in reiserfs_invalidatepage()
|
D | do_balan.c | 513 !op_is_left_mergeable(leaf_key(tbS0, 0), tbS0->b_size) || in balance_leaf_paste_left_shift() 514 !op_is_left_mergeable(left_delim_key, tbS0->b_size), in balance_leaf_paste_left_shift() 550 op_is_left_mergeable(leaf_key(tbS0, 0), tbS0->b_size)) { in balance_leaf_paste_left_whole()
|
D | journal.c | 2267 real_blocks[i]->b_size); in journal_read_transaction() 4079 memset(d_bh->b_data, 0, d_bh->b_size); in do_journal_end() 4091 memset(c_bh->b_data, 0, c_bh->b_size); in do_journal_end() 4212 cn->bh->b_size); in do_journal_end()
|
D | bitmap.c | 1389 unsigned long *cur = (unsigned long *)(bh->b_data + bh->b_size); in reiserfs_cache_bitmap_metadata()
|
D | reiserfs.h | 2058 #define MAX_CHILD_SIZE(bh) ((int)( (bh)->b_size - BLKH_SIZE )) 2700 #define get_journal_desc_magic(bh) (bh->b_data + bh->b_size - 12)
|
/linux-4.4.14/fs/nilfs2/ |
D | segbuf.c | 194 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc() 204 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc() 223 bh->b_size - sizeof(raw_sum->ss_datasum)); in nilfs_segbuf_fill_in_data_crc() 227 crc = crc32_le(crc, bh->b_data, bh->b_size); in nilfs_segbuf_fill_in_data_crc() 231 crc = crc32_le(crc, kaddr + bh_offset(bh), bh->b_size); in nilfs_segbuf_fill_in_data_crc() 438 len = bio_add_page(wi->bio, bh->b_page, bh->b_size, bh_offset(bh)); in nilfs_segbuf_submit_bh() 439 if (len == bh->b_size) { in nilfs_segbuf_submit_bh()
|
D | recovery.c | 261 BUG_ON((*pbh)->b_size < *offset); in nilfs_read_summary_info() 262 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info() 290 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info() 296 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info() 497 memcpy(kaddr + bh_offset(bh_org), bh_org->b_data, bh_org->b_size); in nilfs_recovery_copy_block() 715 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
|
D | page.c | 123 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer() 220 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page() 433 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page() 453 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
|
D | inode.c | 90 unsigned maxblocks = bh_result->b_size >> inode->i_blkbits; in nilfs_get_block() 98 bh_result->b_size = (ret << inode->i_blkbits); in nilfs_get_block()
|
D | btree.c | 409 bh->b_size, bh->b_blocknr); in nilfs_btree_broken_node_block()
|
/linux-4.4.14/fs/fat/ |
D | fatent.c | 45 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 49 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 201 (bhs[0]->b_size - 2))); in fat12_ent_next() 203 (bhs[0]->b_size - 1))); in fat12_ent_next() 204 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next() 211 (bhs[0]->b_size - 1))); in fat12_ent_next() 229 if (fatent->u.ent16_p < (__le16 *)(bh->b_data + (bh->b_size - 2))) { in fat16_ent_next() 241 if (fatent->u.ent32_p < (__le32 *)(bh->b_data + (bh->b_size - 4))) { in fat32_ent_next()
|
D | inode.c | 167 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block() 173 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block()
|
/linux-4.4.14/fs/ext4/ |
D | page-io.c | 103 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio() 383 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio() 408 ret = bio_add_page(io->io_bio, page, bh->b_size, bh_offset(bh)); in io_submit_add_bh() 409 if (ret != bh->b_size) in io_submit_add_bh() 411 wbc_account_io(io->io_wbc, page, bh->b_size); in io_submit_add_bh()
|
D | xattr.c | 228 error = ext4_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size, in ext4_xattr_check_block() 305 error = ext4_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext4_xattr_block_get() 759 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find() 762 i->name, bs->bh->b_size, 1); in ext4_xattr_block_find() 831 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext4_xattr_block_set() 835 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext4_xattr_block_set() 839 s->end = s->base + bs->bh->b_size; in ext4_xattr_block_set() 938 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set() 1321 end = bh->b_data + bh->b_size; in ext4_expand_extra_isize_ea()
|
D | file.c | 205 err = ext4_convert_unwritten_extents(NULL, inode, offset, bh->b_size); in ext4_end_io_unwritten() 537 lastoff += bh->b_size; in ext4_find_unwritten_pgoff()
|
D | inode.c | 703 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block() 737 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block() 840 unsigned blocksize = head->b_size; in ext4_walk_page_buffers() 952 WARN_ON(bh->b_size != blocksize); in ext4_block_write_begin() 1224 block_end = block_start + bh->b_size; in zero_new_buffers() 1401 unsigned int next_off = curr_off + bh->b_size; in ext4_da_page_release_reservation() 1685 BUG_ON(bh->b_size != inode->i_sb->s_blocksize); in ext4_da_get_block_prep() 3998 memset(bh->b_data, 0, bh->b_size); in __ext4_get_inode_loc()
|
D | dir.c | 223 bh->b_data, bh->b_size, in ext4_readdir()
|
D | resize.c | 542 gdb->b_size); in setup_new_flex_group_blocks() 1488 gdb_bh->b_size, meta_bg); in ext4_flex_group_add()
|
D | namei.c | 985 bh->b_data, bh->b_size, in htree_dirblock_to_tree() 1291 bh->b_size, offset)) { in ext4_search_dir() 2317 bh->b_data, bh->b_size, i)) in ext4_generic_delete_entry() 2718 bh->b_data, bh->b_size, offset)) { in ext4_empty_dir()
|
D | indirect.c | 361 memset(bh->b_data, 0, bh->b_size); in ext4_alloc_branch()
|
/linux-4.4.14/fs/hpfs/ |
D | file.c | 84 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block() 85 n_secs = bh_result->b_size >> 9; in hpfs_get_block() 92 bh_result->b_size = n_secs << 9; in hpfs_get_block()
|
/linux-4.4.14/fs/jfs/ |
D | inode.c | 205 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block() 244 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block() 262 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
|
D | super.c | 761 tmp_bh.b_size = 1 << inode->i_blkbits; in jfs_quota_read() 801 tmp_bh.b_size = 1 << inode->i_blkbits; in jfs_quota_write()
|
/linux-4.4.14/fs/xfs/ |
D | xfs_aops.c | 395 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in xfs_alloc_ioend_bio() 445 return bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh)); in xfs_bio_add_buffer() 517 if (xfs_bio_add_buffer(bio, bh) != bh->b_size) { in xfs_submit_ioend() 595 ioend->io_size += bh->b_size; in xfs_add_to_ioend() 1286 xfs_off_t size = bh_result->b_size; in xfs_map_direct() 1371 bh_result->b_size = mapping_size; in xfs_map_trim_size() 1398 ASSERT(bh_result->b_size >= (1 << inode->i_blkbits)); in __xfs_get_blocks() 1399 size = bh_result->b_size; in __xfs_get_blocks() 1775 block_offset += bh->b_size) { in xfs_vm_write_failed() 1776 block_end = block_start + bh->b_size; in xfs_vm_write_failed() [all …]
|
D | xfs_file.c | 1165 lastoff += bh->b_size; in xfs_lookup_buffer_offset()
|
/linux-4.4.14/fs/ext2/ |
D | xattr.c | 178 end = bh->b_data + bh->b_size; in ext2_xattr_get() 267 end = bh->b_data + bh->b_size; in ext2_xattr_list() 401 end = bh->b_data + bh->b_size; in ext2_xattr_set() 501 header = kmalloc(bh->b_size, GFP_KERNEL); in ext2_xattr_set() 505 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set() 671 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
|
D | super.c | 1008 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super() 1471 tmp_bh.b_size = sb->s_blocksize; in ext2_quota_read() 1510 tmp_bh.b_size = sb->s_blocksize; in ext2_quota_write()
|
D | inode.c | 768 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block() 772 bh_result->b_size = (ret << inode->i_blkbits); in ext2_get_block()
|
/linux-4.4.14/fs/jbd2/ |
D | commit.c | 308 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data() 354 bh->b_size); in jbd2_block_tag_csum_set() 498 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction() 634 space_left = descriptor->b_size - in jbd2_journal_commit_transaction() 960 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction() 968 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
|
D | transaction.c | 790 memcpy(jh->b_frozen_data, source + offset, bh->b_size); in jbd2_freeze_jh_data() 971 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); in do_get_write_access() 1005 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access() 1232 committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); in jbd2_journal_get_undo_access() 1253 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access() 1259 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access() 1293 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger() 2297 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidatepage()
|
D | journal.c | 422 tmp = jbd2_alloc(bh_in->b_size, GFP_NOFS); in jbd2_journal_write_metadata_buffer() 429 jbd2_free(tmp, bh_in->b_size); in jbd2_journal_write_metadata_buffer() 435 memcpy(tmp, mapped_data + new_offset, bh_in->b_size); in jbd2_journal_write_metadata_buffer() 461 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer() 2519 jbd2_free(jh->b_frozen_data, bh->b_size); in __journal_remove_journal_head() 2523 jbd2_free(jh->b_committed_data, bh->b_size); in __journal_remove_journal_head()
|
D | recovery.c | 363 *crc32_sum = crc32_be(*crc32_sum, (void *)bh->b_data, bh->b_size); in calc_chksums() 375 obh->b_size); in calc_chksums()
|
D | revoke.c | 461 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
|
/linux-4.4.14/fs/qnx4/ |
D | namei.c | 81 if (offset < bh->b_size) { in qnx4_find_entry()
|
/linux-4.4.14/include/linux/ |
D | buffer_head.h | 68 size_t b_size; /* size of mapping */ member 337 bh->b_size = sb->s_blocksize; in map_bh()
|
/linux-4.4.14/fs/omfs/ |
D | file.c | 229 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()
|
D | inode.c | 154 memcpy(bh2->b_data, bh->b_data, bh->b_size); in __omfs_write_inode()
|
/linux-4.4.14/fs/minix/ |
D | itree_common.c | 26 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end() 88 memset(bh->b_data, 0, bh->b_size); in alloc_branch()
|
/linux-4.4.14/drivers/scsi/sym53c8xx_2/ |
D | sym_fw.h | 137 int b_size; /* Size of script B */ member
|
D | sym_hipd.c | 5589 np->scriptb_sz = fw->b_size;
|
/linux-4.4.14/fs/bfs/ |
D | file.c | 41 memcpy(new->b_data, bh->b_data, bh->b_size); in bfs_move_block()
|
D | dir.c | 356 if (offset < bh->b_size) in bfs_find_entry()
|
/linux-4.4.14/fs/f2fs/ |
D | data.c | 718 map.m_len = bh->b_size >> inode->i_blkbits; in __get_data_block() 724 bh->b_size = map.m_len << inode->i_blkbits; in __get_data_block() 794 map_bh.b_size = len; in f2fs_fiemap() 841 size = map_bh.b_size; in f2fs_fiemap()
|
/linux-4.4.14/drivers/scsi/ |
D | osst.c | 4443 int i, b_size, new_session = 0, retval = 0; in __os_scsi_tape_open() local 4517 for (i = 0, b_size = 0; in __os_scsi_tape_open() 4518 (i < STp->buffer->sg_segs) && ((b_size + STp->buffer->sg[i].length) <= OS_DATA_SIZE); in __os_scsi_tape_open() 4519 b_size += STp->buffer->sg[i++].length); in __os_scsi_tape_open() 4520 …p->buffer->aux = (os_aux_t *) (page_address(sg_page(&STp->buffer->sg[i])) + OS_DATA_SIZE - b_size); in __os_scsi_tape_open() 5333 int segs, nbr, max_segs, b_size, order, got; in enlarge_buffer() local 5354 for (b_size = OS_DATA_SIZE, order = OSST_FIRST_ORDER; b_size >= PAGE_SIZE; order--, b_size /= 2) { in enlarge_buffer() 5359 sg_set_page(&STbuffer->sg[0], page, b_size, 0); in enlarge_buffer() 5369 for (segs=STbuffer->sg_segs=1, got=b_size; in enlarge_buffer() 5382 …uffer->sg[segs], page, (OS_FRAME_SIZE - got <= PAGE_SIZE / 2) ? (OS_FRAME_SIZE - got) : b_size, 0); in enlarge_buffer() [all …]
|
D | st.c | 3803 int segs, max_segs, b_size, order, got; in enlarge_buffer() local 3823 b_size = PAGE_SIZE << order; in enlarge_buffer() 3825 for (b_size = PAGE_SIZE, order = 0; in enlarge_buffer() 3828 order++, b_size *= 2) in enlarge_buffer() 3851 got += b_size; in enlarge_buffer()
|
/linux-4.4.14/fs/sysv/ |
D | itree.c | 81 return (sysv_zone_t*)((char*)bh->b_data + bh->b_size); in block_end()
|
/linux-4.4.14/fs/ntfs/ |
D | aops.c | 88 if (unlikely(file_ofs + bh->b_size > init_size)) { in ntfs_end_buffer_async_read() 98 bh->b_size - ofs); in ntfs_end_buffer_async_read()
|
/linux-4.4.14/include/trace/events/ |
D | block.h | 29 __entry->size = bh->b_size;
|
/linux-4.4.14/fs/btrfs/ |
D | check-integrity.c | 2914 (rw & WRITE) && bh->b_size > 0) { in btrfsic_submit_bh() 2924 dev_bytenr, bh->b_size, bh->b_data, bh->b_bdev); in btrfsic_submit_bh()
|
D | inode.c | 7531 u64 len = bh_result->b_size; in btrfs_get_blocks_direct() 7654 len = bh_result->b_size; in btrfs_get_blocks_direct() 7665 bh_result->b_size = len; in btrfs_get_blocks_direct()
|
/linux-4.4.14/Documentation/virtual/uml/ |
D | UserModeLinux-HOWTO.txt | 3664 $13 = {b_next = 0x50289380, b_blocknr = 49405, b_size = 1024, b_list = 0,
|