Home
last modified time | relevance | path

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

12

/linux-6.6.21/include/linux/
Dmath64.h151 #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/
Dmath64.h30 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/
Ddiv64.h63 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/
Di915_fixed.h79 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()
Di915_pmu.c208 pmu->sample[gt_id][sample].cur += mul_u32_u32(val, mul); in add_sample_mult()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Di915_random.h49 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/
Dmax5970-regulator.c160 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/
Dintel_audio.c551 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()
Dintel_vblank.c166 return div_u64(mul_u32_u32(scan_curr_time - scan_prev_time, in intel_crtc_scanlines_since_frame_timestamp()
Dintel_fb.c1120 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()
Dintel_sprite.c575 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()
Dintel_dpll.c360 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()
Dintel_atomic_plane.c159 return DIV_ROUND_UP_ULL(mul_u32_u32(rate, src_w * src_h), in intel_adjusted_rate()
/linux-6.6.21/drivers/acpi/
Dacpi_lpit.c108 lpit_native->counter_frequency : mul_u32_u32(tsc_khz, 1000U); in lpit_update_residency()
/linux-6.6.21/drivers/net/can/dev/
Dbittiming.c107 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/
Dintel_gt_clock_utils.c189 div_u64(mul_u32_u32(gt->clock_period_ns, S32_MAX), in intel_gt_init_clock_frequency()
Dintel_region_lmem.c250 mul_u32_u32(i915->params.lmem_size, SZ_1M)); in setup_lmem()
Dselftest_engine_cs.c124 sum = mul_u32_u32(a[2], 2); in trifilter()
Dselftest_migrate.c880 div64_u64(mul_u32_u32(4 * sz, in __perf_clear_blt()
963 div64_u64(mul_u32_u32(4 * sz, in __perf_copy_blt()
Dintel_migrate.c283 return upper_32_bits(mul_u32_u32(get_random_u32(), max)); in random_index()
/linux-6.6.21/lib/
Ddhry_1.c289 return div_u64(mul_u32_u32(MSEC_PER_SEC, Number_Of_Runs), User_Time); in dhry()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_rect.c65 tmp = mul_u32_u32(src, dst - *clip); in clip_scaled()
/linux-6.6.21/drivers/iio/light/
Dvcnl4000.c591 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/
Di915_gem_create.c203 args->size = mul_u32_u32(args->pitch, args->height); in i915_gem_dumb_create()
/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Dhandlers.c590 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()

12