Lines Matching refs:altivec_idle
402 u32 altivec_idle; in do_store_altivec_idle() local
404 altivec_idle = mfspr(SPRN_PWRMGTCR0); in do_store_altivec_idle()
407 altivec_idle |= PWRMGTCR0_AV_IDLE_PD_EN; in do_store_altivec_idle()
409 altivec_idle &= ~PWRMGTCR0_AV_IDLE_PD_EN; in do_store_altivec_idle()
411 mtspr(SPRN_PWRMGTCR0, altivec_idle); in do_store_altivec_idle()
467 u32 altivec_idle; in set_altivec_idle_wait_entry_bit() local
469 altivec_idle = mfspr(SPRN_PWRMGTCR0); in set_altivec_idle_wait_entry_bit()
473 altivec_idle &= ~PWRMGTCR0_AV_IDLE_CNT; in set_altivec_idle_wait_entry_bit()
476 altivec_idle |= ((MAX_BIT - *value) << PWRMGTCR0_AV_IDLE_CNT_SHIFT); in set_altivec_idle_wait_entry_bit()
478 mtspr(SPRN_PWRMGTCR0, altivec_idle); in set_altivec_idle_wait_entry_bit()
513 static DEVICE_ATTR(altivec_idle, 0600, show_altivec_idle, store_altivec_idle);