Lines Matching full:features
31 static bool features_enabled(unsigned long features) in features_enabled() argument
33 return current->thread.features & features; in features_enabled()
36 static void features_set(unsigned long features) in features_set() argument
38 current->thread.features |= features; in features_set()
41 static void features_clr(unsigned long features) in features_clr() argument
43 current->thread.features &= ~features; in features_clr()
190 current->thread.features = 0; in reset_thread_features()
577 unsigned long features = arg2; in shstk_prctl() local
580 return put_user(task->thread.features, (unsigned long __user *)arg2); in shstk_prctl()
584 task->thread.features_locked |= features; in shstk_prctl()
591 task->thread.features_locked &= ~features; in shstk_prctl()
597 /* Do not allow to change locked features */ in shstk_prctl()
598 if (features & task->thread.features_locked) in shstk_prctl()
602 if (hweight_long(features) > 1) in shstk_prctl()
606 if (features & ARCH_SHSTK_WRSS) in shstk_prctl()
608 if (features & ARCH_SHSTK_SHSTK) in shstk_prctl()
614 if (features & ARCH_SHSTK_SHSTK) in shstk_prctl()
616 if (features & ARCH_SHSTK_WRSS) in shstk_prctl()