| /linux/drivers/gpu/drm/tyr/ |
| H A D | driver.rs | 107 let core_clk = Clk::get(pdev.as_ref(), Some(c_str!("core")))?; in probe() 108 let stacks_clk = OptionalClk::get(pdev.as_ref(), Some(c_str!("stacks")))?; in probe() 109 let coregroup_clk = OptionalClk::get(pdev.as_ref(), Some(c_str!("coregroup")))?; in probe() 115 let mali_regulator = Regulator::<regulator::Enabled>::get(pdev.as_ref(), c_str!("mali"))?; in probe() 116 let sram_regulator = Regulator::<regulator::Enabled>::get(pdev.as_ref(), c_str!("sram"))?; in probe() 121 issue_soft_reset(pdev.as_ref(), &iomem)?; in probe() 122 gpu::l2_power_on(pdev.as_ref(), &iomem)?; in probe() 124 let gpu_info = GpuInfo::new(pdev.as_ref(), &iomem)?; in probe() 143 let tdev: ARef<TyrDevice> = drm::Device::new(pdev.as_ref(), data)?; in probe() 144 drm::driver::Registration::new_foreign_owned(&tdev, pdev.as_ref(), 0)?; in probe() [all …]
|
| /linux/rust/kernel/ |
| H A D | platform.rs | 75 let info = <Self as driver::Adapter>::id_info(pdev.as_ref()); in probe_callback() 80 pdev.as_ref().set_drvdata(data)?; in probe_callback() 95 let data = unsafe { pdev.as_ref().drvdata_obtain::<T>() }; in remove_callback() 97 T::unbind(pdev, data.as_ref()); in remove_callback() 279 .map(|resource| unsafe { IoRequest::new(self.as_ref(), resource) }) in io_request_by_index() 287 .map(|resource| unsafe { IoRequest::new(self.as_ref(), resource) }) in io_request_by_name() 366 Ok(unsafe { IrqRequest::new(self.as_ref(), irq as u32) }) in irq_by_index() 380 Ok(unsafe { IrqRequest::new(self.as_ref(), irq as u32) }) in optional_irq_by_index() 393 Ok(unsafe { IrqRequest::new(self.as_ref(), irq as u32) }) in irq_by_name() 409 Ok(unsafe { IrqRequest::new(self.as_ref(), irq as u32) }) in optional_irq_by_name() [all …]
|
| H A D | i2c.rs | 155 Self::i2c_id_info(idev).or_else(|| <Self as driver::Adapter>::id_info(idev.as_ref())); in probe_callback() 160 idev.as_ref().set_drvdata(data)?; in probe_callback() 172 let data = unsafe { idev.as_ref().drvdata_obtain::<T>() }; in remove_callback() 174 T::unbind(idev, data.as_ref()); in remove_callback() 184 let data = unsafe { idev.as_ref().drvdata_obtain::<T>() }; in shutdown_callback() 186 T::shutdown(idev, data.as_ref()); in shutdown_callback() 418 unsafe { bindings::i2c_put_adapter(obj.as_ref().as_raw()) } in dec_ref() 489 unsafe { bindings::get_device(self.as_ref().as_raw()) }; in inc_ref() 494 unsafe { bindings::put_device(&raw mut (*obj.as_ref().as_raw()).dev) } in dec_ref() 499 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
|
| H A D | cpufreq.rs | 455 fn as_ref(&self) -> &bindings::cpufreq_policy { in as_ref() method 470 unsafe { CpuId::from_u32_unchecked(self.as_ref().cpu) } in cpu() 476 Hertz::from_khz(self.as_ref().min as usize) in min() 489 Hertz::from_khz(self.as_ref().max as usize) in max() 502 Hertz::from_khz(self.as_ref().cur as usize) in cur() 508 Hertz::from_khz(self.as_ref().suspend_freq as usize) in suspend_freq() 571 self.as_ref().fast_switch_possible in fast_switch_possible() 612 if self.as_ref().freq_table.is_null() { in freq_table() 618 Ok(unsafe { Table::from_raw(self.as_ref().freq_table) }) in freq_table() 635 if self.as_ref().driver_data.is_null() { in data() [all …]
|
| H A D | usb.rs | 79 let dev: &device::Device<device::CoreInternal> = intf.as_ref(); in probe_callback() 92 let dev: &device::Device<device::CoreInternal> = intf.as_ref(); in disconnect_callback() 99 T::disconnect(intf, data.as_ref()); in disconnect_callback() 346 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method 357 fn as_ref(&self) -> &Device { in as_ref() method 434 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
|
| H A D | auxiliary.rs | 75 adev.as_ref().set_drvdata(data)?; in probe_callback() 90 drop(unsafe { adev.as_ref().drvdata_obtain::<T>() }); in remove_callback() 235 unsafe { self.as_ref().parent().unwrap_unchecked() } in parent() 264 unsafe { bindings::get_device(self.as_ref().as_raw()) }; in inc_ref() 281 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
|
| H A D | pci.rs | 102 pdev.as_ref().set_drvdata(data)?; in probe_callback() 117 let data = unsafe { pdev.as_ref().drvdata_obtain::<T>() }; in remove_callback() 119 T::unbind(pdev, data.as_ref()); in remove_callback() 474 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() method
|
| H A D | module_param.rs | 73 let arg: &BStr = arg.as_ref(); in set_param() 138 self.value.as_ref().unwrap_or(&self.default) in value()
|
| H A D | opp.rs | 454 let clk_names = clk_names.as_ref().map_or(ptr::null(), |c| c.as_ptr()); in set() 455 let regulator_names = regulator_names.as_ref().map_or(ptr::null(), |c| c.as_ptr()); in set() 459 .as_ref() in set() 464 .as_ref() in set() 469 .as_ref() in set()
|
| H A D | str.rs | 57 .strip_prefix(pattern.as_ref().deref()) in strip_prefix() 155 fn as_ref(&self) -> &BStr { in as_ref() method 161 fn as_ref(&self) -> &BStr { in as_ref() method 374 fn as_ref(&self) -> &BStr { in as_ref() method
|
| H A D | dma.rs | 47 to_result(unsafe { bindings::dma_set_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_mask() 64 to_result(unsafe { bindings::dma_set_coherent_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_coherent_mask() 84 bindings::dma_set_mask_and_coherent(self.as_ref().as_raw(), mask.value()) in dma_set_mask_and_coherent()
|
| /linux/samples/rust/ |
| H A D | rust_driver_pci.rs | 72 pdev.as_ref(), in probe() 85 let bar = bar.access(pdev.as_ref())?; in probe() 88 pdev.as_ref(), in probe() 99 if let Ok(bar) = this.bar.access(pdev.as_ref()) { in unbind() 109 dev_dbg!(self.pdev.as_ref(), "Remove Rust PCI driver sample.\n"); in drop()
|
| H A D | rust_dma.rs | 60 dev_info!(pdev.as_ref(), "Probe DMA test driver.\n"); in probe() 68 CoherentAllocation::alloc_coherent(pdev.as_ref(), TEST_VALUES.len(), GFP_KERNEL)?; in probe() 77 let sgt = SGTable::new(pdev.as_ref(), pages, DataDirection::ToDevice, GFP_KERNEL); in probe() 91 let dev = self.pdev.as_ref(); in drop()
|
| H A D | rust_driver_i2c.rs | 48 let dev = idev.as_ref(); in probe() 60 dev_info!(idev.as_ref(), "Shutdown Rust I2C driver sample.\n"); in shutdown() 64 dev_info!(idev.as_ref(), "Unbind Rust I2C driver sample.\n"); in unbind()
|
| H A D | rust_i2c_client.rs | 118 pdev.as_ref(), in probe() 128 i2c::Registration::new(&adapter, &BOARD_INFO, pdev.as_ref()) in probe() 135 pdev.as_ref(), in unbind()
|
| H A D | rust_driver_auxiliary.rs | 40 adev.as_ref(), in probe() 75 _reg0 <- auxiliary::Registration::new(pdev.as_ref(), AUXILIARY_NAME, 0, MODULE_NAME), in probe() 76 _reg1 <- auxiliary::Registration::new(pdev.as_ref(), AUXILIARY_NAME, 1, MODULE_NAME), in probe()
|
| H A D | rust_driver_usb.rs | 28 let dev: &device::Device<Core> = intf.as_ref(); in probe() 35 let dev: &device::Device<Core> = intf.as_ref(); in disconnect()
|
| H A D | rust_driver_platform.rs | 107 let dev = pdev.as_ref(); in probe() 181 dev_dbg!(self.pdev.as_ref(), "Remove Rust Platform driver sample.\n"); in drop()
|
| H A D | rust_driver_faux.rs | 25 dev_info!(reg.as_ref(), "Hello from faux device!\n"); in init()
|
| /linux/drivers/gpu/nova-core/ |
| H A D | driver.rs | 74 dev_dbg!(pdev.as_ref(), "Probe Nova Core GPU driver.\n"); in probe() 90 gpu <- Gpu::new(pdev, bar.clone(), bar.access(pdev.as_ref())?), in probe() 92 pdev.as_ref(), in probe() 102 this.gpu.unbind(pdev.as_ref()); in unbind()
|
| /linux/rust/kernel/str/ |
| H A D | parse_int.rs | 33 [b'0', b'x' | b'X', rest @ ..] => (16, rest.as_ref()), in strip_radix() 34 [b'0', b'o' | b'O', rest @ ..] => (8, rest.as_ref()), in strip_radix() 35 [b'0', b'b' | b'B', rest @ ..] => (2, rest.as_ref()), in strip_radix() 84 let (radix, digits) = strip_radix(rest.as_ref()); in from_str()
|
| /linux/rust/kernel/sync/ |
| H A D | set_once.rs | 69 pub fn as_ref(&self) -> Option<&T> { in as_ref() method 111 self.as_ref().copied() in copy()
|
| /linux/drivers/gpu/drm/nova/ |
| H A D | driver.rs | 51 let drm = drm::Device::<Self>::new(adev.as_ref(), data)?; in probe() 52 drm::Registration::new_foreign_owned(&drm, adev.as_ref(), 0)?; in probe()
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 111 Ok(unsafe { IrqRequest::new(self.dev.as_ref(), irq as u32) }) in try_into() 159 devres::register(dev.as_ref(), irq_vecs, GFP_KERNEL)?; in register()
|
| /linux/drivers/android/binder/ |
| H A D | transaction.rs | 186 Some(self.from_parent.as_ref()?.clone()) in clone_next() 207 if core::ptr::eq(thread, transaction.from.as_ref()) { in find_from() 318 let target_node_match = match (self.target_node.as_ref(), old.target_node.as_ref()) { in can_replace()
|