/kernel/power/ |
H A D | suspend.c | 72 static bool valid_state(suspend_state_t state) argument 79 return suspend_ops && suspend_ops->valid && suspend_ops->valid(state); 83 * If this is set, the "mem" label always corresponds to the deepest sleep state 84 * available, the "standby" label corresponds to the second deepest sleep state 86 * available sleep state (if there is one). 132 int suspend_valid_only_mem(suspend_state_t state) argument 134 return state == PM_SUSPEND_MEM; 138 static bool sleep_state_supported(suspend_state_t state) argument 140 return state == PM_SUSPEND_FREEZE || (suspend_ops && suspend_ops->enter); 143 static int platform_suspend_prepare(suspend_state_t state) argument 149 platform_suspend_prepare_late(suspend_state_t state) argument 155 platform_suspend_prepare_noirq(suspend_state_t state) argument 161 platform_resume_noirq(suspend_state_t state) argument 167 platform_resume_early(suspend_state_t state) argument 173 platform_resume_finish(suspend_state_t state) argument 179 platform_suspend_begin(suspend_state_t state) argument 189 platform_resume_end(suspend_state_t state) argument 197 platform_recover(suspend_state_t state) argument 203 platform_suspend_again(suspend_state_t state) argument 228 suspend_prepare(suspend_state_t state) argument 274 suspend_enter(suspend_state_t state, bool *wakeup) argument 378 suspend_devices_and_enter(suspend_state_t state) argument 444 enter_state(suspend_state_t state) argument 513 pm_suspend(suspend_state_t state) argument [all...] |
H A D | suspend_test.c | 63 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) argument 97 if (state == PM_SUSPEND_MEM) { 98 printk(info_test, pm_states[state]); 99 status = pm_suspend(state); 101 state = PM_SUSPEND_STANDBY; 103 if (state == PM_SUSPEND_STANDBY) { 104 printk(info_test, pm_states[state]); 105 status = pm_suspend(state); 107 state = PM_SUSPEND_FREEZE; 109 if (state [all...] |
H A D | autosleep.c | 89 int pm_autosleep_set_state(suspend_state_t state) argument 93 if (state >= PM_SUSPEND_MAX) 101 autosleep_state = state; 105 if (state > PM_SUSPEND_ON) {
|
H A D | main.c | 282 * state - control system sleep states. 284 * show() returns available sleep state labels, which may be "mem", "standby", 314 suspend_state_t state; local 327 for (state = PM_SUSPEND_MIN; state < PM_SUSPEND_MAX; state++) { 328 const char *label = pm_states[state]; 331 return state; 341 suspend_state_t state; local 353 state 366 power_attr(state); variable 443 suspend_state_t state = pm_autosleep_state(); local 464 suspend_state_t state = decode_state(buf, n); local [all...] |
H A D | power.h | 185 extern int suspend_devices_and_enter(suspend_state_t state); 187 static inline int suspend_devices_and_enter(suspend_state_t state) argument 280 extern int pm_autosleep_set_state(suspend_state_t state);
|
/kernel/ |
H A D | cgroup_freezer.c | 28 * set if "FROZEN" is written to freezer.state cgroupfs file, and cleared 45 unsigned int state; member in struct:freezer 70 ret = task_freezer(task)->state & CGROUP_FREEZING; 76 static const char *freezer_state_strs(unsigned int state) argument 78 if (state & CGROUP_FROZEN) 80 if (state & CGROUP_FREEZING) 102 * parent's freezing state while holding both parent's and our 112 freezer->state |= CGROUP_FREEZER_ONLINE; 114 if (parent && (parent->state & CGROUP_FREEZING)) { 115 freezer->state | 352 freezer_apply_state(struct freezer *freezer, bool freeze, unsigned int state) argument [all...] |
H A D | context_tracking.c | 48 * function sets RCU in extended quiescent state. 78 if ( __this_cpu_read(context_tracking.state) != IN_USER) { 104 __this_cpu_write(context_tracking.state, IN_USER); 132 if (__this_cpu_read(context_tracking.state) == IN_USER) { 142 __this_cpu_write(context_tracking.state, IN_KERNEL);
|
H A D | softirq.c | 76 if (tsk && tsk->state != TASK_RUNNING) 499 &t->state)) 535 &t->state)) 557 t->state = 0; 569 while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) { 572 } while (test_bit(TASKLET_STATE_SCHED, &t->state)); 575 clear_bit(TASKLET_STATE_SCHED, &t->state); 673 * _immediately_, even if the tasklet is in TASKLET_STATE_SCHED state. 675 * When this function is called, @cpu must be in the CPU_DEAD state. 682 BUG_ON(test_bit(TASKLET_STATE_RUN, &t->state)); [all...] |
H A D | panic.c | 47 static long no_blink(int state) argument 53 long (*panic_blink)(int state); 79 int state = 0; local 164 i += panic_blink(state ^= 1); 199 i += panic_blink(state ^= 1); 234 * print_tainted - return a string to represent the kernel taint state.
|
H A D | freezer.c | 36 * and tests whether @p needs to enter and stay in frozen state. Can be 38 * target tasks see the updated state. 64 long save = current->state; 87 * Restore saved task state before returning. The mb'd version 89 * synchronization which depends on ordered task state change.
|
H A D | auditsc.c | 440 enum audit_state *state, 695 case AUDIT_NEVER: *state = AUDIT_DISABLED; break; 696 case AUDIT_ALWAYS: *state = AUDIT_RECORD_CONTEXT; break; 708 enum audit_state state; local 713 &state, true)) { 714 if (state == AUDIT_RECORD_CONTEXT) 717 return state; 743 * record (i.e., the state is AUDIT_SETUP_CONTEXT or AUDIT_BUILD_CONTEXT). 750 enum audit_state state; local 760 &state, fals 436 audit_filter_rules(struct task_struct *tsk, struct audit_krule *rule, struct audit_context *ctx, struct audit_names *name, enum audit_state *state, bool task_creation) argument 781 enum audit_state state; local 917 audit_alloc_context(enum audit_state state) argument 943 enum audit_state state; local 1520 enum audit_state state; local [all...] |
H A D | reboot.c | 228 static void kernel_shutdown_prepare(enum system_states state) argument 231 (state == SYSTEM_HALT) ? SYS_HALT : SYS_POWER_OFF, NULL); 232 system_state = state;
|
H A D | stop_machine.c | 129 /* Dummy starting state for thread. */ 148 enum multi_stop_state state; member in struct:multi_stop_data 158 msdata->state = newstate; 161 /* Last one to ack a state moves to the next state. */ 165 set_state(msdata, msdata->state + 1); 179 * already be disabled. Save the state and restore it on exit. 188 /* Simple state machine */ 192 if (msdata->state != curstate) { 193 curstate = msdata->state; [all...] |
H A D | module.c | 191 BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED); 192 if (mod && mod->state == MODULE_STATE_COMING) 348 if (mod->state == MODULE_STATE_UNFORMED) 462 if (!even_unformed && mod->state == MODULE_STATE_UNFORMED) 543 if (mod->state == MODULE_STATE_UNFORMED) 762 sref->mod->state = MODULE_STATE_GOING; 833 if (mod->state != MODULE_STATE_LIVE) { 1025 const char *state = "unknown"; local 1027 switch (mk->mod->state) { 1029 state [all...] |
H A D | jump_label.c | 184 bool state = static_key_enabled(key); local 186 if ((!true_branch && state) || (true_branch && !state))
|
/kernel/sched/ |
H A D | completion.c | 19 * @x: holds the state of this particular completion 27 * changing the task state if and only if any tasks are woken up. 42 * @x: holds the state of this particular completion 47 * changing the task state if and only if any tasks are woken up. 62 long (*action)(long), long timeout, int state) 69 if (signal_pending_state(state, current)) { 73 __set_current_state(state); 88 long (*action)(long), long timeout, int state) 93 timeout = do_wait_for_common(x, action, timeout, state); 99 wait_for_common(struct completion *x, long timeout, int state) argument 61 do_wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) argument 87 __wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) argument 105 wait_for_common_io(struct completion *x, long timeout, int state) argument [all...] |
H A D | wait.c | 61 * started to run but is not in state TASK_RUNNING. try_to_wake_up() returns 86 * changing the task state if and only if any tasks are woken up. 129 * changing the task state if and only if any tasks are woken up. 171 prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state) argument 179 set_current_state(state); 185 prepare_to_wait_exclusive(wait_queue_head_t *q, wait_queue_t *wait, int state) argument 193 set_current_state(state); 198 long prepare_to_wait_event(wait_queue_head_t *q, wait_queue_t *wait, int state) argument 202 if (signal_pending_state(state, current)) 215 set_current_state(state); [all...] |
/kernel/debug/ |
H A D | debug_core.c | 116 [0 ... KGDB_MAX_BREAKPOINTS-1] = { .state = BP_UNDEFINED } 259 if (kgdb_break[i].state != BP_SET) 271 kgdb_break[i].state = BP_ACTIVE; 286 if ((kgdb_break[i].state == BP_SET) && 291 if (kgdb_break[i].state == BP_REMOVED && 300 if (kgdb_break[i].state == BP_UNDEFINED) { 310 kgdb_break[breakno].state = BP_SET; 324 if (kgdb_break[i].state != BP_ACTIVE) 334 kgdb_break[i].state = BP_SET; 344 if ((kgdb_break[i].state [all...] |
/kernel/debug/kdb/ |
H A D | kdb_support.c | 538 * letters DRSTCZEUIMA to a mask for the process state field and 545 * Mask for process state. 615 * kdb_task_state_char - Return the character that represents the task state. 619 * One character to represent the task state. 624 char state; local 631 state = (p->state == 0) ? 'R' : 632 (p->state < 0) ? 'U' : 633 (p->state & TASK_UNINTERRUPTIBLE) ? 'D' : 634 (p->state 663 char state[] = { kdb_task_state_char(p), '\\0' }; local [all...] |
/kernel/locking/ |
H A D | semaphore.c | 200 * Because this function is inlined, the 'state' parameter will be 204 static inline int __sched __down_common(struct semaphore *sem, long state, argument 215 if (signal_pending_state(state, task)) 219 __set_task_state(task, state);
|
H A D | rtmutex.c | 23 * lock->owner state tracking: 26 * is used to keep track of the "lock has waiters" state. 38 * (*) It also can be a transitional state when grabbing the lock 41 * NULL in this small time, hence this can be a transitional state. 74 * supports cmpxchg and if there's no debugging state to be set up 477 * reached or the state of the chain has changed while we 484 * Check the orig_waiter state. After we dropped the locks, 762 * The RT_MUTEX_HAS_WAITERS bit can have a transitional state 766 * transient state if it does a trylock or leaves the lock 1090 * @state 1098 __rt_mutex_slowlock(struct rt_mutex *lock, int state, struct hrtimer_sleeper *timeout, struct rt_mutex_waiter *waiter) argument 1160 rt_mutex_slowlock(struct rt_mutex *lock, int state, struct hrtimer_sleeper *timeout, enum rtmutex_chainwalk chwalk) argument 1321 rt_mutex_fastlock(struct rt_mutex *lock, int state, int (*slowfn)(struct rt_mutex *lock, int state, struct hrtimer_sleeper *timeout, enum rtmutex_chainwalk chwalk)) argument 1334 rt_mutex_timed_fastlock(struct rt_mutex *lock, int state, struct hrtimer_sleeper *timeout, enum rtmutex_chainwalk chwalk, int (*slowfn)(struct rt_mutex *lock, int state, struct hrtimer_sleeper *timeout, enum rtmutex_chainwalk chwalk)) argument [all...] |
/kernel/bpf/ |
H A D | verifier.c | 22 * instruction by instruction and updates register/stack state. 120 * insn, the register holding that pointer in the true branch changes state to 121 * PTR_TO_MAP_VALUE and the same register changes state to CONST_IMM in the false 166 /* state of the program: 176 struct verifier_state state; member in struct:verifier_state_list 182 /* verifer state is 'st' 201 struct verifier_state cur_state; /* current verifier state */ 539 static int check_stack_write(struct verifier_state *state, int off, int size, argument 546 (state->regs[value_regno].type == PTR_TO_MAP_VALUE || 547 state 579 check_stack_read(struct verifier_state *state, int off, int size, int value_regno) argument 656 struct verifier_state *state = &env->cur_state; local 734 struct verifier_state *state = &env->cur_state; local 841 struct verifier_state *state = &env->cur_state; local 1470 struct verifier_state *state = &env->cur_state; local [all...] |
/kernel/trace/ |
H A D | trace_sched_switch.c | 42 entry->prev_state = prev->state; 45 entry->next_state = next->state; 98 entry->prev_state = curr->state; 101 entry->next_state = wakee->state;
|
/kernel/time/ |
H A D | hrtimer.c | 320 static int hrtimer_fixup_init(void *addr, enum debug_obj_state state) argument 324 switch (state) { 339 static int hrtimer_fixup_activate(void *addr, enum debug_obj_state state) argument 341 switch (state) { 359 static int hrtimer_fixup_free(void *addr, enum debug_obj_state state) argument 363 switch (state) { 551 * Note, that in case the state has HRTIMER_STATE_CALLBACK set, no reprogramming 839 * HRTIMER_STATE_ENQUEUED is or'ed to the current state to preserve the 840 * state of a possibly running callback. 842 timer->state | 893 unsigned long state; local [all...] |
/kernel/irq/ |
H A D | spurious.c | 155 unsigned int state; local 161 state = desc->istate; 163 if (!(state & IRQS_SPURIOUS_DISABLED))
|