| /linux/scripts/ |
| H A D | rustdoc_test_gen.rs | 51 let potential_components: Vec<&str> = file.strip_suffix("_rs").unwrap().split('_').collect(); in find_real_path() 93 [valid_path] => valid_path.to_str().unwrap(), in find_real_path() 99 writeln!(&mut candidates, " {path:?}").unwrap(); in find_real_path() 110 let srctree = std::env::var("srctree").unwrap(); in main() 114 .unwrap() in main() 115 .map(|entry| entry.unwrap().path()) in main() 132 let name = path.file_name().unwrap().to_str().unwrap().to_string(); in main() 135 let (file, line) = name.rsplit_once('_').unwrap().0.rsplit_once('_').unwrap(); in main() 157 File::open(path).unwrap().read_to_string(&mut body).unwrap(); in main() 219 .unwrap(); in main() [all …]
|
| H A D | rustdoc_test_builder.rs | 23 stdin.read_to_string(&mut body).unwrap(); in main() 69 let name = rustdoc_function_name.split_once("_rust_kernel_").unwrap().1; in main() 73 std::fs::write(path, body.as_bytes()).unwrap(); in main()
|
| H A D | generate_rust_target.rs | 144 if handle.read_line(&mut line).unwrap() == 0 { in from_stdin() 175 .unwrap() in rustc_version_atleast() 177 .unwrap(); in rustc_version_atleast()
|
| /linux/rust/macros/ |
| H A D | vtable.rs | 76 .unwrap(); in vtable() 87 write!(const_items, "const {gen_const_name}: bool = true;").unwrap(); in vtable() 91 let new_body = vec![const_items.parse().unwrap(), body.stream()] in vtable()
|
| H A D | pin_data.rs | |
| H A D | pinned_drop.rs | |
| H A D | module.rs | 81 .unwrap(); in emit_base() 167 .unwrap(); in emit_params()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 50 let free_node = alloc.free_tree.pop().unwrap(); in from_array() 53 let tree_node = alloc.tree.pop().unwrap(); in from_array() 64 let free_res = alloc.free_tree.pop().unwrap(); in from_array() 65 let tree_node = alloc.tree.pop().unwrap(); in from_array() 74 let free_node = alloc.free_tree.pop().unwrap(); in from_array() 77 let tree_node = alloc.tree.pop().unwrap(); in from_array() 89 let first_value = tree_iter.next().unwrap(); in is_empty()
|
| /linux/drivers/dma-buf/ |
| H A D | Makefile | 3 dma-fence-unwrap.o dma-resv.o dma-buf-mapping.o 15 st-dma-fence-unwrap.o \
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_mech.c | 52 .unwrap = gss_krb5_unwrap_v2, 81 .unwrap = gss_krb5_unwrap_v2, 120 .unwrap = gss_krb5_unwrap_v2, 146 .unwrap = gss_krb5_unwrap_v2, 175 .unwrap = gss_krb5_unwrap_v2, 201 .unwrap = gss_krb5_unwrap_v2, 592 return kctx->gk5e->unwrap(kctx, offset, len, buf, in gss_krb5_unwrap()
|
| /linux/fs/ecryptfs/ |
| H A D | Kconfig | 18 bool "Enable notifications for userspace key wrap/unwrap" 22 for userspace to wrap/unwrap file encryption keys by other
|
| /linux/rust/kernel/ |
| H A D | types.rs | 233 self.0.take().unwrap().0 in dismiss() 249 &self.0.as_ref().unwrap().0 in deref() 256 &mut self.0.as_mut().unwrap().0 in deref_mut()
|
| H A D | ptr.rs | 88 const { Alignment::new_checked(align_of::<T>()).unwrap() } in of()
|
| /linux/rust/syn/ |
| H A D | attr.rs | 250 path.segments.first().unwrap().ident.span(), in parse_args_with() 251 path.segments.last().unwrap().ident.span(), in parse_args_with() 538 path.segments.first().unwrap().ident.span(), in require_list() 539 path.segments.last().unwrap().ident.span(), in require_list() 556 path.segments.first().unwrap().ident.span(), in require_name_value() 557 path.segments.last().unwrap().ident.span(), in require_name_value()
|
| H A D | classify.rs | 108 match &path.segments.last().unwrap().arguments { in trailing_unparameterized_path() 121 match bounds.last().unwrap() { in trailing_unparameterized_path() 282 match &path.segments.last().unwrap().arguments { in expr_trailing_brace() 294 match bounds.last().unwrap() { in expr_trailing_brace()
|
| H A D | verbatim.rs | 15 let (tt, next) = cursor.token_tree().unwrap(); in between()
|
| H A D | whitespace.rs | 52 let ch = s.chars().next().unwrap(); in skip()
|
| H A D | lit.rs | 422 let mut token: Literal = repr.parse().unwrap(); in new() 516 let mut token: Literal = repr.parse().unwrap(); in new() 909 let mut token: Literal = repr.parse().unwrap(); in parse_negative_lit() 924 let mut token: Literal = repr.parse().unwrap(); in parse_negative_lit() 1302 char::from_u32(u32::from(byte)).unwrap() in parse_lit_str_cooked() 1358 let close = s.rfind('"').unwrap(); in parse_lit_str_raw() 1518 (CString::new(out).unwrap(), suffix) in parse_lit_c_str_cooked() 1524 (CString::new(String::from(value)).unwrap(), suffix) in parse_lit_c_str_raw() 1583 char::from_u32(u32::from(byte)).unwrap() in parse_lit_char() 1853 let mut digits = String::from_utf8(bytes).unwrap(); in parse_lit_float()
|
| H A D | ident.rs | 41 let first = chars.next().unwrap(); in xid_ok()
|
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 1364 let mut vec1: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain() 1365 let mut vec2: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain() 1368 vec1.push_within_capacity(i).unwrap(); in test_kvec_retain() 1370 vec2.push_within_capacity(i).unwrap(); in test_kvec_retain() 1392 let mut func = KVec::with_capacity(10, GFP_KERNEL).unwrap(); in test_kvec_retain() 1398 func.push_within_capacity(false).unwrap(); in test_kvec_retain()
|
| /linux/rust/pin-init/examples/ |
| H A D | static_init.rs | 63 Some(f) => unsafe { f.__pinned_init(ptr).unwrap() }, in deref() 90 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| H A D | big_struct_in_place.rs | 40 .unwrap(); in main()
|
| /linux/rust/pin-init/src/ |
| H A D | __internal.rs | 207 let value = value.unwrap(); in stack_init_reuse() 214 let value = value.unwrap(); in stack_init_reuse()
|
| /linux/rust/pin-init/internal/src/ |
| H A D | pinned_drop.rs | 22 nesting = nesting.checked_sub(1).unwrap(); in pinned_drop()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_ether.c | 74 int (*unwrap)(struct gether *, member 233 if (dev->unwrap) { in rx_complete() 238 status = dev->unwrap(dev->port_usb, in rx_complete() 1148 dev->unwrap = link->unwrap; in gether_connect() 1238 dev->unwrap = NULL; in gether_disconnect()
|