Lines Matching +defs:val +defs:callback
95 /* Get callback context handle for current CPU. */
102 /* Compute index from callback context handle. */
136 cpu_idle_callback_t *callback;
334 "cpu_idle: failed to register callback for dtrace.");
340 "cpu_idle: failed to register callback for tlb_flush.");
425 cpu_idle_cb_array[i].enter = cip->callback->idle_enter;
426 cpu_idle_cb_array[i].exit = cip->callback->idle_exit;
483 * Reset property ready flag for all CPUs if no registered callback
485 * there's no callback registered.
515 "!cpu_event: register_callback called from callback.");
528 "!cpu_event: callback version %d is not supported.",
534 /* Check whether callback with priority exists if not dynamic. */
540 cmn_err(CE_NOTE, "!cpu_event: callback with "
548 cip->callback = cbp;
573 "!cpu_event: unregister_callback called from callback.");
597 "!cpu_event: callback handle %p not found.", (void *)hdl);
673 /* Skip calling callback if state is not ready for current CPU. */
683 * Increase index so corresponding idle_exit callback
685 * idle_enter callback.
689 /* Call idle_enter callback function if it's not NULL. */
777 * there is no registered callback.
1087 cpu_idle_callback_context_t ctx, cpu_idle_prop_value_t val)
1095 prop->value[idx] = val;
1099 cpu_idle_prop_set_all(cpu_idle_prop_handle_t hdl, cpu_idle_prop_value_t val)
1107 prop->value[idx] = val;
1116 uint64_t val;
1118 for (val = 0, i = 0; i < PIL_MAX; i++) {
1119 val += CPU->cpu_stats.sys.intr[i];
1121 valp->cipv_uint64 = val;