| /OK3568_Linux_fs/kernel/fs/ |
| H A D | mpage.c | 196 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local 197 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage() 198 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() 225 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage() 227 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage() 235 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 266 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 298 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 313 zero_user_segment(page, first_hole << blkbits, PAGE_SIZE); in do_mpage_readpage() 338 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage() [all …]
|
| H A D | direct-io.c | 73 unsigned blkbits; /* doesn't change */ member 640 unsigned int i_blkbits = sdio->blkbits + sdio->blkfactor; in get_more_blocks() 700 sector = start_sector << (sdio->blkbits - 9); in dio_new_bio() 730 (sdio->cur_page_len >> sdio->blkbits); in dio_bio_add_page() 841 (sdio->cur_page_len >> sdio->blkbits) == blocknr) { in submit_page_section() 862 sdio->cur_page_fs_offset = sdio->block_in_file << sdio->blkbits; in submit_page_section() 912 this_chunk_bytes = this_chunk_blocks << sdio->blkbits; in dio_zero_block() 941 const unsigned blkbits = sdio->blkbits; in do_direct_IO() local 942 const unsigned i_blkbits = blkbits + sdio->blkfactor; in do_direct_IO() 979 map_bh->b_size >> blkbits; in do_direct_IO() [all …]
|
| H A D | buffer.c | 2611 const unsigned blkbits = inode->i_blkbits; in nobh_write_begin() local 2612 const unsigned blocksize = 1 << blkbits; in nobh_write_begin() 2659 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in nobh_write_begin()
|
| /OK3568_Linux_fs/kernel/fs/ext4/ |
| H A D | readpage.c | 269 const unsigned blkbits = inode->i_blkbits; in ext4_mpage_readpages() local 270 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages() 271 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages() 302 (sector_t)page->index << (PAGE_SHIFT - blkbits); in ext4_mpage_readpages() 305 blocksize - 1) >> blkbits; in ext4_mpage_readpages() 379 zero_user_segment(page, first_hole << blkbits, in ext4_mpage_readpages() 419 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages() 425 length = first_hole << blkbits; in ext4_mpage_readpages()
|
| H A D | file.c | 195 unsigned int blkbits = inode->i_blkbits; in ext4_overwrite_io() local 201 map.m_lblk = pos >> blkbits; in ext4_overwrite_io() 202 map.m_len = EXT4_MAX_BLOCKS(len, pos, blkbits); in ext4_overwrite_io() 291 u8 blkbits = inode->i_blkbits; in ext4_handle_inode_extension() local 346 written_blk = ALIGN(offset + written, 1 << blkbits); in ext4_handle_inode_extension() 347 end_blk = ALIGN(offset + count, 1 << blkbits); in ext4_handle_inode_extension()
|
| H A D | move_extent.c | 453 unsigned int blkbits = orig_inode->i_blkbits; in mext_check_arguments() local 454 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() 456 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments() 457 donor_eof = (i_size_read(donor_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
|
| H A D | inode.c | 2295 int blkbits = mpd->inode->i_blkbits; in mpage_process_page() local 2322 io_end_vec->offset = (loff_t)mpd->map.m_lblk << blkbits; in mpage_process_page() 2332 io_end_size += (1 << blkbits); in mpage_process_page() 2610 int blkbits = mpd->inode->i_blkbits; in mpage_prepare_extent_to_map() local 2686 (PAGE_SHIFT - blkbits); in mpage_prepare_extent_to_map() 3418 u8 blkbits = inode->i_blkbits; in ext4_set_iomap() local 3435 iomap->offset = (u64) map->m_lblk << blkbits; in ext4_set_iomap() 3436 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap() 3453 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() 3456 iomap->addr = (u64) map->m_pblk << blkbits; in ext4_set_iomap() [all …]
|
| H A D | extents.c | 4522 unsigned int blkbits = inode->i_blkbits; in ext4_zero_range() local 4539 start = round_up(offset, 1 << blkbits); in ext4_zero_range() 4540 end = round_down((offset + len), 1 << blkbits); in ext4_zero_range() 4544 partial_begin = offset & ((1 << blkbits) - 1); in ext4_zero_range() 4545 partial_end = (offset + len) & ((1 << blkbits) - 1); in ext4_zero_range() 4547 lblk = start >> blkbits; in ext4_zero_range() 4548 max_blocks = (end >> blkbits); in ext4_zero_range() 4585 round_down(offset, 1 << blkbits) >> blkbits, in ext4_zero_range() 4586 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range() 4587 round_down(offset, 1 << blkbits)) >> blkbits, in ext4_zero_range() [all …]
|
| H A D | ext4.h | 294 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) argument 295 #define EXT4_MAX_BLOCKS(size, offset, blkbits) \ argument 296 ((EXT4_BLOCK_ALIGN(size + offset, blkbits) >> blkbits) - (offset >> \ 297 blkbits))
|
| H A D | super.c | 3174 static loff_t ext4_max_size(int blkbits, int has_huge_files) in ext4_max_size() argument 3185 upper_limit >>= (blkbits - 9); in ext4_max_size() 3186 upper_limit <<= blkbits; in ext4_max_size() 3195 res <<= blkbits; in ext4_max_size()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/function/ |
| H A D | storage_common.c | 187 unsigned int blkbits; in fsg_lun_open() local 233 blkbits = 11; in fsg_lun_open() 236 blkbits = blksize_bits(blksize); in fsg_lun_open() 239 blkbits = 9; in fsg_lun_open() 242 num_sectors = size >> blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open() 263 curlun->blkbits = blkbits; in fsg_lun_open()
|
| H A D | f_mass_storage.c | 654 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 686 file_offset >> curlun->blkbits; in do_read() 726 file_offset >> curlun->blkbits; in do_read() 800 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write() 823 usb_offset >> curlun->blkbits; in do_write() 865 file_offset >> curlun->blkbits; in do_write() 915 file_offset >> curlun->blkbits; in do_write() 995 amount_left = verification_length << curlun->blkbits; in do_verify() 996 file_offset = ((loff_t) lba) << curlun->blkbits; in do_verify() 1022 file_offset >> curlun->blkbits; in do_verify() [all …]
|
| H A D | storage_common.h | 116 unsigned int blkbits; /* Bits of logical block size member
|
| /OK3568_Linux_fs/kernel/fs/nilfs2/ |
| H A D | inode.c | 1145 unsigned int blkbits = inode->i_blkbits; in nilfs_fiemap() local 1156 blkoff = start >> blkbits; in nilfs_fiemap() 1157 end_blkoff = (start + len - 1) >> blkbits; in nilfs_fiemap() 1178 logical = blkoff << blkbits; in nilfs_fiemap() 1180 size = delalloc_blklen << blkbits; in nilfs_fiemap() 1211 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap() 1229 if (phys && blkphy << blkbits == phys + size) { in nilfs_fiemap() 1231 size += n << blkbits; in nilfs_fiemap() 1242 logical = blkoff << blkbits; in nilfs_fiemap() 1243 phys = blkphy << blkbits; in nilfs_fiemap() [all …]
|
| H A D | page.c | 30 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 D | mdt.c | 561 int blkbits = inode->i_blkbits; in nilfs_mdt_freeze_buffer() local 568 create_empty_buffers(page, 1 << blkbits, 0); in nilfs_mdt_freeze_buffer() 570 bh_frozen = nilfs_page_get_nth_block(page, bh_offset(bh) >> blkbits); in nilfs_mdt_freeze_buffer()
|
| H A D | the_nilfs.c | 346 static unsigned long long nilfs_max_size(unsigned int blkbits) in nilfs_max_size() argument 351 max_bits = blkbits + NILFS_BMAP_KEY_BIT; /* bmap size limit */ in nilfs_max_size()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | page_io.c | 106 unsigned blkbits; in generic_swapfile_activate() local 114 blkbits = inode->i_blkbits; in generic_swapfile_activate() 115 blocks_per_page = PAGE_SIZE >> blkbits; in generic_swapfile_activate() 123 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 160 first_block >>= (PAGE_SHIFT - blkbits); in generic_swapfile_activate()
|
| /OK3568_Linux_fs/kernel/fs/isofs/ |
| H A D | compress.c | 212 unsigned int blkbits = ISOFS_BUFFER_BITS(inode); in zisofs_fill_pages() local 213 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages() 238 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages() 251 bh = isofs_bread(inode, blockptr >> blkbits); in zisofs_fill_pages()
|
| /OK3568_Linux_fs/kernel/fs/ext2/ |
| H A D | inode.c | 806 unsigned int blkbits = inode->i_blkbits; in ext2_iomap_begin() local 807 unsigned long first_block = offset >> blkbits; in ext2_iomap_begin() 808 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() 821 iomap->offset = (u64)first_block << blkbits; in ext2_iomap_begin() 827 iomap->length = 1 << blkbits; in ext2_iomap_begin() 830 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin() 831 iomap->length = (u64)ret << blkbits; in ext2_iomap_begin()
|
| /OK3568_Linux_fs/kernel/fs/iomap/ |
| H A D | direct-io.c | 212 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_actor() local 222 if ((pos | length | align) & ((1 << blkbits) - 1)) in iomap_dio_bio_actor()
|
| /OK3568_Linux_fs/kernel/fs/fuse/ |
| H A D | dir.c | 1047 unsigned int blkbits; in fuse_fillattr() local 1076 blkbits = ilog2(attr->blksize); in fuse_fillattr() 1078 blkbits = inode->i_sb->s_blocksize_bits; in fuse_fillattr() 1080 stat->blksize = 1 << blkbits; in fuse_fillattr()
|
| /OK3568_Linux_fs/kernel/fs/f2fs/ |
| H A D | data.c | 3582 unsigned blkbits = i_blkbits; in check_direct_IO() local 3583 unsigned blocksize_mask = (1 << blkbits) - 1; in check_direct_IO() 3592 blkbits = blksize_bits(bdev_logical_block_size(bdev)); in check_direct_IO() 3593 blocksize_mask = (1 << blkbits) - 1; in check_direct_IO()
|