| /linux/rust/proc-macro2/ |
| H A D | parse.rs | 71 Err(Reject) in parse() 104 Err(Reject) => return s, in skip_whitespace() 129 return Err(Reject); in block_comment() 151 Err(Reject) in block_comment() 161 Some(ch) if is_ident_continue(ch) => Err(Reject), in word_break() 191 return Err(LexError { in token_stream() 196 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream() 220 None => return Err(lex_error(input)), in token_stream() 226 return Err(lex_error(input)); in token_stream() 241 Err(Reject) => return Err(lex_error(input)), in token_stream() [all …]
|
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 161 return Err(EINVAL); in validate_parent_fixup() 170 return Err(EINVAL); in validate_parent_fixup() 179 return Err(EINVAL); in validate_parent_fixup() 215 Err(EINVAL) in claim_next() 346 return Err(EINVAL); in pop_transaction_to_reply() 533 return Err(EINTR); in get_work_local() 593 None if signal_pending => Err(EINTR), in get_work() 675 return Err(EPERM.into()); in translate_object() 708 Err(err) => { in translate_object() 715 return Err(err.into()); in translate_object() [all …]
|
| H A D | transaction.rs | 73 Err(err) => { in new() 77 return Err(err); in new() 84 return Err(EINVAL.into()); in new() 126 Err(err) => { in new_reply() 128 return Err(err); in new_reply() 265 Err((err, work)) => { in submit() 269 return Err(err); in submit() 274 return Err(BinderError::new_frozen_oneway()); in submit() 285 return Err(BinderError::new_frozen()); in submit() 291 PushWorkRes::FailedDead(me) => Err((BinderError::new_dead(), me)), in submit() [all …]
|
| H A D | rust_binder_main.rs | 337 Err(_err) => core::ptr::null_mut(), in rust_binder_new_context() 374 Err(err) => return err.to_errno(), in rust_binder_open() 381 Err(err) => return err.to_errno(), in rust_binder_open() 415 Err(err) => err.to_errno() as isize, in rust_binder_ioctl() 432 Err(err) => err.to_errno(), in rust_binder_mmap() 449 Err(_) => bindings::POLLERR, in rust_binder_poll() 463 Err(err) => err.to_errno(), in rust_binder_flush() 477 if let Err(err) = rust_binder_stats_show_impl(m) { in rust_binder_stats_show() 493 if let Err(err) = rust_binder_state_show_impl(m) { in rust_binder_state_show() 511 if let Err(err) = rust_binder_proc_show_impl(m, pid) { in rust_binder_proc_show() [all …]
|
| H A D | freeze.rs | 79 Err(err) => match err {}, in init() 180 return Err(EINVAL); in request_freeze_notif() 184 return Err(EINVAL); in request_freeze_notif() 192 return Err(EINVAL); in request_freeze_notif() 242 return Err(EINVAL); in freeze_notif_done() 255 return Err(EINVAL); in freeze_notif_done() 281 return Err(EINVAL); in clear_freeze_notif() 285 return Err(EINVAL); in clear_freeze_notif() 289 return Err(EINVAL); in clear_freeze_notif() 293 return Err(EINVAL); in clear_freeze_notif()
|
| H A D | process.rs | 182 PushWorkRes::FailedDead(work) => Err((BinderError::new_dead(), work)), in push_work() 185 Err((BinderError::new_dead(), work)) in push_work() 282 Err(EINVAL) in get_existing_node() 680 return Err(EINVAL); in get_current_thread() 704 Err(EINVAL) in get_current_thread() 714 Err((err, work)) => { in push_work() 716 Err(err) in push_work() 794 Err(err) => return Err(err), in get_node() 796 Ok(Err(CouldNotDeliverCriticalIncrement)) => { in get_node() 842 return Err(EINVAL); in insert_or_update_handle() [all …]
|
| H A D | page_range.rs | 77 return Err(Error::from_errno(ret)); in register() 85 return Err(Error::from_errno(ret)); in register() 278 return Err(EINVAL); in register_with_vma() 282 return Err(EINVAL); in register_with_vma() 304 return Err(EBUSY); in register_with_vma() 344 Err(err) => { in use_range() 346 return Err(err); in use_range() 478 return Err(EFAULT); in iterate()
|
| /linux/rust/kernel/ |
| H A D | uaccess.rs | 267 return Err(EFAULT); in read_raw() 273 return Err(EFAULT); in read_raw() 318 return Err(EINVAL); in read_slice_file() 340 return Err(EFAULT); in read() 356 return Err(EFAULT); in read() 392 return Err(EINVAL); in strcpy_into_buf() 416 return Err(EFAULT); in strcpy_into_buf() 471 return Err(EFAULT); in write_slice() 477 return Err(EFAULT); in write_slice() 511 return Err(EINVAL); in write_slice_file() [all …]
|
| H A D | opp.rs | 382 return Err(EBUSY); in set_clk_names() 386 return Err(EINVAL); in set_clk_names() 396 return Err(EBUSY); in set_prop_name() 406 return Err(EBUSY); in set_regulator_names() 410 return Err(EINVAL); in set_regulator_names() 421 return Err(EBUSY); in set_required_dev() 431 return Err(EBUSY); in set_supported_hw() 435 return Err(EINVAL); in set_supported_hw() 866 return Err(EINVAL); in opp_from_freq() 919 SearchType::Exact => return Err(EINVAL), in opp_from_bw()
|
| H A D | maple_tree.rs | 174 return Err(InsertError { in insert_range() 187 if let Err(err) = res { in insert_range() 198 Err(InsertError { value, cause }) in insert_range() 451 return Err(AllocError { in alloc_range() 473 if let Err(err) = res { in alloc_range() 484 Err(AllocError { value, cause }) in alloc_range()
|
| H A D | platform.rs | 371 return Err(Error::from_errno(irq)); in irq_by_index() 385 return Err(Error::from_errno(irq)); in optional_irq_by_index() 398 return Err(Error::from_errno(irq)); in irq_by_name() 414 return Err(Error::from_errno(irq)); in optional_irq_by_name() 523 return Err(EINVAL); in try_from()
|
| /linux/rust/syn/ |
| H A D | group.rs | 99 Err(cursor.error(message)) in parse_delimited() 155 $crate::__private::Err(error) => { 156 return $crate::__private::Err(error); 233 $crate::__private::Err(error) => { 234 return $crate::__private::Err(error); 288 $crate::__private::Err(error) => { 289 return $crate::__private::Err(error);
|
| H A D | meta.rs | 414 return Err(input.error("expected nested attribute")); in parse_meta_path() 416 return Err(input.error("unexpected literal in nested attribute, expected ident")); in parse_meta_path() 418 return Err(input.error("unexpected token in nested attribute, expected ident")); in parse_meta_path()
|
| H A D | parse_macro_input.rs | 114 $crate::__private::Err(err) => { 122 $crate::__private::Err(err) => {
|
| H A D | attr.rs | 249 Meta::Path(path) => Err(crate::error::new2( in parse_args_with() 258 Meta::NameValue(meta) => Err(Error::new( in parse_args_with() 528 Err(Error::new(error_span, "unexpected token in attribute")) in require_path_only() 537 Meta::Path(path) => Err(crate::error::new2( in require_list() 545 Meta::NameValue(meta) => Err(Error::new(meta.eq_token.span, "expected `(`")), in require_list() 555 Meta::Path(path) => Err(crate::error::new2( in require_name_value() 563 Meta::List(meta) => Err(Error::new(meta.delimiter.span().open(), "expected `=`")), in require_name_value() 753 return Err(input.error("unexpected attribute inside of attribute")); in parse_meta_name_value_after_path()
|
| H A D | parse.rs | 1161 Some((span, delimiter)) => Err(err_unexpected_token(span, delimiter)), in check_unexpected() 1197 None => Err(cursor.error("expected token tree")), in parse() 1211 Err(cursor.error("expected group token")) in parse() 1221 None => Err(cursor.error("expected punctuation token")), in parse() 1231 None => Err(cursor.error("expected literal token")), in parse() 1302 Err(err_unexpected_token(unexpected_span, delimiter)) in parse2() 1318 Err(err_unexpected_token(unexpected_span, delimiter)) in __parse_scoped()
|
| H A D | ident.rs | 85 Err(cursor.error(format_args!( in parse() 91 Err(cursor.error("expected identifier")) in parse()
|
| /linux/rust/kernel/pci/ |
| H A D | io.rs | 35 return Err(ENOMEM); in new() 47 return Err(EBUSY); in new() 60 return Err(ENOMEM); in new() 65 Err(err) => { in new() 71 return Err(err); in new()
|
| /linux/drivers/cpufreq/ |
| H A D | rcpufreq_dt.rs | 82 Err(e) if e == ENOENT => { in init() 88 Err(e) => return Err(e), in init() 101 Err(e) => { in init() 103 return Err(e); in init() 176 return Err(ENOENT); in target_index()
|
| /linux/drivers/scsi/aic94xx/ |
| H A D | aic94xx_init.c | 66 goto Err; in asd_map_memio() 72 goto Err; in asd_map_memio() 86 Err: in asd_map_memio() 146 goto Err; in asd_map_ha() 152 goto Err; in asd_map_ha() 155 goto Err; in asd_map_ha() 161 goto Err; in asd_map_ha() 165 Err: in asd_map_ha() 195 goto Err; in asd_common_setup() 215 Err: in asd_common_setup() [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-ali1563.c | 343 goto Err; in ali1563_setup() 349 goto Err; in ali1563_setup() 359 goto Err; in ali1563_setup() 365 goto Err; in ali1563_setup() 371 goto Err; in ali1563_setup() 376 Err: in ali1563_setup()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 161 None => return Err(ENOSPC), in reserve_new() 179 return Err(ENOSPC); in reserve_new() 225 return Err(EINVAL); in reservation_abort() 237 (None, Err(EINVAL)) in reservation_abort() 244 (allocated, Err(EPERM)) in reservation_abort() 320 other => (other, Err(ENOENT)), in reservation_commit() 351 (other, Err(ENOENT)) in reserve_existing()
|
| /linux/drivers/block/rnull/ |
| H A D | configfs.rs | 98 _ => Err(EINVAL), in try_from() 180 return Err(EBUSY); in store() 210 return Err(EBUSY); in store() 231 return Err(EBUSY); in store() 254 return Err(EBUSY); in store()
|
| /linux/rust/kernel/io/ |
| H A D | poll.rs | 96 return Err(ETIMEDOUT); in read_poll_timeout() 172 Err(ETIMEDOUT) in read_poll_timeout_atomic()
|
| /linux/rust/pin-init/examples/ |
| H A D | pthread_mutex.rs | 76 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 85 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 94 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new()
|