/kernel/linux/linux-5.10/lib/ |
H A D | nlattr.c | 50 * policy in some cases, and userspace could try to 57 const struct nla_policy *policy, 86 const struct nla_policy *policy, in nla_validate_array() 100 NL_SET_ERR_MSG_ATTR_POL(extack, entry, policy, in nla_validate_array() 106 maxtype, policy, validate, extack, in nla_validate_array() 359 const struct nla_policy *policy, unsigned int validate, in validate_nla() 362 u16 strict_start_type = policy[0].strict_start_type; in validate_nla() 374 pt = &policy[type]; in validate_nla() 556 "Attribute failed policy validation"); in validate_nla() 561 const struct nla_policy *policy, in __nla_validate_parse() 85 nla_validate_array(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack, unsigned int validate, unsigned int depth) nla_validate_array() argument 358 validate_nla(const struct nlattr *nla, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack, unsigned int depth) validate_nla() argument 560 __nla_validate_parse(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack, struct nlattr **tb, unsigned int depth) __nla_validate_parse() argument 629 __nla_validate(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nla_validate() argument 683 __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nla_parse() argument [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | longhaul.c | 245 static int longhaul_setstate(struct cpufreq_policy *policy, in longhaul_setstate() argument 619 static int longhaul_target(struct cpufreq_policy *policy, in longhaul_target() argument 628 retval = longhaul_setstate(policy, table_index); in longhaul_target() 643 retval = longhaul_setstate(policy, i); in longhaul_target() 652 retval = longhaul_setstate(policy, table_index); in longhaul_target() 759 static int longhaul_cpu_init(struct cpufreq_policy *policy) in longhaul_cpu_init() argument 896 policy->transition_delay_us = 200000; /* usec */ in longhaul_cpu_init() 897 policy->freq_table = longhaul_table; in longhaul_cpu_init() 953 struct cpufreq_policy *policy = cpufreq_cpu_get(0); in longhaul_exit() local 960 freqs.old = policy in longhaul_exit() [all...] |
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | cpufreq.c | 64 * cpufreq_this_cpu_can_update - Check if cpufreq policy can be updated. 65 * @policy: cpufreq policy to check. 68 * - the local and remote CPUs share @policy, 69 * - dvfs_possible_from_any_cpu is set in @policy and the local CPU is not going 72 bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy) in cpufreq_this_cpu_can_update() argument 74 return cpumask_test_cpu(smp_processor_id(), policy->cpus) || in cpufreq_this_cpu_can_update() 75 (policy->dvfs_possible_from_any_cpu && in cpufreq_this_cpu_can_update()
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | policy_compat.h | 5 * Code to provide backwards compatibility with older policy versions, 6 * by converting/mapping older policy formats into the newer internal 15 #include "policy.h" 29 int aa_compat_map_xmatch(struct aa_policydb *policy); 30 int aa_compat_map_policy(struct aa_policydb *policy, u32 version); 31 int aa_compat_map_file(struct aa_policydb *policy);
|
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | cpufreq.c | 61 * cpufreq_this_cpu_can_update - Check if cpufreq policy can be updated. 62 * @policy: cpufreq policy to check. 65 * - the local and remote CPUs share @policy, 66 * - dvfs_possible_from_any_cpu is set in @policy and the local CPU is not going 69 bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy) in cpufreq_this_cpu_can_update() argument 71 return cpumask_test_cpu(smp_processor_id(), policy->cpus) || in cpufreq_this_cpu_can_update() 72 (policy->dvfs_possible_from_any_cpu && in cpufreq_this_cpu_can_update()
|
/third_party/musl/src/thread/ |
H A D | pthread_setschedparam.c | 7 int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param) in pthread_setschedparam() argument 17 r = !t->tid ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param, MUSL_TYPE_THREAD); in pthread_setschedparam() 19 r = !t->tid ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param); in pthread_setschedparam()
|
H A D | pthread_getschedparam.c | 4 int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param *restrict param) in pthread_getschedparam() argument 18 *policy = r; in pthread_getschedparam() 29 *policy = __syscall(SYS_sched_getscheduler, t->tid); in pthread_getschedparam()
|
/third_party/ltp/testcases/kernel/syscalls/sched_get_priority_max/ |
H A D | sched_get_priority_max01.c | 23 #define POLICY_DESC(x) .desc = #x, .policy = x 27 int policy; member 42 TST_EXP_VAL(tst_syscall(__NR_sched_get_priority_max, tc->policy), in run_test()
|
/third_party/ltp/testcases/kernel/syscalls/sched_get_priority_min/ |
H A D | sched_get_priority_min01.c | 23 #define POLICY_DESC(x) .desc = #x, .policy = x 27 int policy; member 42 TST_EXP_VAL(tst_syscall(__NR_sched_get_priority_min, tc->policy), in run_test()
|
/kernel/linux/linux-5.10/include/acpi/ |
H A D | processor.h | 313 void acpi_processor_ppc_init(struct cpufreq_policy *policy); 314 void acpi_processor_ppc_exit(struct cpufreq_policy *policy); 322 static inline void acpi_processor_ppc_init(struct cpufreq_policy *policy) in acpi_processor_ppc_init() argument 326 static inline void acpi_processor_ppc_exit(struct cpufreq_policy *policy) in acpi_processor_ppc_exit() argument 442 void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy); 443 void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy); 445 static inline void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_init() argument 449 static inline void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_exit() argument
|
/kernel/linux/linux-6.6/include/acpi/ |
H A D | processor.h | 318 void acpi_processor_ppc_init(struct cpufreq_policy *policy); 319 void acpi_processor_ppc_exit(struct cpufreq_policy *policy); 327 static inline void acpi_processor_ppc_init(struct cpufreq_policy *policy) in acpi_processor_ppc_init() argument 331 static inline void acpi_processor_ppc_exit(struct cpufreq_policy *policy) in acpi_processor_ppc_exit() argument 450 void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy); 451 void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy); 453 static inline void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_init() argument 457 static inline void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_exit() argument
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-flush.c | 105 unsigned int policy = 0; in blk_flush_policy() local 108 policy |= REQ_FSEQ_DATA; in blk_flush_policy() 112 policy |= REQ_FSEQ_PREFLUSH; in blk_flush_policy() 115 policy |= REQ_FSEQ_POSTFLUSH; in blk_flush_policy() 117 return policy; in blk_flush_policy() 407 unsigned int policy = blk_flush_policy(fflags, rq); in blk_insert_flush() local 414 * @policy now records what operations need to be done. Adjust in blk_insert_flush() 428 switch (policy) { in blk_insert_flush() 463 blk_flush_complete_seq(rq, fq, REQ_FSEQ_ACTIONS & ~policy, 0); in blk_insert_flush()
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | include.h | 273 int write_domain_policy(const char *policy, int is_delete) in write_domain_policy() argument 286 fprintf(domain_fp, "%s\n", policy); in write_domain_policy() 296 if (strcmp(buffer, policy)) in write_domain_policy() 304 policy); in write_domain_policy() 312 int write_exception_policy(const char *policy, int is_delete) in write_exception_policy() argument 324 fprintf(exception_fp, "%s\n", policy); in write_exception_policy() 329 if (strcmp(buffer, policy)) in write_exception_policy() 337 policy); in write_exception_policy()
|
/kernel/liteos_a/kernel/base/sched/ |
H A D | los_sched.c | 251 if (rp1->policy == rp2->policy) { in OsSchedParamCompare() 255 if (rp1->policy == LOS_SCHED_IDLE) { in OsSchedParamCompare() 257 } else if (rp2->policy == LOS_SCHED_IDLE) { in OsSchedParamCompare() 263 UINT32 OsSchedParamInit(LosTaskCB *taskCB, UINT16 policy, const SchedParam *parentParam, const LosSchedParam *param) in OsSchedParamInit() argument 265 switch (policy) { in OsSchedParamInit() 268 HPFTaskSchedParamInit(taskCB, policy, parentParam, param); in OsSchedParamInit() 271 return EDFTaskSchedParamInit(taskCB, policy, parentParam, param); in OsSchedParamInit() 282 VOID OsSchedProcessDefaultSchedParamGet(UINT16 policy, SchedParam *param) in OsSchedProcessDefaultSchedParamGet() argument 284 switch (policy) { in OsSchedProcessDefaultSchedParamGet() [all...] |
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
H A D | NativeAudioContext.h | 83 int32_t policy = getIntegerProperty("aaudio.mmap_policy", 0); in AAudioExtensions() local 84 mMMapSupported = isPolicyEnabled(policy); in AAudioExtensions() 86 policy = getIntegerProperty("aaudio.mmap_exclusive_policy", 0); in AAudioExtensions() 87 mMMapExclusiveSupported = isPolicyEnabled(policy); in AAudioExtensions() 90 static bool isPolicyEnabled(int32_t policy) { in isPolicyEnabled() argument 91 return (policy == AAUDIO_POLICY_AUTO || policy == AAUDIO_POLICY_ALWAYS); in isPolicyEnabled() 115 int32_t policy = mAAudio_getMMapPolicy(); in isMMapEnabled() 116 return isPolicyEnabled(policy); in isMMapEnabled() 162 mAAudio_setMMapPolicy = (int32_t (*)(aaudio_policy_t policy)) in loadLibrary() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/speculative/ |
H A D | 3-2.c | 11 * 2. Set the policy and an invalid priority in that object 32 int policy = RRPOLICY; in main() local 42 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 48 priority = sched_get_priority_max(policy); in main()
|
H A D | 3-1.c | 11 * 2. Set the policy and an invalid priority in that object 32 int policy = FIFOPOLICY; in main() local 42 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 48 priority = sched_get_priority_max(policy); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 15-1.c | 11 * contention scope threads have their scheduling policy changed to the 33 int new_policy, policy, result; in main() local 38 /* Make sure new policy != old policy */ in main() 63 ("This process does not have the permission to set its own scheduling policy.\nTry to launch this test as root.\n"); in main() 70 if (pthread_getschedparam(tid, &policy, ¶m) != 0) { in main() 77 if (policy == new_policy) { in main() 81 printf("sched_setscheduler() does not set the right policy.\n"); in main()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | ts.c | 40 const EVP_MD *md, const char *policy, int no_nonce, 43 const char *policy, int no_nonce, int cert); 52 const char *policy, const char *in, int token_in, 58 const char *chain, const char *policy); 167 char *data = NULL, *digest = NULL, *policy = NULL; in ts_main() local 226 policy = opt_arg(); in ts_main() 319 ret = !query_command(data, digest, md, policy, no_nonce, cert, in ts_main() 331 password, inkey, md, signer, chain, policy, in ts_main() 395 const char *policy, int no_nonce, in query_command() 413 query = create_query(data_bio, digest, md, policy, no_nonc in query_command() 394 query_command(const char *data, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert, const char *in, const char *out, int text) query_command() argument 441 create_query(BIO *data_bio, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert) create_query() argument 584 reply_command(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy, const char *in, int token_in, const char *out, int token_out, int text) reply_command() argument 692 create_response(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy) create_response() argument [all...] |
/third_party/openssl/apps/ |
H A D | ts.c | 40 const EVP_MD *md, const char *policy, int no_nonce, 43 const char *policy, int no_nonce, int cert); 52 const char *policy, const char *in, int token_in, 58 const char *chain, const char *policy); 167 char *data = NULL, *digest = NULL, *policy = NULL; in ts_main() local 226 policy = opt_arg(); in ts_main() 319 ret = !query_command(data, digest, md, policy, no_nonce, cert, in ts_main() 331 password, inkey, md, signer, chain, policy, in ts_main() 395 const char *policy, int no_nonce, in query_command() 413 query = create_query(data_bio, digest, md, policy, no_nonc in query_command() 394 query_command(const char *data, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert, const char *in, const char *out, int text) query_command() argument 441 create_query(BIO *data_bio, const char *digest, const EVP_MD *md, const char *policy, int no_nonce, int cert) create_query() argument 584 reply_command(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy, const char *in, int token_in, const char *out, int token_out, int text) reply_command() argument 692 create_response(CONF *conf, const char *section, const char *engine, const char *queryfile, const char *passin, const char *inkey, const EVP_MD *md, const char *signer, const char *chain, const char *policy) create_response() argument [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/frw/ |
H A D | frw_event_sched.c | 200 frw_sched_policy_enum_uint8 policy, frw_event_queue_state_enum_uint8 state) in frw_event_queue_set() 204 event_queue->policy = policy; in frw_event_queue_set() 252 frw_sched_policy_enum_uint8 policy, in frw_event_queue_init() 267 frw_event_queue_set(event_queue, weight, policy, state); in frw_event_queue_init() 199 frw_event_queue_set(frw_event_queue_stru *event_queue, hi_u8 weight, frw_sched_policy_enum_uint8 policy, frw_event_queue_state_enum_uint8 state) frw_event_queue_set() argument 251 frw_event_queue_init(frw_event_queue_stru *event_queue, hi_u8 weight, frw_sched_policy_enum_uint8 policy, frw_event_queue_state_enum_uint8 state, hi_u8 max_events) frw_event_queue_init() argument
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | topology.c | 155 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); in enable_policy_freq_counters() local 157 if (!policy) { in enable_policy_freq_counters() 158 pr_debug("CPU%d: No cpufreq policy found.\n", cpu); in enable_policy_freq_counters() 162 if (cpumask_subset(policy->related_cpus, valid_cpus)) in enable_policy_freq_counters() 163 cpumask_or(amu_fie_cpus, policy->related_cpus, in enable_policy_freq_counters() 166 cpufreq_cpu_put(policy); in enable_policy_freq_counters() 200 * policy cpus. in init_amu_fie()
|
/kernel/liteos_a/compat/posix/src/ |
H A D | pthread_attr.c | 140 int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) in pthread_attr_setschedpolicy() argument 142 if ((attr != NULL) && (policy == SCHED_RR)) { in pthread_attr_setschedpolicy() 150 int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy) in pthread_attr_getschedpolicy() argument 152 if ((attr == NULL) || (policy == NULL)) { in pthread_attr_getschedpolicy() 156 *policy = (int)attr->schedpolicy; in pthread_attr_getschedpolicy()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | l2tp.sh | 234 run_cmd host-1 ip xfrm policy add \ 238 run_cmd host-1 ip xfrm policy add \ 242 run_cmd host-2 ip xfrm policy add \ 246 run_cmd host-2 ip xfrm policy add \ 273 run_cmd host-1 ip -6 xfrm policy add \ 277 run_cmd host-1 ip -6 xfrm policy add \ 281 run_cmd host-2 ip -6 xfrm policy add \ 285 run_cmd host-2 ip -6 xfrm policy add \ 313 run_cmd host-1 ip xfrm policy flush 315 run_cmd host-2 ip xfrm policy flus [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | l2tp.sh | 234 run_cmd host-1 ip xfrm policy add \ 238 run_cmd host-1 ip xfrm policy add \ 242 run_cmd host-2 ip xfrm policy add \ 246 run_cmd host-2 ip xfrm policy add \ 273 run_cmd host-1 ip -6 xfrm policy add \ 277 run_cmd host-1 ip -6 xfrm policy add \ 281 run_cmd host-2 ip -6 xfrm policy add \ 285 run_cmd host-2 ip -6 xfrm policy add \ 313 run_cmd host-1 ip xfrm policy flush 315 run_cmd host-2 ip xfrm policy flus [all...] |