Home
last modified time | relevance | path

Searched refs:tsc (Results 1 – 12 of 12) sorted by relevance

/titanic_44/usr/src/uts/i86pc/os/
H A Dtimestamp.c128 #define TSC_CONVERT_AND_ADD(tsc, hrt, scale) { \ argument
129 unsigned int *_l = (unsigned int *)&(tsc); \
134 #define TSC_CONVERT(tsc, hrt, scale) { \ argument
135 unsigned int *_l = (unsigned int *)&(tsc); \
162 hrtime_t tsc, hrt; in tsc_gethrtime() local
167 if ((tsc = tsc_read()) >= tsc_last) { in tsc_gethrtime()
177 tsc -= tsc_last; in tsc_gethrtime()
178 } else if (tsc >= tsc_last - 2*tsc_max_delta) { in tsc_gethrtime()
185 tsc = 0; in tsc_gethrtime()
190 TSC_CONVERT_AND_ADD(tsc, hrt, nsec_scale); in tsc_gethrtime()
[all …]
H A Dstartup.c2860 hrtime_t tsc; in set_soft_hostid() local
2904 tsc = tsc_read(); in set_soft_hostid()
2905 if (tsc == 0) /* tsc_read can return zero sometimes */ in set_soft_hostid()
2908 hostid = (int32_t)tsc & 0x0CFFFFF; in set_soft_hostid()
/titanic_44/usr/src/lib/commpage/common/
H A Dcp_main.c60 #define TSC_CONVERT_AND_ADD(tsc, hrt, scale) do { \ argument
61 uint32_t *_l = (uint32_t *)&(tsc); \
75 hrtime_t tsc, hrt, tsc_last; in __cp_gethrtime() local
97 tsc = __cp_tsc_read(cp); in __cp_gethrtime()
100 if (tsc >= tsc_last) { in __cp_gethrtime()
101 tsc -= tsc_last; in __cp_gethrtime()
102 } else if (tsc >= tsc_last - (2 * cp->cp_tsc_max_delta)) { in __cp_gethrtime()
103 tsc = 0; in __cp_gethrtime()
104 } else if (tsc > cp->cp_tsc_resume_cap) { in __cp_gethrtime()
105 tsc = cp->cp_tsc_resume_cap; in __cp_gethrtime()
[all …]
/titanic_44/usr/src/uts/i86xpv/os/
H A Dxpv_timestamp.c96 uint64_t tsc; in dtrace_xpv_getsystime() local
122 tsc = __rdtsc_insn(); in dtrace_xpv_getsystime()
123 tsc_delta = tsc - dst->tsc_timestamp; in dtrace_xpv_getsystime()
H A Dxpv_panic.c629 hrtime_t tsc, hrt; in xpv_panic_gethrtime() local
630 unsigned int *l = (unsigned int *)&(tsc); in xpv_panic_gethrtime()
632 tsc = __rdtsc_insn(); in xpv_panic_gethrtime()
/titanic_44/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dunix.c768 hrtime_t tsc = addr, hrt; in scalehrtime_cmd() local
769 unsigned int *tscp = (unsigned int *)&tsc; in scalehrtime_cmd()
780 tsc = mdb_strtoull(argv[0].a_un.a_str); in scalehrtime_cmd()
783 tsc = argv[0].a_un.a_val; in scalehrtime_cmd()
/titanic_44/usr/src/uts/i86pc/sys/
H A Dhpet_acpi.h258 hrtime_t tsc[3]; member
/titanic_44/usr/src/uts/common/xen/dtrace/
H A Dxdt.c699 uint64_t tsc, addr64, rip64, val64, pte64; in xdt_process_rec() local
722 tsc = (((uint64_t)rec->u.cycles.cycles_hi) << 32) in xdt_process_rec()
726 tsc = 0; in xdt_process_rec()
729 xdt_timestamp = tsc; in xdt_process_rec()
/titanic_44/usr/src/uts/i86pc/io/
H A Dhpet_acpi.c251 hpet_info.tsc[0] = tsc_read(); in hpet_acpi_init()
254 hpet_info.tsc[1] = tsc_read(); in hpet_acpi_init()
257 hpet_info.tsc[2] = tsc_read(); in hpet_acpi_init()
/titanic_44/usr/src/uts/common/io/mwl/
H A Dmwl_var.h363 } tsc; member
H A Dmwl.c2181 LE_16(kv->key.tkip.tsc.low); in mwl_hal_keyset()
2183 LE_32(kv->key.tkip.tsc.high); in mwl_hal_keyset()
2354 hk.key.tkip.tsc.high = (uint32_t)(k->wk_keytsc >> 16); in mwl_key_set()
2355 hk.key.tkip.tsc.low = (uint16_t)k->wk_keytsc; in mwl_key_set()
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_subr.c6199 int seg, tsc; in pmcs_dma_load() local
6253 tsc = 0; in pmcs_dma_load()
6270 if (tsc == (PMCS_SGL_NCHUNKS - 1) && in pmcs_dma_load()
6298 tsc = 0; in pmcs_dma_load()
6300 sgl[tsc].sglal = LE_32(DWORD0(sg->dmac_laddress)); in pmcs_dma_load()
6301 sgl[tsc].sglah = LE_32(DWORD1(sg->dmac_laddress)); in pmcs_dma_load()
6302 sgl[tsc].sglen = LE_32(sg->dmac_size); in pmcs_dma_load()
6303 sgl[tsc++].flags = 0; in pmcs_dma_load()