/linux-6.6.21/include/linux/ |
D | math64.h | 151 #ifndef mul_u32_u32 155 static inline u64 mul_u32_u32(u32 a, u32 b) in mul_u32_u32() function 188 ret = mul_u32_u32(al, mul) >> shift; in mul_u64_u32_shr() 190 ret += mul_u32_u32(ah, mul) << (32 - shift); in mul_u64_u32_shr() 214 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); in mul_u64_u64_shr() 215 rm.ll = mul_u32_u32(a0.l.low, b0.l.high); in mul_u64_u64_shr() 216 rn.ll = mul_u32_u32(a0.l.high, b0.l.low); in mul_u64_u64_shr() 217 rh.ll = mul_u32_u32(a0.l.high, b0.l.high); in mul_u64_u64_shr() 275 rl.ll = mul_u32_u32(u.l.low, mul); in mul_u64_u32_div() 276 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div()
|
/linux-6.6.21/tools/include/linux/ |
D | math64.h | 30 static inline u64 mul_u32_u32(u32 a, u32 b) in mul_u32_u32() function 40 static inline u64 mul_u32_u32(u32 a, u32 b) in mul_u32_u32() function 54 ret = mul_u32_u32(al, b) >> shift; in mul_u64_u32_shr() 56 ret += mul_u32_u32(ah, b) << (32 - shift); in mul_u64_u32_shr()
|
/linux-6.6.21/arch/x86/include/asm/ |
D | div64.h | 63 static inline u64 mul_u32_u32(u32 a, u32 b) in mul_u32_u32() function 72 #define mul_u32_u32 mul_u32_u32 macro
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_fixed.h | 79 tmp = mul_u32_u32(val, mul.val); in mul_round_up_u32_fixed16() 91 tmp = mul_u32_u32(val.val, mul.val); in mul_fixed16() 122 tmp = mul_u32_u32(val, mul.val); in mul_u32_fixed16()
|
D | i915_pmu.c | 208 pmu->sample[gt_id][sample].cur += mul_u32_u32(val, mul); in add_sample_mult()
|
/linux-6.6.21/drivers/gpu/drm/i915/selftests/ |
D | i915_random.h | 49 return upper_32_bits(mul_u32_u32(prandom_u32_state(state), ep_ro)); in i915_prandom_u32_max_state()
|
/linux-6.6.21/drivers/regulator/ |
D | max5970-regulator.c | 160 div_u64(mul_u32_u32(data->shunt_micro_ohms, data->lim_uA), in max597x_set_ocp() 167 vthst = div_u64(mul_u32_u32(vthst, 120), 100); in max597x_set_ocp() 177 val = div_u64(mul_u32_u32(0xFF, vthfst), data->irng); in max597x_set_ocp()
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_audio.c | 551 hblank_delta = DIV64_U64_ROUND_UP(mul_u32_u32(5 * (link_clk + cdclk), pixel_clk), in calc_hblank_early_prog() 552 mul_u32_u32(link_clk, cdclk)); in calc_hblank_early_prog() 554 tu_data = div64_u64(mul_u32_u32(pixel_clk * vdsc_bpp * 8, 1000000), in calc_hblank_early_prog() 555 mul_u32_u32(link_clk * lanes, fec_coeff)); in calc_hblank_early_prog() 556 tu_line = div64_u64(h_active * mul_u32_u32(link_clk, fec_coeff), in calc_hblank_early_prog() 557 mul_u32_u32(64 * pixel_clk, 1000000)); in calc_hblank_early_prog()
|
D | intel_vblank.c | 166 return div_u64(mul_u32_u32(scan_curr_time - scan_prev_time, in intel_crtc_scanlines_since_frame_timestamp()
|
D | intel_fb.c | 1120 if (add_overflows_t(u32, mul_u32_u32(height, fb->pitches[color_plane]), in intel_fb_offset_to_xy() 1669 if (mul_u32_u32(max_size, tile_size) > obj->base.size) { in intel_fill_fb_info() 1672 mul_u32_u32(max_size, tile_size), obj->base.size); in intel_fill_fb_info()
|
D | intel_sprite.c | 575 return DIV_ROUND_UP_ULL(mul_u32_u32(pixel_rate, num * src_w), in ivb_sprite_min_cdclk() 930 return DIV_ROUND_UP_ULL(mul_u32_u32(pixel_rate, 10 * hscale), in g4x_sprite_min_cdclk()
|
D | intel_dpll.c | 360 clock->vco = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, clock->m), in chv_calc_dpll_params() 739 m2 = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(target, clock.p * clock.n) << 22, in chv_find_best_dpll()
|
D | intel_atomic_plane.c | 159 return DIV_ROUND_UP_ULL(mul_u32_u32(rate, src_w * src_h), in intel_adjusted_rate()
|
/linux-6.6.21/drivers/acpi/ |
D | acpi_lpit.c | 108 lpit_native->counter_frequency : mul_u32_u32(tsc_khz, 1000U); in lpit_update_residency()
|
/linux-6.6.21/drivers/net/can/dev/ |
D | bittiming.c | 107 bt->tq = DIV_U64_ROUND_CLOSEST(mul_u32_u32(bt->brp, NSEC_PER_SEC), in can_fixup_bittiming()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_gt_clock_utils.c | 189 div_u64(mul_u32_u32(gt->clock_period_ns, S32_MAX), in intel_gt_init_clock_frequency()
|
D | intel_region_lmem.c | 250 mul_u32_u32(i915->params.lmem_size, SZ_1M)); in setup_lmem()
|
D | selftest_engine_cs.c | 124 sum = mul_u32_u32(a[2], 2); in trifilter()
|
D | selftest_migrate.c | 880 div64_u64(mul_u32_u32(4 * sz, in __perf_clear_blt() 963 div64_u64(mul_u32_u32(4 * sz, in __perf_copy_blt()
|
D | intel_migrate.c | 283 return upper_32_bits(mul_u32_u32(get_random_u32(), max)); in random_index()
|
/linux-6.6.21/lib/ |
D | dhry_1.c | 289 return div_u64(mul_u32_u32(MSEC_PER_SEC, Number_Of_Runs), User_Time); in dhry()
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_rect.c | 65 tmp = mul_u32_u32(src, dst - *clip); in clip_scaled()
|
/linux-6.6.21/drivers/iio/light/ |
D | vcnl4000.c | 591 data->al_scale = div_u64(mul_u32_u32(data->chip_spec->ulux_step, in vcnl4040_write_als_it() 682 val_c = mul_u32_u32((*data->chip_spec->als_it_times)[it][1], in vcnl4040_read_als_period() 694 u64 val_n = mul_u32_u32(val, MICRO) + val2; in vcnl4040_write_als_period() 705 if (val_n < mul_u32_u32(vcnl4040_als_persistence[i], in vcnl4040_write_als_period()
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_create.c | 203 args->size = mul_u32_u32(args->pitch, args->height); in i915_gem_dumb_create()
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | handlers.c | 590 clock.vco = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, clock.m), clock.n << 22); in bxt_vgpu_get_dp_bitrate() 683 pixel_clk = div_u64(mul_u32_u32(link_m, dp_br), link_n); in vgpu_update_refresh_rate() 687 …new_rate = DIV64_U64_ROUND_CLOSEST(mul_u64_u32_shr(pixel_clk, MSEC_PER_SEC, 0), mul_u32_u32(htotal… in vgpu_update_refresh_rate()
|