/third_party/ltp/testcases/kernel/syscalls/get_mempolicy/ |
H A D | get_mempolicy02.c | 31 #define POLICY_DESC_TEXT(x, y) .policy = x, .desc = "policy: "#x", "y 37 int policy; member 76 int policy; in do_test() local 78 TST_EXP_FAIL(get_mempolicy(&policy, nodemask->maskp, nodemask->size, in do_test()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 17-1.c | 11 * Test that the policy and scheduling parameters remain unchanged when the 13 * scheduling policy. 15 * Test is done for all policy defined in the spec into a loop. 17 * 1. Get the old policy and priority. 19 * 3. Check that the policy and priority have not changed. 47 int policy, invalid_priority, result = PTS_PASS; in main() local 55 policy = tst->value; in main() 73 invalid_priority = sched_get_priority_max(policy); in main() 84 sched_setscheduler(0, policy, ¶m); in main() 106 printf(" The policy ha in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/ |
H A D | 1-1.c | 11 * 2. Set the policy and priority in that object 43 int policy = FIFOPOLICY; in main() local 53 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 59 priority = sched_get_priority_max(policy); in main() 75 "Permission Denied when creating thread with policy %d\n", in main() 76 policy); in main()
|
H A D | 1-2.c | 11 * 2. Set the policy and priority in that object 44 int policy = RRPOLICY; in main() local 54 rc = pthread_attr_setschedpolicy(&attr, policy); in main() 60 priority = sched_get_priority_max(policy); in main() 77 "Permission Denied when creating thread with policy %d\n", in main() 78 policy); in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/ |
H A D | nft_queue.sh | 97 type filter hook prerouting priority $prio; policy accept; 101 type filter hook input priority $prio; policy accept; 105 type filter hook forward priority $prio; policy accept; 110 type filter hook output priority $prio; policy accept; 115 type filter hook postrouting priority $prio; policy accept; 128 type filter hook prerouting priority $prio; policy accept; 132 type filter hook input priority $prio; policy accept; 136 type filter hook forward priority $prio; policy accept; 140 type filter hook output priority $prio; policy accept; 144 type filter hook postrouting priority $prio; policy accep [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
H A D | txrx.c | 45 /* TX policy cache implementation */ 47 static void tx_policy_dump(struct tx_policy *policy) in tx_policy_dump() argument 49 pr_debug("[TX policy] %.1X%.1X%.1X%.1X%.1X%.1X%.1X%.1X %.1X%.1X%.1X%.1X%.1X%.1X%.1X%.1X %.1X%.1X%.1X%.1X%.1X%.1X%.1X%.1X: %d\n", in tx_policy_dump() 50 policy->raw[0] & 0x0F, policy->raw[0] >> 4, in tx_policy_dump() 51 policy->raw[1] & 0x0F, policy->raw[1] >> 4, in tx_policy_dump() 52 policy->raw[2] & 0x0F, policy->raw[2] >> 4, in tx_policy_dump() 53 policy in tx_policy_dump() 65 tx_policy_build(const struct cw1200_common *priv, struct tx_policy *policy, struct ieee80211_tx_rate *rates, size_t count) tx_policy_build() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
H A D | txrx.c | 45 /* TX policy cache implementation */ 47 static void tx_policy_dump(struct tx_policy *policy) in tx_policy_dump() argument 49 pr_debug("[TX policy] %.1X%.1X%.1X%.1X%.1X%.1X%.1X%.1X %.1X%.1X%.1X%.1X%.1X%.1X%.1X%.1X %.1X%.1X%.1X%.1X%.1X%.1X%.1X%.1X: %d\n", in tx_policy_dump() 50 policy->raw[0] & 0x0F, policy->raw[0] >> 4, in tx_policy_dump() 51 policy->raw[1] & 0x0F, policy->raw[1] >> 4, in tx_policy_dump() 52 policy->raw[2] & 0x0F, policy->raw[2] >> 4, in tx_policy_dump() 53 policy in tx_policy_dump() 65 tx_policy_build(const struct cw1200_common *priv, struct tx_policy *policy, struct ieee80211_tx_rate *rates, size_t count) tx_policy_build() argument [all...] |
/drivers/hdf_core/framework/support/posix/src/ |
H A D | osal_thread.c | 121 static int32_t OsalThreadSetSchedPolicy(pthread_attr_t *attribute, const int policy) in OsalThreadSetSchedPolicy() argument 123 if (policy == SCHED_OTHER) { in OsalThreadSetSchedPolicy() 126 if (policy != SCHED_FIFO && policy != SCHED_RR) { in OsalThreadSetSchedPolicy() 127 HDF_LOGE("%s invalid policy", __func__); in OsalThreadSetSchedPolicy() 135 resultCode = pthread_attr_setschedpolicy(attribute, policy); in OsalThreadSetSchedPolicy() 185 OsalThreadSetSchedPolicy(&attribute, param->policy); in OsalThreadStart()
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | usr_lib_ops.h | 48 int (*pthread_attr_setschedpolicy)(pthread_attr_t *attr, int policy); 49 int (*pthread_attr_getschedpolicy)(const pthread_attr_t *attr, int *policy); 56 int (*sched_get_priority_min)(int policy); 57 int (*sched_get_priority_max)(int policy); 59 int (*pthread_setschedparam)(pthread_t thread, int policy, const struct sched_param *param); 60 int (*pthread_getschedparam)(pthread_t thread, int *policy, struct sched_param *param);
|
/third_party/libwebsockets/lib/secure-streams/protocols/ |
H A D | ss-raw.c | 47 assert(h->policy); in secstream_raw() 49 lws_ss_tag(h), h->policy->streamtype, in ? (char *)in : "(null)"); in secstream_raw() 74 h->policy ? h->policy->streamtype : "no policy"); in secstream_raw() 87 if (h->policy && !(h->policy->flags & LWSSSPOLF_OPPORTUNISTIC) && in secstream_raw()
|
H A D | ss-ws.c | 88 if (h->policy && in secstream_ws() 89 !(h->policy->flags & LWSSSPOLF_OPPORTUNISTIC) && in secstream_ws() 168 f1 = lws_write_ws_flags(h->policy->u.http.u.ws.binary ? in secstream_ws() 211 const char *pbasis = h->policy->u.http.url; in secstream_connect_munge_ws() 215 /* i.path on entry is used to override the policy urlpath if not "" */ in secstream_connect_munge_ws() 223 if (h->policy->flags & LWSSSPOLF_HTTP_CACHE_COOKIES) in secstream_connect_munge_ws() 226 if (h->policy->flags & LWSSSPOLF_PRIORITIZE_READS) in secstream_connect_munge_ws() 240 i->protocol = h->policy->u.http.u.ws.subprotocol; in secstream_connect_munge_ws()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | sparc-us2e-cpufreq.c | 267 static int us2e_freq_target(struct cpufreq_policy *policy, unsigned int index) in us2e_freq_target() argument 269 unsigned int cpu = policy->cpu; in us2e_freq_target() 274 static int __init us2e_freq_cpu_init(struct cpufreq_policy *policy) in us2e_freq_cpu_init() argument 276 unsigned int cpu = policy->cpu; in us2e_freq_cpu_init() 294 policy->cpuinfo.transition_latency = 0; in us2e_freq_cpu_init() 295 policy->cur = clock_tick; in us2e_freq_cpu_init() 296 policy->freq_table = table; in us2e_freq_cpu_init() 301 static int us2e_freq_cpu_exit(struct cpufreq_policy *policy) in us2e_freq_cpu_exit() argument 304 us2e_freq_target(policy, 0); in us2e_freq_cpu_exit()
|
/kernel/linux/linux-6.6/drivers/cxl/ |
H A D | pci.c | 650 struct cxl_event_interrupt_policy *policy) in cxl_event_get_int_policy() 654 .payload_out = policy, in cxl_event_get_int_policy() 655 .size_out = sizeof(*policy), in cxl_event_get_int_policy() 662 "Failed to get event interrupt policy : %d", rc); in cxl_event_get_int_policy() 668 struct cxl_event_interrupt_policy *policy) in cxl_event_config_msgnums() 673 *policy = (struct cxl_event_interrupt_policy) { in cxl_event_config_msgnums() 682 .payload_in = policy, in cxl_event_config_msgnums() 683 .size_in = sizeof(*policy), in cxl_event_config_msgnums() 688 dev_err(mds->cxlds.dev, "Failed to set event interrupt policy : %d", in cxl_event_config_msgnums() 694 return cxl_event_get_int_policy(mds, policy); in cxl_event_config_msgnums() 649 cxl_event_get_int_policy(struct cxl_memdev_state *mds, struct cxl_event_interrupt_policy *policy) cxl_event_get_int_policy() argument 667 cxl_event_config_msgnums(struct cxl_memdev_state *mds, struct cxl_event_interrupt_policy *policy) cxl_event_config_msgnums() argument 700 struct cxl_event_interrupt_policy policy; cxl_event_irqsetup() local 744 struct cxl_event_interrupt_policy policy; cxl_event_config() local [all...] |
/test/xts/acts/kernel_lite/sched_posix/src/ |
H A D | ProcessSchedApiTest.cpp | 160 LOG("change sched policy");
in HWTEST_F() 581 * @tc.name sched_get_priority_max api error test with unsupport policy.
592 EXPECT_EQ(prio, -1) << "sched_get_priority_max ok for policy=" << invalidPolicy[i];
in HWTEST_F() 593 EXPECT_EQ(errno, EINVAL) << "errno check fail for policy=" << invalidPolicy[i];
in HWTEST_F() 599 * @tc.name sched_get_priority_max api error test with invalid policy.
611 EXPECT_EQ(prio, -1) << "sched_get_priority_max ok for policy=" << invalidPolicyVal;
in HWTEST_F() 612 EXPECT_EQ(errno, EINVAL) << "errno check fail for policy=" << invalidPolicyVal;
in HWTEST_F() 617 EXPECT_EQ(prio, -1) << "sched_get_priority_max ok for policy=" << invalidPolicyVal;
in HWTEST_F() 618 EXPECT_EQ(errno, EINVAL) << "errno check fail for policy=" << invalidPolicyVal;
in HWTEST_F() 634 * @tc.name sched_get_priority_min api error test with unsupport policy 679 int policy = sched_getscheduler(0); HWTEST_F() local 743 int policy = sched_getscheduler(0); HWTEST_F() local 835 int policy = sched_getscheduler(0); HWTEST_F() local 867 int policy = sched_getscheduler(0); HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
H A D | ib_virt.c | 65 mlx5_ib_warn(dev, "failed to query port policy for vf %d (%d)\n", in mlx5_ib_get_vf_config() 70 info->linkstate = mlx_to_net_policy(rep->policy); in mlx5_ib_get_vf_config() 79 static inline enum port_state_policy net_to_mlx_policy(int policy) in net_to_mlx_policy() argument 81 switch (policy) { in net_to_mlx_policy() 106 in->policy = net_to_mlx_policy(state); in mlx5_ib_set_vf_link_state() 107 if (in->policy == MLX5_POLICY_INVALID) { in mlx5_ib_set_vf_link_state() 114 vfs_ctx[vf].policy = in->policy; in mlx5_ib_set_vf_link_state()
|
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/ |
H A D | ti-thermal-common.c | 27 struct cpufreq_policy *policy; member 238 data->policy = cpufreq_cpu_get(0); in ti_thermal_register_cpu_cooling() 239 if (!data->policy) { in ti_thermal_register_cpu_cooling() 240 pr_debug("%s: CPUFreq policy not found\n", __func__); in ti_thermal_register_cpu_cooling() 245 data->cool_dev = cpufreq_cooling_register(data->policy); in ti_thermal_register_cpu_cooling() 250 cpufreq_cpu_put(data->policy); in ti_thermal_register_cpu_cooling() 267 if (data->policy) in ti_thermal_unregister_cpu_cooling() 268 cpufreq_cpu_put(data->policy); in ti_thermal_unregister_cpu_cooling()
|
/kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/ |
H A D | ti-thermal-common.c | 30 struct cpufreq_policy *policy; member 237 data->policy = cpufreq_cpu_get(0); in ti_thermal_register_cpu_cooling() 238 if (!data->policy) { in ti_thermal_register_cpu_cooling() 239 pr_debug("%s: CPUFreq policy not found\n", __func__); in ti_thermal_register_cpu_cooling() 244 data->cool_dev = cpufreq_cooling_register(data->policy); in ti_thermal_register_cpu_cooling() 249 cpufreq_cpu_put(data->policy); in ti_thermal_register_cpu_cooling() 266 if (data->policy) in ti_thermal_unregister_cpu_cooling() 267 cpufreq_cpu_put(data->policy); in ti_thermal_unregister_cpu_cooling()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | ib_virt.c | 64 mlx5_ib_warn(dev, "failed to query port policy for vf %d (%d)\n", in mlx5_ib_get_vf_config() 69 info->linkstate = mlx_to_net_policy(rep->policy); in mlx5_ib_get_vf_config() 78 static inline enum port_state_policy net_to_mlx_policy(int policy) in net_to_mlx_policy() argument 80 switch (policy) { in net_to_mlx_policy() 105 in->policy = net_to_mlx_policy(state); in mlx5_ib_set_vf_link_state() 106 if (in->policy == MLX5_POLICY_INVALID) { in mlx5_ib_set_vf_link_state() 113 vfs_ctx[vf].policy = in->policy; in mlx5_ib_set_vf_link_state()
|
/third_party/libunwind/libunwind/doc/ |
H A D | unw_set_caching_policy.tex | 8 \begin{Name}{3}{unw\_set\_caching\_policy}{David Mosberger-Tang}{Programming Library}{unw\_set\_caching\_policy}unw\_set\_caching\_policy -- set unwind caching policy 15 \Type{int} \Func{unw\_set\_caching\_policy}(\Type{unw\_addr\_space\_t} \Var{as}, \Type{unw\_caching\_policy\_t} \Var{policy});\\ 19 The \Func{unw\_set\_caching\_policy}() routine sets the caching policy 20 of address space \Var{as} to the policy specified by argument 21 \Var{policy}. The \Var{policy} argument can take one of three 62 \item[\Const{UNW\_ENOMEM}] The desired caching policy could not be
|
/kernel/liteos_a/kernel/base/core/ |
H A D | los_task.c | 98 schedParam.policy = LOS_SCHED_RR; in OsSetMainTask() 112 (VOID)OsSchedParamInit(&g_mainTask[i], schedParam.policy, &schedParam, NULL); in OsSetMainTask() 240 taskInitParam.policy = LOS_SCHED_IDLE; in OsIdleTaskCreate() 547 UINT16 policy = (initParam->policy == LOS_SCHED_NORMAL) ? LOS_SCHED_RR : initParam->policy; in TaskCBInit() local 551 schedParam.policy = policy; in TaskCBInit() 557 if (policy == LOS_SCHED_DEADLINE) { in TaskCBInit() 564 ret = OsSchedParamInit(taskCB, policy, in TaskCBInit() 1376 INT32 policy; OsCreateUserTask() local 1420 INT32 policy; LOS_GetTaskScheduler() local 1442 LOS_SetTaskScheduler(INT32 taskID, UINT16 policy, UINT16 priority) LOS_SetTaskScheduler() argument [all...] |
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/ |
H A D | pthread_attr.c | 136 int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) in pthread_attr_setschedpolicy() argument 138 if ((attr != NULL) && (policy == SCHED_RR)) { in pthread_attr_setschedpolicy() 146 int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy) in pthread_attr_getschedpolicy() argument 148 if ((attr == NULL) || (policy == NULL)) { in pthread_attr_getschedpolicy() 152 *policy = (int)attr->schedpolicy; in pthread_attr_getschedpolicy()
|
/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_service_observer.c | 74 ((serviceRecord->policy != SERVICE_POLICY_PRIVATE) || (serviceRecord->devId == deviceId))) { in HdfServiceObserverSubscribeService() 85 uint16_t policy, struct HdfObject *service) in HdfServiceObserverPublishService() 103 serviceRecord->policy = policy; in HdfServiceObserverPublishService() 109 HdfServiceObserverRecordNotifySubscribers(serviceRecord, deviceId, policy); in HdfServiceObserverPublishService() 84 HdfServiceObserverPublishService(struct HdfServiceObserver *observer, const char *svcName, devid_t deviceId, uint16_t policy, struct HdfObject *service) HdfServiceObserverPublishService() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_llc.c | 29 struct cpufreq_policy *policy; in cpu_max_MHz() local 32 policy = cpufreq_cpu_get(0); in cpu_max_MHz() 33 if (policy) { in cpu_max_MHz() 34 max_khz = policy->cpuinfo.max_freq; in cpu_max_MHz() 35 cpufreq_cpu_put(policy); in cpu_max_MHz()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_llc.c | 32 struct cpufreq_policy *policy; in cpu_max_MHz() local 35 policy = cpufreq_cpu_get(0); in cpu_max_MHz() 36 if (policy) { in cpu_max_MHz() 37 max_khz = policy->cpuinfo.max_freq; in cpu_max_MHz() 38 cpufreq_cpu_put(policy); in cpu_max_MHz()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/smoke/ |
H A D | It_posix_pthread_018.c | 52 int policy; in Testcase() local 91 ret = pthread_getschedparam(newTh, &policy, NULL); in Testcase() 94 ret = pthread_getschedparam(newTh, &policy, ¶m2); in Testcase() 109 ret = pthread_getschedparam(newTh, &policy, ¶m2); in Testcase() 112 ret = pthread_getschedparam(newTh + 8, &policy, ¶m2); // 8, test for invalid param. in Testcase()
|