Searched refs:cur_ts (Results 1 – 6 of 6) sorted by relevance
/linux/samples/bpf/ |
H A D | cpustat_kern.c | 106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local 143 cur_ts = bpf_ktime_get_ns(); in bpf_prog1() 144 delta = cur_ts - *cts; in bpf_prog1() 145 *cts = cur_ts; in bpf_prog1() 169 delta = cur_ts - *pts; in bpf_prog1() 206 *pts = cur_ts; in bpf_prog1() 214 u64 *pts, *cstate, *pstate, cur_ts, delta; in bpf_prog2() local 242 cur_ts = bpf_ktime_get_ns(); in bpf_prog2() 243 delta = cur_ts - *pts; in bpf_prog2() 244 *pts = cur_ts; in bpf_prog2()
|
H A D | lathist_kern.c | 74 u64 *ts, cur_ts, delta; in bpf_prog2() local 83 cur_ts = bpf_ktime_get_ns(); in bpf_prog2() 84 delta = log2l(cur_ts - *ts); in bpf_prog2()
|
/linux/tools/testing/selftests/timens/ |
H A D | timens.c | 90 struct timespec child_ts_new, parent_ts_old, cur_ts; in test_gettime() local 116 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime() 119 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime() 123 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime() 130 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime() 133 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime() 137 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime() 139 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
|
/linux/drivers/hid/ |
H A D | hid-plantronics.c | 128 unsigned long prev_ts, cur_ts; in plantronics_event() local 136 cur_ts = jiffies; in plantronics_event() 137 if (jiffies_to_msecs(cur_ts - prev_ts) <= PLT_DOUBLE_KEY_TIMEOUT) in plantronics_event() 140 drv_data->last_volume_key_ts = cur_ts; in plantronics_event() 143 unsigned long prev_ts, cur_ts; in plantronics_event() local 151 cur_ts = jiffies; in plantronics_event() 152 if (jiffies_to_msecs(cur_ts - prev_ts) <= PLT_FOLLOWED_OPPOSITE_KEY_TIMEOUT) in plantronics_event() 155 drv_data->last_volume_key_ts = cur_ts; in plantronics_event()
|
/linux/net/openvswitch/ |
H A D | flow.c | 48 struct timespec64 cur_ts; in ovs_flow_used_time() local 51 ktime_get_ts64(&cur_ts); in ovs_flow_used_time() 53 cur_ms = (u64)(u32)cur_ts.tv_sec * MSEC_PER_SEC + in ovs_flow_used_time() 54 cur_ts.tv_nsec / NSEC_PER_MSEC; in ovs_flow_used_time()
|
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_av1_req_lat_if.c | 555 u64 cur_ts; member 845 slots->timestamp[new_slot_idx] = vsi->frame.cur_ts; in vdec_av1_slice_get_new_slot() 1077 vsi->frame.cur_ts = dst->vb2_buf.timestamp; in vdec_av1_slice_setup_lat_from_src_buf()
|