Lines Matching refs:value
259 u32 *value = val; in do_show_pwrmgtcr0() local
261 *value = mfspr(SPRN_PWRMGTCR0); in do_show_pwrmgtcr0()
267 u32 value; in show_pw20_state() local
270 smp_call_function_single(cpu, do_show_pwrmgtcr0, &value, 1); in show_pw20_state()
272 value &= PWRMGTCR0_PW20_WAIT; in show_pw20_state()
274 return sprintf(buf, "%u\n", value ? 1 : 0); in show_pw20_state()
279 u32 *value = val; in do_store_pw20_state() local
284 if (*value) in do_store_pw20_state()
296 u32 value; in store_pw20_state() local
299 if (kstrtou32(buf, 0, &value)) in store_pw20_state()
302 if (value > 1) in store_pw20_state()
305 smp_call_function_single(cpu, do_store_pw20_state, &value, 1); in store_pw20_state()
313 u32 value; in show_pw20_wait_time() local
320 smp_call_function_single(cpu, do_show_pwrmgtcr0, &value, 1); in show_pw20_wait_time()
321 value = (value & PWRMGTCR0_PW20_ENT) >> in show_pw20_wait_time()
324 tb_cycle = (tb_cycle << (MAX_BIT - value + 1)); in show_pw20_wait_time()
344 u32 *value = val; in set_pw20_wait_entry_bit() local
354 pw20_idle |= ((MAX_BIT - *value) << PWRMGTCR0_PW20_ENT_SHIFT); in set_pw20_wait_entry_bit()
364 u64 value; in store_pw20_wait_time() local
368 if (kstrtou64(buf, 0, &value)) in store_pw20_wait_time()
371 if (!value) in store_pw20_wait_time()
374 entry_bit = get_idle_ticks_bit(value); in store_pw20_wait_time()
378 pw20_wt = value; in store_pw20_wait_time()
389 u32 value; in show_altivec_idle() local
392 smp_call_function_single(cpu, do_show_pwrmgtcr0, &value, 1); in show_altivec_idle()
394 value &= PWRMGTCR0_AV_IDLE_PD_EN; in show_altivec_idle()
396 return sprintf(buf, "%u\n", value ? 1 : 0); in show_altivec_idle()
401 u32 *value = val; in do_store_altivec_idle() local
406 if (*value) in do_store_altivec_idle()
418 u32 value; in store_altivec_idle() local
421 if (kstrtou32(buf, 0, &value)) in store_altivec_idle()
424 if (value > 1) in store_altivec_idle()
427 smp_call_function_single(cpu, do_store_altivec_idle, &value, 1); in store_altivec_idle()
435 u32 value; in show_altivec_idle_wait_time() local
442 smp_call_function_single(cpu, do_show_pwrmgtcr0, &value, 1); in show_altivec_idle_wait_time()
443 value = (value & PWRMGTCR0_AV_IDLE_CNT) >> in show_altivec_idle_wait_time()
446 tb_cycle = (tb_cycle << (MAX_BIT - value + 1)); in show_altivec_idle_wait_time()
466 u32 *value = val; in set_altivec_idle_wait_entry_bit() local
476 altivec_idle |= ((MAX_BIT - *value) << PWRMGTCR0_AV_IDLE_CNT_SHIFT); in set_altivec_idle_wait_entry_bit()
486 u64 value; in store_altivec_idle_wait_time() local
490 if (kstrtou64(buf, 0, &value)) in store_altivec_idle_wait_time()
493 if (!value) in store_altivec_idle_wait_time()
496 entry_bit = get_idle_ticks_bit(value); in store_altivec_idle_wait_time()
500 altivec_idle_wt = value; in store_altivec_idle_wait_time()