Home
last modified time | relevance | path

Searched refs:policy (Results 1 - 25 of 47) sorted by relevance

12

/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/
H A Dcpufreq_userspace.c23 * @policy: pointer to policy struct where freq is being set
28 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) in cpufreq_set() argument
31 unsigned int *setspeed = policy->governor_data; in cpufreq_set()
33 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); in cpufreq_set()
36 if (!per_cpu(cpu_is_managed, policy->cpu)) { in cpufreq_set()
42 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); in cpufreq_set()
48 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) in show_speed() argument
50 return sprintf(buf, "%u\n", policy->cur); in show_speed()
53 static int cpufreq_userspace_policy_init(struct cpufreq_policy *policy) in cpufreq_userspace_policy_init() argument
66 cpufreq_userspace_policy_exit(struct cpufreq_policy *policy) cpufreq_userspace_policy_exit() argument
74 cpufreq_userspace_policy_start(struct cpufreq_policy *policy) cpufreq_userspace_policy_start() argument
90 cpufreq_userspace_policy_stop(struct cpufreq_policy *policy) cpufreq_userspace_policy_stop() argument
99 cpufreq_userspace_policy_limits(struct cpufreq_policy *policy) cpufreq_userspace_policy_limits() argument
[all...]
H A Dcpufreq-dt.c60 static int set_target(struct cpufreq_policy *policy, unsigned int index) in set_target() argument
62 struct private_data *priv = policy->driver_data; in set_target()
63 unsigned long freq = policy->freq_table[index].frequency; in set_target()
110 static int cpufreq_init(struct cpufreq_policy *policy) in cpufreq_init() argument
118 priv = cpufreq_dt_find_data(policy->cpu); in cpufreq_init()
120 pr_err("failed to find data for cpu%d\n", policy->cpu); in cpufreq_init()
137 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init()
138 policy->driver_data = priv; in cpufreq_init()
139 policy->clk = cpu_clk; in cpufreq_init()
140 policy in cpufreq_init()
165 cpufreq_online(struct cpufreq_policy *policy) cpufreq_online() argument
171 cpufreq_offline(struct cpufreq_policy *policy) cpufreq_offline() argument
180 cpufreq_exit(struct cpufreq_policy *policy) cpufreq_exit() argument
[all...]
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/
H A Dcpufreq.h15 TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
16 TP_ARGS(policy, max_freq), 1);
19 TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq),
20 TP_ARGS(policy, max_freq));
23 TP_PROTO(struct cpufreq_policy *policy, unsigned int min_freq,
25 TP_ARGS(policy, min_freq, max_freq));
32 TP_PROTO(struct cpufreq_policy *policy),
33 TP_ARGS(policy), 1);
36 TP_PROTO(struct cpufreq_policy *policy, unsigned int target_freq,
38 TP_ARGS(policy, target_fre
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ads.c19 static void guc_policy_init(struct guc_policy *policy) in guc_policy_init() argument
21 policy->execution_quantum = POLICY_DEFAULT_EXECUTION_QUANTUM_US; in guc_policy_init()
22 policy->preemption_time = POLICY_DEFAULT_PREEMPTION_TIME_US; in guc_policy_init()
23 policy->fault_time = POLICY_DEFAULT_FAULT_TIME_US; in guc_policy_init()
24 policy->policy_flags = 0; in guc_policy_init()
29 struct guc_policy *policy; in guc_policies_init() local
37 policy = &policies->policy[p][i]; in guc_policies_init()
39 guc_policy_init(policy); in guc_policies_init()
/device/soc/rockchip/rk3588/kernel/drivers/cpufreq/
H A Dcpufreq-dt.h17 unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
19 int (*target_intermediate)(struct cpufreq_policy *policy,
21 int (*suspend)(struct cpufreq_policy *policy);
22 int (*resume)(struct cpufreq_policy *policy);
H A Drockchip-cpufreq.c573 static int rockchip_cpufreq_suspend(struct cpufreq_policy *policy) in rockchip_cpufreq_suspend() argument
577 ret = cpufreq_generic_suspend(policy); in rockchip_cpufreq_suspend()
579 rockchip_monitor_suspend_low_temp_adjust(policy->cpu); in rockchip_cpufreq_suspend()
588 struct cpufreq_policy *policy = data; in rockchip_cpufreq_notifier() local
593 dev = get_cpu_device(policy->cpu); in rockchip_cpufreq_notifier()
597 cluster = rockchip_cluster_info_lookup(policy->cpu); in rockchip_cpufreq_notifier()
609 mdevp->data = (void *)policy; in rockchip_cpufreq_notifier()
611 cpumask_copy(&mdevp->allowed_cpus, policy->cpus); in rockchip_cpufreq_notifier()
/device/soc/rockchip/rk3588/kernel/include/linux/
H A Dcpufreq_times.h29 void cpufreq_times_create_policy(struct cpufreq_policy *policy);
30 void cpufreq_times_record_transition(struct cpufreq_policy *policy,
38 static inline void cpufreq_times_create_policy(struct cpufreq_policy *policy) {} in cpufreq_times_create_policy() argument
40 struct cpufreq_policy *policy, unsigned int new_freq) {} in cpufreq_times_record_transition()
39 cpufreq_times_record_transition( struct cpufreq_policy *policy, unsigned int new_freq) cpufreq_times_record_transition() argument
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_linux_sched.c36 int setScheduler(struct task_struct *p, int policy, struct sched_param *param) in setScheduler() argument
42 rc = sched_setscheduler(p, policy, param); in setScheduler()
50 rc = p->policy; in get_scheduler_policy()
H A Dwl_cfgvendor.c4213 /* Nan accept policy: Per service basis policy in wl_cfgvendor_nan_parse_discover_args()
4214 * Based on this policy(ALL/NONE), responder side in wl_cfgvendor_nan_parse_discover_args()
7830 .policy = VENDOR_CMD_RAW_DATA,
7842 .policy = VENDOR_CMD_RAW_DATA,
7855 .policy = VENDOR_CMD_RAW_DATA,
7868 .policy = VENDOR_CMD_RAW_DATA,
7879 .policy = VENDOR_CMD_RAW_DATA,
7890 .policy = VENDOR_CMD_RAW_DATA,
7901 .policy
[all...]
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/
H A Dpthread_attr.c136 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()
H A Dpthread.c173 int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param) in pthread_setschedparam() argument
185 /* Only support SCHED_RR policy now */ in pthread_setschedparam()
186 if (policy != SCHED_RR) { in pthread_setschedparam()
202 int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param) in pthread_getschedparam() argument
207 if ((policy == NULL) || (param == NULL)) { in pthread_getschedparam()
220 *policy = SCHED_RR; in pthread_getschedparam()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/frw/
H A Dfrw_event_sched.c200 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
H A Dfrw_event_sched.h109 frw_sched_policy_enum_uint8 policy; /* 队列调度策略(高优先级、普通优先级) */ member
129 hi_u32 frw_event_queue_init(frw_event_queue_stru *event_queue, hi_u8 weight, frw_sched_policy_enum_uint8 policy,
H A Dfrw_event.c175 ast_event_cfg_vap[us_qid].policy, FRW_EVENT_QUEUE_STATE_INACTIVE, ast_event_cfg_vap[us_qid].max_events); in frw_event_init_event_queue()
427 frw_event_sched_deactivate_queue(&g_ast_event_manager.sched_queue[event_queue->policy], event_queue); in frw_event_flush_event_queue()
494 frw_event_sched_deactivate_queue(&g_ast_event_manager.sched_queue[event_queue->policy], event_queue); in frw_event_vap_flush_event()
622 /* 检查policy */ in frw_event_post_event()
623 if (oal_unlikely(event_queue->policy >= FRW_SCHED_POLICY_BUTT)) { in frw_event_post_event()
624 oam_error_log1(0, OAM_SF_FRW, "{frw_event_post_event, array overflow!%d}", event_queue->policy); in frw_event_post_event()
628 sched_queue = &(g_ast_event_manager.sched_queue[event_queue->policy]); in frw_event_post_event()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_hwaccess_pm.h76 * policy asks for the GPU to be powered off.
132 * Get the current policy.
134 * Returns the policy that is currently active.
139 * @return The current policy
144 * Change the policy to the one specified.
148 * @param policy The policy to change to (valid pointer returned from
151 void kbase_pm_ca_set_policy(struct kbase_device *kbdev, const struct kbase_pm_ca_policy *policy);
165 * Get the current policy.
167 * Returns the policy tha
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_hwaccess_pm.h79 * policy asks for the GPU to be powered off.
135 * Get the current policy.
137 * Returns the policy that is currently active.
142 * @return The current policy
147 * Change the policy to the one specified.
151 * @param policy The policy to change to (valid pointer returned from
154 void kbase_pm_ca_set_policy(struct kbase_device *kbdev, const struct kbase_pm_ca_policy *policy);
168 * Get the current policy.
170 * Returns the policy tha
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_hwaccess_pm.h80 * policy asks for the GPU to be powered off.
139 * Get the current policy.
141 * Returns the policy that is currently active.
146 * @return The current policy
152 * Change the policy to the one specified.
156 * @param policy The policy to change to (valid pointer returned from
160 const struct kbase_pm_ca_policy *policy);
176 * Get the current policy.
178 * Returns the policy tha
[all...]
/device/soc/rockchip/common/vendor/drivers/cpufreq/
H A Drockchip-cpufreq.c530 static int rockchip_cpufreq_suspend(struct cpufreq_policy *policy) in rockchip_cpufreq_suspend() argument
534 ret = cpufreq_generic_suspend(policy); in rockchip_cpufreq_suspend()
536 rockchip_monitor_suspend_low_temp_adjust(policy->cpu); in rockchip_cpufreq_suspend()
545 struct cpufreq_policy *policy = data; in rockchip_cpufreq_notifier() local
550 dev = get_cpu_device(policy->cpu); in rockchip_cpufreq_notifier()
555 cluster = rockchip_cluster_info_lookup(policy->cpu); in rockchip_cpufreq_notifier()
569 mdevp->data = (void *)policy; in rockchip_cpufreq_notifier()
571 cpumask_copy(&mdevp->allowed_cpus, policy->cpus); in rockchip_cpufreq_notifier()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
H A Dhmac_11i.h65 hi_u8 hmac_check_pcip_wpa_policy(const wlan_mib_ieee802dot11_stru *mib_info, hi_u8 policy);
66 hi_u8 hmac_check_pcip_wpa2_policy(const wlan_mib_ieee802dot11_stru *mib_info, hi_u8 policy);
67 hi_u32 hmac_check_pcip_policy(const wlan_mib_ieee802dot11_stru *mib_info, hi_u8 policy, hi_u8 is_80211i_mode);
H A Dhmac_mgmt_ap.h87 hi_u8 hmac_mesh_check_pcip_policy(hi_u8 policy);
88 hi_u8 hmac_mesh_check_auth_policy(hi_u8 policy);
H A Dhmac_11i.c560 hi_u8 hmac_check_pcip_wpa_policy(const wlan_mib_ieee802dot11_stru *mib_info, hi_u8 policy) in hmac_check_pcip_wpa_policy() argument
566 (mib_info->ast_wlan_mib_rsna_cfg_wpa_pairwise_cipher[loop].dot11_rsna_config_pairwise_cipher_implemented == policy)) { in hmac_check_pcip_wpa_policy()
584 hi_u8 hmac_check_pcip_wpa2_policy(const wlan_mib_ieee802dot11_stru *mib_info, hi_u8 policy) in hmac_check_pcip_wpa2_policy() argument
590 (mib_info->ast_wlan_mib_rsna_cfg_wpa2_pairwise_cipher[loop].dot11_rsna_config_pairwise_cipher_implemented == policy)) { in hmac_check_pcip_wpa2_policy()
609 hi_u32 hmac_check_pcip_policy(const wlan_mib_ieee802dot11_stru *mib_info, hi_u8 policy, hi_u8 is_80211i_mode) in hmac_check_pcip_policy() argument
614 ret = hmac_check_pcip_wpa_policy(mib_info, policy); in hmac_check_pcip_policy()
616 ret = hmac_check_pcip_wpa2_policy(mib_info, policy); in hmac_check_pcip_policy()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_hwaccess_pm.h78 * policy asks for the GPU to be powered off.
144 * Get the current policy.
146 * Returns the policy that is currently active.
150 * @return The current policy
156 * Change the policy to the one specified.
159 * @policy: The policy to change to (valid pointer returned from
163 const struct kbase_pm_ca_policy *policy);
177 * Get the current policy.
179 * Returns the policy tha
[all...]
/device/soc/rockchip/common/sdk_linux/kernel/sched/
H A Dcore.c130 * - __sched_setscheduler(): p->sched_class, p->policy, p->*prio,
1758 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument
1762 if (dl_policy(policy)) { in __normal_prio()
1764 } else if (rt_policy(policy)) { in __normal_prio()
1782 return __normal_prio(p->policy, p->rt_priority, in normal_prio()
3602 * Revert to default priority/policy on fork if requested. in sched_fork()
3606 p->policy = SCHED_NORMAL; in sched_fork()
5623 * sched_setparam() passes in -1 for its policy, to let the functions
5631 int policy = attr->sched_policy; in __setscheduler_params() local
5633 if (policy in __setscheduler_params()
5674 int oldpolicy = -1, policy = attr->sched_policy; __sched_setscheduler() local
5980 _sched_setscheduler(struct task_struct *p, int policy, const struct sched_param *param, bool check) _sched_setscheduler() argument
6011 sched_setscheduler(struct task_struct *p, int policy, const struct sched_param *param) sched_setscheduler() argument
6044 sched_setscheduler_nocheck(struct task_struct *p, int policy, const struct sched_param *param) sched_setscheduler_nocheck() argument
6096 do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param) do_sched_setscheduler() argument
[all...]
H A Dsched.h230 static inline int idle_policy(int policy) in idle_policy() argument
232 return policy == SCHED_IDLE; in idle_policy()
234 static inline int fair_policy(int policy) in fair_policy() argument
236 return policy == SCHED_NORMAL || policy == SCHED_BATCH; in fair_policy()
239 static inline int rt_policy(int policy) in rt_policy() argument
241 return policy == SCHED_FIFO || policy == SCHED_RR; in rt_policy()
244 static inline int dl_policy(int policy) in dl_policy() argument
246 return policy in dl_policy()
248 valid_policy(int policy) valid_policy() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/devfreq/
H A Drockchip_bus.c48 * Busfreq-policy-cpufreq:
334 int id = topology_physical_package_id(freqs->policy->cpu); in rockchip_bus_cpufreq_notifier()
349 dev_dbg(bus->dev, "cpu%d freq=%d %d, up cci rate to %lu\n", freqs->policy->cpu, bus->cpu_freq[CLUSTER0], in rockchip_bus_cpufreq_notifier()
357 dev_dbg(bus->dev, "cpu%d freq=%d %d, down cci rate to %lu\n", freqs->policy->cpu, in rockchip_bus_cpufreq_notifier()
461 ret = of_property_read_string(np, "rockchip,busfreq-policy", &policy_name); in rockchip_busfreq_probe()
463 dev_info(dev, "failed to get busfreq policy\n"); in rockchip_busfreq_probe()

Completed in 29 milliseconds

12