• Home
  • Raw
  • Download

Lines Matching +full:required +full:- +full:opps

4  * Copyright (C) 2009-2014 Texas Instruments Incorporated.
28 * dev_pm_opp_init_cpufreq_table() - create a cpufreq table for a device
32 * Generate a cpufreq table for a provided device- this assumes that the
35 * This function allocates required memory for the cpufreq table. It is
36 * expected that the caller does the required maintenance such as freeing
37 * the table as required.
39 * Returns -EINVAL for bad pointers, -ENODEV if the device is not found, -ENOMEM
56 return max_opps ? max_opps : -ENODATA; in dev_pm_opp_init_cpufreq_table()
60 return -ENOMEM; in dev_pm_opp_init_cpufreq_table()
93 * dev_pm_opp_free_cpufreq_table() - free the cpufreq table
134 * dev_pm_opp_cpumask_remove_table() - Removes OPP table for @cpumask
138 * This should be used to remove all the OPPs entries associated with
148 * dev_pm_opp_set_sharing_cpus() - Mark OPP table as shared by few CPUs
155 * Returns -ENODEV if OPP table isn't already present.
170 if (cpu == cpu_dev->id) in dev_pm_opp_set_sharing_cpus()
182 dev_err(dev, "%s: failed to add opp-dev for cpu%d device\n", in dev_pm_opp_set_sharing_cpus()
187 /* Mark opp-table as multiple CPUs are sharing it now */ in dev_pm_opp_set_sharing_cpus()
188 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus()
198 * dev_pm_opp_get_sharing_cpus() - Get cpumask of CPUs sharing OPPs with @cpu_dev
202 * This updates the @cpumask with CPUs that are sharing OPPs with @cpu_dev.
204 * Returns -ENODEV if OPP table isn't already present and -EINVAL if the OPP
205 * table's status is access-unknown.
217 if (opp_table->shared_opp == OPP_TABLE_ACCESS_UNKNOWN) { in dev_pm_opp_get_sharing_cpus()
218 ret = -EINVAL; in dev_pm_opp_get_sharing_cpus()
224 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in dev_pm_opp_get_sharing_cpus()
225 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in dev_pm_opp_get_sharing_cpus()
226 cpumask_set_cpu(opp_dev->dev->id, cpumask); in dev_pm_opp_get_sharing_cpus()
228 cpumask_set_cpu(cpu_dev->id, cpumask); in dev_pm_opp_get_sharing_cpus()