/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | robust_av.c | 862 static int set_frame_classifier_type4_ipv4(struct dscp_policy_data *policy) in set_frame_classifier_type4_ipv4() argument 865 const u8 *frame_classifier = policy->frame_classifier; in set_frame_classifier_type4_ipv4() 866 struct type4_params *type4_param = &policy->type4_param; in set_frame_classifier_type4_ipv4() 868 if (policy->frame_classifier_len < 18) { in set_frame_classifier_type4_ipv4() 871 policy->frame_classifier_len); in set_frame_classifier_type4_ipv4() 886 if (policy->domain_name) { in set_frame_classifier_type4_ipv4() 906 if (policy->port_range_info) { in set_frame_classifier_type4_ipv4() 929 static int set_frame_classifier_type4_ipv6(struct dscp_policy_data *policy) in set_frame_classifier_type4_ipv6() argument 932 const u8 *frame_classifier = policy->frame_classifier; in set_frame_classifier_type4_ipv6() 933 struct type4_params *type4_param = &policy in set_frame_classifier_type4_ipv6() 995 wpas_set_frame_classifier_params(struct dscp_policy_data *policy) wpas_set_frame_classifier_params() argument 1065 wpas_add_dscp_policy(struct wpa_supplicant *wpa_s, struct dscp_policy_data *policy) wpas_add_dscp_policy() argument 1171 wpas_fill_dscp_policy(struct dscp_policy_data *policy, u8 attr_id, u8 attr_len, const u8 *attr_data) wpas_fill_dscp_policy() argument 1285 struct dscp_policy_data policy; wpas_handle_qos_mgmt_recv_action() local [all...] |
/third_party/python/Lib/email/ |
H A D | message.py | 150 def __init__(self, policy=compat32): 151 self.policy = policy 167 def as_string(self, unixfrom=False, maxheaderlen=0, policy=None): 173 if you want a different maxheaderlen. 'policy' is passed to the 175 specified the policy associated with the message instance is used. 182 policy = self.policy if policy is None else policy [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/ |
H A D | cgroup_controller.cpp | 38 for (SchedPolicy policy : policyList) { in CgroupController() 39 policyToTaskFd_[policy] = -1; in CgroupController() 40 policyToProcFd_[policy] = -1; in CgroupController() 82 bool CgroupController::SetThreadSchedPolicy(int tid, SchedPolicy policy, bool isSetThreadGroup) in SetThreadSchedPolicy() argument 84 int fd = (isSetThreadGroup ? policyToProcFd_[policy] : policyToTaskFd_[policy]); in SetThreadSchedPolicy() 111 bool CgroupController::AddSchedPolicy(SchedPolicy policy, const std::string& subgroup) in AddSchedPolicy() argument 113 return AddThreadSchedPolicy(policy, subgroup) && AddThreadGroupSchedPolicy(policy, subgroup); in AddSchedPolicy() 138 bool CgroupController::AddThreadSchedPolicy(SchedPolicy policy, cons argument 160 AddThreadGroupSchedPolicy(SchedPolicy policy, const std::string& subgroup) AddThreadGroupSchedPolicy() argument [all...] |
/foundation/communication/netmanager_base/services/netpolicymanager/src/ |
H A D | net_access_policy_database.cpp | 105 int32_t NetAccessPolicyRDB::InsertData(NetAccessPolicyData policy) in InsertData() argument 115 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_UID, policy.uid); in InsertData() 116 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_WIFI_POLICY, policy.wifiPolicy); in InsertData() 117 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_CELLULAR_POLICY, policy.cellularPolicy); in InsertData() 118 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_SET_FROM_CONFIG_FLAG, policy.setFromConfigFlag); in InsertData() 119 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_IS_BROKER, policy.isBroker); in InsertData() 124 ret = UpdateByUid(policy.uid, policy); in InsertData() 156 int32_t NetAccessPolicyRDB::UpdateByUid(int32_t uid, NetAccessPolicyData policy) in UpdateByUid() argument 170 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_WIFI_POLICY, policy in UpdateByUid() 205 NetAccessPolicyData policy; QueryAll() local [all...] |
H A D | net_policy_service.cpp | 95 NETMGR_LOG_D("Start policy Dump, fd: %{public}d", fd); in Dump() 125 int32_t NetPolicyService::SetPolicyByUid(uint32_t uid, uint32_t policy) in SetPolicyByUid() argument 127 NETMGR_LOG_I("SetPolicyByUid uid[%{public}d] policy[%{public}d]", uid, policy); in SetPolicyByUid() 132 return netPolicyRule_->TransPolicyToRule(uid, policy); in SetPolicyByUid() 135 int32_t NetPolicyService::GetPolicyByUid(uint32_t uid, uint32_t &policy) in GetPolicyByUid() argument 142 return netPolicyRule_->GetPolicyByUid(uid, policy); in GetPolicyByUid() 145 int32_t NetPolicyService::GetUidsByPolicy(uint32_t policy, std::vector<uint32_t> &uids) in GetUidsByPolicy() argument 147 NETMGR_LOG_D("GetUidsByPolicy policy[%{public}d]", policy); in GetUidsByPolicy() 433 NetworkAccessPolicy policy; UpdateNetAccessPolicyToMapFromDB() local 442 SetNetworkAccessPolicy(uint32_t uid, NetworkAccessPolicy policy, bool reconfirmFlag) SetNetworkAccessPolicy() argument 463 GetNetworkAccessPolicy(AccessPolicyParameter parameter, AccessPolicySave &policy) GetNetworkAccessPolicy() argument [all...] |
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | Makefile | 4 targets += builtin-policy.h 7 $(objtree)/scripts/bin2c <$(firstword $(wildcard $(obj)/policy/$(1).conf $(srctree)/$(src)/policy/$(1).conf.default) /dev/null); \ 13 $(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(srctree)/$(src)/policy/*.conf.default) FORCE 14 $(call if_changed,policy) 16 $(obj)/common.o: $(obj)/builtin-policy.h
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_047.c | 44 int policy; in PthreadF01() local 48 ret = pthread_getschedparam(g_newTh, &policy, ¶m); in PthreadF01() 50 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01() 62 ret = pthread_getschedparam(g_newTh, &policy, ¶m); in PthreadF01() 64 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01() 74 int policy; in Testcase() local 94 ret = pthread_getschedparam(g_newTh, &policy, ¶m); in Testcase() 96 ICUNIT_ASSERT_EQUAL(policy, SCHED_R in Testcase() [all...] |
H A D | It_posix_pthread_206.c | 43 INT32 policy; in PthreadF01() local 54 policy = SCHED_RR; in PthreadF01() 55 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in PthreadF01() 57 ICUNIT_TRACK_EQUAL(policy, g_pthreadSchedPolicy, policy); in PthreadF01() 66 policy = SCHED_RR; in PthreadF01() 67 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in PthreadF01() 69 ICUNIT_TRACK_EQUAL(policy, g_pthreadSchedPolicy, policy); in PthreadF01()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_206.cpp | 36 INT32 policy; in pthread_f01() local 47 policy = SCHED_RR; in pthread_f01() 48 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in pthread_f01() 50 ICUNIT_TRACK_EQUAL(policy, g_pthreadSchedPolicy, policy); in pthread_f01() 59 policy = SCHED_RR; in pthread_f01() 60 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam1); in pthread_f01() 62 ICUNIT_TRACK_EQUAL(policy, g_pthreadSchedPolicy, policy); in pthread_f01()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | netlink.h | 163 * Standard attribute types to specify validation policy 209 * struct nla_policy - attribute validation policy 229 * number in the nested policy. 247 * NLA_NESTED `nested_policy' to a nested policy to validate, must 252 * NLA_NESTED_ARRAY `nested_policy' points to a nested policy to validate, 332 * only, and specifies special data about the policy, namely it 340 * of this is that types not specified in the policy will be 346 * the enum used by the policy, and be set to the new value that 356 #define _NLA_POLICY_NESTED(maxattr, policy) \ 357 { .type = NLA_NESTED, .nested_policy = policy, 650 nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse() argument 675 nla_parse_deprecated(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_deprecated() argument 700 nla_parse_deprecated_strict(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_deprecated_strict() argument 722 __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nlmsg_parse() argument 748 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse() argument 767 nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated() argument 787 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated_strict() argument 826 nla_validate_deprecated(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate_deprecated() argument 849 nla_validate(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate() argument 865 nlmsg_validate_deprecated(const struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_validate_deprecated() argument 1202 nla_parse_nested(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_nested() argument 1226 nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_nested_deprecated() argument 1831 __nla_validate_nested(const struct nlattr *start, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nla_validate_nested() argument 1841 nla_validate_nested(const struct nlattr *start, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate_nested() argument 1850 nla_validate_nested_deprecated(const struct nlattr *start, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate_nested_deprecated() argument [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | netlink.h | 163 * Standard attribute types to specify validation policy 211 * struct nla_policy - attribute validation policy 231 * number in the nested policy. 250 * NLA_NESTED `nested_policy' to a nested policy to validate, must 255 * NLA_NESTED_ARRAY `nested_policy' points to a nested policy to validate, 330 * only, and specifies special data about the policy, namely it 338 * of this is that types not specified in the policy will be 344 * the enum used by the policy, and be set to the new value that 367 #define _NLA_POLICY_NESTED(maxattr, policy) \ 368 { .type = NLA_NESTED, .nested_policy = policy, 662 nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse() argument 687 nla_parse_deprecated(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_deprecated() argument 712 nla_parse_deprecated_strict(struct nlattr **tb, int maxtype, const struct nlattr *head, int len, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_deprecated_strict() argument 734 __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nlmsg_parse() argument 761 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse() argument 781 nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated() argument 802 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated_strict() argument 840 nla_validate_deprecated(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate_deprecated() argument 863 nla_validate(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate() argument 879 nlmsg_validate_deprecated(const struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_validate_deprecated() argument 1248 nla_parse_nested(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_nested() argument 1272 nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_parse_nested_deprecated() argument 1877 __nla_validate_nested(const struct nlattr *start, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nla_validate_nested() argument 1887 nla_validate_nested(const struct nlattr *start, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate_nested() argument 1896 nla_validate_nested_deprecated(const struct nlattr *start, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nla_validate_nested_deprecated() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/ |
H A D | cpufreq-dt.c | 60 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...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | powernv-cpufreq.c | 60 * struct global_pstate_info - Per policy data structure to maintain history of 75 * @policy: Associated CPUFreq policy 85 struct cpufreq_policy *policy; member 216 static inline void reset_gpstates(struct cpufreq_policy *policy) in reset_gpstates() argument 218 struct global_pstate_info *gpstates = policy->driver_data; in reset_gpstates() 378 static ssize_t cpuinfo_nominal_freq_show(struct cpufreq_policy *policy, in cpuinfo_nominal_freq_show() argument 398 static ssize_t name##_show(struct cpufreq_policy *policy, char *buf) \ 400 struct chip *chip = per_cpu(chip_info, policy->cpu); \ 674 struct cpufreq_policy *policy in gpstate_timer_handler() local 741 powernv_cpufreq_target_index(struct cpufreq_policy *policy, unsigned int new_index) powernv_cpufreq_target_index() argument 828 powernv_cpufreq_cpu_init(struct cpufreq_policy *policy) powernv_cpufreq_cpu_init() argument 877 powernv_cpufreq_cpu_exit(struct cpufreq_policy *policy) powernv_cpufreq_cpu_exit() argument 910 struct cpufreq_policy *policy; powernv_cpufreq_work_fn() local 1011 powernv_cpufreq_stop_cpu(struct cpufreq_policy *policy) powernv_cpufreq_stop_cpu() argument 1023 powernv_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) powernv_fast_switch() argument [all...] |
H A D | pxa3xx-cpufreq.c | 86 static int setup_freqs_table(struct cpufreq_policy *policy, in setup_freqs_table() argument 107 policy->freq_table = table; in setup_freqs_table() 156 static int pxa3xx_cpufreq_set(struct cpufreq_policy *policy, unsigned int index) in pxa3xx_cpufreq_set() argument 161 if (policy->cpu != 0) in pxa3xx_cpufreq_set() 174 static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy) in pxa3xx_cpufreq_init() argument 178 /* set default policy and cpuinfo */ in pxa3xx_cpufreq_init() 179 policy->min = policy->cpuinfo.min_freq = 104000; in pxa3xx_cpufreq_init() 180 policy->max = policy in pxa3xx_cpufreq_init() [all...] |
H A D | qoriq-cpufreq.c | 86 static void set_affected_cpus(struct cpufreq_policy *policy) in set_affected_cpus() argument 88 struct cpumask *dstp = policy->cpus; in set_affected_cpus() 99 if (clk_is_match(policy->clk, clk)) in set_affected_cpus() 155 static int qoriq_cpufreq_cpu_init(struct cpufreq_policy *policy) in qoriq_cpufreq_cpu_init() argument 164 unsigned int cpu = policy->cpu; in qoriq_cpufreq_cpu_init() 175 policy->clk = of_clk_get(np, 0); in qoriq_cpufreq_cpu_init() 176 if (IS_ERR(policy->clk)) { in qoriq_cpufreq_cpu_init() 181 hwclk = __clk_get_hw(policy->clk); in qoriq_cpufreq_cpu_init() 202 policy->freq_table = table; in qoriq_cpufreq_cpu_init() 206 set_affected_cpus(policy); in qoriq_cpufreq_cpu_init() 228 qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy) qoriq_cpufreq_cpu_exit() argument 240 qoriq_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) qoriq_cpufreq_target() argument [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/include/ |
H A D | sched_policy.h | 28 * Schedule policy define, keep in sync with 29 * (1) cgroup_controller.cpp: bool QuerySchedPolicyFullName(const std::string& name, SchedPolicy& policy); 30 * (2) sched_policy.cpp: const char* GetSchedPolicyShortenedName(SchedPolicy policy); 43 * Assign all threads in process pid to the cgroup associated with the specified policy. 48 * @param policy schedule policy. 51 int SetThreadGroupSchedPolicy(int pid, int policy); 54 * Assign thread tid to the cgroup associated with the specified policy. 61 * @param policy variable to accept return value. 64 int SetThreadSchedPolicy(int tid, int policy); [all...] |
/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_workthread.cpp | 45 int policy; member 65 void IPCWorkThread::JoinThread(int proto, int policy) in JoinThread() argument 69 switch (policy) { in JoinThread() 91 ZLOGE(LOG_LABEL, "invalid policy:%{public}d", policy); in JoinThread() 123 ZLOGI(LOG_LABEL, "proto:%{public}d policy:%{public}d name:%{public}s invoker:%{public}u", in ThreadHandler() 124 param->proto, param->policy, threadName.c_str(), ProcessSkeleton::ConvertAddr(invoker)); in ThreadHandler() 128 JoinThread(param->proto, param->policy); in ThreadHandler() 134 ZLOGI(LOG_LABEL, "exit, proto:%{public}d policy:%{public}d name:%{public}s invoker:%{public}u", in ThreadHandler() 135 param->proto, param->policy, threadNam in ThreadHandler() 148 Start(int policy, int proto, int threadIndex) Start() argument [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | processor_thermal.c | 60 struct cpufreq_policy policy; in cpu_has_cpufreq() local 61 if (!acpi_processor_cpufreq_init || cpufreq_get_policy(&policy, cpu)) in cpu_has_cpufreq() 84 struct cpufreq_policy *policy; in cpufreq_set_cur_state() local 109 policy = cpufreq_cpu_get(i); in cpufreq_set_cur_state() 110 if (!policy) in cpufreq_set_cur_state() 113 max_freq = (policy->cpuinfo.max_freq * (100 - reduction_pctg(i) * 20)) / 100; in cpufreq_set_cur_state() 115 cpufreq_cpu_put(policy); in cpufreq_set_cur_state() 126 void acpi_thermal_cpufreq_init(struct cpufreq_policy *policy) in acpi_thermal_cpufreq_init() argument 130 for_each_cpu(cpu, policy->related_cpus) { in acpi_thermal_cpufreq_init() 137 ret = freq_qos_add_request(&policy in acpi_thermal_cpufreq_init() 146 acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy) acpi_thermal_cpufreq_exit() argument [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | powernv-cpufreq.c | 60 * struct global_pstate_info - Per policy data structure to maintain history of 75 * @policy: Associated CPUFreq policy 85 struct cpufreq_policy *policy; member 216 static inline void reset_gpstates(struct cpufreq_policy *policy) in reset_gpstates() argument 218 struct global_pstate_info *gpstates = policy->driver_data; in reset_gpstates() 378 static ssize_t cpuinfo_nominal_freq_show(struct cpufreq_policy *policy, in cpuinfo_nominal_freq_show() argument 398 static ssize_t name##_show(struct cpufreq_policy *policy, char *buf) \ 400 struct chip *chip = per_cpu(chip_info, policy->cpu); \ 674 struct cpufreq_policy *policy in gpstate_timer_handler() local 741 powernv_cpufreq_target_index(struct cpufreq_policy *policy, unsigned int new_index) powernv_cpufreq_target_index() argument 828 powernv_cpufreq_cpu_init(struct cpufreq_policy *policy) powernv_cpufreq_cpu_init() argument 877 powernv_cpufreq_cpu_exit(struct cpufreq_policy *policy) powernv_cpufreq_cpu_exit() argument 918 struct cpufreq_policy *policy; powernv_cpufreq_work_fn() local 1019 powernv_fast_switch(struct cpufreq_policy *policy, unsigned int target_freq) powernv_fast_switch() argument [all...] |
H A D | cpufreq-dt.c | 57 static int set_target(struct cpufreq_policy *policy, unsigned int index) in set_target() argument 59 struct private_data *priv = policy->driver_data; in set_target() 60 unsigned long freq = policy->freq_table[index].frequency; in set_target() 103 static int cpufreq_init(struct cpufreq_policy *policy) in cpufreq_init() argument 111 priv = cpufreq_dt_find_data(policy->cpu); in cpufreq_init() 113 pr_err("failed to find data for cpu%d\n", policy->cpu); in cpufreq_init() 129 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init() 130 policy->driver_data = priv; in cpufreq_init() 131 policy->clk = cpu_clk; in cpufreq_init() 132 policy in cpufreq_init() 154 cpufreq_online(struct cpufreq_policy *policy) cpufreq_online() argument 160 cpufreq_offline(struct cpufreq_policy *policy) cpufreq_offline() argument 169 cpufreq_exit(struct cpufreq_policy *policy) cpufreq_exit() argument [all...] |
H A D | qoriq-cpufreq.c | 86 static void set_affected_cpus(struct cpufreq_policy *policy) in set_affected_cpus() argument 88 struct cpumask *dstp = policy->cpus; in set_affected_cpus() 99 if (clk_is_match(policy->clk, clk)) in set_affected_cpus() 155 static int qoriq_cpufreq_cpu_init(struct cpufreq_policy *policy) in qoriq_cpufreq_cpu_init() argument 164 unsigned int cpu = policy->cpu; in qoriq_cpufreq_cpu_init() 175 policy->clk = of_clk_get(np, 0); in qoriq_cpufreq_cpu_init() 176 if (IS_ERR(policy->clk)) { in qoriq_cpufreq_cpu_init() 181 hwclk = __clk_get_hw(policy->clk); in qoriq_cpufreq_cpu_init() 202 policy->freq_table = table; in qoriq_cpufreq_cpu_init() 206 set_affected_cpus(policy); in qoriq_cpufreq_cpu_init() 228 qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy) qoriq_cpufreq_cpu_exit() argument 240 qoriq_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) qoriq_cpufreq_target() argument [all...] |
/third_party/libwebsockets/lib/secure-streams/protocols/ |
H A D | ss-mqtt.c | 58 if (!h || !h->policy) in secstream_mqtt_subscribe() 61 if (h->policy->u.mqtt.aws_iot) in secstream_mqtt_subscribe() 66 if (!h->policy->u.mqtt.subscribe || wsi->mqtt->done_subscribe) in secstream_mqtt_subscribe() 76 if (lws_strexp_expand(&exp, h->policy->u.mqtt.subscribe, in secstream_mqtt_subscribe() 77 strlen(h->policy->u.mqtt.subscribe), &used_in, in secstream_mqtt_subscribe() 98 if (lws_strexp_expand(&exp, h->policy->u.mqtt.subscribe, in secstream_mqtt_subscribe() 99 strlen(h->policy->u.mqtt.subscribe), &used_in, in secstream_mqtt_subscribe() 110 * The policy says to subscribe to something, and we in secstream_mqtt_subscribe() 112 * string-substituted version of the policy string. in secstream_mqtt_subscribe() 118 h->u.mqtt.sub_top.qos = h->policy in secstream_mqtt_subscribe() [all...] |
/kernel/linux/linux-6.6/fs/crypto/ |
H A D | fscrypt_private.h | 116 * number, or 0 if the policy version is unrecognized. 118 static inline int fscrypt_policy_size(const union fscrypt_policy *policy) in fscrypt_policy_size() argument 120 switch (policy->version) { in fscrypt_policy_size() 122 return sizeof(policy->v1); in fscrypt_policy_size() 124 return sizeof(policy->v2); in fscrypt_policy_size() 129 /* Return the contents encryption mode of a valid encryption policy */ 131 fscrypt_policy_contents_mode(const union fscrypt_policy *policy) in fscrypt_policy_contents_mode() argument 133 switch (policy->version) { in fscrypt_policy_contents_mode() 135 return policy->v1.contents_encryption_mode; in fscrypt_policy_contents_mode() 137 return policy in fscrypt_policy_contents_mode() 144 fscrypt_policy_fnames_mode(const union fscrypt_policy *policy) fscrypt_policy_fnames_mode() argument 157 fscrypt_policy_flags(const union fscrypt_policy *policy) fscrypt_policy_flags() argument [all...] |
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | policy_compat.c | 5 * This file contains AppArmor functions for unpacking policy loaded 11 * Code to provide backwards compatibility with older policy versions, 12 * by converting/mapping older policy formats into the newer internal 295 int aa_compat_map_xmatch(struct aa_policydb *policy) in aa_compat_map_xmatch() argument 297 policy->perms = compute_xmatch_perms(policy->dfa, &policy->size); in aa_compat_map_xmatch() 298 if (!policy->perms) in aa_compat_map_xmatch() 301 remap_dfa_accept(policy->dfa, 1); in aa_compat_map_xmatch() 306 int aa_compat_map_policy(struct aa_policydb *policy, u3 argument 317 aa_compat_map_file(struct aa_policydb *policy) aa_compat_map_file() argument [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/ |
H A D | samgr_mini_ipc_adapter.c | 20 static void GetRemotePolicy(IpcIo *reply, PolicyTrans **policy, uint32 *policyNum);
87 int RegisterIdentity(const SaName *saName, SvcIdentity *saInfo, PolicyTrans **policy, uint32 *policyNum)
in RegisterIdentity() argument 115 GetRemotePolicy(&reply, policy, policyNum);
in RegisterIdentity() 135 static void GetRemotePolicy(IpcIo *reply, PolicyTrans **policy, uint32 *policyNum)
in GetRemotePolicy() argument 144 SAMGR_Free(*policy);
in GetRemotePolicy() 146 *policy = NULL;
in GetRemotePolicy() 149 *policy = (PolicyTrans *)SAMGR_Malloc(sizeof(PolicyTrans) * (*policyNum));
in GetRemotePolicy() 150 if (*policy == NULL) {
in GetRemotePolicy() 154 if (!ReadInt32(reply, &(*policy)[i].type)) {
in GetRemotePolicy() 157 switch ((*policy)[ in GetRemotePolicy() [all...] |