Home
last modified time | relevance | path

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

123

/linux-6.12.1/fs/bcachefs/
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-6.12.1/lib/math/
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-6.12.1/include/linux/
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-6.12.1/drivers/gpu/drm/i915/gem/selftests/
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()
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-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Dspl_os_types.h40 return div64_u64_rem(dividend, divisor, remainder); in spl_div64_u64_rem()
/linux-6.12.1/kernel/time/
Dtimeconv.c108 century = div64_u64_rem(u64tmp, 146097, &u64tmp); in time64_to_tm()
/linux-6.12.1/fs/xfs/libxfs/
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-6.12.1/drivers/gpu/drm/i915/selftests/
Di915_random.c104 div64_u64_rem(addr, range, &addr); in igt_random_offset()
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-6.12.1/drivers/media/test-drivers/vidtv/
Dvidtv_ts.c29 div = div64_u64_rem(pcr, 300, &rem); in vidtv_ts_write_pcr_bits()
Dvidtv_pes.c192 div = div64_u64_rem(pcr, 300, &rem); in vidtv_pes_write_pcr_bits()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/inc/
Dbw_fixed.h129 div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value); in bw_mod()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dbw_fixed.c74 res_value = div64_u64_rem(arg1_value, arg2_value, &remainder); in bw_frc_to_fixed()
Dfixpt31_32.c56 result = div64_u64_rem(dividend, divisor, remainder); in complete_integer_division_u64()
/linux-6.12.1/include/drm/
Ddrm_fixed.h166 u64 res_abs = div64_u64_rem(a_abs, b_abs, &rem); in drm_fixp_from_fraction()
/linux-6.12.1/arch/parisc/net/
Dbpf_jit_core.c205 div64_u64_rem(div, divisor, &rem); in hppa_div64_rem()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_gem_gtt.c147 div64_u64_rem(addr, range, &addr); in random_offset()
/linux-6.12.1/net/ceph/
Dstriper.c270 div64_u64_rem(size, period, &remainder_bytes); in ceph_get_num_objects()
/linux-6.12.1/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8998.c203 rvar1 = div64_u64_rem(rvar1, (cmp_cnt * core_clk), &rem); in pll_get_post_div()
209 rvar1 = div64_u64_rem(rvar1, (cmp_cnt * core_clk), &rem); in pll_get_post_div()
/linux-6.12.1/drivers/iio/pressure/
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-6.12.1/drivers/gpu/drm/tests/
Ddrm_mm_test.c99 div64_u64_rem(node->start, alignment, &rem); in misalignment()
/linux-6.12.1/drivers/clk/
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-6.12.1/drivers/gpu/drm/
Ddrm_mm.c574 div64_u64_rem(adj_start, alignment, &rem); in drm_mm_insert_node_in_range()
791 div64_u64_rem(adj_start, scan->alignment, &rem); in drm_mm_scan_add_block()
/linux-6.12.1/sound/soc/sof/
Dipc4-pcm.c1045 div64_u64_rem(dai_cnt, time_info->boundary, &dai_cnt); in sof_ipc4_pcm_pointer()
1067 div64_u64_rem(host_ptr, snd_pcm_lib_buffer_bytes(substream), &host_ptr); in sof_ipc4_pcm_pointer()

123