| /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/rust/kernel/ |
| H A D | uaccess.rs | 269 return Err(EFAULT); in read_raw() 275 return Err(EFAULT); in read_raw() 320 return Err(EINVAL); in read_slice_file() 342 return Err(EFAULT); in read() 358 return Err(EFAULT); in read() 394 return Err(EINVAL); in strcpy_into_buf() 418 return Err(EFAULT); in strcpy_into_buf() 471 return Err(EFAULT); in write_raw() 478 return Err(EFAULT); in write_raw() 536 return Err(ERANGE); in write_dma() [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() 592 /// return Err(EINVAL); 866 return Err(EINVA in opp_from_freq() [all...] |
| 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 | 415 return Err(Error::from_errno(irq)); in irq_by_index() 429 return Err(Error::from_errno(irq)); in optional_irq_by_index() 442 return Err(Error::from_errno(irq)); in irq_by_name() 458 return Err(Error::from_errno(irq)); in optional_irq_by_name() 567 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/zerocopy/src/ |
| H A D | lib.rs | 933 Err(_) => const_panic!("unreachable"), in maximum_trailing_slice_len() 1890 Err(e) => { in try_ref_from_bytes() 1891 Err(e.map_src(|src| src.as_bytes::<BecauseImmutable>().as_ref()).into()) in try_ref_from_bytes() 1895 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_bytes() 2217 Err(e) => Err(e.map_src(|src| src.as_bytes().as_mut()).into()), in try_mut_from_bytes() 2220 Err(e) => Err(e.map_src(Ptr::as_mut).into()), in try_mut_from_bytes() 2534 Err(e) => { in try_ref_from_bytes_with_elems() 2535 Err(e.map_src(|src| src.as_bytes::<BecauseImmutable>().as_ref()).into()) in try_ref_from_bytes_with_elems() 2539 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_bytes_with_elems() 2859 Err(e) => Err(e.map_src(|src| src.as_bytes().as_mut()).into()), in try_mut_from_bytes_with_elems() [all …]
|
| H A D | ref.rs | 212 return Err(SizeError::new(bytes).into()); in sized_from() 214 if let Err(err) = util::validate_aligned_to::<_, T>(bytes.deref()) { in sized_from() 215 return Err(err.with_src(bytes).into()); in sized_from() 230 return Err(SizeError::new(bytes).into()); in sized_from_prefix() 232 if let Err(err) = util::validate_aligned_to::<_, T>(bytes.deref()) { in sized_from_prefix() 233 return Err(err.with_src(bytes).into()); in sized_from_prefix() 254 return Err(SizeError::new(bytes).into()); in sized_from_suffix() 257 if let Err(err) = util::validate_aligned_to::<_, T>(bytes.deref()) { in sized_from_suffix() 258 return Err(err.with_src(bytes).into()); in sized_from_suffix() 313 if let Err(e) = in from_bytes() [all …]
|
| /linux/rust/zerocopy-derive/ |
| H A D | repr.rs | 156 Err(Error::new( in unaligned_validate_no_align_gt_1() 299 Err(E), enumerator 331 Err(UnsupportedReprError) in try_from() 337 .map_err(FromRawReprError::Err) in try_from() 339 Transparent | Align(_) | PackedN(_) | Packed => Err(FromRawReprError::None), in try_from() 354 | Transparent | C | Rust | Align(_) => Err(UnsupportedReprError), in try_from() 359 .map_err(FromRawReprError::Err), in try_from() 362 | Transparent | C | Rust => Err(FromRawReprError::None), in try_from() 393 Err(FromRawReprError::None) => return Ok(found), in try_from_raw_reprs() 396 Err(FromRawReprError::Err(Spanned { t: err, span })) => { in try_from_raw_reprs() [all …]
|
| H A D | lib.rs | 88 Err(e) => return e.into_compile_error().into(), 116 Err(err) => err.to_compile_error(), in into_ts() 138 Err(e) => return e.into_compile_error().into(), in most_traits()
|
| /linux/rust/kernel/pci/ |
| H A D | io.rs | 197 return Err(ENOMEM); in new() 209 return Err(EBUSY); in do_release() 222 return Err(ENOMEM); in release() 227 Err(err) => { 233 return Err(err); 339 return Err(EINVAL);
|
| /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() 170 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()
|
| H A D | array.rs | 126 None => return Err(ENOSPC), in reserve_new() 193 return Err(EPERM); in reservation_abort() 232 return Err(ENOENT); in reservation_commit() 248 return Err(ENOENT); in reserve_existing()
|
| /linux/rust/kernel/io/ |
| H A D | poll.rs | 43 /// `Err(ETIMEDOUT)` is returned. 101 return Err(ETIMEDOUT); in read_poll_timeout() 131 /// `Err(ETIMEDOUT)` is returned. 182 Err(ETIMEDOUT)
|
| /linux/drivers/android/binder/ |
| H A D | context.rs | 84 return Err(EINVAL); in register_process() 114 return Err(EBUSY); in set_manager_node() 122 return Err(EPERM); in set_manager_node()
|
| /linux/rust/pin-init/examples/ |
| H A D | pthread_mutex.rs | 75 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 84 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new() 93 return Err(Error::IO(std::io::Error::from_raw_os_error(ret))); in new()
|
| /linux/rust/kernel/drm/gem/ |
| H A D | mod.rs | 142 Err(e) => e.to_errno(), in close_callback() 207 return Err(ENOENT); in lookup_handle() 334 if let Err(err) = 343 return Err(err); in deref()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | ptr.rs | 684 if let Err(err) = in try_into_aligned() 687 return Err(err.with_src(self)); in try_into_aligned() 791 Err(ValidityError::new(self)) in try_into_valid() 905 Err(err) => Err(err), in project() 1189 Err(CastError::Size(SizeError::<_, U>::new(()))) in try_cast_into_no_leftover() 1192 Err(err) => Err(err.map_src( in try_cast_into_no_leftover() 1563 Err(CastError::Size(e)) => { in test_try_cast_into_no_leftover_restores_original_slice() 1566 Err(e) => panic!("wrong error type: {:?}", e), in test_try_cast_into_no_leftover_restores_original_slice()
|