/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-timestamp.c | 17 u32 timestamp = 0; in mcp251xfd_timestamp_read() local 21 err = mcp251xfd_get_timestamp(priv, ×tamp); in mcp251xfd_timestamp_read() 27 return timestamp; in mcp251xfd_timestamp_read() 35 priv = container_of(delayed_work, struct mcp251xfd_priv, timestamp); in mcp251xfd_timestamp_work() 38 schedule_delayed_work(&priv->timestamp, in mcp251xfd_timestamp_work() 43 struct sk_buff *skb, u32 timestamp) in mcp251xfd_skb_set_timestamp() argument 48 ns = timecounter_cyc2time(&priv->tc, timestamp); in mcp251xfd_skb_set_timestamp() 63 INIT_DELAYED_WORK(&priv->timestamp, mcp251xfd_timestamp_work); in mcp251xfd_timestamp_init() 64 schedule_delayed_work(&priv->timestamp, in mcp251xfd_timestamp_init() 70 cancel_delayed_work_sync(&priv->timestamp); in mcp251xfd_timestamp_stop()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.h | 11 static inline u64 otx2_ptp_convert_rx_timestamp(u64 timestamp) in otx2_ptp_convert_rx_timestamp() argument 13 return be64_to_cpu(*(__be64 *)×tamp); in otx2_ptp_convert_rx_timestamp() 16 static inline u64 otx2_ptp_convert_tx_timestamp(u64 timestamp) in otx2_ptp_convert_tx_timestamp() argument 18 return timestamp; in otx2_ptp_convert_tx_timestamp() 21 static inline u64 cn10k_ptp_convert_timestamp(u64 timestamp) in cn10k_ptp_convert_timestamp() argument 23 return ((timestamp >> 32) * NSEC_PER_SEC) + (timestamp & 0xFFFFFFFFUL); in cn10k_ptp_convert_timestamp()
|
/drivers/net/can/dev/ |
D | rx-offload.c | 12 u32 timestamp; member 91 cb_pos->timestamp, cb_new->timestamp, in __skb_queue_add_sort() 92 cb_new->timestamp - cb_pos->timestamp, in __skb_queue_add_sort() 116 return cb_b->timestamp - cb_a->timestamp; in can_rx_offload_compare() 146 u32 timestamp; in can_rx_offload_offload_one() local 153 skb = offload->mailbox_read(offload, n, ×tamp, drop); in can_rx_offload_offload_one() 170 cb->timestamp = timestamp; in can_rx_offload_offload_one() 223 struct sk_buff *skb, u32 timestamp) in can_rx_offload_queue_timestamp() argument 234 cb->timestamp = timestamp; in can_rx_offload_queue_timestamp() 244 unsigned int idx, u32 timestamp, in can_rx_offload_get_echo_skb() argument [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.h | 66 u64 timestamp) in mlx5_timecounter_cyc2time() argument 74 nsec = timecounter_cyc2time(&timer->tc, timestamp); in mlx5_timecounter_cyc2time() 83 u64 timestamp) in mlx5_real_time_cyc2time() argument 85 u64 time = REAL_TIME_TO_NS(timestamp >> 32, timestamp & 0xFFFFFFFF); in mlx5_real_time_cyc2time() 98 u64 timestamp) in mlx5_timecounter_cyc2time() argument 104 u64 timestamp) in mlx5_real_time_cyc2time() argument
|
/drivers/platform/chrome/ |
D | cros_ec_sensorhub_ring.c | 58 return cb(indio_dev, sample->vector, sample->timestamp); in cros_sensorhub_send_sample() 365 sample->timestamp) in cros_ec_sensor_ring_check_for_past_timestamp() 367 sample->timestamp = in cros_ec_sensor_ring_check_for_past_timestamp() 371 sample->timestamp; in cros_ec_sensor_ring_check_for_past_timestamp() 405 s64 a = in->timestamp; in cros_ec_sensor_ring_process_event() 406 s64 b = fifo_info->timestamp; in cros_ec_sensor_ring_process_event() 434 trace_cros_ec_sensorhub_timestamp(in->timestamp, in cros_ec_sensor_ring_process_event() 435 fifo_info->timestamp, in cros_ec_sensor_ring_process_event() 455 out->timestamp = *current_timestamp; in cros_ec_sensor_ring_process_event() 473 fifo_info->timestamp, in cros_ec_sensor_ring_process_event() [all …]
|
/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_ring.c | 29 s64 timestamp, size_t nb) in inv_mpu6050_update_period() argument 51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period() 66 st->data_timestamp = timestamp - interval; in inv_mpu6050_update_period() 70 st->it_timestamp = timestamp; in inv_mpu6050_update_period() 124 s64 timestamp; in inv_mpu6050_read_fifo() local 180 inv_mpu6050_update_period(st, pf->timestamp, nb); in inv_mpu6050_read_fifo() 191 timestamp = inv_mpu6050_get_timestamp(st); in inv_mpu6050_read_fifo() 192 iio_push_to_buffers_with_timestamp(indio_dev, st->data, timestamp); in inv_mpu6050_read_fifo()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
D | base.c | 79 if (alarm->timestamp > nvkm_timer_read(tmr)) { in nvkm_timer_alarm_trigger() 81 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm_trigger() 82 if (alarm->timestamp > nvkm_timer_read(tmr)) in nvkm_timer_alarm_trigger() 121 alarm->timestamp = nvkm_timer_read(tmr) + nsec; in nvkm_timer_alarm() 123 if (list->timestamp > alarm->timestamp) in nvkm_timer_alarm() 132 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm() 138 WARN_ON(alarm->timestamp <= nvkm_timer_read(tmr)); in nvkm_timer_alarm()
|
/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_timestamp.c | 113 size_t sensor_nb, int64_t timestamp) in inv_icm42600_timestamp_interrupt() argument 128 it->up = timestamp; in inv_icm42600_timestamp_interrupt() 140 if (ts->timestamp == 0) { in inv_icm42600_timestamp_interrupt() 143 ts->timestamp = it->up - interval; in inv_icm42600_timestamp_interrupt() 152 delta = it->lo - ts->timestamp; in inv_icm42600_timestamp_interrupt() 162 ts->timestamp += delta; in inv_icm42600_timestamp_interrupt() 187 if (ts->timestamp != 0) { in inv_icm42600_timestamp_apply_odr() 193 ts->timestamp = ts->it.up - interval; in inv_icm42600_timestamp_apply_odr()
|
D | inv_icm42600_timestamp.h | 46 int64_t timestamp; member 63 size_t sensor_nb, int64_t timestamp); 68 ts->timestamp += ts->period; in inv_icm42600_timestamp_pop() 69 return ts->timestamp; in inv_icm42600_timestamp_pop() 82 ts->timestamp = 0; in inv_icm42600_timestamp_reset()
|
D | inv_icm42600_buffer.c | 39 __be16 timestamp; member 45 const void **timestamp, unsigned int *odr) in inv_icm42600_fifo_decode_packet() argument 56 *timestamp = NULL; in inv_icm42600_fifo_decode_packet() 74 *timestamp = &pack2->timestamp; in inv_icm42600_fifo_decode_packet() 83 *timestamp = NULL; in inv_icm42600_fifo_decode_packet() 92 *timestamp = NULL; in inv_icm42600_fifo_decode_packet() 452 const void *accel, *gyro, *timestamp; in inv_icm42600_buffer_fifo_read() local 492 &accel, &gyro, &temp, ×tamp, &odr); in inv_icm42600_buffer_fifo_read() 516 st->fifo.nb.gyro, st->timestamp.gyro); in inv_icm42600_buffer_fifo_parse() 526 st->fifo.nb.accel, st->timestamp.accel); in inv_icm42600_buffer_fifo_parse()
|
/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fw_tracer.h | 60 u64 timestamp; member 118 u32 timestamp; member 142 u64 timestamp; member 147 u32 timestamp; member 165 u8 timestamp[0x7]; member 172 u8 timestamp[0x7]; member
|
/drivers/net/wireless/ath/ath9k/ |
D | link.c | 312 unsigned int timestamp = jiffies_to_msecs(jiffies); in ath_ani_calibrate() local 341 if ((timestamp - common->ani.longcal_timer) >= long_cal_interval) { in ath_ani_calibrate() 343 common->ani.longcal_timer = timestamp; in ath_ani_calibrate() 348 if ((timestamp - common->ani.shortcal_timer) >= short_cal_interval) { in ath_ani_calibrate() 350 common->ani.shortcal_timer = timestamp; in ath_ani_calibrate() 351 common->ani.resetcal_timer = timestamp; in ath_ani_calibrate() 354 if ((timestamp - common->ani.resetcal_timer) >= in ath_ani_calibrate() 358 common->ani.resetcal_timer = timestamp; in ath_ani_calibrate() 363 if ((timestamp - common->ani.checkani_timer) >= ah->config.ani_poll_interval) { in ath_ani_calibrate() 365 common->ani.checkani_timer = timestamp; in ath_ani_calibrate() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 297 } timestamp; member 321 struct old_timeval32 timestamp; member 420 .timestamp.tv_sec = vb32.timestamp.tv_sec, in get_v4l2_buffer32() 421 .timestamp.tv_usec = vb32.timestamp.tv_usec, in get_v4l2_buffer32() 465 .timestamp.tv_sec = vb32.timestamp.tv_sec, in get_v4l2_buffer32_time32() 466 .timestamp.tv_usec = vb32.timestamp.tv_usec, in get_v4l2_buffer32_time32() 507 .timestamp.tv_sec = vb->timestamp.tv_sec, in put_v4l2_buffer32() 508 .timestamp.tv_usec = vb->timestamp.tv_usec, in put_v4l2_buffer32() 552 .timestamp.tv_sec = vb->timestamp.tv_sec, in put_v4l2_buffer32_time32() 553 .timestamp.tv_usec = vb->timestamp.tv_usec, in put_v4l2_buffer32_time32() [all …]
|
/drivers/s390/scsi/ |
D | zfcp_diag.c | 52 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup() 61 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup() 95 if (!time_after_eq(capture_timestamp, hdr->timestamp)) in zfcp_diag_update_xdata() 98 hdr->timestamp = capture_timestamp; in zfcp_diag_update_xdata() 209 if (!time_after_eq(now, hdr->timestamp)) in __zfcp_diag_test_buffer_age_isfresh() 212 if (jiffies_to_msecs(now - hdr->timestamp) >= diag->max_age) in __zfcp_diag_test_buffer_age_isfresh()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_ptp.c | 103 static int qed_ptp_hw_read_rx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_rx_ts() argument 109 *timestamp = 0; in qed_ptp_hw_read_rx_ts() 117 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB); in qed_ptp_hw_read_rx_ts() 118 *timestamp <<= 32; in qed_ptp_hw_read_rx_ts() 119 *timestamp |= val; in qed_ptp_hw_read_rx_ts() 129 static int qed_ptp_hw_read_tx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_tx_ts() argument 135 *timestamp = 0; in qed_ptp_hw_read_tx_ts() 144 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_TX_LLH_PTP_BUF_TS_MSB); in qed_ptp_hw_read_tx_ts() 145 *timestamp <<= 32; in qed_ptp_hw_read_tx_ts() 146 *timestamp |= val; in qed_ptp_hw_read_tx_ts()
|
/drivers/net/wireless/intersil/orinoco/ |
D | scan.c | 82 u64 timestamp; in orinoco_add_hostscan_result() local 121 timestamp = 0; in orinoco_add_hostscan_result() 127 bss->a.bssid, timestamp, capability, in orinoco_add_hostscan_result() 141 u64 timestamp; in orinoco_add_extscan_result() local 154 timestamp = le64_to_cpu(bss->timestamp); in orinoco_add_extscan_result() 161 bss->bssid, timestamp, capability, in orinoco_add_extscan_result()
|
/drivers/iio/common/st_sensors/ |
D | st_sensors_buffer.c | 54 s64 timestamp; in st_sensors_trigger_handler() local 63 timestamp = sdata->hw_timestamp; in st_sensors_trigger_handler() 65 timestamp = iio_get_time_ns(indio_dev); in st_sensors_trigger_handler() 72 timestamp); in st_sensors_trigger_handler()
|
/drivers/net/can/usb/etas_es58x/ |
D | es581_4.h | 96 __le64 timestamp; member 107 __le64 timestamp; member 117 __le64 timestamp; member 130 __le64 timestamp; member 193 __le64 timestamp; member
|
/drivers/dma-buf/ |
D | dma-fence-unwrap.c | 69 ktime_t timestamp; in __dma_fence_unwrap_merge() local 74 timestamp = ns_to_ktime(0); in __dma_fence_unwrap_merge() 82 if (ktime_after(t, timestamp)) in __dma_fence_unwrap_merge() 83 timestamp = t; in __dma_fence_unwrap_merge() 93 return dma_fence_allocate_private_stub(timestamp); in __dma_fence_unwrap_merge()
|
/drivers/net/wireless/intel/iwlwifi/fw/ |
D | debugfs.c | 135 .timestamp = cpu_to_le64(fwrt->timestamp.seq++), in iwl_fw_send_timestamp_marker_cmd() 180 container_of(work, struct iwl_fw_runtime, timestamp.wk.work); in iwl_fw_timestamp_marker_wk() 181 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk() 185 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_timestamp_marker_wk() 201 fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); in iwl_fw_trigger_timestamp() 203 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_trigger_timestamp() 204 round_jiffies_relative(fwrt->timestamp.delay)); in iwl_fw_trigger_timestamp() 225 u32 delay_secs = jiffies_to_msecs(fwrt->timestamp.delay) / 1000; in iwl_dbgfs_timestamp_marker_read() 405 INIT_DELAYED_WORK(&fwrt->timestamp.wk, iwl_fw_timestamp_marker_wk); in iwl_fwrt_dbgfs_register()
|
/drivers/misc/habanalabs/common/ |
D | command_submission.c | 35 enum hl_cs_wait_status *status, s64 *timestamp); 226 fence->timestamp = ktime_set(0, 0); in hl_fence_init() 614 if (!mcs_compl->timestamp) in complete_multi_cs() 615 mcs_compl->timestamp = ktime_to_ns(fence->timestamp); in complete_multi_cs() 779 if (cs->timestamp) { in cs_do_release() 780 cs->fence->timestamp = ktime_get(); in cs_do_release() 782 cs->fence->timestamp, cs->fence->error); in cs_do_release() 831 hdev->captured_err_info.cs_timeout.timestamp = ktime_get(); in cs_timedout() 905 cs->timestamp = !!(flags & HL_CS_FLAGS_TIMESTAMP); in allocate_cs() 2491 enum hl_cs_wait_status *status, u64 timeout_us, s64 *timestamp) in hl_wait_for_fence() argument [all …]
|
/drivers/iio/accel/ |
D | hid-sensor-accel-3d.c | 31 s64 timestamp __aligned(8); 37 int64_t timestamp; member 228 int len, int64_t timestamp) in hid_sensor_push_data() argument 231 iio_push_to_buffers_with_timestamp(indio_dev, data, timestamp); in hid_sensor_push_data() 244 if (!accel_state->timestamp) in accel_3d_proc_event() 245 accel_state->timestamp = iio_get_time_ns(indio_dev); in accel_3d_proc_event() 250 accel_state->timestamp); in accel_3d_proc_event() 252 accel_state->timestamp = 0; in accel_3d_proc_event() 279 accel_state->timestamp = in accel_3d_capture_sample()
|
/drivers/iio/adc/ |
D | cc10001_adc.c | 268 struct iio_chan_spec *chan_array, *timestamp; in cc10001_adc_channel_init() local 295 timestamp = &chan_array[idx]; in cc10001_adc_channel_init() 296 timestamp->type = IIO_TIMESTAMP; in cc10001_adc_channel_init() 297 timestamp->channel = -1; in cc10001_adc_channel_init() 298 timestamp->scan_index = idx; in cc10001_adc_channel_init() 299 timestamp->scan_type.sign = 's'; in cc10001_adc_channel_init() 300 timestamp->scan_type.realbits = 64; in cc10001_adc_channel_init() 301 timestamp->scan_type.storagebits = 64; in cc10001_adc_channel_init()
|
/drivers/isdn/mISDN/ |
D | clock.c | 134 mISDN_clock_update(struct mISDNclock *iclock, int samples, ktime_t *timestamp) in mISDN_clock_update() argument 153 if (timestamp) { /* timestamp must be set, if function call is delayed */ in mISDN_clock_update() 154 iclock_timestamp = *timestamp; in mISDN_clock_update() 160 if (timestamp) { /* timestamp must be set, if function call is delayed */ in mISDN_clock_update() 161 timestamp_now = *timestamp; in mISDN_clock_update()
|
/drivers/iio/orientation/ |
D | hid-sensor-rotation.c | 23 u64 timestamp __aligned(8); 29 s64 timestamp; member 154 if (!rot_state->timestamp) in dev_rot_proc_event() 155 rot_state->timestamp = iio_get_time_ns(indio_dev); in dev_rot_proc_event() 158 rot_state->timestamp); in dev_rot_proc_event() 160 rot_state->timestamp = 0; in dev_rot_proc_event() 189 rot_state->timestamp = hid_sensor_convert_timestamp(&rot_state->common_attributes, in dev_rot_capture_sample()
|