/linux-6.6.21/lib/math/ |
D | div64.c | 66 #ifndef div_s64_rem 67 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() function 83 EXPORT_SYMBOL(div_s64_rem);
|
/linux-6.6.21/include/linux/ |
D | math64.h | 40 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() function 97 #ifndef div_s64_rem 98 extern s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder); 145 return div_s64_rem(dividend, divisor, &remainder); in div_s64()
|
/linux-6.6.21/kernel/time/ |
D | timeconv.c | 55 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm()
|
D | ntp.c | 415 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow() 419 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow()
|
D | clocksource.c | 509 cs_wd_msec = div_s64_rem(cs_nsec - wd_nsec, 1000 * 1000, &wd_rem); in clocksource_watchdog() 510 wd_msec = div_s64_rem(wd_nsec, 1000 * 1000, &wd_rem); in clocksource_watchdog()
|
/linux-6.6.21/drivers/iio/afe/ |
D | iio-rescale.c | 56 tmp = div_s64_rem(tmp, 1000000000LL, &rem); in rescale_process_scale() 87 *val = div_s64_rem(tmp, abs(rescale->denominator), &rem); in rescale_process_scale() 92 *val += div_s64_rem(tmp, mult, val2); in rescale_process_scale()
|
/linux-6.6.21/drivers/rtc/ |
D | rtc-mc13xxx.c | 96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time() 225 days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_alarm()
|
D | lib.c | 63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
|
D | rtc-zynqmp.c | 215 max_tick = div_s64_rem(offset, tick_mult, &fract_offset); in xlnx_rtc_set_offset()
|
D | rtc-mxc.c | 122 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time()
|
D | rtc-rzn1.c | 85 days = div_s64_rem(time, 86400, &secs); in rzn1_rtc_tm_to_wday()
|
/linux-6.6.21/drivers/iio/pressure/ |
D | mprls0025pa.c | 387 data->scale = div_s64_rem(scale, NANO, &data->scale2); in mpr_probe() 394 data->offset = div_s64_rem(offset, NANO, &data->offset2); in mpr_probe()
|
D | dlhl60d.c | 176 tmp = div_s64_rem(tmp, 1000000000LL, &rem); in dlh_read_raw()
|
/linux-6.6.21/arch/mips/dec/ |
D | time.c | 95 real_minutes = div_s64_rem(nowtime, 60, &real_seconds); in update_persistent_clock64()
|
/linux-6.6.21/drivers/iio/dac/ |
D | ad5592r-base.c | 416 *val = div_s64_rem(tmp, 1000000000LL, val2); in ad5592r_read_raw() 587 div_s64_rem(tmp, 1000000000LL, &st->scale_avail[0][1]); in ad5592r_init_scales() 589 div_s64_rem(tmp * 2, 1000000000LL, &st->scale_avail[1][1]); in ad5592r_init_scales()
|
D | ad3552r.c | 768 dac->ch_data[ch].scale_int = div_s64_rem(span, 65536, &rem); in ad3552r_calc_gain_and_offset() 773 dac->ch_data[ch].offset_int = div_s64_rem(v_min * 65536, span, &rem); in ad3552r_calc_gain_and_offset()
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_vl.c | 600 div_s64_rem(base_time, sja1105_delta_to_ns(1), &rem); in sja1105_vl_gate() 607 div_s64_rem(cycle_time, sja1105_delta_to_ns(1), &rem); in sja1105_vl_gate() 647 div_s64_rem(entries[i].interval, in sja1105_vl_gate()
|
D | sja1105_tas.c | 405 div_s64_rem(max_cycle_time, min_cycle_time, &rem); in sja1105_tas_check_conflicts() 413 div_s64_rem(offload->base_time, offload->cycle_time, &rem); in sja1105_tas_check_conflicts() 416 div_s64_rem(admin->base_time, admin->cycle_time, &rem); in sja1105_tas_check_conflicts()
|
/linux-6.6.21/drivers/iio/accel/ |
D | adxl345_core.c | 142 *val = div_s64_rem(samp_freq_nhz, NANOHZ_PER_HZ, val2); in adxl345_read_raw()
|
/linux-6.6.21/drivers/net/ethernet/intel/igc/ |
D | igc_tsn.c | 300 baset_h = div_s64_rem(base_time, NSEC_PER_SEC, &baset_l); in igc_tsn_enable_offload()
|
/linux-6.6.21/drivers/iio/humidity/ |
D | hts221_core.c | 362 tmp = div_s64_rem(tmp, 1000000000LL, &rem); in hts221_get_sensor_scale() 391 tmp = div_s64_rem(tmp, 1000000000LL, &rem); in hts221_get_sensor_offset()
|
/linux-6.6.21/drivers/platform/chrome/ |
D | cros_usbpd_logger.c | 161 div_s64_rem(ktime_to_ms(tstamp), MSEC_PER_SEC, &rem); in cros_usbpd_print_log_entry()
|
/linux-6.6.21/fs/fat/ |
D | misc.c | 294 div_s64_rem(seconds, SECS_PER_DAY, &remainder); in fat_truncate_atime()
|
/linux-6.6.21/drivers/iio/light/ |
D | zopt2201.c | 292 *val = div_s64_rem(tmp, 1000000, val2); in zopt2201_read_raw()
|
/linux-6.6.21/fs/affs/ |
D | amigaffs.c | 381 days = div_s64_rem(secs, 86400, &rem); in affs_secs_to_datestamp()
|