Searched refs:last_sample (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/hwmon/ |
| H A D | yogafan.c | 50 ktime_t last_sample[MAX_FANS]; member 96 s64 dt_ms = ktime_to_ms(ktime_sub(now, data->last_sample[idx])); in apply_rllag_filter() 102 data->last_sample[idx] = now; in apply_rllag_filter() 106 if (data->last_sample[idx] == 0 || dt_ms > MAX_SAMPLING) { in apply_rllag_filter() 108 data->last_sample[idx] = now; in apply_rllag_filter() 117 data->last_sample[idx] = now; in apply_rllag_filter() 138 data->last_sample[idx] = now; in apply_rllag_filter()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_sockopt.c | 119 struct mptcp_info last_sample; member 373 s->last_sample = i; in do_getsockopt_mptcp_info() 549 assert(mfi.mptcp_info.mptcpi_bytes_sent == s->last_sample.mptcpi_bytes_sent); in do_getsockopt_mptcp_full_info() 550 assert(mfi.mptcp_info.mptcpi_bytes_received == s->last_sample.mptcpi_bytes_received); in do_getsockopt_mptcp_full_info() 676 if (s.last_sample.mptcpi_bytes_sent != ret2) in process_one_client() 679 s.last_sample.mptcpi_bytes_sent, ret2, in process_one_client() 680 s.last_sample.mptcpi_bytes_sent - ret2); in process_one_client() 681 if (s.last_sample.mptcpi_bytes_received != ret) in process_one_client() 684 s.last_sample.mptcpi_bytes_received, ret, in process_one_client() 685 s.last_sample.mptcpi_bytes_received - ret); in process_one_client() [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_osnoise.c | 1434 u64 start, sample, last_sample; in run_osnoise() local 1497 last_int_count = set_int_safe_time(osn_var, &last_sample); in run_osnoise() 1505 noise = time_sub(sample, last_sample); in run_osnoise() 1541 trace_sample_threshold(last_sample, noise, interference); in run_osnoise() 1577 last_sample = sample; in run_osnoise()
|