/src/sys/external/bsd/drm2/include/linux/ |
cpufreq.h | 50 struct cpufreq_policy *policy = kmem_alloc(sizeof(*policy), KM_SLEEP); local in function:cpufreq_cpu_get 51 policy->cpuinfo.max_freq = cpufreq_get(curcpu()); 52 return policy; 56 cpufreq_cpu_put(struct cpufreq_policy *policy) 58 kmem_free(policy, sizeof(*policy));
|
/src/lib/libc/sys/ |
sched.c | 66 sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) 77 ret = _sched_setparam(pid, P_ALL_LWPS, policy, &sp); 88 int ret, policy; local in function:sched_getscheduler 90 ret = _sched_getparam(pid, P_ALL_LWPS, &policy, &sp); 94 return policy; 102 sched_get_priority_max(int policy) 105 switch (policy) { 118 sched_get_priority_min(int policy) 121 switch (policy) {
|
/src/sys/compat/freebsd/ |
freebsd_sched.c | 139 int error, policy; local in function:freebsd_sys_sched_setparam 152 /* We need the current policy in FreeBSD terms. */ 153 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL); 156 error = sched_native2freebsd(policy, NULL, &policy, NULL); 160 error = sched_freebsd2native(policy, &lp, &policy, &sp); 164 error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp); 209 syscallarg(int) policy; 212 int error, policy; local in function:freebsd_sys_sched_setscheduler 243 int error, policy; local in function:freebsd_sys_sched_getscheduler [all...] |
/src/sys/external/bsd/drm2/dist/drm/i915/gt/ |
intel_llc.c | 34 struct cpufreq_policy *policy; local in function:cpu_max_MHz 37 policy = cpufreq_cpu_get(0); 38 if (policy) { 39 max_khz = policy->cpuinfo.max_freq; 40 cpufreq_cpu_put(policy);
|
/src/sys/external/bsd/drm2/dist/drm/i915/gt/uc/ |
intel_guc_ads.c | 24 static void guc_policy_init(struct guc_policy *policy) 26 policy->execution_quantum = POLICY_DEFAULT_EXECUTION_QUANTUM_US; 27 policy->preemption_time = POLICY_DEFAULT_PREEMPTION_TIME_US; 28 policy->fault_time = POLICY_DEFAULT_FAULT_TIME_US; 29 policy->policy_flags = 0; 34 struct guc_policy *policy; local in function:guc_policies_init 42 policy = &policies->policy[p][i]; 44 guc_policy_init(policy);
|
intel_guc_fwif.h | 296 /* Scheduling policy settings */ 323 struct guc_policy policy[GUC_CLIENT_PRIORITY_NUM][GUC_MAX_ENGINE_CLASSES]; member in struct:guc_policies
|
/src/usr.sbin/schedctl/ |
schedctl.c | 76 int i, count, ch, policy; local in function:main 92 policy = SCHED_NONE; 115 for (policy = 0; class_str[policy] != NULL; policy++) { 116 if (strcasecmp(optarg, class_str[policy]) == 0) 119 if (class_str[policy] == NULL) 120 policy = atoi(optarg); 121 if (policy < SCHED_OTHER || policy > SCHED_RR) 209 int error, policy; local in function:thread_info [all...] |
/src/sys/kern/ |
sys_sched.c | 67 * priority to the appropriate range according to the policy change. 70 convert_pri(lwp_t *l, int policy, pri_t pri) 78 KASSERT(policy != SCHED_OTHER); 82 /* Neither policy, nor priority change */ 83 if (l->l_class == policy) 88 KASSERT(policy == SCHED_FIFO || policy == SCHED_RR); 93 if (policy == SCHED_OTHER) { 108 do_sched_setparam(pid_t pid, lwpid_t lid, int policy, 122 if (pri == PRI_NONE && policy == SCHED_NONE 297 int error, policy; local in function:sys__sched_getparam 672 int policy; local in function:sched_listener_cb [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dsc/ |
amdgpu_dc_dsc.c | 37 /* default DSC policy target bitrate limit is 16bpp */ 365 /* Decides if DSC should be used and calculates target bpp if it should, applying DSC policy. 368 * - 'true' if DSC was required by policy and was successfully applied 370 * or if it couldn't be applied based on DSC policy. 373 const struct dc_dsc_policy *policy, 384 get_dsc_bandwidth_range(policy->min_target_bpp, policy->max_target_bpp, 538 /* Attempts to set DSC configuration for the stream, applying DSC policy. 580 struct dc_dsc_policy policy; local in function:setup_dsc_config 584 dc_dsc_get_policy_for_timing(timing, &policy); [all...] |
/src/sys/netinet/ |
in_selsrc.c | 147 SYSCTL_DESCR("default source selection policy"), 286 * according to the source address-selection policy for this 465 * the default policy, increase the sequence number on the 466 * default policy, forcing routes that cache a source 467 * (rt_ifa) found by the default policy to refresh their 486 char policy[IN_SELECTSRC_LEN]; local in function:in_sysctl_selectsrc 494 (error = in_get_selectsrc(iss, policy, sizeof(policy))) >= sizeof(policy)) 496 node.sysctl_data = &policy[0] [all...] |
/src/sys/compat/linux/common/ |
linux_sched.c | 419 panic("%s: unknown policy %d\n", __func__, native_policy); 431 DPRINTF("%s: native: policy %d, priority %d\n", 443 DPRINTF("%s: linux: policy %d, priority %d\n", 457 int error, policy; local in function:linux_sys_sched_setparam 470 /* We need the current policy in Linux terms. */ 471 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL); 474 error = sched_native2linux(policy, NULL, &policy, NULL); 478 error = sched_linux2native(policy, &lp, &policy, &sp) 499 int error, policy; local in function:linux_sys_sched_getparam 534 int error, policy; local in function:linux_sys_sched_setscheduler 569 int error, policy; local in function:linux_sys_sched_getscheduler [all...] |
/src/sys/netipsec/ |
ipsec.h | 52 * Security Policy Index 66 /* Security Policy Data Base */ 81 u_int policy; /* DISCARD, NONE or IPSEC, see keyv2.h */ member in struct:secpolicy 84 /* if policy == IPSEC else this value == NULL.*/ 88 * the policy can be used without limitiation if both lifetime and 93 time_t created; /* time created the policy */ 95 time_t lifetime; /* duration of the lifetime of this policy */ 96 time_t validtime; /* duration this policy is valid without use */ 111 /* security policy in PCB */ 117 /* cached policy */ [all...] |
ipsec.c | 144 .policy = IPSEC_POLICY_ENTRUST, 189 * Try to validate and use cached policy on a PCB. 242 * - incoming side looks up policy after inpcb lookup 282 switch (pcbsp->sp_cache[dir].cachesp->policy) { 373 if (sp->policy != IPSEC_POLICY_DISCARD && 374 sp->policy != IPSEC_POLICY_NONE) { 375 IPSECLOG(LOG_INFO, "fixed system default policy: %d->%d\n", 376 sp->policy, IPSEC_POLICY_NONE); 377 sp->policy = IPSEC_POLICY_NONE; 406 struct secpolicy *currsp = NULL; /* policy on socket * 1141 struct secpolicy **policy; local in function:ipsec_set_policy 1218 struct secpolicy *policy; local in function:ipsec_get_policy [all...] |
/src/usr.sbin/inetd/ |
parse.c | 124 char *policy; variable in typeref:typename:char * 368 if (policy != NULL) { 369 free(policy); 370 policy = NULL; 418 /* lines starting with #@ is not a comment, but the policy */ 424 if (policy) 425 free(policy); 426 policy = NULL; 429 ERR("Invalid IPsec policy \"%s\"", p); 438 if (policy) [all...] |
/src/tests/lib/libc/sys/ |
t_futex_ops.c | 1464 int policy; local in function:lowpri_simple_test_waiter_lwp 1468 RL(_sched_getparam(getpid(), d->threadid, &policy, &sp)); 1469 policy = SCHED_RR; 1471 RL(_sched_setparam(getpid(), d->threadid, policy, &sp)); 1481 int policy; local in function:highpri_simple_test_waiter_lwp 1485 RL(_sched_getparam(getpid(), d->threadid, &policy, &sp)); 1486 policy = SCHED_RR; 1488 RL(_sched_setparam(getpid(), d->threadid, policy, &sp));
|
/src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
asan_test.cc | 1323 int policy; local in function:TEST 1326 pthread_getschedparam(pthread_self(), &policy, Ident(¶m) + 2), 1329 pthread_getschedparam(pthread_self(), Ident(&policy) - 1, ¶m), 1331 int res = pthread_getschedparam(pthread_self(), &policy, ¶m);
|
/src/sys/external/bsd/drm2/dist/drm/i915/gvt/ |
interrupt.h | 191 int policy; /* forwarding policy */ member in struct:intel_gvt_event_info
|
/src/usr.sbin/mountd/ |
mountd.c | 356 char *policy = NULL; local in function:mountd_main 367 if (ipsecsetup_test(policy = optarg)) 368 errx(1, "Invalid ipsec policy `%s'", policy); 388 " [-P policy]" 468 if (policy) 469 ipsecsetup(AF_INET, udpsock, policy); 488 if (policy) 489 ipsecsetup(AF_INET, tcpsock, policy); 510 if (policy) [all...] |
/src/sys/dev/pci/ |
if_iwireg.h | 387 uint16_t policy; member in struct:iwi_associate
|
if_iwmreg.h | 2587 /* Time event policy values (for time event cmd api v2) 2651 * @policy: defines whether uCode shall notify the host or other uCode modules 2670 uint16_t policy; member in struct:iwm_time_event_cmd_v2
|
/src/sys/external/bsd/compiler_rt/dist/lib/msan/tests/ |
msan_test.cc | 3373 int policy; local in function:TEST 3375 int res = pthread_getschedparam(pthread_self(), &policy, ¶m); 3377 EXPECT_NOT_POISONED(policy);
|