HomeSort by: relevance | last modified time | path
    Searched refs:policy (Results 1 - 25 of 68) sorted by relevancy

1 2 3

  /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/usr.sbin/inetd/
ipsec.c 57 ipsecsetup(int af, int fd, const char *policy)
62 if (policy == NULL || *policy == '\0')
65 p0 = p = strdup(policy);
89 ipsecsetup_test(const char *policy)
95 if (policy == NULL)
97 p0 = p = strdup(policy);
126 ipsecsetup0(int af, int fd, const char *policy, int commit)
148 buf = ipsec_set_policy(policy, (int)strlen(policy));
    [all...]
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...]
inetd.h 273 /* Default IPsec policy for current config file */
274 extern char *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/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/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);
  /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/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/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/lib/libpthread/
pthread_misc.c 64 pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param)
73 if (_sched_getparam(getpid(), thread->pt_lid, policy, param) < 0)
80 pthread_setschedparam(pthread_t thread, int policy,
92 if (_sched_setparam(getpid(), thread->pt_lid, policy, &sp) < 0)
pthread_attr.c 323 pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
330 switch (policy) {
337 p->ptap_policy = policy;
346 pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy)
355 *policy = SCHED_OTHER;
358 *policy = p->ptap_policy;
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/
dc_dsc.h 81 struct dc_dsc_policy *policy);
  /src/sys/netipsec/
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...]
key_debug.c 411 panic("%s: wrong policy struct", __func__);
415 panic("%s: invalid ipsec policy length",
427 panic("%s: wrong policy struct", __func__);
449 printf(" secpolicy { refcnt=%u state=%u policy=%u",
450 key_sp_refcnt(sp), sp->state, sp->policy);
455 switch (sp->policy) {
480 panic("%s: Invalid policy found. %d", __func__, sp->policy);
  /src/usr.sbin/racoon/
Makefile 14 localconf.c main.c nattraversal.c oakley.c pfkey.c policy.c privsep.c \
  /src/sys/compat/linux32/common/
linux32_sched.c 111 syscallarg(int) policy;
117 NETBSD32TO64_UAP(policy);
179 syscallarg(int) policy;
184 NETBSD32TO64_UAP(policy);
192 syscallarg(int) policy;
197 NETBSD32TO64_UAP(policy);
  /src/sys/net80211/
ieee80211_acl.c 45 * if the frame should be accepted or rejected. If the policy is
231 acl_setpolicy(struct ieee80211com *ic, int policy)
236 "ACL: set policy to %u\n", policy);
238 switch (policy) {
  /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/arch/arm/broadcom/
bcm53xx_board.c 340 uint32_t pllarma, uint32_t pllarmb, uint32_t policy)
342 policy = __SHIFTOUT(policy, CLK_POLICY_FREQ_POLICY2);
344 if (policy == CLK_POLICY_REF_CLK) {
350 if (policy == CLK_POLICY_SYS_CLK) {
361 const u_int cpu_div = (policy == CLK_POLICY_ARM_PLL_CH0) ? 4 : 2;
  /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 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/include/sanitizer/
linux_syscall_hooks.h 253 #define __sanitizer_syscall_pre_sched_setscheduler(pid, policy, param) \
254 __sanitizer_syscall_pre_impl_sched_setscheduler((long)(pid), (long)(policy), \
256 #define __sanitizer_syscall_post_sched_setscheduler(res, pid, policy, param) \
258 res, (long)(pid), (long)(policy), (long)(param))
289 #define __sanitizer_syscall_pre_sched_get_priority_max(policy) \
290 __sanitizer_syscall_pre_impl_sched_get_priority_max((long)(policy))
291 #define __sanitizer_syscall_post_sched_get_priority_max(res, policy) \
292 __sanitizer_syscall_post_impl_sched_get_priority_max(res, (long)(policy))
293 #define __sanitizer_syscall_pre_sched_get_priority_min(policy) \
294 __sanitizer_syscall_pre_impl_sched_get_priority_min((long)(policy))
    [all...]

Completed in 25 milliseconds

1 2 3