Lines Matching +full:divider +full:- +full:val
3 * SPDX-License-Identifier: Apache-2.0
29 * by the local APIC timer block (before it gets to the timer divider).
34 #define DCR_DIVIDER_MASK 0x0000000F /* divider bits */
71 * away from this roll-over transition by ensuring consecutive CCR in sys_clock_cycle_get_64()
81 return cycles + (CYCLES_PER_TICK - ccr_2nd); in sys_clock_cycle_get_64()
91 uint32_t val; in sys_clock_driver_init() local
94 val = x86_read_loapic(LOAPIC_TIMER_CONFIG); /* set divider */ in sys_clock_driver_init()
95 val &= ~DCR_DIVIDER_MASK; in sys_clock_driver_init()
96 val |= DCR_DIVIDER; in sys_clock_driver_init()
97 x86_write_loapic(LOAPIC_TIMER_CONFIG, val); in sys_clock_driver_init()
99 val = x86_read_loapic(LOAPIC_TIMER); /* set timer mode */ in sys_clock_driver_init()
100 val &= ~LVT_MODE_MASK; in sys_clock_driver_init()
101 val |= LVT_MODE; in sys_clock_driver_init()
102 x86_write_loapic(LOAPIC_TIMER, val); in sys_clock_driver_init()