Home
last modified time | relevance | path

Searched refs:div_u64 (Results 201 – 225 of 418) sorted by relevance

12345678910>>...17

/openbmc/linux/include/net/
H A Dtcp.h796 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 Dptp.c216 diff = div_u64(adj, ptp_ops->cc_mult_dem); in mv88e6xxx_ptp_adjfine()
/openbmc/linux/drivers/video/backlight/
H A Dlp855x_bl.c234 state.duty_cycle = div_u64(br * state.period, max_br); in lp855x_pwm_ctrl()
H A Dpwm_bl.c592 pb->lth_brightness = data->lth_brightness * (div_u64(state.period, in pwm_backlight_probe()
/openbmc/linux/drivers/media/i2c/
H A Dar0521.c153 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 Den_dcbnl.c602 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 Ddummy.c428 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 Ddev-replace.c1042 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 Dio.c527 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 Dpage-writeback.c1144 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 Dmeson_vclk.c496 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 Dvirt_wifi.c141 u64 tsf = div_u64(ktime_get_boottime_ns(), 1000); in virt_wifi_inform_bss()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dptp.c350 adj = div_u64(adj, 1000000000ull); in ptp_adjfine()
/openbmc/linux/kernel/trace/
H A Dtrace_hwlat.c158 #define time_to_us(x) div_u64(x, 1000)
/openbmc/linux/drivers/interconnect/qcom/
H A Dicc-rpm.c314 agg_avg_rate = div_u64(qn->sum_avg[i], qn->channels); in qcom_icc_bus_aggregate()
/openbmc/linux/drivers/gpu/drm/pl111/
H A Dpl111_display.c65 bw = div_u64(bw, mode->htotal * mode->vtotal); in pl111_mode_valid()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c28 return div_u64(nbytes, BYTES_IN_MBIT); in mlx5e_qos_bytes2mbits()
/openbmc/linux/drivers/media/dvb-frontends/
H A Daf9013.c627 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 Drzn1_a5psw.c303 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 Di915_pmu.c662 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 Dcxgb4_tc_matchall.c198 p.u.params.maxrate = div_u64(entry->police.rate_bytes_ps * 8, 1000); in cxgb4_matchall_alloc_tc()
/openbmc/linux/block/
H A Dbfq-iosched.c3481 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 Dmei_csi.c43 #define CSI_LINK_FREQ(x) ((u32)(div_u64(x, 100 * HZ_PER_KHZ)))
/openbmc/linux/sound/soc/intel/atom/sst/
H A Dsst_drv_interface.c361 tstamp->pcm_io_frames = div_u64(fw_tstamp.hardware_counter, in sst_cdev_tstamp()
/openbmc/linux/sound/soc/codecs/
H A Dnau8540.c617 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()

12345678910>>...17