Home
last modified time | relevance | path

Searched refs:to_result (Results 1 – 22 of 22) sorted by relevance

/linux/rust/kernel/
H A Dopp.rs15 error::{code::*, from_err_ptr, from_result, to_result, Result, VTABLE_DEFAULT_ERROR},
45 to_result(unsafe { in new()
185 to_result(unsafe { bindings::dev_pm_opp_add_dynamic(dev.as_raw(), &mut data.0) })?; in new()
498 to_result(ret).map(|()| ConfigToken(ret)) in set()
667 to_result(unsafe { bindings::dev_pm_opp_of_add_table_indexed(dev.as_raw(), index) })?; in from_of()
695 to_result(unsafe { bindings::dev_pm_opp_of_cpumask_add_table(cpumask.as_raw()) })?; in from_of_cpumask()
719 to_result(ret).map(|()| ret as u32) in opp_count()
759 to_result(unsafe { bindings::dev_pm_opp_sync_regulators(self.dev.as_raw()) }) in sync_regulators()
767 to_result(unsafe { bindings::dev_pm_opp_get_sharing_cpus(dev.as_raw(), cpumask.as_raw()) }) in sharing_cpus()
774 to_result(unsafe { in set_sharing_cpus()
[all …]
H A Dregulator.rs22 error::{from_err_ptr, to_result, Result},
90 to_result(unsafe { bindings::devm_regulator_get_enable(dev.as_raw(), name.as_char_ptr()) }) in devm_enable()
108 to_result(unsafe { in devm_enable_optional()
255 to_result(unsafe { in set_voltage()
269 to_result(voltage).map(|()| Voltage::from_microvolts(voltage)) in get_voltage()
288 to_result(unsafe { bindings::regulator_enable(self.inner) }) in enable_internal()
293 to_result(unsafe { bindings::regulator_disable(self.inner) }) in disable_internal()
H A Dclk.rs84 error::{from_err_ptr, to_result, Result},
163 to_result(unsafe { bindings::clk_enable(self.as_raw()) }) in enable()
187 to_result(unsafe { bindings::clk_prepare(self.as_raw()) }) in prepare()
209 to_result(unsafe { bindings::clk_prepare_enable(self.as_raw()) }) in prepare_enable()
243 to_result(unsafe { bindings::clk_set_rate(self.as_raw(), rate.as_hz()) }) in set_rate()
H A Ddevres.rs15 error::to_result,
140 to_result(unsafe {
291 to_result(unsafe {
H A Ddma.rs10 error::{to_result, Result},
48 to_result(unsafe { bindings::dma_set_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_mask()
65 to_result(unsafe { bindings::dma_set_coherent_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_coherent_mask()
84 to_result(unsafe { in dma_set_mask_and_coherent()
H A Dpci.rs18 to_result, //
88 to_result(unsafe { in register()
452 to_result(unsafe { bindings::pci_enable_device_mem(self.as_raw()) }) in enable_device_mem()
H A Dmaple_tree.rs17 error::to_result,
183 let res = to_result(unsafe { in insert_range()
461 let res = to_result(unsafe { in alloc_range()
H A Dscatterlist.rs212 error::to_result(unsafe { in new()
277 error::to_result(unsafe { in new()
H A Dauxiliary.rs19 to_result, //
65 to_result(unsafe { in register()
H A Dcpufreq.rs17 error::{code::*, from_err_ptr, from_result, to_result, Result, VTABLE_DEFAULT_ERROR},
159 to_result(unsafe { bindings::cpufreq_generic_frequency_table_verify(self.as_raw()) }) in generic_verify()
523 to_result(unsafe { bindings::cpufreq_generic_suspend(self.as_mut_ref()) }) in generic_suspend()
1042 to_result(unsafe { bindings::cpufreq_register_driver(drv.get_mut()) })?; in new()
H A Dusb.rs18 to_result, //
67 to_result(unsafe { in register()
H A Dplatform.rs18 to_result, //
85 to_result(unsafe { bindings::__platform_driver_register(pdrv.get(), module.0) }) in register()
H A Dstr.rs7 error::{to_result, Result},
716 to_result(unsafe { bindings::kstrtobool(string, &mut result) })?; in kstrtobool_raw()
H A Derror.rs434 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result() function
H A Di2c.rs146 to_result(unsafe { bindings::i2c_register_driver(module.0, idrv.get()) }) in register()
H A Dconfigfs.rs178 crate::error::to_result( in new()
/linux/rust/kernel/net/phy/
H A Dreg.rs113 to_result(ret)?; in read()
122 to_result(unsafe { in write()
132 to_result(ret)?; in read_status()
203 to_result(ret)?; in read()
211 to_result(unsafe { in write()
221 to_result(ret)?; in read_status()
/linux/rust/kernel/irq/
H A Drequest.rs13 use crate::error::to_result;
221 to_result(unsafe { in new()
441 to_result(unsafe { in new()
/linux/rust/kernel/pci/
H A Dirq.rs11 error::to_result,
147 to_result(ret)?; in register()
/linux/rust/kernel/fs/
H A Dfile.rs13 error::{code::*, to_result, Error, Result},
408 to_result(fd)?; in get_unused_fd_flags()
/linux/rust/kernel/mm/
H A Dvirt.rs19 error::{code::EINVAL, to_result, Result},
197 to_result(unsafe { bindings::vm_insert_page(self.as_ptr(), address, page.as_ptr()) }) in vm_insert_page()
/linux/rust/kernel/block/mq/
H A Dtag_set.rs66 error::to_result( unsafe { bindings::blk_mq_alloc_tag_set(tag_set.get())}) in new()