| /linux/rust/syn/gen/ |
| H A D | debug.rs | 11 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 D | traits.rs | 50 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...] |
| H A D | callback_adapters.rs | 51 fn write(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in read_from_slice() argument 58 W: Fn(&D::Target, &mut UserSliceReader) -> Result + Send + Sync + 'static, 60 fn read_from_slice(&self, reader: &mut UserSliceReader) -> Result { 87 F: Fn(&D, &mut fmt::Formatter<'_>) -> fmt::Result + 'static, 89 fn write(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { 42 write(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result write() argument 80 write(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result write() argument
|
| /linux/rust/kernel/ |
| H A D | opp.rs | 15 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 D | str.rs | 7 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 D | regulator.rs | 22 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 127 /// fn enable(dev: &Device, min_voltage: Voltage, max_voltage: Voltage) -> Result { 170 /// fn enable(dev: &Device) -> Result { 196 /// fn enable(dev: &Device<Bound>) -> Result { 212 /// fn disable(dev: &Device, regulator: Regulator<Enabled>) -> Result { 248 pub fn set_voltage(&self, min_voltage: Voltage, max_voltage: Voltage) -> Result { 260 pub fn get_voltage(&self) -> Result<Voltage> { in set_voltage() 267 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulato in get_voltage() 251 set_voltage(&self, min_voltage: Voltage, max_voltage: Voltage) -> Result set_voltage() argument 286 enable_internal(&self) -> Result enable_internal() argument 291 disable_internal(&self) -> Result disable_internal() argument [all...] |
| H A D | dma.rs | 10 error::{to_result, Result}, 43 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { in dma_set_mask() argument 60 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Result { in dma_set_coherent_mask() argument 79 unsafe fn dma_set_mask_and_coherent(&self, mask: DmaMask) -> Result { in dma_set_mask_and_coherent() argument 172 pub const fn try_new(n: u32) -> Result<Self> { in try_new() 403 ) -> Result<CoherentAllocation<T>> { in alloc_attrs() 445 ) -> Result<CoherentAllocation<T>> { in alloc_coherent() 485 pub fn dma_handle_with_offset(&self, offset: usize) -> Result<DmaAddress> { in dma_handle_with_offset() 497 fn validate_range(&self, offset: usize, count: usize) -> Result { in validate_range() argument 517 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice() [all …]
|
| H A D | uaccess.rs | 10 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 D | cpufreq.rs | 17 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 211 /// fn show_freq(policy: &Policy) -> Result { 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<u3 648 set_data<T: ForeignOwnable>(&mut self, data: T) -> Result set_data() argument 741 exit(_policy: &mut Policy, _data: Option<Self::PData>) -> Result exit() argument 746 online(_policy: &mut Policy) -> Result online() argument 751 offline(_policy: &mut Policy) -> Result offline() argument 756 suspend(_policy: &mut Policy) -> Result suspend() argument 761 resume(_policy: &mut Policy) -> Result resume() argument 771 verify(data: &mut PolicyData) -> Result verify() argument 774 setpolicy(_policy: &mut Policy) -> Result setpolicy() argument 779 target(_policy: &mut Policy, _target_freq: u32, _relation: Relation) -> Result target() argument 784 target_index(_policy: &mut Policy, _index: TableIndex) -> Result target_index() argument 804 target_intermediate(_policy: &mut Policy, _index: TableIndex) -> Result target_intermediate() argument 819 bios_limit(_policy: &mut Policy, _limit: &mut u32) -> Result bios_limit() argument 824 set_boost(_policy: &mut Policy, _state: i32) -> Result set_boost() argument [all...] |
| H A D | clk.rs | 84 error::{from_err_ptr, to_result, Result}, 109 /// use kernel::error::Result; 111 /// fn configure_clk(dev: &Device) -> Result { 137 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { 160 pub fn enable(&self) -> Result { 184 pub fn prepare(&self) -> Result { 206 pub fn prepare_enable(&self) -> Result { 240 pub fn set_rate(&self, rate: Hertz) -> Result { 276 /// use kernel::error::Result; 278 /// 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 D | fmt.rs | 7 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 D | io.rs | 45 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new() 221 $vis fn $try_name(&self, offset: usize) -> Result<$type_name> { 255 $vis fn $try_name(&self, value: $type_name, offset: usize) -> Result { 313 fn io_addr<U>(&self, offset: usize) -> Result<usize> { in io_addr() 325 fn try_read8(&self, _offset: usize) -> Result<u8> in try_read8() 334 fn try_read16(&self, _offset: usize) -> Result<u16> in try_read16() 343 fn try_read32(&self, _offset: usize) -> Result<u32> in try_read32() 352 fn try_read64(&self, _offset: usize) -> Result<u64> in try_read64() 361 fn try_write8(&self, _value: u8, _offset: usize) -> Result in try_write8() 370 fn try_write16(&self, _value: u16, _offset: usize) -> Result in try_write16() [all …]
|
| /linux/rust/syn/ |
| H A D | parse.rs | 206 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 D | attr.rs | 6 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 D | parse_quote.rs | 123 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 D | meta.rs | 5 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 D | ty.rs | 278 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 D | lib.rs | 933 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument 955 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() argument 971 F: FnOnce(Pin<&mut T>) -> Result<(), E>, 973 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument 1031 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument 1063 F: FnOnce(&mut T) -> Result<(), E>, in chain() argument 1078 F: FnOnce(&mut T) -> Result<(), E>, 1080 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument 1094 F: FnOnce(&mut T) -> Result<(), E>, 1096 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument [all …]
|
| H A D | alloc.rs | 30 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.rs | 29 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/rust/kernel/net/phy/ |
| H A D | reg.rs | 45 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 D | ident_fragment.rs | 17 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/rust/kernel/str/ |
| H A D | parse_int.rs | 22 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 D | parse.rs | 67 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/rust/kernel/io/ |
| H A D | poll.rs | 57 /// fn wait_for_hardware<const SIZE: usize>(io: &Mmio<SIZE>) -> Result { 76 ) -> Result<T> in read_poll_timeout() 78 Op: FnMut() -> Result<T>, in read_poll_timeout() 144 /// fn wait_for_hardware<const SIZE: usize>(io: &Mmio<SIZE>) -> Result { 162 ) -> Result<T> in read_poll_timeout_atomic() 164 Op: FnMut() -> Result<T>, in read_poll_timeout_atomic()
|