Searched refs:from_err_ptr (Results 1 – 7 of 7) sorted by relevance
/linux/rust/kernel/ |
H A D | clk.rs | 84 error::{from_err_ptr, to_result, Result}, 144 Ok(Self(from_err_ptr(unsafe { in get() 313 Ok(Self(Clk(from_err_ptr(unsafe { in get()
|
H A D | regulator.rs | 22 error::{from_err_ptr, to_result, Result}, 280 let inner = from_err_ptr(unsafe { bindings::regulator_get(dev.as_raw(), name.as_ptr()) })?; in get_internal()
|
H A D | opp.rs | 15 error::{code::*, from_err_ptr, from_result, to_result, Error, Result, VTABLE_DEFAULT_ERROR}, 645 let ptr = from_err_ptr(unsafe { bindings::dev_pm_opp_get_opp_table(dev.as_raw()) })?; in from_dev() 855 let ptr = from_err_ptr(match stype { in opp_from_freq() 892 let ptr = from_err_ptr(match stype { in opp_from_level() 918 let ptr = from_err_ptr(match stype { in opp_from_bw()
|
H A D | error.rs | 398 /// # use kernel::from_err_ptr; 406 /// from_err_ptr(unsafe { bindings::devm_platform_ioremap_resource(pdev.to_ptr(), index) }) 409 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr() function
|
H A D | cpufreq.rs | 17 error::{code::*, from_err_ptr, from_result, to_result, Result, VTABLE_DEFAULT_ERROR}, 685 let ptr = from_err_ptr(unsafe { bindings::cpufreq_cpu_get(u32::from(cpu)) })?; in from_cpu()
|
/linux/rust/kernel/block/mq/ |
H A D | gen_disk.rs | 9 use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc}; 106 let gendisk = from_err_ptr(unsafe { in build()
|
/linux/rust/kernel/drm/ |
H A D | device.rs | 10 error::from_err_ptr, 111 let raw_drm = NonNull::new(from_err_ptr(raw_drm)?).ok_or(ENOMEM)?; in new()
|