Home
last modified time | relevance | path

Searched refs:div_u64 (Results 126 – 150 of 403) sorted by relevance

12345678910>>...17

/openbmc/linux/drivers/ptp/
H A Dptp_qoriq.c84 ns = div_u64(ns, 1000000000UL) * 1000000000ULL; in set_alarm()
462 max_adj = div_u64(max_adj, nominal_freq) - 1; in ptp_qoriq_auto_config()
/openbmc/linux/kernel/
H A Dtaskstats.c256 stats->ac_utime += div_u64(utime, NSEC_PER_USEC); in fill_stats_for_tgid()
257 stats->ac_stime += div_u64(stime, NSEC_PER_USEC); in fill_stats_for_tgid()
/openbmc/linux/drivers/media/dvb-frontends/
H A Drtl2832.c225 pset_iffreq = div_u64(pset_iffreq, dev->pdata->clk); in rtl2832_set_if()
490 num = div_u64(num, bw_mode); in rtl2832_set_frontend()
502 num = div_u64(num, num2); in rtl2832_set_frontend()
H A Dcxd2820r_c.c218 cnr = div_u64((u64)(intlog2(const_b) - intlog2(utmp)) in cxd2820r_read_status_c()
/openbmc/linux/net/ipv4/
H A Dtcp_bbr.c445 interval_us = div_u64(edt_ns - now_ns, NSEC_PER_USEC); in bbr_packets_in_net_at_edt()
639 bbr->lt_last_stamp = div_u64(tp->delivered_mstamp, USEC_PER_MSEC); in bbr_reset_lt_bw_sampling_interval()
745 t = div_u64(tp->delivered_mstamp, USEC_PER_MSEC) - bbr->lt_last_stamp; in bbr_lt_bw_sampling()
/openbmc/linux/net/ceph/
H A Dstriper.c243 stripeno = div_u64(objoff, l->stripe_unit) + in ceph_extent_to_file()
/openbmc/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.c125 adj = div_u64(adj, 1000000ull); in cavium_ptp_adjfine()
/openbmc/linux/drivers/phy/mediatek/
H A Dphy-mtk-mipi-dsi-mt8173.c196 pcw = div_u64(((u64)mipi_tx->data_rate * 2 * txdiv) << 24, 26000000); in mtk_mipi_tx_pll_prepare()
/openbmc/linux/drivers/leds/rgb/
H A Dleds-qcom-lpg.c634 duty = div_u64(brightness * chan->period, cdev->max_brightness); in lpg_brightness_set()
724 duty = div_u64(chan->pwm_value * chan->period, LPG_RESOLUTION_9BIT); in lpg_blink_set()
725 *delay_on = div_u64(duty, NSEC_PER_MSEC); in lpg_blink_set()
726 *delay_off = div_u64(chan->period - duty, NSEC_PER_MSEC); in lpg_blink_set()
/openbmc/linux/mm/
H A Dvmstat.c1107 …return 1000 - div_u64( (1000+(div_u64(info->free_pages * 1000ULL, requested))), info->free_blocks_… in __fragmentation_index()
1123 return div_u64((info.free_pages - in extfrag_for_order()
2165 …return div_u64((info->free_pages - (info->free_blocks_suitable << order)) * 1000ULL, info->free_pa… in unusable_free_index()
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_debugfs.c1413 div_u64(phba->ktime_seg1_total, in lpfc_debugfs_ioktime_data()
1424 div_u64(phba->ktime_seg2_total, in lpfc_debugfs_ioktime_data()
1435 div_u64(phba->ktime_seg3_total, in lpfc_debugfs_ioktime_data()
1446 div_u64(phba->ktime_seg4_total, in lpfc_debugfs_ioktime_data()
1475 div_u64(phba->ktime_seg1_total, in lpfc_debugfs_ioktime_data()
1484 div_u64(phba->ktime_seg2_total, in lpfc_debugfs_ioktime_data()
1493 div_u64(phba->ktime_seg3_total, in lpfc_debugfs_ioktime_data()
1502 div_u64(phba->ktime_seg4_total, in lpfc_debugfs_ioktime_data()
1511 div_u64(phba->ktime_seg5_total, in lpfc_debugfs_ioktime_data()
1535 div_u64(phba->ktime_seg6_total, in lpfc_debugfs_ioktime_data()
[all …]
/openbmc/linux/arch/x86/kernel/cpu/
H A Daperfmperf.c279 turbo_ratio = div_u64(turbo_freq * SCHED_CAPACITY_SCALE, base_freq); in intel_set_max_freq_ratio()
/openbmc/linux/fs/f2fs/
H A Dgc.c348 mtime = div_u64(mtime, usable_segs_per_sec); in get_cb_cost()
349 vblocks = div_u64(vblocks, usable_segs_per_sec); in get_cb_cost()
501 mtime = div_u64(mtime, SEGS_PER_SEC(sbi)); in add_victim_entry()
548 accu = min_t(unsigned long long, div_u64(accu, 100), in atgc_lookup_victim()
2114 div_u64(blks, sbi->blocks_per_blkz); in update_fs_metadata()
2164 secs = div_u64(shrunk_blocks, BLKS_PER_SEC(sbi)); in f2fs_resize_fs()
/openbmc/linux/kernel/time/
H A Dntp.c270 tick_nsec = div_u64(second_length, HZ) >> NTP_SCALE_SHIFT; in ntp_update_frequency()
271 new_base = div_u64(second_length, NTP_INTERVAL_FREQ); in ntp_update_frequency()
/openbmc/linux/drivers/rtc/
H A Drtc-sun6i.c539 counter_val = div_u64(rtc_tm_to_time64(alrm_tm), SECS_PER_DAY); in sun6i_rtc_setalarm()
609 date = div_u64(rtc_tm_to_time64(rtc_tm), SECS_PER_DAY); in sun6i_rtc_settime()
/openbmc/linux/sound/soc/codecs/
H A Dnau8810.c539 f2 = div_u64(f2, 10); in nau8810_calc_pll()
554 pll_ratio = div_u64(f2 << 28, pll_in); in nau8810_calc_pll()
/openbmc/linux/drivers/phy/rockchip/
H A Dphy-rockchip-inno-dsidphy.c415 t_txbyteclkhs = div_u64(PSEC_PER_SEC, txbyteclkhs); in inno_dsidphy_mipi_mode_enable()
419 t_txclkesc = div_u64(PSEC_PER_SEC, txclkesc); in inno_dsidphy_mipi_mode_enable()
/openbmc/linux/drivers/iio/frequency/
H A Dadf4377.c522 *freq = div_u64(clkin_freq, ref_div_factor) * n_int; in adf4377_get_freq()
624 st->n_int = div_u64(freq, st->f_pfd); in adf4377_set_freq()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_stream.c315 refresh_rate = div_u64(refresh_rate, stream->timing.v_total); in is_subvp_high_refresh_candidate()
316 refresh_rate = div_u64(refresh_rate, stream->timing.h_total); in is_subvp_high_refresh_candidate()
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dfec_ptp.c381 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfine()
561 fep->reload_period = div_u64(period_ns, 2); in fec_ptp_enable()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c127 busy += div_u64(max_busy[i], 1 << i); in rps_timer()
341 result = div_u64(div_u64(ips->m * delta, dt) + ips->c, 10); in __ips_chipset_val()
410 ips->gfx_power = div_u64(delta * 1181, dt * 10); in __gen5_ips_update()
1503 corr = div_u64(corr * 150142 * state1, 10000) - 78642; in __ips_gfx_val()
1504 corr2 = div_u64(corr, 100000) * ips->corr; in __ips_gfx_val()
1506 state2 = div_u64(corr2 * state1, 10000); in __ips_gfx_val()
/openbmc/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c292 div_u64((interval * runtime->rate), 1000000000); in snd_bcm2835_pcm_pointer()
/openbmc/linux/drivers/gpu/drm/v3d/
H A Dv3d_drv.h344 div_u64(n, NSEC_PER_SEC) >= MAX_JIFFY_OFFSET / HZ) in nsecs_to_jiffies_timeout()
/openbmc/linux/drivers/media/pci/cobalt/
H A Dcobalt-v4l2.c155 clk = div_u64(clk * 1000ULL, 1001); in cobalt_enable_output()
312 iowrite32(div_u64((u64)V4L2_DV_BT_FRAME_WIDTH(bt) * COBALT_CLK * 4, in cobalt_start_streaming()
319 iowrite32(div_u64(bt->pixelclock * 995, 1000000000), in cobalt_start_streaming()
323 iowrite32(div_u64((u64)clk_freq * tot_size, bt->pixelclock), in cobalt_start_streaming()
/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_video.c751 y = div_u64(y, x2 - x1); in uvc_video_clock_update()
758 y >> 16, div_u64((y & 0xffff) * 1000000, 65536), in uvc_video_clock_update()
759 sof >> 16, div_u64(((u64)sof & 0xffff) * 1000000LLU, 65536), in uvc_video_clock_update()
787 y = div_u64(y, x2 - x1); in uvc_video_clock_update()
794 sof >> 16, div_u64(((u64)sof & 0xffff) * 1000000LLU, 65536), in uvc_video_clock_update()

12345678910>>...17