| /src/sys/external/bsd/drm2/include/linux/ |
| cpufreq.h | 50 struct cpufreq_policy *policy = kmem_alloc(sizeof(*policy), KM_SLEEP); local 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 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 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 243 int error, policy; local [all...] |
| freebsd_syscallargs.h | 546 syscallarg(int) policy; member in struct:freebsd_sys_sched_setscheduler_args 557 syscallarg(int) policy; member in struct:freebsd_sys_sched_get_priority_max_args 562 syscallarg(int) policy; member in struct:freebsd_sys_sched_get_priority_min_args
|
| /src/sys/external/bsd/drm2/dist/drm/i915/gt/ |
| intel_llc.c | 34 struct cpufreq_policy *policy; local 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 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 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 [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 672 int policy; local [all...] |
| /src/sys/compat/linux/common/ |
| linux_sched.c | 421 panic("%s: unknown policy %d\n", __func__, native_policy); 433 DPRINTF("%s: native: policy %d, priority %d\n", 445 DPRINTF("%s: linux: policy %d, priority %d\n", 459 int error, policy; local 472 /* We need the current policy in Linux terms. */ 473 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL); 476 error = sched_native2linux(policy, NULL, &policy, NULL); 480 error = sched_linux2native(policy, &lp, &policy, &sp) 501 int error, policy; local 536 int error, policy; local 571 int error, policy; local [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 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 494 (error = in_get_selectsrc(iss, policy, sizeof(policy))) >= sizeof(policy)) 496 node.sysctl_data = &policy[0] [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 1218 struct secpolicy *policy; local [all...] |
| /src/usr.sbin/inetd/ |
| parse.c | 124 char *policy; variable 369 if (policy != NULL) { 370 free(policy); 371 policy = NULL; 419 /* lines starting with #@ is not a comment, but the policy */ 425 if (policy) 426 free(policy); 427 policy = NULL; 430 ERR("Invalid IPsec policy \"%s\"", p); 439 if (policy) [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
| asan_test.cc | 1323 int policy; local 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/tests/lib/libc/sys/ |
| t_futex_ops.c | 1464 int policy; local 1468 RL(_sched_getparam(getpid(), d->threadid, &policy, &sp)); local 1469 policy = SCHED_RR; 1471 RL(_sched_setparam(getpid(), d->threadid, policy, &sp)); local 1481 int policy; local 1485 RL(_sched_getparam(getpid(), d->threadid, &policy, &sp)); local 1486 policy = SCHED_RR; 1488 RL(_sched_setparam(getpid(), d->threadid, policy, &sp)); local
|
| /src/usr.sbin/mountd/ |
| mountd.c | 356 char *policy = NULL; local 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/compat/linux/arch/aarch64/ |
| linux_syscallargs.h | 561 syscallarg(int) policy; member in struct:linux_sys_sched_setscheduler_args 592 syscallarg(int) policy; member in struct:linux_sys_sched_get_priority_max_args 597 syscallarg(int) policy; member in struct:linux_sys_sched_get_priority_min_args
|
| /src/sys/compat/linux32/arch/aarch64/ |
| linux32_syscallargs.h | 503 syscallarg(int) policy; member in struct:linux32_sys_sched_setscheduler_args 514 syscallarg(int) policy; member in struct:linux32_sys_sched_get_priority_max_args 519 syscallarg(int) policy; member in struct:linux32_sys_sched_get_priority_min_args
|
| /src/sys/compat/linux32/arch/amd64/ |
| linux32_syscallargs.h | 519 syscallarg(int) policy; member in struct:linux32_sys_sched_setscheduler_args 530 syscallarg(int) policy; member in struct:linux32_sys_sched_get_priority_max_args 535 syscallarg(int) policy; member in struct:linux32_sys_sched_get_priority_min_args
|
| /src/sys/dev/pci/ |
| if_iwireg.h | 387 uint16_t policy; member in struct:iwi_associate
|
| /src/sys/compat/linux/arch/alpha/ |
| linux_syscallargs.h | 657 syscallarg(int) policy; member in struct:linux_sys_sched_setscheduler_args 668 syscallarg(int) policy; member in struct:linux_sys_sched_get_priority_max_args 673 syscallarg(int) policy; member in struct:linux_sys_sched_get_priority_min_args
|
| /src/sys/compat/linux/arch/amd64/ |
| linux_syscallargs.h | 617 syscallarg(int) policy; member in struct:linux_sys_sched_setscheduler_args 628 syscallarg(int) policy; member in struct:linux_sys_sched_get_priority_max_args 633 syscallarg(int) policy; member in struct:linux_sys_sched_get_priority_min_args
|