Home
last modified time | relevance | path

Searched refs:div64_u64_rem (Results 1 – 25 of 48) sorted by relevance

12

/linux/fs/bcachefs/
H A Dmean_and_variance.c56 r = u128_shl(u64_to_u128(div64_u64_rem(h, d, &rem)), 64); in u128_div()
57 r = u128_add(r, u128_shl(u64_to_u128(div64_u64_rem(l + (rem << 32), d, &rem)), 32)); in u128_div()
58 r = u128_add(r, u64_to_u128(div64_u64_rem(lo + (rem << 32), d, &rem))); in u128_div()
/linux/lib/math/
H A Ddiv64.c98 #ifndef div64_u64_rem
99 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() function
124 EXPORT_SYMBOL(div64_u64_rem);
/linux/include/linux/
H A Dmath64.h54 static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() function
101 #ifndef div64_u64_rem
102 extern u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder);
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_client_blt.c359 y = div64_u64_rem(v, stride, &x); in tiled_offset()
362 v = div64_u64_rem(y, 8, &y) * stride * 8; in tiled_offset()
364 v += div64_u64_rem(x, 512, &x) << 12; in tiled_offset()
378 v = div64_u64_rem(y, 32, &y) * stride * 32; in tiled_offset()
380 v += div64_u64_rem(x, ytile_span, &x) * ytile_height; in tiled_offset()
H A Di915_gem_mman.c51 y = div64_u64_rem(v, tile->stride, &x); in tiled_offset()
52 v = div64_u64_rem(y, tile->height, &y) * tile->stride * tile->height; in tiled_offset()
56 v += div64_u64_rem(x, tile->width, &x) << tile->size; in tiled_offset()
63 v += div64_u64_rem(x, ytile_span, &x) * ytile_height; in tiled_offset()
70 v += div64_u64_rem(x, ytile_span, &x) * ytile_height; in tiled_offset()
/linux/drivers/gpu/drm/amd/display/dc/spl/
H A Dspl_os_types.h41 return div64_u64_rem(dividend, divisor, remainder); in spl_div64_u64_rem()
/linux/fs/xfs/libxfs/
H A Dxfs_btree_staging.c511 *blocks = div64_u64_rem(nr_this_level, desired_npb, &dontcare); in xfs_btree_bload_level_geometry()
522 npb = div64_u64_rem(nr_this_level, *blocks, blocks_with_extra); in xfs_btree_bload_level_geometry()
525 npb = div64_u64_rem(nr_this_level, *blocks, blocks_with_extra); in xfs_btree_bload_level_geometry()
/linux/kernel/time/
H A Dtimeconv.c108 century = div64_u64_rem(u64tmp, 146097, &u64tmp); in time64_to_tm()
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_random.c104 div64_u64_rem(addr, range, &addr); in igt_random_offset()
H A Dintel_memory_region.c280 div64_u64_rem(target, total, &target); in igt_mock_contiguous()
573 div64_u64_rem(i915_prandom_u64_state(&prng), SZ_8G, &total); in igt_mock_io_size()
577 div64_u64_rem(i915_prandom_u64_state(&prng), total - ps, &io_size); in igt_mock_io_size()
593 div64_u64_rem(i915_prandom_u64_state(&prng), rem, &size); in igt_mock_io_size()
632 div64_u64_rem(i915_prandom_u64_state(&prng), rem, &size); in igt_mock_io_size()
/linux/drivers/media/test-drivers/vidtv/
H A Dvidtv_ts.c29 div = div64_u64_rem(pcr, 300, &rem); in vidtv_ts_write_pcr_bits()
H A Dvidtv_pes.c192 div = div64_u64_rem(pcr, 300, &rem); in vidtv_pes_write_pcr_bits()
/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dbw_fixed.h129 div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value); in bw_mod()
/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dbw_fixed.c74 res_value = div64_u64_rem(arg1_value, arg2_value, &remainder); in bw_frc_to_fixed()
H A Dfixpt31_32.c56 result = div64_u64_rem(dividend, divisor, remainder); in complete_integer_division_u64()
/linux/include/drm/
H A Ddrm_fixed.h166 u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); in drm_fixp_from_fraction()
/linux/arch/parisc/net/
H A Dbpf_jit_core.c205 div64_u64_rem(div, divisor, &rem); in hppa_div64_rem()
/linux/drivers/gpu/drm/i915/
H A Di915_gem_gtt.c147 div64_u64_rem(addr, range, &addr); in random_offset()
/linux/net/ceph/
H A Dstriper.c270 div64_u64_rem(size, period, &remainder_bytes); in ceph_get_num_objects()
/linux/drivers/iio/pressure/
H A Ddps310.c692 pressure -= div64_u64_rem(-nums[i], denoms[i], &irem); in dps310_calculate_pressure()
695 pressure += div64_u64_rem(nums[i], denoms[i], &irem); in dps310_calculate_pressure()
/linux/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_phy_8998.c202 rvar1 = div64_u64_rem(rvar1, (cmp_cnt * core_clk), &rem); in pll_get_post_div()
208 rvar1 = div64_u64_rem(rvar1, (cmp_cnt * core_clk), &rem); in pll_get_post_div()
/linux/drivers/gpu/drm/tests/
H A Ddrm_mm_test.c99 div64_u64_rem(node->start, alignment, &rem); in misalignment()
/linux/drivers/clk/
H A Dclk-versaclock7.c342 qhat = div64_u64_rem(numhi, den1, &rhat); in vc7_128_div_64_to_64()
356 qhat = div64_u64_rem(rem, den1, &rhat); in vc7_128_div_64_to_64()
776 *div_int = (u32)div64_u64_rem(parent_rate, rate, &rem); in vc7_calc_fod_1st_stage()
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-pll.c208 rate = div64_u64_rem(dividend, factor, &dividend); in fpll_calc_rate()
/linux/sound/soc/sof/
H A Dcompress.c21 div64_u64_rem(sstream->copied_total, buffer_size, &prev_pos); in sof_set_transferred_bytes()

12