Home
last modified time | relevance | path

Searched refs:curtime (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/samples/bpf/
H A Dhbm_edt_kern.c59 unsigned long long curtime, sendtime; in _hbm_out_cg() local
89 curtime = bpf_ktime_get_ns(); in _hbm_out_cg()
93 delta = qdp->lasttime - curtime; in _hbm_out_cg()
97 qdp->lasttime = curtime - BURST_SIZE_NS; in _hbm_out_cg()
156 hbm_update_stats(qsp, len, curtime, congestion_flag, drop_flag, in _hbm_out_cg()
H A Dhbm_out_kern.c63 unsigned long long curtime; in _hbm_out_cg() local
91 curtime = bpf_ktime_get_ns(); in _hbm_out_cg()
96 delta = curtime - qdp->lasttime; in _hbm_out_cg()
102 qdp->lasttime = curtime; in _hbm_out_cg()
167 hbm_update_stats(qsp, len, curtime, congestion_flag, drop_flag, in _hbm_out_cg()
H A Dhbm_kern.h146 unsigned long long curtime; in hbm_init_edt_vqueue() local
148 curtime = bpf_ktime_get_ns(); in hbm_init_edt_vqueue()
150 qdp->lasttime = curtime - BURST_SIZE_NS; // support initial burst in hbm_init_edt_vqueue()
157 unsigned long long curtime, in hbm_update_stats() argument
173 qsp->firstPacketTime = curtime; in hbm_update_stats()
174 qsp->lastPacketTime = curtime; in hbm_update_stats()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_spin_lock.c54 unsigned long long curtime; in bpf_spin_lock_test() local
83 curtime = bpf_ktime_get_ns(); in bpf_spin_lock_test()
85 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_spin_lock_test()
86 q->lasttime = curtime; in bpf_spin_lock_test()
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dsched.c1022 unsigned long long curtime; in spuctx_switch_state() local
1028 curtime = ktime_get_ns(); in spuctx_switch_state()
1029 delta = curtime - ctx->stats.tstamp; in spuctx_switch_state()
1037 ctx->stats.tstamp = curtime; in spuctx_switch_state()
1046 spu->stats.tstamp = curtime; in spuctx_switch_state()
/openbmc/linux/sound/pci/emu10k1/
H A Dio.c688 unsigned int newtime = 0, curtime; in snd_emu10k1_wait() local
690 curtime = inl(emu->port + WC) >> 6; in snd_emu10k1_wait()
695 if (newtime != curtime) in snd_emu10k1_wait()
700 curtime = newtime; in snd_emu10k1_wait()
/openbmc/qemu/hw/scsi/
H A Dmegasas.c413 struct tm curtime; in megasas_fw_time() local
415 qemu_get_timedate(&curtime, 0); in megasas_fw_time()
416 return ((uint64_t)curtime.tm_sec & 0xff) << 48 | in megasas_fw_time()
417 ((uint64_t)curtime.tm_min & 0xff) << 40 | in megasas_fw_time()
418 ((uint64_t)curtime.tm_hour & 0xff) << 32 | in megasas_fw_time()
419 ((uint64_t)curtime.tm_mday & 0xff) << 24 | in megasas_fw_time()
420 ((uint64_t)curtime.tm_mon & 0xff) << 16 | in megasas_fw_time()
421 ((uint64_t)(curtime.tm_year + 1900) & 0xffff); in megasas_fw_time()
/openbmc/linux/drivers/staging/rtl8712/
H A Drtl871x_mlme.c187 u32 curtime = jiffies; in r8712_generate_random_ibss() local
192 pibss[3] = (u8)(curtime & 0xff); in r8712_generate_random_ibss()
193 pibss[4] = (u8)((curtime >> 8) & 0xff); in r8712_generate_random_ibss()
194 pibss[5] = (u8)((curtime >> 16) & 0xff); in r8712_generate_random_ibss()
/openbmc/linux/drivers/staging/rtl8723bs/core/
H A Drtw_mlme.c290 unsigned long curtime = jiffies; in rtw_generate_random_ibss() local
295 pibss[3] = (u8)(curtime & 0xff) ;/* p[0]; */ in rtw_generate_random_ibss()
296 pibss[4] = (u8)((curtime>>8) & 0xff) ;/* p[1]; */ in rtw_generate_random_ibss()
297 pibss[5] = (u8)((curtime>>16) & 0xff) ;/* p[2]; */ in rtw_generate_random_ibss()