Lines Matching refs:altivec_idle
397 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()
508 static DEVICE_ATTR(altivec_idle, 0600, show_altivec_idle, store_altivec_idle);