Lines Matching refs:global
21 mct->global.comp0_add_inc = 0;
23 mct->global.int_en = GINT_COMP0_IRQ;
24 while (mct->global.wstat != (GWSTAT_COMP0_ADD_INC));
25 mct->global.wstat = (GWSTAT_COMP0_ADD_INC);
27 mct->global.tcon = GTCON_EN | GTCON_COMP0_EN;
28 while (mct->global.wstat != GWSTAT_TCON);
29 mct->global.wstat = GWSTAT_TCON;
40 mct->global.comp0_add_inc = TIMER_RELOAD;
42 uint64_t comparator_value = ((((uint64_t) mct->global.cnth) << 32llu)
43 | mct->global.cntl) + TIMER_RELOAD;
44 mct->global.comp0h = (uint32_t)(comparator_value >> 32u);
45 mct->global.comp0l = (uint32_t) comparator_value;
47 mct->global.int_en = GINT_COMP0_IRQ;
50 while (mct->global.wstat != (GWSTAT_COMP0H | GWSTAT_COMP0L | GWSTAT_COMP0_ADD_INC));
51 mct->global.wstat = (GWSTAT_COMP0H | GWSTAT_COMP0L | GWSTAT_COMP0_ADD_INC);
54 mct->global.tcon = GTCON_EN | GTCON_COMP0_EN | GTCON_COMP0_AUTOINC;
55 while (mct->global.wstat != GWSTAT_TCON);
56 mct->global.wstat = GWSTAT_TCON;