Home
last modified time | relevance | path

Searched refs:time_ns (Results 1 – 13 of 13) sorted by relevance

/drivers/iio/proximity/
Dping.c98 u32 time_ns, distance_mm; in ping_read() local
173 time_ns = dt_ns; in ping_read()
180 if ((time_ns > 12500000) && (time_ns <= 13500000)) { in ping_read()
184 if ((time_ns > 13500000) && (time_ns <= 14500000)) { in ping_read()
188 if ((time_ns > 14500000) && (time_ns <= 15500000)) { in ping_read()
214 distance_mm = time_ns * 232 / 1350800; in ping_read()
Dsrf04.c101 u32 time_ns, distance_mm; in srf04_read() local
167 time_ns = dt_ns; in srf04_read()
189 distance_mm = time_ns * 106 / 617176; in srf04_read()
/drivers/iio/common/scmi_sensors/
Dscmi_iio.c42 u64 time, time_ns; in scmi_iio_sensor_update_cb() local
54 time_ns = ktime_to_ns(sensor_update->timestamp); in scmi_iio_sensor_update_cb()
71 time_ns = time; in scmi_iio_sensor_update_cb()
73 time_ns = time * int_pow(10, tstamp_scale); in scmi_iio_sensor_update_cb()
79 time_ns); in scmi_iio_sensor_update_cb()
/drivers/ptp/
Dptp_ocp.c38 u32 time_ns; member
107 u32 time_ns; member
356 u32 ctrl, time_sec, time_ns; in __ptp_ocp_gettime_locked() local
372 time_ns = ioread32(&bp->reg->time_ns); in __ptp_ocp_gettime_locked()
376 ts->tv_nsec = time_ns; in __ptp_ocp_gettime_locked()
399 u32 ctrl, time_sec, time_ns; in __ptp_ocp_settime_locked() local
402 time_ns = ts->tv_nsec; in __ptp_ocp_settime_locked()
408 iowrite32(time_ns, &bp->reg->adjust_ns); in __ptp_ocp_settime_locked()
1002 nsec = ioread32(&reg->time_ns); in ptp_ocp_ts_irq()
/drivers/iio/light/
Dadjd_s311.c121 s64 time_ns = iio_get_time_ns(indio_dev); in adjd_s311_trigger_handler() local
138 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in adjd_s311_trigger_handler()
/drivers/memory/
Domap-gpmc.c324 static unsigned int gpmc_ns_to_clk_ticks(unsigned int time_ns, int cs, in gpmc_ns_to_clk_ticks() argument
332 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks()
335 static unsigned int gpmc_ns_to_ticks(unsigned int time_ns) in gpmc_ns_to_ticks() argument
337 return gpmc_ns_to_clk_ticks(time_ns, /* any CS */ 0, GPMC_CD_FCLK); in gpmc_ns_to_ticks()
454 unsigned int time_ns; in get_gpmc_timing_reg() local
459 time_ns = gpmc_clk_ticks_to_ns(l, cs, cd); in get_gpmc_timing_reg()
461 name, time_ns, time_ns_min, time_ns, l, in get_gpmc_timing_reg()
/drivers/iio/accel/
Dbma180.c875 s64 time_ns = iio_get_time_ns(indio_dev); in bma180_trigger_handler() local
892 iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, time_ns); in bma180_trigger_handler()
/drivers/cpuidle/
Dcpuidle.c284 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
Dsysfs.c269 return sprintf(buf, "%llu\n", ktime_to_us(state_usage->time_ns)); in define_show_state_time_function()
/drivers/net/ethernet/intel/ice/
Dice_ptp.c413 u64 time_ns = ice_ptp_read_src_clk_reg(pf, sts); in ice_ptp_read_time() local
415 *ts = ns_to_timespec64(time_ns); in ice_ptp_read_time()
/drivers/gpu/drm/i915/display/
Dintel_psr.c186 ktime_t time_ns = ktime_get(); in intel_psr_irq_handler() local
199 intel_dp->psr.last_entry_attempt = time_ns; in intel_psr_irq_handler()
206 intel_dp->psr.last_exit = time_ns; in intel_psr_irq_handler()
/drivers/video/fbdev/
Dpxafb.c1227 static unsigned int __smart_timing(unsigned time_ns, unsigned long lcd_clk) in __smart_timing() argument
1229 unsigned int t = (time_ns * (lcd_clk / 1000000) / 1000); in __smart_timing()
/drivers/gpu/drm/
Ddrm_vblank.c1005 e->event.seq.time_ns = ktime_to_ns(now); in send_vblank_event()