/openbmc/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
|
/openbmc/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()
|
/openbmc/u-boot/lib/ |
H A D | div64.c | 69 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 74 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 102 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
|
H A D | image-sparse.c | 99 div_u64_rem(sparse_header->blk_sz, info->blksz, &offset); in write_sparse_image()
|
/openbmc/u-boot/include/linux/ |
H A D | math64.h | 19 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() function 64 #ifndef div_u64_rem 65 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() function 101 return div_u64_rem(dividend, divisor, &remainder); in div_u64()
|
/openbmc/linux/lib/math/ |
H A D | div64.c | 72 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 77 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 105 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_iomap.h | 39 div_u64_rem(offset_fsb, extsz, &align); in xfs_aligned_fsb_count() 42 div_u64_rem(count_fsb, extsz, &align); in xfs_aligned_fsb_count()
|
/openbmc/linux/kernel/bpf/ |
H A D | log.c | 107 div_u64_rem(cur_pos, log->len_total, &buf_start); in bpf_verifier_vlog() 108 div_u64_rem(new_end, log->len_total, &buf_end); in bpf_verifier_vlog() 171 div_u64_rem(new_pos, log->len_total, &pos); in bpf_vlog_reset() 271 div_u64_rem(log->start_pos, log->len_total, &sublen); in bpf_vlog_finalize()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mmc_write.c | 97 err = div_u64_rem(start, mmc->erase_grp_size, &start_rem); in mmc_berase() 98 err = div_u64_rem(blkcnt, mmc->erase_grp_size, &blkcnt_rem); in mmc_berase()
|
/openbmc/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()
|
/openbmc/linux/net/xdp/ |
H A D | xdp_umem.c | 186 npgs = div_u64_rem(size, PAGE_SIZE, &npgs_rem); in xdp_umem_reg() 192 chunks = div_u64_rem(size, chunk_size, &chunks_rem); in xdp_umem_reg()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | rtc-lib.c | 43 days = div_u64_rem(time, 86400, &secs); in rtc_to_tm()
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | upd.c | 95 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker() 287 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/kernel/time/ |
H A D | time.c | 529 ts.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64() 537 ts.tv_sec = -div_u64_rem(-nsec - 1, NSEC_PER_SEC, &rem) - 1; in ns_to_timespec64() 646 value->tv_sec = div_u64_rem((u64)jiffies * TICK_NSEC, in jiffies_to_timespec64()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 28 div_u64_rem(tsf, divisor, &offset); in ath9k_get_next_tbtt()
|
/openbmc/u-boot/drivers/mtd/spi/ |
H A D | sf_dataflash.c | 136 div_u64_rem(len, spi_flash->page_size, &rem); in spi_dataflash_erase() 142 div_u64_rem(offset, spi_flash->page_size, &rem); in spi_dataflash_erase()
|
/openbmc/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()
|
/openbmc/linux/net/netfilter/ |
H A D | xt_time.c | 85 div_u64_rem(time, SECONDS_PER_DAY, &v); in localtime_1()
|
/openbmc/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()
|
/openbmc/linux/drivers/nvdimm/ |
H A D | badrange.c | 193 end_sector = div_u64_rem(ns_offset + len, sector_size, &rem); in __add_badblock_range()
|