Lines Matching refs:Table
169 /// The index must correspond to a valid entry in the [`Table`] it is used for.
178 /// The caller must ensure that `index` correspond to a valid entry in the [`Table`] it is used
181 // INVARIANT: The caller ensures that `index` correspond to a valid entry in the [`Table`].
199 /// A [`Table`] instance always corresponds to a valid C `struct cpufreq_frequency_table`.
206 /// The following example demonstrates how to read a frequency value from [`Table`].
224 pub struct Table(Opaque<bindings::cpufreq_frequency_table>);
226 impl Table {
249 /// Returns frequency at `index` in the [`Table`].
259 /// Returns flags at `index` in the [`Table`].
267 /// Returns data at `index` in the [`Table`].
308 type Target = Table;
610 /// Returns reference to the CPU frequency [`Table`] for the [`Policy`].
611 pub fn freq_table(&self) -> Result<&Table> {
618 Ok(unsafe { Table::from_raw(self.as_ref().freq_table) })
621 /// Sets the CPU frequency [`Table`] for the [`Policy`].
625 /// The caller must guarantee that the [`Table`] is not dropped while it is getting used by the
628 pub unsafe fn set_freq_table(&mut self, table: &Table) -> &mut Self {