/openbmc/linux/include/net/ |
H A D | tcp.h | 796 return div_u64(tcp_clock_ns(), NSEC_PER_USEC); in tcp_clock_us() 802 return div_u64(tp->tcp_mstamp, USEC_PER_SEC / TCP_TS_HZ); in tcp_time_stamp() 808 return div_u64(ns, NSEC_PER_SEC / TCP_TS_HZ); in tcp_ns_to_ts() 832 return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC); in tcp_skb_timestamp_us()
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | ptp.c | 216 diff = div_u64(adj, ptp_ops->cc_mult_dem); in mv88e6xxx_ptp_adjfine()
|
/openbmc/linux/drivers/video/backlight/ |
H A D | lp855x_bl.c | 234 state.duty_cycle = div_u64(br * state.period, max_br); in lp855x_pwm_ctrl()
|
H A D | pwm_bl.c | 592 pb->lth_brightness = data->lth_brightness * (div_u64(state.period, in pwm_backlight_probe()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ar0521.c | 153 return div_u64(v + (d >> 1), d); in div64_round() 158 return div_u64(v + d - 1, d); in div64_round_up()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 602 max_bw_value[i] = div_u64(maxrate->tc_maxrate[i], in mlx5e_dcbnl_ieee_setmaxrate() 607 max_bw_value[i] = div_u64(maxrate->tc_maxrate[i], in mlx5e_dcbnl_ieee_setmaxrate()
|
/openbmc/linux/sound/drivers/ |
H A D | dummy.c | 428 delta = div_u64(delta * runtime->rate + 999999, 1000000); in dummy_hrtimer_pointer() 446 nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate); in dummy_hrtimer_prepare()
|
/openbmc/linux/fs/btrfs/ |
H A D | dev-replace.c | 1042 div_u64(btrfs_device_get_total_bytes( in btrfs_dev_replace_progress() 1242 progress = div_u64(progress, 10); in btrfs_dev_replace_kthread()
|
/openbmc/linux/fs/ubifs/ |
H A D | io.c | 527 div_u64(ktime_to_ns(softlimit), USEC_PER_SEC), in new_wbuf_timer_nolock() 528 div_u64(ktime_to_ns(softlimit) + delta, USEC_PER_SEC)); in new_wbuf_timer_nolock()
|
/openbmc/linux/mm/ |
H A D | page-writeback.c | 1144 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1); in wb_position_ratio() 1171 pos_ratio = div_u64(pos_ratio * x_intercept, in wb_position_ratio() 1345 balanced_dirty_ratelimit = div_u64((u64)task_ratelimit * write_bw, in wb_update_dirty_ratelimit()
|
/openbmc/u-boot/drivers/video/meson/ |
H A D | meson_vclk.c | 496 frac = div_u64((u64)pll_freq * (u64)frac_max, parent_freq); in meson_hdmi_pll_get_frac()
|
/openbmc/linux/drivers/net/wireless/virtual/ |
H A D | virt_wifi.c | 141 u64 tsf = div_u64(ktime_get_boottime_ns(), 1000); in virt_wifi_inform_bss()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | ptp.c | 350 adj = div_u64(adj, 1000000000ull); in ptp_adjfine()
|
/openbmc/linux/kernel/trace/ |
H A D | trace_hwlat.c | 158 #define time_to_us(x) div_u64(x, 1000)
|
/openbmc/linux/drivers/interconnect/qcom/ |
H A D | icc-rpm.c | 314 agg_avg_rate = div_u64(qn->sum_avg[i], qn->channels); in qcom_icc_bus_aggregate()
|
/openbmc/linux/drivers/gpu/drm/pl111/ |
H A D | pl111_display.c | 65 bw = div_u64(bw, mode->htotal * mode->vtotal); in pl111_mode_valid()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | qos.c | 28 return div_u64(nbytes, BYTES_IN_MBIT); in mlx5e_qos_bytes2mbits()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | af9013.c | 627 state->dvbv3_strength = div_u64((u64)utmp1 * 0xffff, 60000); in af9013_read_status() 883 utmp = div_u64((u64)state->clk * 0x80000, 1000000); in af9013_init()
|
/openbmc/linux/drivers/net/dsa/ |
H A D | rzn1_a5psw.c | 303 tmp = div_u64(rate, MSEC_PER_SEC); in a5psw_set_ageing_time() 304 agetime = div_u64(msecs * tmp, 1024 * A5PSW_TABLE_ENTRIES); in a5psw_set_ageing_time()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_pmu.c | 662 div_u64(read_sample(pmu, gt_id, in __i915_pmu_event_read() 668 div_u64(read_sample(pmu, gt_id, in __i915_pmu_event_read()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_matchall.c | 198 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
|
/openbmc/linux/block/ |
H A D | bfq-iosched.c | 3481 div_u64(bfqd->delta_from_first, NSEC_PER_USEC)); in bfq_update_rate_reset() 3524 div_u64(weight * bfqd->delta_from_first, in bfq_update_rate_reset() 5910 ttime->ttime_total = div_u64(7*ttime->ttime_total + 256*elapsed, 8); in bfq_update_io_thinktime() 6381 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request() 7407 __data = div_u64(__data, NSEC_PER_MSEC); \ 7426 __data = div_u64(__data, NSEC_PER_USEC); \
|
/openbmc/linux/drivers/media/pci/intel/ivsc/ |
H A D | mei_csi.c | 43 #define CSI_LINK_FREQ(x) ((u32)(div_u64(x, 100 * HZ_PER_KHZ)))
|
/openbmc/linux/sound/soc/intel/atom/sst/ |
H A D | sst_drv_interface.c | 361 tstamp->pcm_io_frames = div_u64(fw_tstamp.hardware_counter, in sst_cdev_tstamp()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | nau8540.c | 617 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()
|