Searched refs:shift (Results 1 – 12 of 12) sorted by relevance
177 static inline __u32 signed_asl(__u32 val, signed int shift) in signed_asl() argument179 if (shift >= 0) in signed_asl()180 val <<= shift; in signed_asl()182 val >>= -shift; in signed_asl()
336 int shift = 0; in xfs_iomap_prealloc_size() local351 shift = 2; in xfs_iomap_prealloc_size()353 shift++; in xfs_iomap_prealloc_size()355 shift++; in xfs_iomap_prealloc_size()357 shift++; in xfs_iomap_prealloc_size()359 shift++; in xfs_iomap_prealloc_size()361 if (shift) in xfs_iomap_prealloc_size()362 alloc_blocks >>= shift; in xfs_iomap_prealloc_size()
133 unsigned int shift; in gfs2_getbuf() local137 shift = PAGE_CACHE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()138 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf()139 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf()
1281 unsigned int shift; in gfs2_write_alloc_required() local1295 shift = sdp->sd_sb.sb_bsize_shift; in gfs2_write_alloc_required()1297 end_of_file = (i_size_read(&ip->i_inode) + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()1298 lblock = offset >> shift; in gfs2_write_alloc_required()1299 lblock_stop = (offset + len + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()1303 size = (lblock_stop - lblock) << shift; in gfs2_write_alloc_required()
400 unsigned shift; in cachefiles_read_or_alloc_page() local422 shift = PAGE_SHIFT - inode->i_sb->s_blocksize_bits; in cachefiles_read_or_alloc_page()437 block0 <<= shift; in cachefiles_read_or_alloc_page()699 unsigned shift, nrbackpages; in cachefiles_read_or_alloc_pages() local727 shift = PAGE_SHIFT - inode->i_sb->s_blocksize_bits; in cachefiles_read_or_alloc_pages()749 block0 <<= shift; in cachefiles_read_or_alloc_pages()
234 int shift = 0; in journal_init_revoke_table() local243 shift++; in journal_init_revoke_table()246 table->hash_shift = shift; in journal_init_revoke_table()
229 int shift = 0; in jbd2_journal_init_revoke_table() local238 shift++; in jbd2_journal_init_revoke_table()241 table->hash_shift = shift; in jbd2_journal_init_revoke_table()
31 int shift; member103 c = t->shift; in utf32_to_utf8()
225 int shift; in hfsplus_get_block() local228 shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits; in hfsplus_get_block()
89 int shift = uspi->s_apbshift-uspi->s_fpbshift; in ufs_frag_map() local120 bh = sb_bread(sb, uspi->s_sbbase + fs32_to_cpu(sb, block)+(n>>shift)); in ufs_frag_map()142 bh = sb_bread(sb, temp +(u64) (n>>shift)); in ufs_frag_map()
593 static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift) in shift_arg_pages() argument599 unsigned long new_start = old_start - shift; in shift_arg_pages()600 unsigned long new_end = old_end - shift; in shift_arg_pages()
1514 int ret, shift; in ocfs2_grow_tree() local1521 shift = ocfs2_find_branch_target(et, &bh); in ocfs2_grow_tree()1522 if (shift < 0) { in ocfs2_grow_tree()1523 ret = shift; in ocfs2_grow_tree()1531 if (shift) { in ocfs2_grow_tree()