Searched refs:DIV64_U64_ROUND_CLOSEST (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/hwmon/ |
| H A D | ltc4282.c | 504 *val = DIV64_U64_ROUND_CLOSEST(temp * MICRO, in ltc4282_read_power_word() 509 *val = DIV64_U64_ROUND_CLOSEST(temp_2, in ltc4282_read_power_word() 527 *val = DIV64_U64_ROUND_CLOSEST(temp * MICRO, in ltc4282_read_power_byte() 562 *val = DIV64_U64_ROUND_CLOSEST(temp, U16_MAX * (u64)st->rsense); in ltc4282_read_energy() 626 power = DIV64_U64_ROUND_CLOSEST(temp, in ltc4282_write_power_byte() 641 code = DIV64_U64_ROUND_CLOSEST(temp * val, in ltc4282_write_power_word() 645 code = DIV64_U64_ROUND_CLOSEST(temp_2, temp); in ltc4282_write_power_word()
|
| /linux/fs/ceph/ |
| H A D | debugfs.c | 134 _sq = _total > 0 ? DIV64_U64_ROUND_CLOSEST(sq, _total) : 0; \ 217 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metrics_size_show()
|
| /linux/include/linux/ |
| H A D | math64.h | 380 #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ macro
|
| /linux/drivers/clk/sophgo/ |
| H A D | clk-cv18xx-pll.c | 215 rate += DIV64_U64_ROUND_CLOSEST(dividend, factor); in fpll_calc_rate()
|
| /linux/drivers/clk/renesas/ |
| H A D | rcar-gen3-cpg.c | 221 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
|
| H A D | rcar-gen4-cpg.c | 326 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
|
| /linux/drivers/iio/dac/ |
| H A D | adi-axi-dac.c | 318 raw = DIV64_U64_ROUND_CLOSEST((u64)freq * BIT(16), sample_rate); in __axi_dac_frequency_set()
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | xilinx_axienet_main.c | 258 timer = DIV64_U64_ROUND_CLOSEST((u64)usec * clk_rate, in axienet_calc_cr() 283 *usec = DIV64_U64_ROUND_CLOSEST(timer * XAXIDMA_DELAY_SCALE, clk_rate); in axienet_coalesce_params()
|