Searched refs:from_err_ptr (Results 1 – 6 of 6) sorted by relevance
| /linux/rust/kernel/ |
| H A D | clk.rs | 84 error::{from_err_ptr, to_result, Result}, 143 Ok(Self(from_err_ptr(unsafe { in get() 311 Ok(Self(Clk(from_err_ptr(unsafe { in get()
|
| H A D | opp.rs | 15 error::{code::*, from_err_ptr, from_result, to_result, Result, VTABLE_DEFAULT_ERROR}, 647 let ptr = from_err_ptr(unsafe { bindings::dev_pm_opp_get_opp_table(dev.as_raw()) })?; in from_dev() 854 let ptr = from_err_ptr(match stype { in opp_from_freq() 891 let ptr = from_err_ptr(match stype { in opp_from_level() 917 let ptr = from_err_ptr(match stype { in opp_from_bw()
|
| H A D | regulator.rs | 22 error::{from_err_ptr, to_result, Result}, 271 from_err_ptr(unsafe { bindings::regulator_get(dev.as_raw(), name.as_char_ptr()) })?; in get_internal()
|
| H A D | error.rs | 463 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()
|
| H A D | i2c.rs | 572 let raw_dev = from_err_ptr(unsafe { in try_new()
|