Lines Matching defs:tc
20 struct timecounter tc;
34 struct hwtc *tc;
36 tc = malloc(sizeof(struct hwtc), M_DEVBUF, M_WAITOK|M_ZERO);
37 if (tc == NULL)
40 tc->tc.tc_name = device_xname(dev);
41 tc->tc.tc_frequency = ACPI_PM_TIMER_FREQUENCY;
43 tc->tc.tc_counter_mask = 0xffffffff;
45 tc->tc.tc_counter_mask = 0x00ffffff;
47 tc->tc.tc_get_timecount = acpihwtimer_read_safe;
48 tc->tc.tc_quality = 900;
50 tc->tc.tc_get_timecount = acpihwtimer_read_fast;
51 tc->tc.tc_quality = 1000;
54 tc->t = t;
55 tc->h = h;
56 tc->off = off;
58 tc->tc.tc_priv = tc;
59 tc_init(&tc->tc);
60 aprint_normal("%s: %d-bit timer\n", tc->tc.tc_name,
62 return tc;
68 struct hwtc *tc = timer;
70 return tc_detach(&tc->tc);
76 acpihwtimer_read_safe(struct timecounter *tc)
78 struct hwtc *h = tc->tc_priv;
92 acpihwtimer_read_fast(struct timecounter *tc)
94 struct hwtc *h = tc->tc_priv;