/linux/fs/bcachefs/ |
H A D | mean_and_variance.c | 56 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 D | div64.c | 98 #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 D | math64.h | 54 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 D | i915_gem_client_blt.c | 359 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 D | i915_gem_mman.c | 51 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 D | spl_os_types.h | 41 return div64_u64_rem(dividend, divisor, remainder); in spl_div64_u64_rem()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_btree_staging.c | 511 *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 D | timeconv.c | 108 century = div64_u64_rem(u64tmp, 146097, &u64tmp); in time64_to_tm()
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_random.c | 104 div64_u64_rem(addr, range, &addr); in igt_random_offset()
|
H A D | intel_memory_region.c | 280 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 D | vidtv_ts.c | 29 div = div64_u64_rem(pcr, 300, &rem); in vidtv_ts_write_pcr_bits()
|
H A D | vidtv_pes.c | 192 div = div64_u64_rem(pcr, 300, &rem); in vidtv_pes_write_pcr_bits()
|
/linux/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | bw_fixed.h | 129 div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value); in bw_mod()
|
/linux/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | bw_fixed.c | 74 res_value = div64_u64_rem(arg1_value, arg2_value, &remainder); in bw_frc_to_fixed()
|
H A D | fixpt31_32.c | 56 result = div64_u64_rem(dividend, divisor, remainder); in complete_integer_division_u64()
|
/linux/include/drm/ |
H A D | drm_fixed.h | 166 u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); in drm_fixp_from_fraction()
|
/linux/arch/parisc/net/ |
H A D | bpf_jit_core.c | 205 div64_u64_rem(div, divisor, &rem); in hppa_div64_rem()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 147 div64_u64_rem(addr, range, &addr); in random_offset()
|
/linux/net/ceph/ |
H A D | striper.c | 270 div64_u64_rem(size, period, &remainder_bytes); in ceph_get_num_objects()
|
/linux/drivers/iio/pressure/ |
H A D | dps310.c | 692 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 D | hdmi_phy_8998.c | 202 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 D | drm_mm_test.c | 99 div64_u64_rem(node->start, alignment, &rem); in misalignment()
|
/linux/drivers/clk/ |
H A D | clk-versaclock7.c | 342 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 D | clk-cv18xx-pll.c | 208 rate = div64_u64_rem(dividend, factor, ÷nd); in fpll_calc_rate()
|
/linux/sound/soc/sof/ |
H A D | compress.c | 21 div64_u64_rem(sstream->copied_total, buffer_size, &prev_pos); in sof_set_transferred_bytes()
|