Home
last modified time | relevance | path

Searched refs:delta_us (Results 1 – 4 of 4) sorted by relevance

/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c81 static void peak_usb_add_us(struct timeval *tv, u32 delta_us) in peak_usb_add_us() argument
84 u32 delta_s = delta_us / 1000000; in peak_usb_add_us()
86 delta_us -= delta_s * 1000000; in peak_usb_add_us()
88 tv->tv_usec += delta_us; in peak_usb_add_us()
154 u64 delta_us; in peak_usb_get_ts_tv() local
156 delta_us = ts - time_ref->ts_dev_2; in peak_usb_get_ts_tv()
158 delta_us &= (1 << time_ref->adapter->ts_used_bits) - 1; in peak_usb_get_ts_tv()
160 delta_us += time_ref->ts_total; in peak_usb_get_ts_tv()
162 delta_us *= time_ref->adapter->us_per_ts_scale; in peak_usb_get_ts_tv()
163 delta_us >>= time_ref->adapter->us_per_ts_shift; in peak_usb_get_ts_tv()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx_am.c281 u32 delta_us = ktime_us_delta(end->time, start->time); in mlx5e_am_calc_stats() local
286 if (!delta_us) in mlx5e_am_calc_stats()
289 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in mlx5e_am_calc_stats()
290 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in mlx5e_am_calc_stats()
292 delta_us); in mlx5e_am_calc_stats()
/drivers/mmc/core/
Dcore.c207 u_int64_t delta_us; in mmc_request_done() local
210 delta_us = ktime_us_delta(completion, in mmc_request_done()
215 &host->io_lat_write, delta_us); in mmc_request_done()
/drivers/scsi/ufs/
Dufshcd.c3620 u_int64_t delta_us; in __ufshcd_transfer_req_compl() local
3623 delta_us = ktime_us_delta(completion, in __ufshcd_transfer_req_compl()
3628 &hba->io_lat_write, delta_us); in __ufshcd_transfer_req_compl()