| /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; in write() argument 54 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in write() argument 60 fn write(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in write() argument 76 ) -> Result<usize>; in write_to_slice() 85 ) -> Result<usize> { in write_to_slice() 96 ) -> Result<usize> { in write_to_slice() 113 ) -> Result<usize> { in write_to_slice() 128 ) -> Result<usize> { in write_to_slice() 142 ) -> Result<usize> { in write_to_slice() 157 ) -> Result<usize> { in write_to_slice() [all …]
|
| /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}, 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 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 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 D | page.rs | 9 error::Result, 180 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { 262 f: impl FnOnce(*mut u8) -> Result<T>, 263 ) -> Result<T> { 287 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in write_raw() argument 309 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in fill_zero_raw() 329 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { 357 ) -> Result { 265 read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result read_raw() argument 307 fill_zero_raw(&self, offset: usize, len: usize) -> Result fill_zero_raw() argument 335 copy_from_user_slice_raw( &self, reader: &mut UserSliceReader, offset: usize, len: usize, ) -> Result copy_from_user_slice_raw() argument
|
| 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 | security.rs | 12 error::{to_result, Result}, 19 pub fn binder_set_context_mgr(mgr: &Credential) -> Result { in binder_set_context_mgr() argument 27 pub fn binder_transaction(from: &Credential, to: &Credential) -> Result { in binder_transaction() argument 35 pub fn binder_transfer_binder(from: &Credential, to: &Credential) -> Result { in binder_transfer_binder() argument 43 pub fn binder_transfer_file(from: &Credential, to: &Credential, file: &File) -> Result { in binder_transfer_file() argument 64 pub fn from_secid(secid: u32) -> Result<Self> { in from_secid()
|
| 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 {
|
| /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()
|
| /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 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() 310 unsafe fn __pinned_init(self, _slot: *mut T) -> Result<(), ()> { in __pinned_init() argument
|
| /linux/rust/kernel/net/ ! |
| H A D | phy.rs | 184 pub fn read<R: reg::Register>(&mut self, reg: R) -> Result<u16> { in read() 189 pub fn write<R: reg::Register>(&mut self, reg: R, val: u16) -> Result { in write() argument 194 pub fn read_paged(&mut self, page: u16, regnum: u16) -> Result<u16> { in read_paged() 212 pub fn genphy_soft_reset(&mut self) -> Result { in genphy_soft_reset() argument 220 pub fn init_hw(&mut self) -> Result { in init_hw() argument 228 pub fn start_aneg(&mut self) -> Result { in start_aneg() argument 236 pub fn genphy_resume(&mut self) -> Result { in genphy_resume() argument 244 pub fn genphy_suspend(&mut self) -> Result { in genphy_suspend() argument 252 pub fn genphy_read_status<R: reg::Register>(&mut self) -> Result<u16> { in genphy_read_status() 257 pub fn genphy_update_link(&mut self) -> Result { in genphy_update_link() argument [all …]
|
| /linux/rust/kernel/device/ ! |
| H A D | property.rs | 13 error::{to_result, Result}, 82 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in display_name() argument 115 pub fn property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> { in property_match_string() 135 ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> { in property_read_array_vec() 159 pub fn property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> { in property_count_elem() 265 ) -> Result<FwNodeReferenceArgs> { in property_get_reference_args() 357 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 383 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 440 fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self>; in read_from_fwnode_property() 446 fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self> { in read_from_fwnode_property() [all …]
|
| /linux/drivers/net/phy/ ! |
| H A D | ax88796b_rust.rs | 33 fn asix_soft_reset(dev: &mut phy::Device) -> Result { in asix_soft_reset() argument 49 fn read_status(dev: &mut phy::Device) -> Result<u16> { in read_status() 80 fn suspend(dev: &mut phy::Device) -> Result { in suspend() argument 84 fn resume(dev: &mut phy::Device) -> Result { in resume() argument 88 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() argument 110 fn suspend(dev: &mut phy::Device) -> Result { in suspend() argument 114 fn resume(dev: &mut phy::Device) -> Result { in resume() argument 118 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() argument 130 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() argument
|
| /linux/drivers/block/rnull/ ! |
| H A D | configfs.rs | 36 fn show(_this: &Config, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 50 ) -> Result<impl PinInit<configfs::Group<DeviceConfig>, Error>> { in make_group() 92 fn try_from(value: u8) -> Result<Self> { in try_from() 102 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 132 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 144 fn store(this: &DeviceConfig, page: &[u8]) -> Result { in store() argument 170 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 176 fn store(this: &DeviceConfig, page: &[u8]) -> Result { in store() argument 194 fn show(this: &DeviceConfig, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show() 206 fn store(this: &DeviceConfig, page: &[u8]) -> Result { in store() argument [all …]
|
| /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/drivers/gpu/nova-core/ ! |
| H A D | vbios.rs | 57 fn try_from(code: u8) -> Result<Self> { in try_from() 93 fn new(dev: &'a device::Device, bar0: &'a Bar0) -> Result<Self> { in new() 104 fn read_more(&mut self, len: usize) -> Result { in read_more() argument 134 fn read_more_at_offset(&mut self, offset: usize, len: usize) -> Result { in read_more_at_offset() argument 157 ) -> Result<BiosImage> { in read_bios_image_at_offset() 183 type Item = Result<BiosImage>; 235 pub(crate) fn new(dev: &device::Device, bar0: &Bar0) -> Result<Vbios> { in new() 335 fn new(dev: &device::Device, data: &[u8]) -> Result<Self> { in new() 395 fn new(data: &[u8]) -> Result<Self> { in new() 426 fn from_id(image: &PciAtBiosImage, token_id: u8) -> Result<Self> { in from_id() [all …]
|
| /linux/drivers/cpufreq/ ! |
| H A D | rcpufreq_dt.rs | 60 fn init(policy: &mut cpufreq::Policy) -> Result<Self::PData> { in init() 150 fn exit(_policy: &mut cpufreq::Policy, _data: Option<Self::PData>) -> Result { in exit() argument 154 fn online(_policy: &mut cpufreq::Policy) -> Result { in online() argument 159 fn offline(_policy: &mut cpufreq::Policy) -> Result { in offline() argument 165 fn suspend(policy: &mut cpufreq::Policy) -> Result { in suspend() argument 169 fn verify(data: &mut cpufreq::PolicyData) -> Result { in verify() argument 173 fn target_index(policy: &mut cpufreq::Policy, index: cpufreq::TableIndex) -> Result { in target_index() argument 182 fn get(policy: &mut cpufreq::Policy) -> Result<u32> { in get() 186 fn set_boost(_policy: &mut cpufreq::Policy, _state: i32) -> Result { in set_boost() argument
|