Searched refs:policy (Results 26 - 50 of 66) sorted by relevance

123

/drivers/cpufreq/
H A Dcpufreq_interactive.c48 struct cpufreq_policy *policy; member in struct:cpufreq_interactive_cpuinfo
96 static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
181 hispeed_freq < pcpu->policy->max) {
184 new_freq = pcpu->policy->max * cpu_load / 100;
206 if (cpufreq_frequency_table_target(pcpu->policy, pcpu->freq_table,
254 if (pcpu->target_freq == pcpu->policy->max)
264 if (pcpu->target_freq == pcpu->policy->min) {
296 if (pcpu->target_freq != pcpu->policy->min) {
407 for_each_cpu(j, pcpu->policy->cpus) {
415 if (max_freq != pcpu->policy
660 cpufreq_governor_interactive(struct cpufreq_policy *policy, unsigned int event) argument
[all...]
H A De_powersaver.c78 static int eps_acpi_exit(struct cpufreq_policy *policy) argument
169 static int eps_target(struct cpufreq_policy *policy, argument
175 unsigned int cpu = policy->cpu;
183 if (unlikely(cpufreq_frequency_table_target(policy,
199 static int eps_verify(struct cpufreq_policy *policy) argument
201 return cpufreq_frequency_table_verify(policy,
202 &eps_cpu[policy->cpu]->freq_table[0]);
205 static int eps_cpu_init(struct cpufreq_policy *policy) argument
225 if (policy->cpu != 0)
331 if (!acpi_processor_get_bios_limit(policy
414 eps_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
H A Dmaple-cpufreq.c138 static int maple_cpufreq_verify(struct cpufreq_policy *policy) argument
140 return cpufreq_frequency_table_verify(policy, maple_cpu_freqs);
143 static int maple_cpufreq_target(struct cpufreq_policy *policy, argument
150 if (cpufreq_frequency_table_target(policy, maple_cpu_freqs,
177 static int maple_cpufreq_cpu_init(struct cpufreq_policy *policy) argument
179 policy->cpuinfo.transition_latency = 12000;
180 policy->cur = maple_cpu_freqs[maple_scom_query_freq()].frequency;
182 * cpufreq core if in the secondary policy we tell it that
183 * it actually must be one policy together with all others. */
184 cpumask_copy(policy
[all...]
H A Ds3c64xx-cpufreq.c57 static int s3c64xx_cpufreq_verify_speed(struct cpufreq_policy *policy) argument
59 if (policy->cpu != 0)
62 return cpufreq_frequency_table_verify(policy, s3c64xx_freq_table);
73 static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, argument
82 ret = cpufreq_frequency_table_target(policy, s3c64xx_freq_table,
190 static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy) argument
195 if (policy->cpu != 0)
243 policy->cur = clk_get_rate(armclk) / 1000;
249 policy->cpuinfo.transition_latency = (500 * 1000) + regulator_latency;
251 ret = cpufreq_frequency_table_cpuinfo(policy, s3c64xx_freq_tabl
[all...]
H A Ds5pv210-cpufreq.c177 static int s5pv210_verify_speed(struct cpufreq_policy *policy) argument
179 if (policy->cpu)
182 return cpufreq_frequency_table_verify(policy, s5pv210_freq_table);
193 static int s5pv210_target(struct cpufreq_policy *policy, argument
225 if (cpufreq_frequency_table_target(policy, s5pv210_freq_table,
238 if (cpufreq_frequency_table_target(policy, s5pv210_freq_table,
489 static int s5pv210_cpufreq_suspend(struct cpufreq_policy *policy) argument
494 static int s5pv210_cpufreq_resume(struct cpufreq_policy *policy) argument
510 static int __init s5pv210_cpu_init(struct cpufreq_policy *policy) argument
531 if (policy
[all...]
H A Ds3c2416-cpufreq.c90 static int s3c2416_cpufreq_verify_speed(struct cpufreq_policy *policy) argument
94 if (policy->cpu != 0)
97 return cpufreq_frequency_table_verify(policy, s3c_freq->freq_table);
229 static int s3c2416_cpufreq_set_target(struct cpufreq_policy *policy, argument
242 ret = cpufreq_frequency_table_target(policy, s3c_freq->freq_table,
371 static int __init s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy) argument
379 if (policy->cpu != 0)
399 policy->cpuinfo.max_freq = 400000;
404 policy->cpuinfo.max_freq = 534000;
490 policy
[all...]
H A Dpcc-cpufreq.c112 static int pcc_cpufreq_verify(struct cpufreq_policy *policy) argument
114 cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
115 policy->cpuinfo.max_freq);
198 static int pcc_cpufreq_target(struct cpufreq_policy *policy, argument
209 cpu = policy->cpu;
541 static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy) argument
543 unsigned int cpu = policy->cpu;
557 policy->max = policy
575 pcc_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
H A Dpowernow-k7.c539 static int powernow_target(struct cpufreq_policy *policy, argument
545 if (cpufreq_frequency_table_target(policy, powernow_table, target_freq,
555 static int powernow_verify(struct cpufreq_policy *policy) argument
557 return cpufreq_frequency_table_verify(policy, powernow_table);
632 static int __cpuinit powernow_cpu_init(struct cpufreq_policy *policy) argument
637 if (policy->cpu != 0)
681 policy->cpuinfo.transition_latency =
684 policy->cur = powernow_get(0);
686 cpufreq_frequency_table_get_attr(powernow_table, policy->cpu);
688 return cpufreq_frequency_table_cpuinfo(policy, powernow_tabl
691 powernow_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
H A Dlonghaul.c628 static int longhaul_verify(struct cpufreq_policy *policy) argument
630 return cpufreq_frequency_table_verify(policy, longhaul_table);
634 static int longhaul_target(struct cpufreq_policy *policy, argument
642 if (cpufreq_frequency_table_target(policy, longhaul_table, target_freq,
783 static int __cpuinit longhaul_cpu_init(struct cpufreq_policy *policy) argument
921 policy->cpuinfo.transition_latency = 200000; /* nsec */
922 policy->cur = calc_speed(longhaul_get_cpu_mult());
924 ret = cpufreq_frequency_table_cpuinfo(policy, longhaul_table);
928 cpufreq_frequency_table_get_attr(longhaul_table, policy->cpu);
933 static int __devexit longhaul_cpu_exit(struct cpufreq_policy *policy) argument
[all...]
/drivers/power/
H A Dwm8350_power.c90 struct wm8350_charger_policy *policy)
94 if (!policy) {
96 "No charger policy, charger not configured.\n");
101 if (policy->fast_limit_USB_mA > 500) {
106 eoc_mA = WM8350_CHG_EOC_mA(policy->eoc_mA);
113 reg | eoc_mA | policy->trickle_start_mV |
120 WM8350_CHG_FAST_LIMIT_mA(policy->fast_limit_USB_mA);
122 policy->charge_mV | policy->trickle_charge_USB_mA |
124 policy
89 wm8350_charger_config(struct wm8350 *wm8350, struct wm8350_charger_policy *policy) argument
191 struct wm8350_charger_policy *policy = power->policy; local
449 struct wm8350_charger_policy *policy = power->policy; local
[all...]
/drivers/acpi/
H A Dprocessor_thermal.c83 struct cpufreq_policy policy; local
84 if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu))
92 struct cpufreq_policy *policy = data; local
99 policy->cpuinfo.max_freq *
100 (100 - reduction_pctg(policy->cpu) * 20)
103 cpufreq_verify_within_limits(policy, 0, max_freq);
H A Dprocessor_perflib.c53 * _PPC support is implemented as a CPUfreq policy notifier:
55 * the ACPI core is asked to change the speed policy, the maximum
59 * policy is adjusted accordingly.
81 struct cpufreq_policy *policy = data; local
98 pr = per_cpu(processors, policy->cpu);
107 cpufreq_verify_within_limits(policy, 0,
/drivers/net/fddi/skfp/
H A Dpcmplc.c1436 int policy ; local
1440 policy = smc->mib.fddiSMTConnectionPolicy ;
1446 ((policy & POLICY_AA) && ne == TA) ||
1447 ((policy & POLICY_AB) && ne == TB) ||
1448 ((policy & POLICY_AS) && ne == TS) ||
1449 ((policy & POLICY_AM) && ne == TM) )
1454 ((policy & POLICY_BA) && ne == TA) ||
1455 ((policy & POLICY_BB) && ne == TB) ||
1456 ((policy & POLICY_BS) && ne == TS) ||
1457 ((policy
[all...]
H A Dsmt.c86 static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy);
1042 smt_fill_policy(smc,&sif->policy) ; /* set station policy */
1261 * fill values in station policy parameter
1263 static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy) argument
1277 SMTSETPARA(policy,SMT_P_POLICY) ;
1287 policy->pl_config = smc->mib.fddiSMTConfigPolicy ;
1288 policy->pl_connect = out ;
/drivers/net/wireless/prism54/
H A Dislpci_dev.h56 enum { MAC_POLICY_OPEN=0, MAC_POLICY_ACCEPT=1, MAC_POLICY_REJECT=2 } policy; member in struct:islpci_acl
H A Disl_ioctl.c350 if ((*uwrq == IW_MODE_MASTER) && (priv->acl.policy != MAC_POLICY_OPEN))
1787 acl->policy = MAC_POLICY_OPEN;
1899 /* Setting policy also clears the MAC acl, even if we don't change the default
1900 * policy
1918 acl->policy = *uwrq;
1922 (acl->policy != MAC_POLICY_OPEN))
1929 /* restart the card with our new policy */
1946 *uwrq = acl->policy;
1962 if (acl->policy == MAC_POLICY_OPEN) {
1973 res = (acl->policy
[all...]
/drivers/ata/
H A Dlibata.h183 extern int sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
198 enum ata_lpm_policy policy, unsigned hints)
197 sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, unsigned hints) argument
H A Dlibahci.c59 static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
663 static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, argument
671 if (policy != ATA_LPM_MAX_POWER) {
680 sata_link_scr_lpm(link, policy, false);
686 if (policy == ATA_LPM_MAX_POWER || !(hints & ATA_LPM_HIPM)) {
697 if (policy == ATA_LPM_MIN_POWER)
705 if (policy == ATA_LPM_MAX_POWER) {
706 sata_link_scr_lpm(link, policy, false);
915 /* check our blink policy and set flag for link if it's enabled */
H A Dlibata-eh.c3317 * @policy: the link power management policy
3322 * policy, and then call driver specific callbacks for
3331 static int ata_eh_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, argument
3369 if (policy != ATA_LPM_MIN_POWER && dipm) {
3383 rc = ap->ops->set_lpm(link, policy, hints);
3385 rc = ap->ops->set_lpm(ap->slave_link, policy, hints);
3387 rc = sata_pmp_set_lpm(link, policy, hints);
3404 * with the new policy set.
3406 link->lpm_policy = policy;
[all...]
H A Dlibata-scsi.c120 enum ata_lpm_policy policy; local
124 for (policy = ATA_LPM_MAX_POWER;
125 policy < ARRAY_SIZE(ata_lpm_policy_names); policy++) {
126 const char *name = ata_lpm_policy_names[policy];
131 if (policy == ARRAY_SIZE(ata_lpm_policy_names))
135 ap->target_lpm_policy = policy;
1056 /* Schedule policy is determined by ->qc_defer() callback and
3395 /* Schedule policy is determined by ->qc_defer()
H A Data_piix.c180 static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
1006 static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, argument
1009 return sata_link_scr_lpm(link, policy, false);
/drivers/staging/winbond/
H A Dsme_api.h137 s8 sme_set_txrate_policy(void *pcore_data, u8 policy);
138 s8 sme_get_txrate_policy(void *pcore_data, u8 *policy);
/drivers/net/wireless/hostap/
H A Dhostap_ap.h143 enum { MAC_POLICY_OPEN = 0, MAC_POLICY_ALLOW, MAC_POLICY_DENY } policy; member in struct:mac_restrictions
/drivers/pci/pcie/
H A DKconfig47 /sys/module/pcie_aspm/parameters/policy
59 prompt "Default ASPM policy"
/drivers/net/fddi/skfp/h/
H A Dsmt.h190 #define SMT_PL_HOLD 1 /* hold policy supported (Dual MAC) */
747 struct smt_p_policy policy ; /* station policy */ member in struct:smt_sif_config

Completed in 730 milliseconds

123