Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 218) 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.rs50 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result;
54 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in write_to_slice()
60 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in write_to_slice()
76 ) -> Result<usize>; in write_to_slice()
85 ) -> Result<usize> {
96 ) -> Result<usize> {
113 ) -> Result<usize> {
128 ) -> Result<usize> {
142 ) -> Result<usize> { in write_to_slice()
157 ) -> Result<usiz in read_from_slice()
29 write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result write() argument
33 write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result write() argument
39 write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result write() argument
156 read_from_slice(&self, reader: &mut UserSliceReader) -> Result read_from_slice() argument
160 read_from_slice(&self, reader: &mut UserSliceReader) -> Result read_from_slice() argument
179 read_from_slice(&self, reader: &mut UserSliceReader) -> Result read_from_slice() argument
[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
232 fn to_cstring(&self) -> Result<CString, AllocError>; in to_cstring()
265 fn to_ascii_lowercase(&self) -> Result<CString, AllocError>; in to_ascii_lowercase()
276 fn to_ascii_uppercase(&self) -> Result<CString, AllocError>; in to_ascii_uppercase()
295 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
344 fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring()
358 fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase()
366 fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase()
[all …]
H A Dregulator.rs22 error::{from_err_ptr, to_result, Result},
87 pub fn devm_enable(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable() argument
105 pub fn devm_enable_optional(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable_optional() argument
253 pub fn set_voltage(&self, min_voltage: Voltage, max_voltage: Voltage) -> Result { in set_voltage() argument
265 pub fn get_voltage(&self) -> Result<Voltage> { in get_voltage()
272 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 Duaccess.rs11 error::Result,
174 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() argument
223 pub fn skip(&mut self, num_skip: usize) -> Result { in skip() argument
265 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw() argument
286 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice() argument
299 pub fn read_slice_partial(&mut self, out: &mut [u8], offset: usize) -> Result<usize> { in read_slice_partial()
318 pub fn read_slice_file(&mut self, out: &mut [u8], offset: &mut file::Offset) -> Result<usize> { in read_slice_file()
339 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
370 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all() argument
392 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()
521 pub fn generic_suspend(&mut self) -> Result { in generic_suspend() argument
528 pub fn generic_get(&self) -> Result<u32> { in generic_get()
556 pub unsafe fn set_clk(&mut self, dev: &Device, name: Option<&CStr>) -> Result<Clk> { in set_clk()
[all …]
H A Ddma.rs60 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { in dma_set_mask() argument
77 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Result { in dma_set_coherent_mask() argument
96 unsafe fn dma_set_mask_and_coherent(&self, mask: DmaMask) -> Result { in dma_set_mask_and_coherent() argument
189 pub const fn try_new(n: u32) -> Result<Self> { in try_new()
420 ) -> Result<Self> { in zeroed_slice_with_attrs()
430 ) -> Result<Self> { in zeroed_slice()
437 pub fn init_at<E>(&mut self, i: usize, init: impl Init<T, E>) -> Result in init_at()
486 ) -> Result<Self> in from_slice_with_attrs()
510 ) -> Result<Self> in from_slice()
525 ) -> Result<Self> { in zeroed_with_attrs()
[all …]
H A Dclk.rs84 error::{from_err_ptr, to_result, Result},
109 /// use kernel::error::Result;
111 /// fn configure_clk(dev: &Device) -> Result {
144 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
167 pub fn enable(&self) -> Result {
191 pub fn prepare(&self) -> Result {
213 pub fn prepare_enable(&self) -> Result {
247 pub fn set_rate(&self, rate: Hertz) -> Result {
283 /// use kernel::error::Result;
285 /// fn configure_clk(dev: &Device) -> Result {
161 enable(&self) -> Result enable() argument
185 prepare(&self) -> Result prepare() argument
207 prepare_enable(&self) -> Result prepare_enable() argument
241 set_rate(&self, rate: Hertz) -> Result set_rate() argument
[all...]
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 {
H A Dio.rs49 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new()
253 fn io_addr<U>(&self, offset: usize) -> Result<usize> { in io_addr()
265 fn try_read8(&self, offset: usize) -> Result<u8> in try_read8()
274 fn try_read16(&self, offset: usize) -> Result<u16> in try_read16()
283 fn try_read32(&self, offset: usize) -> Result<u32> in try_read32()
292 fn try_read64(&self, offset: usize) -> Result<u64> in try_read64()
301 fn try_write8(&self, value: u8, offset: usize) -> Result in try_write8()
310 fn try_write16(&self, value: u16, offset: usize) -> Result in try_write16()
319 fn try_write32(&self, value: u32, offset: usize) -> Result in try_write32()
328 fn try_write64(&self, value: u64, offset: usize) -> Result in try_write64()
[all …]
/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 Dlib.rs114 //! let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
130 //! let mtx: Result<Pin<Arc<CMutex<usize>>>, _> = Arc::pin_init(CMutex::new(42));
932 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>;
954 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
970 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
972 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> {
1030 unsafe fn __init(self, slot: *mut T) -> Result<(), E>;
1062 F: FnOnce(&mut T) -> Result<(), E>, in chain()
1077 F: FnOnce(&mut T) -> Result<(), E>,
1079 unsafe fn __init(self, slot: *mut T) -> Result<(),
933 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument
955 pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> where F: FnOnce(Pin<&mut T>) -> Result<(), E>, pin_chain() argument
973 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument
1031 __init(self, slot: *mut T) -> Result<(), E> __init() argument
1063 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument
1080 __init(self, slot: *mut T) -> Result<(), E> __init() argument
1096 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument
1116 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument
1135 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument
1351 __init(self, slot: *mut T) -> Result<(), Infallible> __init() argument
1361 __pinned_init(self, slot: *mut T) -> Result<(), Infallible> __pinned_init() argument
1371 unsafe impl<T, E> Init<T, E> for Result<T, E> { global() implementation
1372 __init(self, slot: *mut T) -> Result<(), E> __init() argument
1382 unsafe impl<T, E> PinInit<T, E> for Result<T, E> { global() implementation
1383 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument
[all...]
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 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
92 F: FnOnce(*mut Self::Datee) -> Result<InitOk, E>, in make_closure()
123 F: FnOnce(*mut Self::Datee) -> Result<InitOk, E>, in make_closure()
191 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
222 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
229 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
320 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init() argument
/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/android/binder/
H A Dallocation.rs82 fn size_check(&self, offset: usize, size: usize) -> Result { in size_check() argument
96 ) -> Result { in copy_into() argument
108 pub(crate) fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read()
116 pub(crate) fn write<T: ?Sized>(&self, offset: usize, obj: &T) -> Result { in write() argument
124 pub(crate) fn fill_zero(&self) -> Result { in fill_zero() argument
161 pub(crate) fn info_add_fd_reserve(&mut self, num_fds: usize) -> Result { in info_add_fd_reserve() argument
175 ) -> Result { in info_add_fd() argument
192 pub(crate) fn translate_fds(&mut self) -> Result<TranslatedFds> { in translate_fds()
334 pub(crate) fn read<T: FromBytes>(&self, offset: usize) -> Result<T> { in read()
341 pub(crate) fn write<T: AsBytes>(&self, offset: usize, obj: &T) -> Result { in write() argument
[all …]
H A Dcontext.rs28 pub(crate) fn get_all_contexts() -> Result<KVVec<Arc<Context>>> { in get_all_contexts()
54 pub(crate) fn new(name: &CStr) -> Result<Arc<Self>> { in new()
81 pub(crate) fn register_process(self: &Arc<Self>, proc: Arc<Process>) -> Result { in register_process() argument
110 pub(crate) fn set_manager_node(&self, node_ref: NodeRef) -> Result { in set_manager_node() argument
136 pub(crate) fn get_manager_node(&self, strong: bool) -> Result<NodeRef, BinderError> { in get_manager_node()
156 pub(crate) fn get_all_procs(&self) -> Result<KVVec<Arc<Process>>> { in get_all_procs()
165 pub(crate) fn get_procs_with_pid(&self, pid: i32) -> Result<KVVec<Arc<Process>>> { in get_procs_with_pid()
/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 …]

123456789