Lines Matching defs:Table

32     /// A [`cpufreq::Table`] created from [`Table`].
39 /// Creates a new instance of [`FreqTable`] from [`Table`].
40 pub(crate) fn new(table: &Table) -> Result<Self> {
55 /// Returns a reference to the underlying [`cpufreq::Table`].
57 fn table(&self) -> &cpufreq::Table {
59 unsafe { cpufreq::Table::from_raw(self.ptr) }
64 type Target = cpufreq::Table;
260 /// Defines how to search for an [`OPP`] in a [`Table`] relative to a frequency.
265 /// use kernel::opp::{OPP, SearchType, Table};
268 /// fn find_opp(table: &Table, freq: Hertz) -> Result<ARef<OPP>> {
296 fn config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result {
528 &unsafe { Table::from_raw_table(opp_table, &dev) },
570 /// The pointer stored in `Self` is non-null and valid for the lifetime of the [`Table`].
576 /// The following example demonstrates how to get OPP [`Table`] for a [`Cpumask`] and set its
585 /// use kernel::opp::Table;
588 /// fn get_table(dev: &ARef<Device>, mask: &mut Cpumask, freq: Hertz) -> Result<Table> {
589 /// let mut opp_table = Table::from_of_cpumask(dev, mask)?;
602 pub struct Table {
612 /// SAFETY: It is okay to send ownership of [`Table`] across thread boundaries.
613 unsafe impl Send for Table {}
615 /// SAFETY: It is okay to access [`Table`] through shared references from other threads because
617 unsafe impl Sync for Table {}
619 impl Table {
620 /// Creates a new reference-counted [`Table`] from a raw pointer.
628 // INVARIANT: The reference-count is decremented when [`Table`] goes out of scope.
640 /// Creates a new reference-counted [`Table`] instance for a [`Device`].
646 // [`Table`] goes out of scope.
658 /// Creates a new reference-counted [`Table`] instance for a [`Device`] based on device tree
666 // [`Table`] goes out of scope.
669 // Get the newly created [`Table`].
676 /// Remove device tree based [`Table`].
686 /// Creates a new reference-counted [`Table`] instance for a [`Cpumask`] based on device tree
690 // SAFETY: The cpumask is valid and the returned pointer will be owned by the [`Table`]
694 // [`Table`] goes out of scope.
704 /// Remove device tree based [`Table`] for a [`Cpumask`].
713 /// Returns the number of [`OPP`]s in the [`Table`].
722 /// Returns max clock latency (in nanoseconds) of the [`OPP`]s in the [`Table`].
730 /// Returns max volt latency (in nanoseconds) of the [`OPP`]s in the [`Table`].
738 /// Returns max transition latency (in nanoseconds) of the [`OPP`]s in the [`Table`].
754 /// Synchronizes regulators used by the [`Table`].
819 /// Creates [`FreqTable`] from [`Table`].
977 impl Drop for Table {
1021 /// use kernel::opp::{SearchType, Table};
1023 /// fn configure_opp(table: &Table, freq: Hertz) -> Result {