Lines Matching refs:LAPIC_READ
196 if ((LAPIC_READ(VERSION)&LAPIC_VERSION_MASK) < 0x14) {
198 (LAPIC_READ(VERSION)&LAPIC_VERSION_MASK));
203 lapic_cpu_map((LAPIC_READ(ID)>>LAPIC_ID_SHIFT)&LAPIC_ID_MASK, 0);
213 return LAPIC_READ(ERROR_STATUS);
240 LAPIC_READ(lvt)&LAPIC_LVT_VECTOR_MASK
242 (LAPIC_READ(lvt)&LAPIC_LVT_DS_PENDING)?" SendPending" : "Idle"
244 DM_str[(LAPIC_READ(lvt)>>LAPIC_LVT_DM_SHIFT)&LAPIC_LVT_DM_MASK]
246 BOOL(LAPIC_READ(lvt)&LAPIC_LVT_MASKED)
248 (LAPIC_READ(lvt)&LAPIC_LVT_TM_LEVEL)? "Level" : "Edge"
250 (LAPIC_READ(lvt)&LAPIC_LVT_IP_PLRITY_LOW)? "Low " : "High"
253 (LAPIC_READ(ID)>>LAPIC_ID_SHIFT)&LAPIC_ID_MASK,
255 LAPIC_READ(VERSION)&LAPIC_VERSION_MASK);
257 LAPIC_READ(TPR)&LAPIC_TPR_MASK,
258 LAPIC_READ(APR)&LAPIC_APR_MASK,
259 LAPIC_READ(PPR)&LAPIC_PPR_MASK);
261 LAPIC_READ(DFR)>>LAPIC_DFR_SHIFT,
262 LAPIC_READ(LDR)>>LAPIC_LDR_SHIFT);
264 BOOL(LAPIC_READ(SVR)&LAPIC_SVR_ENABLE),
265 BOOL(!(LAPIC_READ(SVR)&LAPIC_SVR_FOCUS_OFF)),
266 LAPIC_READ(SVR) & LAPIC_SVR_MASK);
277 (LAPIC_READ(LVT_TIMER)&LAPIC_LVT_PERIODIC)?"Periodic":"OneShot");
278 kprintf(" Initial Count: 0x%08x \n", LAPIC_READ(TIMER_INITIAL_COUNT));
279 kprintf(" Current Count: 0x%08x \n", LAPIC_READ(TIMER_CURRENT_COUNT));
280 kprintf(" Divide Config: 0x%08x \n", LAPIC_READ(TIMER_DIVIDE_CONFIG));
399 value = LAPIC_READ(LVT_LINT0);
405 LAPIC_WRITE(LVT_ERROR, LAPIC_READ(LVT_ERROR) | LAPIC_LVT_MASKED);
408 LAPIC_WRITE(LVT_TIMER, LAPIC_READ(LVT_TIMER) | LAPIC_LVT_MASKED);
411 LAPIC_WRITE(LVT_PERFCNT, LAPIC_READ(LVT_PERFCNT) | LAPIC_LVT_MASKED);
414 LAPIC_WRITE(SVR, LAPIC_READ(SVR) & ~LAPIC_SVR_ENABLE);
448 value = LAPIC_READ(LVT_LINT0);
485 timer_vector = LAPIC_READ(LVT_TIMER);
506 *mode = (LAPIC_READ(LVT_TIMER) & LAPIC_LVT_PERIODIC) ?
509 *divisor = LAPIC_READ(TIMER_DIVIDE_CONFIG) & LAPIC_TIMER_DIVIDE_MASK;
511 *initial_count = LAPIC_READ(TIMER_INITIAL_COUNT);
513 *current_count = LAPIC_READ(TIMER_CURRENT_COUNT);
618 LAPIC_WRITE(LVT_ERROR, LAPIC_READ(LVT_ERROR) | LAPIC_LVT_MASKED);
665 if (LAPIC_READ(TIMER_CURRENT_COUNT) == 0) {