/linux/arch/x86/include/asm/ |
H A D | div64.h | 43 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() function 61 #define div_u64_rem div_u64_rem macro
|
/linux/net/ceph/ |
H A D | striper.c | 37 blockno = div_u64_rem(off, l->stripe_unit, &blockoff); in ceph_calc_file_object_mapping() 38 stripeno = div_u64_rem(blockno, l->stripe_count, &stripepos); in ceph_calc_file_object_mapping() 39 objsetno = div_u64_rem(stripeno, stripes_per_object, &objsetpos); in ceph_calc_file_object_mapping() 238 div_u64_rem(objoff, l->stripe_unit, &blockoff); in ceph_extent_to_file() 242 objsetno = div_u64_rem(objno, l->stripe_count, &stripepos); in ceph_extent_to_file()
|
/linux/include/linux/ |
H A D | math64.h | 26 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() function 89 #ifndef div_u64_rem 90 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() function 130 return div_u64_rem(dividend, divisor, &remainder); in div_u64()
|
/linux/drivers/ptp/ |
H A D | ptp_dfl_tod.c | 115 seconds = div_u64_rem(now, NSEC_PER_SEC, &nanosec); in coarse_adjust_tod_clock() 140 tod_period = div_u64_rem(ppb << PERIOD_FRAC_OFFSET, rate, &tod_rem); in dfl_tod_adjust_fine() 198 count = div_u64_rem(delta, diff, &rem); in dfl_tod_adjust_time() 203 count = div_u64_rem(delta, diff, &rem); in dfl_tod_adjust_time()
|
H A D | ptp_fc3.c | 44 sync = div_u64_rem(nsec, idtfc3->ns_per_sync, &rem); in ns2counters() 47 sync = -div_u64_rem(-nsec - 1, idtfc3->ns_per_sync, &rem) - 1; in ns2counters()
|
/linux/lib/math/ |
H A D | div64.c | 73 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 78 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 106 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
|
/linux/net/xdp/ |
H A D | xdp_umem.c | 192 npgs = div_u64_rem(size, PAGE_SIZE, &npgs_rem); in xdp_umem_reg() 198 chunks = div_u64_rem(size, chunk_size, &chunks_rem); in xdp_umem_reg()
|
/linux/fs/proc/ |
H A D | uptime.c | 31 idle.tv_sec = div_u64_rem(idle_nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
|
/linux/drivers/gpu/drm/amd/display/dc/spl/ |
H A D | spl_os_types.h | 26 return div_u64_rem(dividend, divisor, remainder); in spl_div_u64_rem()
|
/linux/kernel/bpf/ |
H A D | log.c | 110 div_u64_rem(cur_pos, log->len_total, &buf_start); in bpf_verifier_vlog() 111 div_u64_rem(new_end, log->len_total, &buf_end); in bpf_verifier_vlog() 174 div_u64_rem(new_pos, log->len_total, &pos); in bpf_vlog_reset() 274 div_u64_rem(log->start_pos, log->len_total, &sublen); in bpf_vlog_finalize()
|
/linux/drivers/mtd/ubi/ |
H A D | upd.c | 89 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker() 276 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data()
|
H A D | gluebi.c | 160 lnum = div_u64_rem(from, mtd->erasesize, &offs); in gluebi_read() 200 lnum = div_u64_rem(to, mtd->erasesize, &offs); in gluebi_write()
|
/linux/drivers/iio/frequency/ |
H A D | admv4420.c | 165 *val = div_u64_rem(st->lo_freq_hz, MICRO, val2); in admv4420_read_raw() 248 st->n_counter.int_val = div_u64_rem(st->n_counter.n_counter, 10, &st->n_counter.frac_val); in admv4420_calc_parameters()
|
/linux/fs/bcachefs/ |
H A D | buckets.h | 29 div_u64_rem(s, ca->mi.bucket_size, &remainder); in bucket_remainder() 35 return div_u64_rem(s, ca->mi.bucket_size, offset); in sector_to_bucket_and_offset()
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 28 div_u64_rem(tsf, divisor, &offset); in ath9k_get_next_tbtt()
|
/linux/sound/soc/sof/ |
H A D | compress.c | 312 div_u64_rem(rtd->total_bytes_available, rtd->buffer_size, &offset); in sof_compr_copy_playback() 333 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in sof_compr_copy_capture()
|
/linux/net/netfilter/ |
H A D | xt_time.c | 85 div_u64_rem(time, SECONDS_PER_DAY, &v); in localtime_1()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_guc_hwconfig.c | 121 num_dw = div_u64_rem(size, sizeof(u32), &extra_bytes); in xe_guc_hwconfig_dump()
|
/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-cpld.c | 248 div_u64_rem((dco << 28) + f_xtal / 2, f_xtal, &d); in cobalt_cpld_set_freq()
|
/linux/drivers/nvdimm/ |
H A D | badrange.c | 193 end_sector = div_u64_rem(ns_offset + len, sector_size, &rem); in __add_badblock_range()
|
/linux/drivers/edac/ |
H A D | sb_edac.c | 1784 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 1792 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 1816 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 1853 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 1878 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 1903 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 1917 gb = div_u64_rem(tmp_mb, 1024, &mb); in get_memory_layout() 2313 gb = div_u64_rem(limit >> 20, 1024, &mb); in get_memory_error_data()
|
/linux/drivers/mtd/devices/ |
H A D | mtd_dataflash.c | 167 div_u64_rem(instr->len, priv->page_size, &rem); in dataflash_erase() 170 div_u64_rem(instr->addr, priv->page_size, &rem); in dataflash_erase()
|
H A D | phram.c | 316 div_u64_rem(len, (uint32_t)erasesize, &rem); in phram_setup()
|
/linux/sound/soc/intel/avs/ |
H A D | probes.c | 239 div_u64_rem(rtd->total_bytes_transferred, rtd->buffer_size, &offset); in avs_probe_compr_copy()
|
/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 1254 unsigned_seconds += div_u64_rem(time_step_ns, 1000000000LL, in lan743x_ptp_clock_step() 1275 unsigned_seconds -= div_u64_rem(time_step_ns, 1000000000LL, in lan743x_ptp_clock_step() 1291 seconds = (s32)div_u64_rem(abs_time_step_ns, 1000000000, in lan743x_ptp_clock_step() 1296 seconds = -((s32)div_u64_rem(abs_time_step_ns, 1000000000, in lan743x_ptp_clock_step()
|