Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 207) sorted by relevance

123456789

/linux/rust/syn/gen/
H A Ddebug.rs11 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
21 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
27 fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result { in debug() argument
39 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
53 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
65 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
77 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
92 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
104 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
115 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
[all …]
/linux/rust/kernel/debugfs/
H A Dtraits.rs29 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result; in write() argument
33 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in write() argument
39 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in write() argument
55 ) -> Result<usize>; in write_to_slice()
64 ) -> Result<usize> { in write_to_slice()
75 ) -> Result<usize> { in write_to_slice()
92 ) -> Result<usize> { in write_to_slice()
107 ) -> Result<usize> { in write_to_slice()
121 ) -> Result<usize> { in write_to_slice()
136 ) -> Result<usize> { in write_to_slice()
[all …]
/linux/rust/kernel/
H A Dopp.rs15 error::{code::*, from_err_ptr, from_result, to_result, Result, VTABLE_DEFAULT_ERROR},
40 pub(crate) fn new(table: &Table) -> Result<Self> { in new()
91 fn to_c_str_array(names: &[CString]) -> Result<KVec<*const c_char>> { in to_c_str_array()
182 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> { in new()
245 pub fn add_opp(self, dev: &ARef<Device>) -> Result<Token> { in add_opp()
296 fn config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result { in config_clks() argument
308 ) -> Result { in config_regulators() argument
380 pub fn set_clk_names(mut self, names: KVec<CString>) -> Result<Self> { in set_clk_names()
394 pub fn set_prop_name(mut self, name: CString) -> Result<Self> { in set_prop_name()
404 pub fn set_regulator_names(mut self, names: KVec<CString>) -> Result<Self> { in set_regulator_names()
[all …]
H A Dstr.rs7 error::{to_result, Result},
76 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
108 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
231 fn to_cstring(&self) -> Result<CString, AllocError>; in to_cstring()
264 fn to_ascii_lowercase(&self) -> Result<CString, AllocError>; in to_ascii_lowercase()
275 fn to_ascii_uppercase(&self) -> Result<CString, AllocError>; in to_ascii_uppercase()
294 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
341 fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring()
355 fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase()
363 fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase()
[all …]
H A Dregulator.rs22 error::{from_err_ptr, to_result, Result},
84 pub fn devm_enable(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable() argument
102 pub fn devm_enable_optional(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable_optional() argument
251 pub fn set_voltage(&self, min_voltage: Voltage, max_voltage: Voltage) -> Result { in set_voltage() argument
263 pub fn get_voltage(&self) -> Result<Voltage> { in get_voltage()
270 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulator<T>> { in get_internal()
286 fn enable_internal(&self) -> Result { in enable_internal() argument
291 fn disable_internal(&self) -> Result { in disable_internal() argument
299 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
304 pub fn try_into_enabled(self) -> Result<Regulator<Enabled>, Error<Disabled>> { in try_into_enabled()
[all …]
H A Ddma.rs10 error::{to_result, Result},
42 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { in dma_set_mask() argument
59 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Result { in dma_set_coherent_mask() argument
78 unsafe fn dma_set_mask_and_coherent(&self, mask: DmaMask) -> Result { in dma_set_mask_and_coherent() argument
154 pub const fn try_new(n: u32) -> Result<Self> { in try_new()
385 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
427 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
467 pub fn dma_handle_with_offset(&self, offset: usize) -> Result<DmaAddress> { in dma_handle_with_offset()
479 fn validate_range(&self, offset: usize, count: usize) -> Result { in validate_range() argument
499 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice()
[all …]
H A Duaccess.rs10 error::Result,
172 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() argument
221 pub fn skip(&mut self, num_skip: usize) -> Result { in skip() argument
263 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw() argument
284 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice() argument
297 pub fn read_slice_partial(&mut self, out: &mut [u8], offset: usize) -> Result<usize> { in read_slice_partial()
316 pub fn read_slice_file(&mut self, out: &mut [u8], offset: &mut file::Offset) -> Result<usize> { in read_slice_file()
337 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
368 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() argument
390 pub fn strcpy_into_buf<'buf>(self, buf: &'buf mut [u8]) -> Result<&'buf CStr> { in strcpy_into_buf()
[all …]
H A Dcpufreq.rs17 error::{code::*, from_err_ptr, from_result, to_result, Result, VTABLE_DEFAULT_ERROR},
90 fn new(val: u32) -> Result<Self> { in new()
157 pub fn generic_verify(&self) -> Result { in generic_verify() argument
251 pub fn freq(&self, index: TableIndex) -> Result<Hertz> { in freq()
288 fn new(entries: KVec<bindings::cpufreq_frequency_table>) -> Result<Self> { in new()
365 pub fn add(&mut self, freq: Hertz, flags: u32, driver_data: u32) -> Result { in add() argument
378 pub fn to_table(mut self) -> Result<TableBox> { in to_table()
520 pub fn generic_suspend(&mut self) -> Result { in generic_suspend() argument
527 pub fn generic_get(&self) -> Result<u32> { in generic_get()
555 pub unsafe fn set_clk(&mut self, dev: &Device, name: Option<&CStr>) -> Result<Clk> { in set_clk()
[all …]
H A Dclk.rs84 error::{from_err_ptr, to_result, Result},
138 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
161 pub fn enable(&self) -> Result { in enable() argument
185 pub fn prepare(&self) -> Result { in prepare() argument
207 pub fn prepare_enable(&self) -> Result { in prepare_enable() argument
241 pub fn set_rate(&self, rate: Hertz) -> Result { in set_rate() argument
306 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
H A Dfmt.rs7 pub use core::fmt::{Arguments, Debug, Error, Formatter, Result, Write};
21 fn fmt(&self, f: &mut Formatter<'_>) -> Result {
42 fn fmt(&self, f: &mut Formatter<'_>) -> Result; in fmt() argument
46 fn fmt(&self, f: &mut Formatter<'_>) -> Result { in fmt() argument
52 fn fmt(&self, f: &mut Formatter<'_>) -> Result { in fmt() argument
64 fn fmt(&self, f: &mut Formatter<'_>) -> Result {
/linux/rust/syn/
H A Dparse.rs206 pub use crate::error::{Error, Result};
217 fn parse(input: ParseStream) -> Result<Self>; in parse()
279 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
285 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
467 pub fn parse<T: Parse>(&self) -> Result<T> { in parse()
507 pub fn call<T>(&'a self, function: fn(ParseStream<'a>) -> Result<T>) -> Result<T> { in call()
738 parser: fn(ParseStream<'a>) -> Result<T>, in parse_terminated()
740 ) -> Result<Punctuated<T, P::Token>> in parse_terminated()
1056 pub fn step<F, R>(&self, function: F) -> Result<R> in step()
1058 F: for<'c> FnOnce(StepCursor<'c, 'a>) -> Result<(R, Cursor<'c>)>, in step()
[all …]
H A Dattr.rs6 use crate::error::Result;
224 pub fn parse_args<T: Parse>(&self) -> Result<T> { in parse_args()
247 pub fn parse_args_with<F: Parser>(&self, parser: F) -> Result<F::Output> { in parse_args_with()
395 logic: impl FnMut(ParseNestedMeta) -> Result<()>, in parse_nested_meta() argument
396 ) -> Result<()> { in parse_nested_meta()
408 pub fn parse_outer(input: ParseStream) -> Result<Vec<Self>> { in parse_outer()
424 pub fn parse_inner(input: ParseStream) -> Result<Vec<Self>> { in parse_inner()
522 pub fn require_path_only(&self) -> Result<&Path> { in require_path_only()
534 pub fn require_list(&self) -> Result<&MetaList> { in require_list()
552 pub fn require_name_value(&self) -> Result<&MetaNameValue> { in require_name_value()
[all …]
H A Dparse_quote.rs123 use crate::error::Result;
140 fn parse(input: ParseStream) -> Result<Self>; in parse()
144 fn parse(input: ParseStream) -> Result<Self> { in parse()
160 fn parse(input: ParseStream) -> Result<Self> { in parse()
171 fn parse(input: ParseStream) -> Result<Self> { in parse()
182 fn parse(input: ParseStream) -> Result<Self> { in parse()
212 fn parse(input: ParseStream) -> Result<Self> { in parse()
219 fn parse(input: ParseStream) -> Result<Self> { in parse()
225 fn parse(input: ParseStream) -> Result<Self> { in parse()
232 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
H A Dmeta.rs5 use crate::error::{Error, Result};
134 pub fn parser(logic: impl FnMut(ParseNestedMeta) -> Result<()>) -> impl Parser<Output = ()> { in parser()
204 pub fn value(&self) -> Result<ParseStream<'a>> { in value()
275 logic: impl FnMut(ParseNestedMeta) -> Result<()>, in parse_nested_meta() argument
276 ) -> Result<()> { in parse_nested_meta()
389 mut logic: impl FnMut(ParseNestedMeta) -> Result<()>, in parse_nested_meta() argument
390 ) -> Result<()> { in parse_nested_meta()
405 fn parse_meta_path(input: ParseStream) -> Result<Path> { in parse_meta_path()
H A Dty.rs278 use crate::error::{self, Result};
299 fn parse(input: ParseStream) -> Result<Self> { in parse()
313 pub fn without_plus(input: ParseStream) -> Result<Self> { in without_plus()
324 ) -> Result<Type> { in ambig_ty()
617 fn parse(input: ParseStream) -> Result<Self> { in parse()
628 fn parse(input: ParseStream) -> Result<Self> { in parse()
641 fn parse(input: ParseStream) -> Result<Self> { in parse()
664 fn parse(input: ParseStream) -> Result<Self> { in parse()
677 fn parse(input: ParseStream) -> Result<Self> { in parse()
724 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
/linux/rust/pin-init/src/
H A Dalloc.rs30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init()
50 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init()
82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
90 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
118 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
139 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init()
148 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
H A Dlib.rs1066 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument
1088 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() argument
1104 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
1106 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
1164 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument
1196 F: FnOnce(&mut T) -> Result<(), E>, in chain() argument
1211 F: FnOnce(&mut T) -> Result<(), E>,
1213 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
1227 F: FnOnce(&mut T) -> Result<(), E>,
1229 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
[all …]
H A D__internal.rs29 F: FnOnce(*mut T) -> Result<(), E>,
32 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
41 F: FnOnce(*mut T) -> Result<(), E>,
44 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
73 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
103 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
171 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
202 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
209 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
290 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init() argument
/linux/drivers/block/rnull/
H A Dconfigfs.rs38 fn show(_this: &Config, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
52 ) -> Result<impl PinInit<configfs::Group<DeviceConfig>, Error>> { in make_group()
94 fn try_from(value: u8) -> Result<Self> { in try_from()
104 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
134 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
146 fn store(this: &DeviceConfig, page: &[u8]) -> Result { in store() argument
172 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
178 fn store(this: &DeviceConfig, page: &[u8]) -> Result { in store() argument
196 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
208 fn store(this: &DeviceConfig, page: &[u8]) -> Result { in store() argument
[all …]
/linux/rust/kernel/net/phy/
H A Dreg.rs45 fn read(&self, dev: &mut Device) -> Result<u16>; in read()
48 fn write(&self, dev: &mut Device, val: u16) -> Result; in write() argument
51 fn read_status(dev: &mut Device) -> Result<u16>; in read_status()
105 fn read(&self, dev: &mut Device) -> Result<u16> { in read()
117 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() argument
127 fn read_status(dev: &mut Device) -> Result<u16> { in read_status()
197 fn read(&self, dev: &mut Device) -> Result<u16> { in read()
207 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() argument
216 fn read_status(dev: &mut Device) -> Result<u16> { in read_status()
/linux/rust/quote/
H A Dident_fragment.rs17 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result; in fmt() argument
32 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
42 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
52 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
70 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
81 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
/linux/drivers/cpufreq/
H A Drcpufreq_dt.rs61 fn init(policy: &mut cpufreq::Policy) -> Result<Self::PData> { in init()
151 fn exit(_policy: &mut cpufreq::Policy, _data: Option<Self::PData>) -> Result { in exit() argument
155 fn online(_policy: &mut cpufreq::Policy) -> Result { in online() argument
160 fn offline(_policy: &mut cpufreq::Policy) -> Result { in offline() argument
166 fn suspend(policy: &mut cpufreq::Policy) -> Result { in suspend() argument
170 fn verify(data: &mut cpufreq::PolicyData) -> Result { in verify() argument
174 fn target_index(policy: &mut cpufreq::Policy, index: cpufreq::TableIndex) -> Result { in target_index() argument
183 fn get(policy: &mut cpufreq::Policy) -> Result<u32> { in get()
187 fn set_boost(_policy: &mut cpufreq::Policy, _state: i32) -> Result { in set_boost() argument
/linux/rust/kernel/str/
H A Dparse_int.rs22 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self>; in from_str_radix()
25 fn from_u64_negated(value: u64) -> Result<Self>; in from_u64_negated()
81 fn from_str(src: &BStr) -> Result<Self> { in from_str()
109 fn from_str_radix(src: &BStr, radix: u32) -> Result<Self> {
114 fn from_u64_negated(value: u64) -> Result<Self> {
/linux/rust/proc-macro2/
H A Dparse.rs67 fn parse(&self, tag: &str) -> Result<Cursor<'a>, Reject> { in parse()
77 type PResult<'a, O> = Result<(Cursor<'a>, O), Reject>;
159 fn word_break(input: Cursor) -> Result<Cursor, Reject> { in word_break()
170 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { in token_stream()
345 fn literal_nocapture(input: Cursor) -> Result<Cursor, Reject> { in literal_nocapture()
372 fn string(input: Cursor) -> Result<Cursor, Reject> { in string()
382 fn cooked_string(mut input: Cursor) -> Result<Cursor, Reject> { in cooked_string()
416 fn raw_string(input: Cursor) -> Result<Cursor, Reject> { in raw_string()
435 fn byte_string(input: Cursor) -> Result<Cursor, Reject> { in byte_string()
445 fn cooked_byte_string(mut input: Cursor) -> Result<Cursor, Reject> { in cooked_byte_string()
[all …]
/linux/drivers/android/binder/
H A Drust_binder_main.rs112 fn write_code(&mut self, code: u32) -> Result { in write_code() argument
119 fn write_payload<T: AsBytes>(&mut self, payload: &T) -> Result { in write_payload() argument
142 ) -> Result<bool>; in do_work()
154 fn debug_print(&self, m: &SeqFile, prefix: &str, transaction_prefix: &str) -> Result<()>; in debug_print() argument
194 fn arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> { in arc_try_new()
205 fn arc_pin_init(init: impl PinInit<T>) -> Result<DLArc<T>, kernel::error::Error> { in arc_pin_init()
247 ) -> Result<bool> { in do_work()
260 fn debug_print(&self, m: &SeqFile, prefix: &str, _tprefix: &str) -> Result<()> { in debug_print() argument
285 fn init(_module: &'static kernel::ThisModule) -> Result<Self> { in init()
533 fn rust_binder_transactions_show_impl(m: &SeqFile) -> Result<()> { in rust_binder_transactions_show_impl() argument
[all …]

123456789