Lines Matching defs:Device

14     device::Device,
34 dev: ARef<Device>,
43 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
163 /// use kernel::device::Device;
168 /// fn create_opp(dev: &ARef<Device>, freq: Hertz, volt: MicroVolt, level: u32) -> Result<Token> {
176 dev: ARef<Device>,
182 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> {
183 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
195 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
212 /// use kernel::device::Device;
217 /// fn create_opp(dev: &ARef<Device>, freq: Hertz, volt: MicroVolt, level: u32) -> Result<Token> {
245 pub fn add_opp(self, dev: &ARef<Device>) -> Result<Token> {
296 fn config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result {
303 _dev: &Device,
315 /// Returned by the OPP core when configuration is applied to a [`Device`]. The associated
332 /// The following example demonstrates how to set OPP property-name configuration for a [`Device`].
335 /// use kernel::device::Device;
348 /// fn configure(dev: &ARef<Device>) -> Result<ConfigToken> {
368 required_dev: Option<(ARef<Device>, u32)>,
419 pub fn set_required_dev(mut self, dev: ARef<Device>, index: u32) -> Result<Self> {
445 pub fn set(self, dev: &Device) -> Result<ConfigToken> {
500 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
520 let dev = unsafe { Device::get_device(dev) };
545 let dev = unsafe { Device::get_device(dev) };
579 /// use kernel::device::Device;
584 /// fn get_table(dev: &ARef<Device>, mask: &mut Cpumask, freq: Hertz) -> Result<Table> {
600 dev: ARef<Device>,
621 unsafe fn from_raw_table(ptr: *mut bindings::opp_table, dev: &ARef<Device>) -> Self {
636 /// Creates a new reference-counted [`Table`] instance for a [`Device`].
637 pub fn from_dev(dev: &Device) -> Result<Self> {
638 // SAFETY: The requirements are satisfied by the existence of the [`Device`] and its safety
654 /// Creates a new reference-counted [`Table`] instance for a [`Device`] based on device tree
657 pub fn from_of(dev: &ARef<Device>, index: i32) -> Result<Self> {
658 // SAFETY: The requirements are satisfied by the existence of the [`Device`] and its safety
676 // SAFETY: The requirements are satisfied by the existence of the [`Device`] and its safety
685 pub fn from_of_cpumask(dev: &Device, cpumask: &mut Cpumask) -> Result<Self> {
711 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
721 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
729 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
737 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
745 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
753 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
760 pub fn sharing_cpus(dev: &Device, cpumask: &mut Cpumask) -> Result {
761 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
768 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
785 pub fn of_sharing_cpus(dev: &Device, cpumask: &mut Cpumask) -> Result {
786 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
802 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
825 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
833 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
853 // SAFETY: The requirements are satisfied by the existence of [`Device`] and
866 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
872 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
888 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
892 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
898 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
917 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
923 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
937 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
945 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
953 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety
967 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety