Home
last modified time | relevance | path

Searched refs:blkbits (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/fs/
H A Dmpage.c163 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
165 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
202 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
265 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
305 length = first_hole << blkbits; in do_mpage_readpage()
312 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
551 if (block_in_file >= (i_size + (1 << blkbits) - 1) >> blkbits) in __mpage_writepage()
553 last_block = (i_size - 1) >> blkbits; in __mpage_writepage()
558 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
623 length = first_unmapped << blkbits; in __mpage_writepage()
[all …]
H A Ddirect-io.c72 unsigned blkbits; /* doesn't change */ member
906 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local
944 map_bh->b_size >> blkbits; in do_direct_IO()
991 1 << blkbits); in do_direct_IO()
993 i_size_aligned >> blkbits) { in do_direct_IO()
1000 from += 1 << blkbits; in do_direct_IO()
1001 dio->result += 1 << blkbits; in do_direct_IO()
1018 u = (to - from) >> blkbits; in do_direct_IO()
1110 unsigned blkbits = i_blkbits; in __blockdev_direct_IO() local
1158 blocksize_mask = (1 << blkbits) - 1; in __blockdev_direct_IO()
[all …]
/openbmc/linux/fs/ext4/
H A Dreadpage.c224 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local
225 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages()
226 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages()
256 (sector_t)folio->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages()
259 blocksize - 1) >> blkbits; in ext4_mpage_readpages()
333 folio_zero_segment(folio, first_hole << blkbits, in ext4_mpage_readpages()
367 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages()
373 length = first_hole << blkbits; in ext4_mpage_readpages()
H A Dmove_extent.c459 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local
460 unsigned int blocksize = 1 << blkbits; in mext_check_arguments()
462 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
463 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
H A Dinode.c2027 int blkbits = mpd->inode->i_blkbits; in mpage_process_folio() local
2063 io_end_size += (1 << blkbits); in mpage_process_folio()
2379 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local
2496 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map()
3224 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local
3244 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap()
3279 u8 blkbits = inode->i_blkbits; in ext4_iomap_alloc() local
3342 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin() local
3353 map.m_lblk = offset >> blkbits; in ext4_iomap_begin()
3461 u8 blkbits = inode->i_blkbits; in ext4_iomap_begin_report() local
[all …]
H A Dfile.c221 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local
227 map.m_lblk = pos >> blkbits; in ext4_overwrite_io()
228 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io()
H A Dextents.c4546 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local
4557 start = round_up(offset, 1 << blkbits); in ext4_zero_range()
4565 lblk = start >> blkbits; in ext4_zero_range()
4566 max_blocks = (end >> blkbits); in ext4_zero_range()
4603 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range()
4604 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range()
4605 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range()
4712 unsigned int blkbits = inode->i_blkbits; in ext4_fallocate() local
4756 lblk = offset >> blkbits; in ext4_fallocate()
4818 unsigned int blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local
[all …]
H A Dext4.h361 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument
362 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument
363 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \
364 blkbits))
H A Dsuper.c3422 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument
3433 upper_limit >>= (blkbits - 9); in ext4_max_size()
3434 upper_limit <<= blkbits; in ext4_max_size()
3443 res <<= blkbits; in ext4_max_size()
/openbmc/linux/drivers/usb/gadget/function/
H A Dstorage_common.c188 unsigned int blkbits; in fsg_lun_open() local
234 blkbits = 11; in fsg_lun_open()
237 blkbits = blksize_bits(blksize); in fsg_lun_open()
240 blkbits = 9; in fsg_lun_open()
243 num_sectors = size >> blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open()
264 curlun->blkbits = blkbits; in fsg_lun_open()
H A Df_mass_storage.c643 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read()
675 file_offset >> curlun->blkbits; in do_read()
715 file_offset >> curlun->blkbits; in do_read()
815 usb_offset >> curlun->blkbits; in do_write()
857 file_offset >> curlun->blkbits; in do_write()
907 file_offset >> curlun->blkbits; in do_write()
987 amount_left = verification_length << curlun->blkbits; in do_verify()
988 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify()
1014 file_offset >> curlun->blkbits; in do_verify()
1040 file_offset >> curlun->blkbits; in do_verify()
[all …]
H A Dstorage_common.h116 unsigned int blkbits; /* Bits of logical block size member
/openbmc/linux/fs/hpfs/
H A Dfile.c124 unsigned int blkbits = inode->i_blkbits; in hpfs_iomap_begin() local
135 s = hpfs_bmap(inode, offset >> blkbits, &n_secs); in hpfs_iomap_begin()
145 iomap->addr = (u64)s << blkbits; in hpfs_iomap_begin()
146 iomap->length = (u64)n_secs << blkbits; in hpfs_iomap_begin()
150 iomap->length = 1 << blkbits; in hpfs_iomap_begin()
/openbmc/linux/fs/nilfs2/
H A Dinode.c1173 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local
1184 blkoff = start >> blkbits; in nilfs_fiemap()
1206 logical = blkoff << blkbits; in nilfs_fiemap()
1208 size = delalloc_blklen << blkbits; in nilfs_fiemap()
1259 size += n << blkbits; in nilfs_fiemap()
1270 logical = blkoff << blkbits; in nilfs_fiemap()
1271 phys = blkphy << blkbits; in nilfs_fiemap()
1272 size = n << blkbits; in nilfs_fiemap()
1277 logical = blkoff << blkbits; in nilfs_fiemap()
1278 phys = blkphy << blkbits; in nilfs_fiemap()
[all …]
H A Dpage.c30 int blkbits, unsigned long b_state) in __nilfs_get_page_block() argument
37 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block()
39 first_block = (unsigned long)index << (PAGE_SHIFT - blkbits); in __nilfs_get_page_block()
52 int blkbits = inode->i_blkbits; in nilfs_grab_buffer() local
53 pgoff_t index = blkoff >> (PAGE_SHIFT - blkbits); in nilfs_grab_buffer()
61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
H A Dmdt.c564 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local
571 create_empty_buffers(page, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer()
573 bh_frozen = nilfs_page_get_nth_block(page, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
H A Dthe_nilfs.c385 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument
390 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
/openbmc/linux/fs/isofs/
H A Dcompress.c217 unsigned int blkbits = ISOFS_BUFFER_BITS(inode); in zisofs_fill_pages() local
218 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages()
243 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
256 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
/openbmc/linux/mm/
H A Dpage_io.c86 unsigned blkbits; in generic_swapfile_activate() local
94 blkbits = inode->i_blkbits; in generic_swapfile_activate()
95 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate()
103 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate()
140 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
/openbmc/linux/fs/ext2/
H A Dinode.c809 unsigned int blkbits = inode->i_blkbits; in ext2_iomap_begin() local
810 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin()
811 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin()
824 (first_block << blkbits) < i_size_read(inode)) in ext2_iomap_begin()
841 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin()
856 iomap->length = 1 << blkbits; in ext2_iomap_begin()
859 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin()
862 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
/openbmc/linux/fs/gfs2/
H A Dbmap.c1251 unsigned int blkbits = inode->i_blkbits; in gfs2_get_extent() local
1256 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1262 *dblock = iomap.addr >> blkbits; in gfs2_get_extent()
1263 len = iomap.length >> blkbits; in gfs2_get_extent()
1272 unsigned int blkbits = inode->i_blkbits; in gfs2_alloc_extent() local
1277 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1283 *dblock = iomap.addr >> blkbits; in gfs2_alloc_extent()
1284 len = iomap.length >> blkbits; in gfs2_alloc_extent()
/openbmc/linux/fs/iomap/
H A Dbuffered-io.c990 u8 blkbits = inode->i_blkbits; in iomap_write_delalloc_ifs_punch() local
1006 first_blk = offset_in_folio(folio, start_byte) >> blkbits; in iomap_write_delalloc_ifs_punch()
1007 last_blk = offset_in_folio(folio, last_byte) >> blkbits; in iomap_write_delalloc_ifs_punch()
1010 ret = punch(inode, folio_pos(folio) + (i << blkbits), in iomap_write_delalloc_ifs_punch()
1011 1 << blkbits); in iomap_write_delalloc_ifs_punch()
/openbmc/linux/fs/fuse/
H A Ddir.c1130 unsigned int blkbits; in fuse_fillattr() local
1150 blkbits = ilog2(attr->blksize); in fuse_fillattr()
1152 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr()
1154 stat->blksize = 1 << blkbits; in fuse_fillattr()