| /OK3568_Linux_fs/kernel/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, prev_state, cur_ts, delta; in bpf_prog2() local 243 cur_ts = bpf_ktime_get_ns(); in bpf_prog2() 244 delta = cur_ts - *pts; in bpf_prog2() 245 *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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/timens/ |
| H A D | timens.c | 92 struct timespec child_ts_new, parent_ts_old, cur_ts; in test_gettime() local 118 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime() 121 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime() 125 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime() 132 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime() 135 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime() 139 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime() 141 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
|
| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A D | hid-plantronics.c | 126 unsigned long prev_ts, cur_ts; in plantronics_event() local 134 cur_ts = jiffies; in plantronics_event() 135 if (jiffies_to_msecs(cur_ts - prev_ts) <= PLT_DOUBLE_KEY_TIMEOUT) in plantronics_event() 138 drv_data->last_volume_key_ts = cur_ts; in plantronics_event()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | wl_iapsta.c | 2687 struct osl_timespec cur_ts; in wl_ext_disc_recon_retry() local 2694 osl_do_gettimeofday(&cur_ts); in wl_ext_disc_recon_retry() 2695 diff_ms = osl_do_gettimediff(&cur_ts, sta_disc_conn_ts)/1000; in wl_ext_disc_recon_retry() 2765 struct osl_timespec cur_ts, *sta_conn_ts; in wl_ext_connect_retry() local 2788 osl_do_gettimeofday(&cur_ts); in wl_ext_connect_retry() 2789 diff_ms = osl_do_gettimediff(&cur_ts, sta_conn_ts)/1000; in wl_ext_connect_retry() 3252 struct osl_timespec cur_ts; in wl_ext_calc_eapol_intvl() local 3256 osl_do_gettimeofday(&cur_ts); in wl_ext_calc_eapol_intvl() 3257 diff_ms = osl_do_gettimediff(&cur_ts, &cur_if->eapol_tx_ts)/1000; in wl_ext_calc_eapol_intvl() 3618 struct osl_timespec cur_ts; in wl_ext_scan_busy() local [all …]
|
| H A D | linux_osl.c | 2089 osl_do_gettimediff(struct osl_timespec *cur_ts, struct osl_timespec *old_ts) in osl_do_gettimediff() argument 2094 diff_s = (uint32)cur_ts->tv_sec - (uint32)old_ts->tv_sec; in osl_do_gettimediff() 2095 pgc_g = (cur_ts->tv_usec > old_ts->tv_usec) ? TRUE : FALSE; in osl_do_gettimediff() 2096 diff_us = pgc_g ? (cur_ts->tv_usec - old_ts->tv_usec) : (old_ts->tv_usec - cur_ts->tv_usec); in osl_do_gettimediff()
|
| H A D | dhd_config.c | 1158 struct osl_timespec cur_ts; in dhd_conf_tput_monitor() local 1163 osl_do_gettimeofday(&cur_ts); in dhd_conf_tput_monitor() 1164 diff_ms = osl_do_gettimediff(&cur_ts, &conf->tput_ts)/1000; in dhd_conf_tput_monitor() 1190 memcpy(&conf->tput_ts, &cur_ts, sizeof(struct osl_timespec)); in dhd_conf_tput_monitor()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | wl_iapsta.c | 2508 struct osl_timespec cur_ts, *sta_conn_ts = &apsta_params->sta_conn_ts; in wl_ext_connect_retry() local 2521 osl_do_gettimeofday(&cur_ts); in wl_ext_connect_retry() 2522 diff_ms = osl_do_gettimediff(&cur_ts, sta_conn_ts)/1000; in wl_ext_connect_retry() 2915 struct osl_timespec cur_ts; in wl_ext_calc_eapol_intvl() local 2919 osl_do_gettimeofday(&cur_ts); in wl_ext_calc_eapol_intvl() 2920 diff_ms = osl_do_gettimediff(&cur_ts, &cur_if->eapol_tx_ts)/1000; in wl_ext_calc_eapol_intvl() 3186 struct osl_timespec cur_ts; in wl_ext_scan_busy() local 3195 osl_do_gettimeofday(&cur_ts); in wl_ext_scan_busy() 3196 diff_ms = osl_do_gettimediff(&cur_ts, &apsta_params->scan_busy_ts)/1000; in wl_ext_scan_busy() 3280 struct osl_timespec cur_ts, *sta_disc_ts = &apsta_params->sta_disc_ts; in wl_wait_disconnect() local [all …]
|
| H A D | linux_osl.c | 2152 osl_do_gettimediff(struct osl_timespec *cur_ts, struct osl_timespec *old_ts) in osl_do_gettimediff() argument 2157 diff_s = (uint32)cur_ts->tv_sec - (uint32)old_ts->tv_sec; in osl_do_gettimediff() 2158 pgc_g = (cur_ts->tv_usec > old_ts->tv_usec) ? TRUE : FALSE; in osl_do_gettimediff() 2159 diff_us = pgc_g ? (cur_ts->tv_usec - old_ts->tv_usec) : (old_ts->tv_usec - cur_ts->tv_usec); in osl_do_gettimediff()
|
| H A D | dhd_config.c | 1098 struct osl_timespec cur_ts; in dhd_conf_tput_monitor() local 1103 osl_do_gettimeofday(&cur_ts); in dhd_conf_tput_monitor() 1104 diff_ms = osl_do_gettimediff(&cur_ts, &conf->tput_ts)/1000; in dhd_conf_tput_monitor() 1130 memcpy(&conf->tput_ts, &cur_ts, sizeof(struct osl_timespec)); in dhd_conf_tput_monitor()
|
| /OK3568_Linux_fs/kernel/net/openvswitch/ |
| H A D | flow.c | 46 struct timespec64 cur_ts; in ovs_flow_used_time() local 49 ktime_get_ts64(&cur_ts); in ovs_flow_used_time() 51 cur_ms = (u64)(u32)cur_ts.tv_sec * MSEC_PER_SEC + in ovs_flow_used_time() 52 cur_ts.tv_nsec / NSEC_PER_MSEC; in ovs_flow_used_time()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | linux_osl.c | 2820 osl_do_gettimediff(struct osl_timespec *cur_ts, struct osl_timespec *old_ts) in osl_do_gettimediff() argument 2825 diff_s = (uint32)cur_ts->tv_sec - (uint32)old_ts->tv_sec; in osl_do_gettimediff() 2826 pgc_g = (cur_ts->tv_usec > old_ts->tv_usec) ? TRUE : FALSE; in osl_do_gettimediff() 2827 diff_us = pgc_g ? (cur_ts->tv_usec - old_ts->tv_usec) : (old_ts->tv_usec - cur_ts->tv_usec); in osl_do_gettimediff()
|
| H A D | wl_android_ext.c | 4553 struct osl_timespec cur_ts, *sta_disc_ts = &apsta_params->sta_disc_ts; in wl_ext_in4way_sync_sta() local 4606 osl_do_gettimeofday(&cur_ts); in wl_ext_in4way_sync_sta() 4607 diff_ms = osl_do_gettimediff(&cur_ts, sta_disc_ts)/1000; in wl_ext_in4way_sync_sta() 4615 osl_do_gettimeofday(&cur_ts); in wl_ext_in4way_sync_sta() 4616 diff_ms = osl_do_gettimediff(&cur_ts, sta_disc_ts)/1000; in wl_ext_in4way_sync_sta() 4644 osl_do_gettimeofday(&cur_ts); in wl_ext_in4way_sync_sta() 4645 diff_ms = osl_do_gettimediff(&cur_ts, sta_disc_ts)/1000; in wl_ext_in4way_sync_sta() 4653 osl_do_gettimeofday(&cur_ts); in wl_ext_in4way_sync_sta() 4654 diff_ms = osl_do_gettimediff(&cur_ts, sta_disc_ts)/1000; in wl_ext_in4way_sync_sta() 4720 struct osl_timespec cur_ts, *ap_disc_sta_ts = &apsta_params->ap_disc_sta_ts; in wl_ext_in4way_sync_ap() local [all …]
|
| H A D | dhd_common.c | 1287 struct osl_timespec cur_ts; in dhd_doiovar() local 1289 osl_do_gettimeofday(&cur_ts); in dhd_doiovar() 1290 diff_ms = osl_do_gettimediff(&cur_ts, &dhd_pub->net_ts)/1000; in dhd_doiovar() 1293 memcpy(&dhd_pub->net_ts, &cur_ts, sizeof(struct osl_timespec)); in dhd_doiovar() 1370 struct osl_timespec cur_ts; in dhd_doiovar() local 1372 osl_do_gettimeofday(&cur_ts); in dhd_doiovar() 1373 diff_ms = osl_do_gettimediff(&cur_ts, &dhd_pub->bus_ts)/1000; in dhd_doiovar() 1376 memcpy(&dhd_pub->bus_ts, &cur_ts, sizeof(struct osl_timespec)); in dhd_doiovar()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | linux_osl.h | 867 extern uint32 osl_do_gettimediff(struct osl_timespec *cur_ts, struct osl_timespec *old_ts);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | linux_osl.h | 871 extern uint32 osl_do_gettimediff(struct osl_timespec *cur_ts, struct osl_timespec *old_ts);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/include/ |
| H A D | linux_osl.h | 1177 extern uint32 osl_do_gettimediff(struct osl_timespec *cur_ts, struct osl_timespec *old_ts);
|