/drivers/cpufreq/ |
H A D | unicore2-cpufreq.c | 28 static int ucv2_verify_speed(struct cpufreq_policy *policy) argument 30 if (policy->cpu) 33 cpufreq_verify_within_cpu_limits(policy); 37 static int ucv2_target(struct cpufreq_policy *policy, argument 44 freqs.old = policy->cur; 47 cpufreq_freq_transition_begin(policy, &freqs); 48 ret = clk_set_rate(policy->clk, target_freq * 1000); 49 cpufreq_freq_transition_end(policy, &freqs, ret); 54 static int __init ucv2_cpu_init(struct cpufreq_policy *policy) argument 56 if (policy [all...] |
H A D | cpufreq_userspace.c | 26 * @policy: pointer to policy struct where freq is being set 31 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) argument 35 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); 38 if (!per_cpu(cpu_is_managed, policy->cpu)) 41 ret = __cpufreq_driver_target(policy, freq, CPUFREQ_RELATION_L); 47 static ssize_t show_speed(struct cpufreq_policy *policy, char *buf) argument 49 return sprintf(buf, "%u\n", policy->cur); 52 static int cpufreq_governor_userspace(struct cpufreq_policy *policy, argument 55 unsigned int cpu = policy [all...] |
H A D | cpufreq.c | 63 static int __cpufreq_governor(struct cpufreq_policy *policy, 69 * Two notifier lists: the "policy" list is involved in the 70 * validation process for a new CPU frequency policy; the 105 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) argument 108 return &policy->kobj; 154 * - policy->cpus with all possible CPUs 156 int cpufreq_generic_init(struct cpufreq_policy *policy, argument 162 ret = cpufreq_table_validate_and_show(policy, table); 168 policy->cpuinfo.transition_latency = transition_latency; 174 cpumask_setall(policy 182 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); local 202 struct cpufreq_policy *policy = NULL; local 230 cpufreq_cpu_put(struct cpufreq_policy *policy) argument 281 __cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) argument 334 cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) argument 342 cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) argument 354 cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) argument 388 cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) argument 449 cpufreq_parse_governor(char *str_governor, unsigned int *policy, struct cpufreq_governor **governor) argument 516 show_scaling_cur_freq( struct cpufreq_policy *policy, char *buf) argument 561 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) argument 573 show_scaling_governor(struct cpufreq_policy *policy, char *buf) argument 588 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) argument 621 show_scaling_driver(struct cpufreq_policy *policy, char *buf) argument 629 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) argument 672 show_related_cpus(struct cpufreq_policy *policy, char *buf) argument 680 show_affected_cpus(struct cpufreq_policy *policy, char *buf) argument 685 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) argument 703 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) argument 714 show_bios_limit(struct cpufreq_policy *policy, char *buf) argument 761 struct cpufreq_policy *policy = to_policy(kobj); local 784 struct cpufreq_policy *policy = to_policy(kobj); local 814 struct cpufreq_policy *policy = to_policy(kobj); local 874 cpufreq_add_dev_symlink(struct cpufreq_policy *policy) argument 895 cpufreq_add_dev_interface(struct cpufreq_policy *policy, struct device *dev) argument 943 cpufreq_init_policy(struct cpufreq_policy *policy) argument 975 cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu, struct device *dev) argument 1016 struct cpufreq_policy *policy; local 1033 struct cpufreq_policy *policy; local 1060 cpufreq_policy_put_kobj(struct cpufreq_policy *policy) argument 1084 cpufreq_policy_free(struct cpufreq_policy *policy) argument 1091 update_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu, struct device *cpu_dev) argument 1123 struct cpufreq_policy *policy; local 1342 struct cpufreq_policy *policy; local 1410 struct cpufreq_policy *policy; local 1496 struct cpufreq_policy *policy = local 1516 struct cpufreq_policy *policy; local 1543 struct cpufreq_policy *policy; local 1567 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1581 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); local 1610 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1636 cpufreq_generic_suspend(struct cpufreq_policy *policy) argument 1668 struct cpufreq_policy *policy; local 1700 struct cpufreq_policy *policy; local 1844 __target_intermediate(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int index) argument 1869 __target_index(struct cpufreq_policy *policy, struct cpufreq_frequency_table *freq_table, int index) argument 1923 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 1986 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 2006 __cpufreq_governor(struct cpufreq_policy *policy, unsigned int event) argument 2143 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) argument 2164 cpufreq_set_policy(struct cpufreq_policy *policy, struct cpufreq_policy *new_policy) argument 2265 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 2351 struct cpufreq_policy *policy; local [all...] |
H A D | ppc_cbe_cpufreq.c | 68 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 76 cpu = of_get_cpu_node(policy->cpu, NULL); 81 pr_debug("init cpufreq on CPU %d\n", policy->cpu); 86 if (!cbe_get_cpu_pmd_regs(policy->cpu) || 87 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { 113 policy->cpuinfo.transition_latency = 25000; 115 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); 118 policy->cur = cbe_freqs[cur_pmode].frequency; 121 cpumask_copy(policy->cpus, cpu_sibling_mask(policy 129 cbe_cpufreq_target(struct cpufreq_policy *policy, unsigned int cbe_pmode_new) argument [all...] |
H A D | sh-cpufreq.c | 41 static int sh_cpufreq_target(struct cpufreq_policy *policy, argument 45 unsigned int cpu = policy->cpu; 62 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) 71 cpufreq_freq_transition_begin(policy, &freqs); 74 cpufreq_freq_transition_end(policy, &freqs, 0); 81 static int sh_cpufreq_verify(struct cpufreq_policy *policy) argument 83 struct clk *cpuclk = &per_cpu(sh_cpuclk, policy->cpu); 88 return cpufreq_frequency_table_verify(policy, freq_table); 90 cpufreq_verify_within_cpu_limits(policy); 99 sh_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 141 sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | freq_table.c | 21 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, argument 43 policy->min = policy->cpuinfo.min_freq = min_freq; 44 policy->max = policy->cpuinfo.max_freq = max_freq; 46 if (policy->min == ~0) 54 int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, argument 61 pr_debug("request for verification of policy (%u - %u kHz) for cpu %u\n", 62 policy->min, policy 94 cpufreq_generic_frequency_table_verify(struct cpufreq_policy *policy) argument 105 cpufreq_frequency_table_target(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int target_freq, unsigned int relation, unsigned int *index) argument 197 cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, unsigned int freq) argument 219 show_available_freqs(struct cpufreq_policy *policy, char *buf, bool show_boost) argument 259 scaling_available_frequencies_show(struct cpufreq_policy *policy, char *buf) argument 271 scaling_boost_frequencies_show(struct cpufreq_policy *policy, char *buf) argument 288 cpufreq_table_validate_and_show(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table) argument 304 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); local [all...] |
H A D | amd_freq_sensitivity.c | 40 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, argument 47 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); 48 struct dbs_data *od_data = policy->governor_data; 51 od_data->cdata->get_cpu_dbs_info_s(policy->cpu); 56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, 58 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, 65 freq_next = policy->cur; 74 freq_next = policy->cur; 85 if (data->freq_prev == policy->cur) 86 freq_next = policy [all...] |
H A D | cpufreq_performance.c | 19 static int cpufreq_governor_performance(struct cpufreq_policy *policy, argument 26 policy->max, event); 27 __cpufreq_driver_target(policy, policy->max, 56 MODULE_DESCRIPTION("CPUfreq policy governor 'performance'");
|
H A D | cpufreq_powersave.c | 19 static int cpufreq_governor_powersave(struct cpufreq_policy *policy, argument 26 policy->min, event); 27 __cpufreq_driver_target(policy, policy->min, 56 MODULE_DESCRIPTION("CPUfreq policy governor 'powersave'");
|
H A D | longrun.c | 30 * longrun_get_policy - get the current LongRun policy 31 * @policy: struct cpufreq_policy where current policy is written into 33 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS 36 static void longrun_get_policy(struct cpufreq_policy *policy) argument 43 policy->policy = CPUFREQ_POLICY_PERFORMANCE; 45 policy->policy = CPUFREQ_POLICY_POWERSAVE; 54 policy 72 longrun_set_policy(struct cpufreq_policy *policy) argument 126 longrun_verify_policy(struct cpufreq_policy *policy) argument 257 longrun_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | gx-suspmod.c | 140 /* For the default policy, we want at least some processing power 254 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) argument 268 cpufreq_freq_transition_begin(policy, &freqs); 317 cpufreq_freq_transition_end(policy, &freqs, 0); 335 static int cpufreq_gx_verify(struct cpufreq_policy *policy) argument 340 if (!stock_freq || !policy) 343 policy->cpu = 0; 344 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), 348 * within policy->min and policy 375 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 402 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | davinci-cpufreq.c | 41 static int davinci_verify_speed(struct cpufreq_policy *policy) argument 48 return cpufreq_frequency_table_verify(policy, freq_table); 50 if (policy->cpu) 53 cpufreq_verify_within_cpu_limits(policy); 54 policy->min = clk_round_rate(armclk, policy->min * 1000) / 1000; 55 policy->max = clk_round_rate(armclk, policy->max * 1000) / 1000; 56 cpufreq_verify_within_limits(policy, policy 61 davinci_target(struct cpufreq_policy *policy, unsigned int idx) argument 95 davinci_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | s3c64xx-cpufreq.c | 56 static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, argument 63 old_freq = clk_get_rate(policy->clk) / 1000; 80 ret = clk_set_rate(policy->clk, new_freq * 1000); 95 if (clk_set_rate(policy->clk, old_freq * 1000) < 0) 104 clk_get_rate(policy->clk) / 1000); 148 static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) argument 153 if (policy->cpu != 0) 161 policy->clk = clk_get(NULL, "armclk"); 162 if (IS_ERR(policy->clk)) { 164 PTR_ERR(policy [all...] |
H A D | cpufreq_governor.c | 38 struct cpufreq_policy *policy; local 63 policy = cdbs->cur_policy; 66 for_each_cpu(j, policy->cpus) { 171 void gov_queue_work(struct dbs_data *dbs_data, struct cpufreq_policy *policy, argument 177 if (!policy->governor_enabled) 190 for_each_cpu(i, policy->cpus) 200 struct cpufreq_policy *policy) 205 for_each_cpu(i, policy->cpus) { 242 int cpufreq_governor_dbs(struct cpufreq_policy *policy, argument 252 unsigned int sampling_rate, latency, ignore_nice, j, cpu = policy 199 gov_cancel_work(struct dbs_data *dbs_data, struct cpufreq_policy *policy) argument [all...] |
H A D | omap-cpufreq.c | 42 static int omap_target(struct cpufreq_policy *policy, unsigned int index) argument 49 old_freq = policy->cur; 53 ret = clk_round_rate(policy->clk, freq); 91 ret = clk_set_rate(policy->clk, new_freq * 1000); 99 clk_set_rate(policy->clk, old_freq * 1000); 113 static int omap_cpu_init(struct cpufreq_policy *policy) argument 117 policy->clk = clk_get(NULL, "cpufreq_ck"); 118 if (IS_ERR(policy->clk)) 119 return PTR_ERR(policy->clk); 126 __func__, policy 144 omap_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | cpufreq-nforce2.c | 244 * nforce2_target - set a new CPUFreq policy 245 * @policy: new policy 250 * Sets a new CPUFreq policy. 252 static int nforce2_target(struct cpufreq_policy *policy, argument 259 if ((target_freq > policy->max) || (target_freq < policy->min)) 264 freqs.old = nforce2_get(policy->cpu); 273 cpufreq_freq_transition_begin(policy, &freqs); 288 cpufreq_freq_transition_end(policy, 297 nforce2_verify(struct cpufreq_policy *policy) argument 310 nforce2_cpu_init(struct cpufreq_policy *policy) argument 367 nforce2_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | integrator-cpufreq.c | 57 * Validate the speed policy. 59 static int integrator_verify_policy(struct cpufreq_policy *policy) argument 63 cpufreq_verify_within_cpu_limits(policy); 65 vco = icst_hz_to_vco(&cclk_params, policy->max * 1000); 66 policy->max = icst_hz(&cclk_params, vco) / 1000; 68 vco = icst_hz_to_vco(&cclk_params, policy->min * 1000); 69 policy->min = icst_hz(&cclk_params, vco) / 1000; 71 cpufreq_verify_within_cpu_limits(policy); 76 static int integrator_set_target(struct cpufreq_policy *policy, argument 81 int cpu = policy 181 integrator_cpufreq_init(struct cpufreq_policy *policy) argument [all...] |
H A D | pxa3xx-cpufreq.c | 90 static int setup_freqs_table(struct cpufreq_policy *policy, argument 111 return cpufreq_table_validate_and_show(policy, table); 158 static int pxa3xx_cpufreq_set(struct cpufreq_policy *policy, unsigned int index) argument 163 if (policy->cpu != 0) 176 static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy) argument 180 /* set default policy and cpuinfo */ 181 policy->min = policy->cpuinfo.min_freq = 104000; 182 policy->max = policy [all...] |
H A D | at32ap-cpufreq.c | 29 static int at32_set_target(struct cpufreq_policy *policy, unsigned int index) argument 33 old_freq = policy->cur; 44 clk_set_rate(policy->clk, new_freq * 1000); 52 static int at32_cpufreq_driver_init(struct cpufreq_policy *policy) argument 58 if (policy->cpu != 0) 70 policy->cpuinfo.transition_latency = 0; 98 policy->clk = cpuclk; 101 retval = cpufreq_table_validate_and_show(policy, freq_table);
|
H A D | loongson2_cpufreq.c | 48 static int loongson2_cpufreq_target(struct cpufreq_policy *policy, argument 51 unsigned int cpu = policy->cpu; 65 clk_set_rate(policy->clk, freq * 1000); 70 static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 101 policy->clk = cpuclk; 102 return cpufreq_generic_init(policy, &loongson2_clockmod_table[0], 0); 105 static int loongson2_cpufreq_exit(struct cpufreq_policy *policy) argument 107 clk_put(policy->clk);
|
H A D | cpufreq_stats.c | 91 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf) argument 93 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); 100 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) argument 104 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); 177 struct cpufreq_policy *policy; local 192 policy = cpufreq_cpu_get(cpu); 193 if (policy == NULL) 195 all_stat = per_cpu(all_cpufreq_stats, policy->cpu); 205 cpufreq_cpu_put(policy); 215 static ssize_t show_trans_table(struct cpufreq_policy *policy, cha argument 292 __cpufreq_stats_free_table(struct cpufreq_policy *policy) argument 309 struct cpufreq_policy *policy; local 361 __cpufreq_stats_create_table(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, int count) argument 417 cpufreq_stats_update_policy_cpu(struct cpufreq_policy *policy) argument 567 struct cpufreq_policy *policy; local 598 struct cpufreq_policy *policy = data; local [all...] |
/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | nrs.c | 59 static int nrs_policy_init(struct ptlrpc_nrs_policy *policy) argument 61 return policy->pol_desc->pd_ops->op_policy_init != NULL ? 62 policy->pol_desc->pd_ops->op_policy_init(policy) : 0; 65 static void nrs_policy_fini(struct ptlrpc_nrs_policy *policy) argument 67 LASSERT(policy->pol_ref == 0); 68 LASSERT(policy->pol_req_queued == 0); 70 if (policy->pol_desc->pd_ops->op_policy_fini != NULL) 71 policy->pol_desc->pd_ops->op_policy_fini(policy); 74 nrs_policy_ctl_locked(struct ptlrpc_nrs_policy *policy, enum ptlrpc_nrs_ctl opc, void *arg) argument 91 nrs_policy_stop0(struct ptlrpc_nrs_policy *policy) argument 115 nrs_policy_stop_locked(struct ptlrpc_nrs_policy *policy) argument 190 nrs_policy_start_locked(struct ptlrpc_nrs_policy *policy) argument 299 nrs_policy_get_locked(struct ptlrpc_nrs_policy *policy) argument 310 nrs_policy_put_locked(struct ptlrpc_nrs_policy *policy) argument 320 nrs_policy_put(struct ptlrpc_nrs_policy *policy) argument 351 struct ptlrpc_nrs_policy *policy = res->res_policy; local 380 nrs_resource_get(struct ptlrpc_nrs_policy *policy, struct ptlrpc_nrs_request *nrq, bool moving_req) argument 533 nrs_request_get(struct ptlrpc_nrs_policy *policy, bool peek, bool force) argument 559 struct ptlrpc_nrs_policy *policy; local 599 struct ptlrpc_nrs_policy *policy = nrs_request_policy(nrq); local 632 struct ptlrpc_nrs_policy *policy; local 680 struct ptlrpc_nrs_policy *policy = NULL; local 737 struct ptlrpc_nrs_policy *policy; local 807 struct ptlrpc_nrs_policy *policy; local 995 struct ptlrpc_nrs_policy *policy; local 1490 nrs_request_removed(struct ptlrpc_nrs_policy *policy) argument 1540 struct ptlrpc_nrs_policy *policy; local 1574 struct ptlrpc_nrs_policy *policy = nrs_request_policy(&req->rq_nrq); local [all...] |
H A D | nrs_fifo.c | 30 * Network Request Scheduler (NRS) FIFO policy 32 * Handles RPCs in a FIFO manner, as received from the network. This policy is 34 * default and fallback policy for all types of RPCs on all PTLRPC service 36 * the policy is the one enabled at PTLRPC service partition startup time, and 37 * fallback means the policy is used to handle RPCs that are not handled 38 * successfully or are not handled at all by any primary policy that may be 58 * The FIFO policy is a logical wrapper around previous, non-NRS functionality. 67 * Is called before the policy transitions into 69 * policy-specific private data structure. 71 * \param[in] policy Th 79 nrs_fifo_start(struct ptlrpc_nrs_policy *policy) argument 101 nrs_fifo_stop(struct ptlrpc_nrs_policy *policy) argument 129 nrs_fifo_res_get(struct ptlrpc_nrs_policy *policy, struct ptlrpc_nrs_request *nrq, const struct ptlrpc_nrs_resource *parent, struct ptlrpc_nrs_resource **resp, bool moving_req) argument 160 nrs_fifo_req_get(struct ptlrpc_nrs_policy *policy, bool peek, bool force) argument 194 nrs_fifo_req_add(struct ptlrpc_nrs_policy *policy, struct ptlrpc_nrs_request *nrq) argument 216 nrs_fifo_req_del(struct ptlrpc_nrs_policy *policy, struct ptlrpc_nrs_request *nrq) argument 233 nrs_fifo_req_stop(struct ptlrpc_nrs_policy *policy, struct ptlrpc_nrs_request *nrq) argument [all...] |
/drivers/block/drbd/ |
H A D | drbd_nla.h | 5 const struct nla_policy *policy);
|
/drivers/md/ |
H A D | dm-cache-policy-cleaner.c | 4 * writeback cache policy supporting flushing out dirty cache blocks. 9 #include "dm-cache-policy.h" 38 struct policy { struct 39 struct dm_cache_policy policy; member in struct:policy 66 static struct policy *to_policy(struct dm_cache_policy *p) 68 return container_of(p, struct policy, policy); 97 static int alloc_cache_blocks_with_hash(struct policy *p, dm_cblock_t cache_size) 119 static void free_cache_blocks_and_hash(struct policy *p) 125 static struct wb_cache_entry *alloc_cache_entry(struct policy * [all...] |