Home
last modified time | relevance | path

Searched refs:do_div (Results 1 – 25 of 42) sorted by relevance

12

/fs/xfs/
Dxfs_linux.h288 mod = do_div(*(__u64 *)a, b); in xfs_do_div()
305 return do_div(c, b); in xfs_do_mod()
314 #undef do_div
315 #define do_div(a, b) xfs_do_div(&(a), (b), sizeof(a)) macro
321 do_div(x, y); in roundup_64()
328 do_div(x, y); in howmany_64()
Dxfs_mount.h316 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
324 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
Dxfs_mount.c432 do_div(icount, 100); in xfs_set_maxicount()
433 do_div(icount, mp->m_ialloc_blks); in xfs_set_maxicount()
492 do_div(space, 100); in xfs_set_low_space_thresholds()
599 do_div(resblks, 20); in xfs_default_resblks()
Dxfs_fsops.c191 nb_mod = do_div(new, mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
627 do_div(icount, 100); in xfs_growfs_data_private()
Dxfs_rtalloc.c927 do_div(nrextents, in->extsize); in xfs_growfs_rt()
984 do_div(nsbp->sb_rextents, nsbp->sb_rextsize); in xfs_growfs_rt()
Dxfs_dquot.c285 do_div(dqp->q_prealloc_lo_wmark, 100); in xfs_dquot_set_prealloc_limits()
291 do_div(space, 100); in xfs_dquot_set_prealloc_limits()
Dxfs_bmap_util.c160 do_div(ap->blkno, mp->m_sb.sb_rextsize); in xfs_bmap_rtalloc()
1059 do_div(s, extsz); in xfs_alloc_file_space()
1227 mod = do_div(block, mp->m_sb.sb_rextsize); in xfs_adjust_extent_unmap_boundaries()
/fs/ufs/
Dufs.h156 do_div(b, uspi->s_fpg); in ufs_dtog()
162 return do_div(b, uspi->s_fpg); in ufs_dtogd()
/fs/omfs/
Dbitmap.c100 bit = do_div(tmp, bits_per_entry); in omfs_allocate_block()
183 bit = do_div(tmp, bits_per_entry); in omfs_clear_range()
Dinode.c229 nsecs = do_div(ctime, 1000) * 1000L; in omfs_iget()
/fs/ntfs/
Dtime.h95 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
/fs/nfs/filelayout/
Dfilelayoutdev.c230 do_div(tmp, flseg->stripe_unit); in nfs4_fl_calc_j_index()
232 return do_div(tmp, flseg->dsaddr->stripe_count); in nfs4_fl_calc_j_index()
Dfilelayout.c874 do_div(p_stripe, stripe_unit); in filelayout_pg_test()
875 do_div(r_stripe, stripe_unit); in filelayout_pg_test()
/fs/cachefiles/
Dbind.c171 do_div(stats.f_files, 100); in cachefiles_daemon_add_cache()
182 do_div(stats.f_blocks, 100); in cachefiles_daemon_add_cache()
/fs/xfs/libxfs/
Dxfs_dquot_buf.c42 do_div(ndquots, sizeof(xfs_dqblk_t)); in xfs_calc_dquots_per_chunk()
Dxfs_bmap.c206 do_div(len, maxrecs); in xfs_bmap_worst_indlen()
4935 do_div(resfactor, nres); in xfs_bmap_split_indlen()
4937 do_div(len1, 100); in xfs_bmap_split_indlen()
4939 do_div(len2, 100); in xfs_bmap_split_indlen()
5008 do_div(rtexts, mp->m_sb.sb_rextsize); in xfs_bmap_del_extent_delay()
5268 do_div(bno, mp->m_sb.sb_rextsize); in xfs_bmap_del_extent()
5269 do_div(len, mp->m_sb.sb_rextsize); in xfs_bmap_del_extent()
5855 do_div(rtexts, mp->m_sb.sb_rextsize); in __xfs_bunmapi()
/fs/ceph/
Dioctl.c210 dl.block_offset = do_div(tmp, dl.block_size); in ceph_ioctl_get_dataloc()
/fs/nilfs2/
Dioctl.c1146 do_div(minseg, segbytes); in nilfs_ioctl_set_alloc_range()
1148 do_div(maxseg, segbytes); in nilfs_ioctl_set_alloc_range()
Dcpfile.c40 do_div(tcno, nilfs_cpfile_checkpoints_per_block(cpfile)); in nilfs_cpfile_get_blkoff()
50 return do_div(tcno, nilfs_cpfile_checkpoints_per_block(cpfile)); in nilfs_cpfile_get_offset()
Ddat.c447 do_div(first, entries_per_block); in nilfs_dat_get_vinfo()
Dsufile.c60 do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_blkoff()
69 return do_div(t, nilfs_sufile_segment_usages_per_block(sufile)); in nilfs_sufile_get_offset()
Dsuper.c431 do_div(newnsegs, nilfs->ns_blocks_per_segment); in nilfs_resize_fs()
856 offset = do_div(sb_index, blocksize); in nilfs_read_super_block()
/fs/cifs/
Dnetmisc.c938 ts.tv_nsec = (long)(do_div(abs_t, 10000000) * 100); in cifs_NTtimeToUnix()
943 ts.tv_nsec = (long)do_div(abs_t, 10000000) * 100; in cifs_NTtimeToUnix()
/fs/orangefs/
Ddevorangefs-req.c44 return do_div(tag, (unsigned int)table_size); in hash_func()
/fs/gfs2/
Dops_fstype.c327 m = do_div(d, sdp->sd_inptrs); in gfs2_read_sb()
346 m = do_div(d, sdp->sd_inptrs); in gfs2_read_sb()

12