Symbol: tsc
sys/arch/alpha/pci/tsc.c
60
CFATTACH_DECL_NEW(tsc, 0, tscmatch, tscattach, NULL, NULL);
sys/arch/arm/nvidia/tegra_com.c
107
tsc->tsc_clk = fdtbus_clock_get_index(faa->faa_phandle, 0);
sys/arch/arm/nvidia/tegra_com.c
108
tsc->tsc_rst = fdtbus_reset_get(faa->faa_phandle, "serial");
sys/arch/arm/nvidia/tegra_com.c
110
if (tsc->tsc_clk == NULL) {
sys/arch/arm/nvidia/tegra_com.c
115
sc->sc_frequency = clk_get_rate(tsc->tsc_clk);
sys/arch/arm/nvidia/tegra_com.c
134
tsc->tsc_ih = fdtbus_intr_establish_xname(faa->faa_phandle, 0,
sys/arch/arm/nvidia/tegra_com.c
136
if (tsc->tsc_ih == NULL) {
sys/arch/arm/nvidia/tegra_com.c
84
struct tegra_com_softc * const tsc = device_private(self);
sys/arch/arm/nvidia/tegra_com.c
85
struct com_softc * const sc = &tsc->tsc_sc;
sys/arch/evbarm/tsarm/tsrtc.c
104
bus_space_unmap(tsc->sc_iot, tsc->sc_idxh, 1);
sys/arch/evbarm/tsarm/tsrtc.c
105
bus_space_unmap(tsc->sc_iot, tsc->sc_dath, 1);
sys/arch/evbarm/tsarm/tsrtc.c
113
struct tsrtc_softc *tsc = device_private(self);
sys/arch/evbarm/tsarm/tsrtc.c
114
struct mc146818_softc *sc = &tsc->sc_mc;
sys/arch/evbarm/tsarm/tsrtc.c
118
tsc->sc_iot = aa->ta_iot;
sys/arch/evbarm/tsarm/tsrtc.c
119
if (bus_space_map(tsc->sc_iot, TS7XXX_IO8_HWBASE + TS7XXX_RTCIDX,
sys/arch/evbarm/tsarm/tsrtc.c
120
1, 0, &tsc->sc_idxh))
sys/arch/evbarm/tsarm/tsrtc.c
122
if (bus_space_map(tsc->sc_iot, TS7XXX_IO8_HWBASE + TS7XXX_RTCDAT,
sys/arch/evbarm/tsarm/tsrtc.c
123
1, 0, &tsc->sc_dath))
sys/arch/evbarm/tsarm/tsrtc.c
70
struct tsrtc_softc tsrtc, *tsc;
sys/arch/evbarm/tsarm/tsrtc.c
78
tsc = &tsrtc;
sys/arch/evbarm/tsarm/tsrtc.c
79
sc = &tsc->sc_mc;
sys/arch/evbarm/tsarm/tsrtc.c
80
tsc->sc_iot = aa->ta_iot;
sys/arch/evbarm/tsarm/tsrtc.c
81
if (bus_space_map(tsc->sc_iot, TS7XXX_IO8_HWBASE + TS7XXX_RTCIDX, 1, 0,
sys/arch/evbarm/tsarm/tsrtc.c
82
&tsc->sc_idxh))
sys/arch/evbarm/tsarm/tsrtc.c
84
if (bus_space_map(tsc->sc_iot, TS7XXX_IO8_HWBASE + TS7XXX_RTCDAT, 1, 0,
sys/arch/evbarm/tsarm/tsrtc.c
85
&tsc->sc_dath))
sys/arch/x86/x86/hyperv.c
209
uint64_t disc, ret, tsc;
sys/arch/x86/x86/hyperv.c
213
tsc = cpu_counter();
sys/arch/x86/x86/hyperv.c
218
"a" (tsc), "r" (scale));
sys/arch/x86/x86/tsc.c
338
uint64_t tsc;
sys/arch/x86/x86/tsc.c
350
tsc = tsc_dummy_cacheline;
sys/arch/x86/x86/tsc.c
352
tsc += rdtsc();
sys/arch/x86/x86/tsc.c
355
(void)atomic_swap_64(&tsc_sync_val, tsc);
sys/arch/xen/xen/xen_clock.c
277
uint64_t raw_systime_ns, tsc_timestamp, tsc, delta_tsc, delta_ns;
sys/arch/xen/xen/xen_clock.c
302
tsc = rdtsc();
sys/arch/xen/xen/xen_clock.c
318
if (__predict_false(tsc < tsc_timestamp)) {
sys/arch/xen/xen/xen_clock.c
325
tsc_to_system_mul, tsc_shift, /*delta_ns*/0, tsc,
sys/arch/xen/xen/xen_clock.c
331
tsc, tsc_timestamp, tsc_timestamp - tsc);
sys/arch/xen/xen/xen_clock.c
337
delta_tsc = tsc - tsc_timestamp;
sys/arch/xen/xen/xen_clock.c
353
tsc_to_system_mul, tsc_shift, delta_ns, tsc,
sys/arch/xen/xen/xen_clock.c
378
tsc_to_system_mul, tsc_shift, delta_ns, tsc,
sys/arch/xen/xen/xen_clock.c
396
tsc_to_system_mul, tsc_shift, delta_ns, tsc,
sys/arch/xen/xen/xen_clock.c
406
raw_systime_ns, tsc_timestamp, tsc, tsc_to_system_mul,
sys/arch/xen/xen/xen_clock.c
604
uint64_t tsc_start, last_tsc, tsc;
sys/arch/xen/xen/xen_clock.c
622
tsc = rdtsc();
sys/arch/xen/xen/xen_clock.c
623
if (__predict_false(tsc < last_tsc))
sys/arch/xen/xen/xen_clock.c
625
if (xen_tsc_to_ns_delta(tsc - tsc_start,
sys/arch/xen/xen/xen_clock.c
628
last_tsc = tsc;
sys/dev/dm/dm_target_snapshot.c
205
dm_target_snapshot_config_t *tsc;
sys/dev/dm/dm_target_snapshot.c
218
tsc = kmem_alloc(sizeof(*tsc), KM_SLEEP);
sys/dev/dm/dm_target_snapshot.c
219
tsc->tsc_persistent_dev = 0;
sys/dev/dm/dm_target_snapshot.c
223
tsc->tsc_persistent_dev = 1;
sys/dev/dm/dm_target_snapshot.c
227
kmem_free(tsc, sizeof(*tsc));
sys/dev/dm/dm_target_snapshot.c
231
tsc->tsc_chunk_size = atoi64(argv[3]);
sys/dev/dm/dm_target_snapshot.c
233
tsc->tsc_snap_dev = dmp_snap;
sys/dev/dm/dm_target_snapshot.c
234
tsc->tsc_cow_dev = dmp_cow;
sys/dev/dm/dm_target_snapshot.c
238
table_en->target_config = tsc;
sys/dev/dm/dm_target_snapshot.c
251
dm_target_snapshot_config_t *tsc;
sys/dev/dm/dm_target_snapshot.c
258
tsc = target_config;
sys/dev/dm/dm_target_snapshot.c
267
for (i = tsc->tsc_chunk_size; i != 0; i /= 10)
sys/dev/dm/dm_target_snapshot.c
270
if (tsc->tsc_persistent_dev)
sys/dev/dm/dm_target_snapshot.c
271
cow_len = strlen(tsc->tsc_cow_dev->name);
sys/dev/dm/dm_target_snapshot.c
274
prm_len = strlen(tsc->tsc_snap_dev->name) + cow_len + count + 5;
sys/dev/dm/dm_target_snapshot.c
278
printf("%s %s %s %" PRIu64 "\n", tsc->tsc_snap_dev->name,
sys/dev/dm/dm_target_snapshot.c
279
tsc->tsc_cow_dev->name, tsc->tsc_persistent_dev ? "p" : "n",
sys/dev/dm/dm_target_snapshot.c
280
tsc->tsc_chunk_size);
sys/dev/dm/dm_target_snapshot.c
282
snprintf(params, prm_len, "%s %s %s %" PRIu64, tsc->tsc_snap_dev->name,
sys/dev/dm/dm_target_snapshot.c
283
tsc->tsc_persistent_dev ? tsc->tsc_cow_dev->name : "",
sys/dev/dm/dm_target_snapshot.c
284
tsc->tsc_persistent_dev ? "p" : "n",
sys/dev/dm/dm_target_snapshot.c
285
tsc->tsc_chunk_size);
sys/dev/dm/dm_target_snapshot.c
324
dm_target_snapshot_config_t *tsc = table_en->target_config;
sys/dev/dm/dm_target_snapshot.c
327
dm_pdev_decr(tsc->tsc_snap_dev);
sys/dev/dm/dm_target_snapshot.c
328
if (tsc->tsc_persistent_dev)
sys/dev/dm/dm_target_snapshot.c
329
dm_pdev_decr(tsc->tsc_cow_dev);
sys/dev/dm/dm_target_snapshot.c
331
kmem_free(tsc, sizeof(*tsc));
sys/dev/dm/dm_target_stripe.c
111
dm_target_stripe_fini(dm_target_stripe_config_t *tsc)
sys/dev/dm/dm_target_stripe.c
115
if (tsc == NULL)
sys/dev/dm/dm_target_stripe.c
118
while ((tlc = TAILQ_FIRST(&tsc->stripe_devs)) != NULL) {
sys/dev/dm/dm_target_stripe.c
119
TAILQ_REMOVE(&tsc->stripe_devs, tlc, entries);
sys/dev/dm/dm_target_stripe.c
124
kmem_free(tsc, sizeof(*tsc));
sys/dev/dm/dm_target_stripe.c
139
dm_target_stripe_config_t *tsc;
sys/dev/dm/dm_target_stripe.c
151
tsc = kmem_alloc(sizeof(*tsc), KM_SLEEP);
sys/dev/dm/dm_target_stripe.c
154
TAILQ_INIT(&tsc->stripe_devs);
sys/dev/dm/dm_target_stripe.c
157
tsc->stripe_chunksize = atoi64(argv[1]);
sys/dev/dm/dm_target_stripe.c
158
tsc->stripe_num = (uint8_t) atoi64(argv[0]);
sys/dev/dm/dm_target_stripe.c
160
strpc = DM_STRIPE_DEV_OFFSET + (tsc->stripe_num * 2);
sys/dev/dm/dm_target_stripe.c
168
dm_target_stripe_fini(tsc);
sys/dev/dm/dm_target_stripe.c
175
TAILQ_INSERT_TAIL(&tsc->stripe_devs, tlc, entries);
sys/dev/dm/dm_target_stripe.c
178
table_en->target_config = tsc;
sys/dev/dm/dm_target_stripe.c
188
dm_target_stripe_config_t *tsc;
sys/dev/dm/dm_target_stripe.c
193
tsc = target_config;
sys/dev/dm/dm_target_stripe.c
199
ret = snprintf(ptr, len, "%d ", tsc->stripe_num);
sys/dev/dm/dm_target_stripe.c
204
TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
sys/dev/dm/dm_target_stripe.c
227
dm_target_stripe_config_t *tsc;
sys/dev/dm/dm_target_stripe.c
230
tsc = target_config;
sys/dev/dm/dm_target_stripe.c
236
tsc->stripe_num, tsc->stripe_chunksize);
sys/dev/dm/dm_target_stripe.c
238
TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
sys/dev/dm/dm_target_stripe.c
254
dm_target_stripe_config_t *tsc;
sys/dev/dm/dm_target_stripe.c
261
tsc = table_en->target_config;
sys/dev/dm/dm_target_stripe.c
262
if (tsc == NULL)
sys/dev/dm/dm_target_stripe.c
273
stripe = blkno / tsc->stripe_chunksize;
sys/dev/dm/dm_target_stripe.c
274
stripe_off = blkno % tsc->stripe_chunksize;
sys/dev/dm/dm_target_stripe.c
277
stripe_devnr = stripe % tsc->stripe_num;
sys/dev/dm/dm_target_stripe.c
278
stripe_blknr = stripe / tsc->stripe_num;
sys/dev/dm/dm_target_stripe.c
281
stripe_rest = tsc->stripe_chunksize - stripe_off;
sys/dev/dm/dm_target_stripe.c
288
nestbuf->b_blkno = stripe_blknr * tsc->stripe_chunksize + stripe_off;
sys/dev/dm/dm_target_stripe.c
290
tlc = TAILQ_FIRST(&tsc->stripe_devs);
sys/dev/dm/dm_target_stripe.c
317
dm_target_stripe_config_t *tsc;
sys/dev/dm/dm_target_stripe.c
320
tsc = table_en->target_config;
sys/dev/dm/dm_target_stripe.c
325
TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
sys/dev/dm/dm_target_stripe.c
368
dm_target_stripe_config_t *tsc;
sys/dev/dm/dm_target_stripe.c
373
tsc = table_en->target_config;
sys/dev/dm/dm_target_stripe.c
374
if (tsc != NULL) {
sys/dev/dm/dm_target_stripe.c
375
TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
sys/dev/mii/tlphy.c
128
struct tlphy_softc *tsc = device_private(self);
sys/dev/mii/tlphy.c
129
struct mii_softc *sc = &tsc->sc_mii;
sys/dev/mii/tlphy.c
157
tsc->sc_tlphycap = tlsc->tl_product->tp_tlphymedia;
sys/dev/mii/tlphy.c
158
if ((tsc->sc_tlphycap & TLPHY_MEDIA_NO_10_T) == 0) {
sys/dev/mii/tlphy.c
173
if (tsc->sc_tlphycap) {
sys/dev/mii/tlphy.c
178
if (tsc->sc_tlphycap & TLPHY_MEDIA_10_2) {
sys/dev/mii/tlphy.c
182
} else if (tsc->sc_tlphycap & TLPHY_MEDIA_10_5) {
sys/dev/mii/tlphy.c
209
struct tlphy_softc *tsc = (struct tlphy_softc *)sc;
sys/dev/mii/tlphy.c
215
if ((sc->mii_flags & MIIF_DOINGAUTO) == 0 && tsc->sc_need_acomp)
sys/dev/mii/tlphy.c
216
tlphy_acomp(tsc);
sys/dev/mii/tlphy.c
242
(void) tlphy_auto(tsc);
sys/dev/mii/tlphy.c
296
tlphy_auto(tsc);
sys/dev/mii/tlphy.c
315
struct tlphy_softc *tsc = (struct tlphy_softc *)sc;
sys/dev/mii/tlphy.c
333
if (tsc->sc_tlphycap & TLPHY_MEDIA_10_2)
sys/dev/mii/tlphy.c
335
else if (tsc->sc_tlphycap & TLPHY_MEDIA_10_5)
sys/dev/mii/tlphy.c
365
tlphy_auto(struct tlphy_softc *tsc)
sys/dev/mii/tlphy.c
367
struct mii_softc *sc = &tsc->sc_mii;
sys/dev/mii/tlphy.c
373
tsc->sc_need_acomp = 1;
sys/dev/mii/tlphy.c
377
tlphy_acomp(tsc);
sys/dev/mii/tlphy.c
384
tlphy_acomp(struct tlphy_softc *tsc)
sys/dev/mii/tlphy.c
386
struct mii_softc *sc = &tsc->sc_mii;
sys/dev/mii/tlphy.c
389
tsc->sc_need_acomp = 0;
sys/dev/pci/if_iwnreg.h
598
uint64_t tsc;
sys/dev/tc/slhci_tcu.c
75
struct slhci_tcu_softc *tsc = device_private(self);
sys/dev/tc/slhci_tcu.c
76
struct slhci_softc *sc = &tsc->sc;