Home
last modified time | relevance | path

Searched refs:altivec_idle (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/arch/powerpc/kernel/
Dsysfs.c397 u32 altivec_idle; in do_store_altivec_idle() local
399 altivec_idle = mfspr(SPRN_PWRMGTCR0); in do_store_altivec_idle()
402 altivec_idle |= PWRMGTCR0_AV_IDLE_PD_EN; in do_store_altivec_idle()
404 altivec_idle &= ~PWRMGTCR0_AV_IDLE_PD_EN; in do_store_altivec_idle()
406 mtspr(SPRN_PWRMGTCR0, altivec_idle); in do_store_altivec_idle()
462 u32 altivec_idle; in set_altivec_idle_wait_entry_bit() local
464 altivec_idle = mfspr(SPRN_PWRMGTCR0); in set_altivec_idle_wait_entry_bit()
468 altivec_idle &= ~PWRMGTCR0_AV_IDLE_CNT; in set_altivec_idle_wait_entry_bit()
471 altivec_idle |= ((MAX_BIT - *value) << PWRMGTCR0_AV_IDLE_CNT_SHIFT); in set_altivec_idle_wait_entry_bit()
473 mtspr(SPRN_PWRMGTCR0, altivec_idle); in set_altivec_idle_wait_entry_bit()
[all …]