| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 100 unsafe { bindings::single_open(file, Some(writer_act::<T>), data) } 131 read: Some(bindings::seq_read), 132 llseek: Some(bindings::seq_lseek), 133 release: Some(bindings::single_release), 134 open: Some(writer_open::<Self>), 182 open: Some(writer_open::<T>), 183 read: Some(bindings::seq_read), 184 write: Some(write::<T>), 185 llseek: Some(bindings::seq_lseek), 186 release: Some(binding [all...] |
| /linux/rust/zerocopy/src/util/ |
| H A D | macro_util.rs | 217 Some( 1031 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)](; u8) => Some(0)); in test_trailing_field_offset() 1032 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)](; [u8]) => Some(0)); in test_trailing_field_offset() 1033 test!(#[repr(C)] #[repr(C, packed)] (u8; u8) => Some(1)); in test_trailing_field_offset() 1034 test!(#[repr(C)] (; AU64) => Some(0)); in test_trailing_field_offset() 1035 test!(#[repr(C)] (; [AU64]) => Some(0)); in test_trailing_field_offset() 1036 test!(#[repr(C)] (u8; AU64) => Some(8)); in test_trailing_field_offset() 1037 test!(#[repr(C)] (u8; [AU64]) => Some(8)); in test_trailing_field_offset() 1048 test!(#[repr(C)] (; Nested<u8, AU64>) => Some(0)); in test_trailing_field_offset() 1049 test!(#[repr(C)] (; Nested<u8, [AU64]>) => Some( in test_trailing_field_offset() [all...] |
| /linux/rust/proc-macro2/ |
| H A D | parse.rs | 161 Some(ch) if is_ident_continue(ch) => Err(Reject), in word_break() 162 Some(_) | None => Ok(input), in word_break() 186 Some(first) => first, in token_stream() 190 Some((lo, _frame)) => { in token_stream() 196 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream() 200 if let Some(open_delimiter) = match first { in token_stream() 201 b'(' if !input.starts_with(ERROR) => Some(Delimiter::Parenthesis), in token_stream() 202 b'[' => Some(Delimiter::Bracket), in token_stream() 203 b'{' => Some(Delimiter::Brace), in token_stream() 212 } else if let Some(close_delimiter) = match first { in token_stream() [all …]
|
| /linux/rust/macros/ |
| H A D | module.rs | 112 let Some(params) = &info.params else { in emit_params() 255 stringify!($key) => $name = Some($parser), 445 if let Some(authors) = authors { in module() 450 if let Some(description) = description { in module() 454 if let Some(aliases) = alias { in module() 459 if let Some(firmware) = firmware { in module() 464 if let Some(imports) = imports_ns { in module() 109 let Some(params) = &info.params else { emit_params() localVariable
|
| H A D | helpers.rs | |
| H A D | fmt.rs | 16 let Some((mut first_str, first_span)) = (match first_opt.as_ref() { in fmt() 17 Some(TokenTree::Literal(first_lit)) => { in fmt() 19 Some(first_owned_str.as_str()).and_then(|first| { in fmt() 22 Some((first, first_lit.span())) in fmt() 33 while let Some((_, rest)) = first_str.split_once('{') { in fmt() 35 if let Some(rest) = first_str.strip_prefix('{') { in fmt() 39 if let Some((name, rest)) = first_str.split_once('}') { in fmt() 60 while let Some(tt) = current.next() { in fmt() 66 return (Some(acc), current.collect::<TokenStream>()); in fmt() 14 let Some((mut first_str, first_span)) = (match first_opt.as_ref() { fmt() localVariable
|
| H A D | vtable.rs | 66 if let Some(default) = &fn_item.default { in vtable() 75 fn_item.default = Some(parse_quote!({ in vtable()
|
| H A D | paste.rs | 12 Some(TokenTree::Literal(lit)) => { in concat_helper() 21 Some(TokenTree::Ident(ident)) => { in concat_helper() 28 Some(TokenTree::Punct(p)) if p.as_char() == ':' => { in concat_helper() 29 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat_helper() localVariable 41 span = Some(sp); in concat_helper() 49 Some(TokenTree::Group(group)) if group.delimiter() == Delimiter::None => { in concat_helper()
|
| /linux/rust/kernel/drm/gem/ |
| H A D | shmem.rs | 131 free: Some(Self::free_callback), in new() 132 open: Some(super::open_callback::<T>), in new() 133 close: Some(super::close_callback::<T>), in new() 134 print_info: Some(bindings::drm_gem_shmem_object_print_info), in new() 135 pin: Some(bindings::drm_gem_shmem_object_pin), in new() 136 unpin: Some(bindings::drm_gem_shmem_object_unpin), in new() 137 get_sg_table: Some(bindings::drm_gem_shmem_object_get_sg_table), in new() 138 vmap: Some(bindings::drm_gem_shmem_object_vmap), in new() 139 vunmap: Some(bindings::drm_gem_shmem_object_vunmap), in new() 140 mmap: Some(binding in new() [all...] |
| H A D | mod.rs | 266 free: Some(Self::free_callback), 267 open: Some(open_callback::<T>), 268 close: Some(close_callback::<T>), in new() 380 fops.open = Some(bindings::drm_open); 381 fops.release = Some(bindings::drm_release); 382 fops.unlocked_ioctl = Some(bindings::drm_ioctl); 385 fops.compat_ioctl = Some(bindings::drm_compat_ioctl); 387 fops.poll = Some(bindings::drm_poll); 388 fops.read = Some(bindings::drm_read); 389 fops.llseek = Some(binding [all...] |
| /linux/rust/kernel/ |
| H A D | bitmap.rs | 171 /// assert_eq!(Some(0), b.next_bit(0)); in deref() 172 /// assert_eq!(Some(1), b.next_zero_bit(0)); in deref() 173 /// assert_eq!(Some(4), b.next_bit(1)); in deref() 174 /// assert_eq!(Some(5), b.next_zero_bit(4)); in deref() 175 /// assert_eq!(Some(12), b.last_bit()); in deref() 442 /// assert_eq!(Some(7), long_bitmap.last_bit()); 472 /// Some(idx) => { in next_bit() 488 Some(index) in next_zero_bit() 515 Some(index) in bitmap_borrow() 542 Some(inde in bitmap_vec_new() [all...] |
| H A D | cpufreq.rs | 654 Some(unsafe { T::borrow(self.as_ref().driver_data.cast()) }) in set_data() 678 let data = Some( 945 init: Some(Self::init_callback), 946 verify: Some(Self::verify_callback), 950 Some(Self::setpolicy_callback) 955 Some(Self::target_callback) 960 Some(Self::target_index_callback) 965 Some(Self::fast_switch_callback) 970 Some(Self::adjust_perf_callback) 975 Some(Sel [all...] |
| H A D | id_pool.rs | 62 /// Some(index) => return Ok(index.acquire()), 168 let Some(bit) = self.map.last_bit() else { in shrink_request() 169 return Some(ReallocRequest { in shrink_request() 177 Some(ReallocRequest { num_ids }) in shrink() 188 let Some(updated) = self.shrink_request() else { in shrink() 210 Some(ReallocRequest { num_ids }) 244 Some(UnusedId { 278 Some(start..start + count.get()) in as_u32() 284 if let Some(nbits) = NonZero::new(range.len()) { in acquire() 162 let Some(bit) = self.map.last_bit() else { shrink_request() localVariable 182 let Some(updated) = self.shrink_request() else { shrink() localVariable
|
| /linux/rust/syn/ |
| H A D | parse.rs | 268 if let Some((unexpected_span, delimiter)) = span_of_unexpected_ignoring_nones(self.cursor()) in drop() 272 inner.set(Unexpected::Some(unexpected_span, delimiter)); in drop() 397 unexpected: Cell::new(Some(unexpected)), in new_parse_buffer() 403 Some(Span, Delimiter), enumerator 417 Unexpected::Some(span, delimiter) => Unexpected::Some(*span, *delimiter), in clone() 437 Unexpected::Some(span, delimiter) => return (unexpected, Some((span, delimiter))), in inner_unexpected() 451 while let Some((inner, _span, rest)) = cursor.group(Delimiter::None) { in span_of_unexpected_ignoring_nones() 452 if let Some(unexpected) = span_of_unexpected_ignoring_nones(inner) { in span_of_unexpected_ignoring_nones() 453 return Some(unexpected); in span_of_unexpected_ignoring_nones() 460 Some((cursor.span(), cursor.scope_delimiter())) in span_of_unexpected_ignoring_nones() [all …]
|
| H A D | discouraged.rs | 180 (Some((span, delimiter)), None) => { in advance_to() 181 self_unexp.set(Unexpected::Some(span, delimiter)); in advance_to() 192 .set(Some(Rc::new(Cell::new(Unexpected::None)))); in advance_to() 195 (_, Some(_)) => {} in advance_to() 216 if let Some((content, delimiter, span, rest)) = cursor.any_group() { in parse_any_delimiter()
|
| H A D | buffer.rs | 194 Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump_ignore_group() })), in ident() 205 Some((punct.clone(), unsafe { self.bump_ignore_group() })) in punct() 216 Entry::Literal(literal) => Some((literal.clone(), unsafe { self.bump_ignore_group() })), in literal() 233 Some((lifetime, rest)) in lifetime() 255 return Some((inside_of_group, span, after_group)); in group() 271 return Some((inside_of_group, delimiter, span, after_group)); in any_group() 281 return Some((group.clone(), after_group)); in any_group_token() 292 while let Some((tt, rest)) = cursor.token_tree() { in token_stream() 316 Some((tree, rest)) in token_tree() 370 Some(unsafe { Cursor::create(self.ptr.add(len), self.scope) }) in skip() [all …]
|
| /linux/rust/zerocopy-derive/derive/ |
| H A D | from_bytes.rs | 27 let mut next_negative_discriminant = Some(0); in find_zero_variant() 42 Some(0) => return Ok(i), in find_zero_variant() 44 Some(n) => *n -= 1, in find_zero_variant() 49 Some((_, Expr::Lit(ExprLit { lit: Lit::Int(int), .. }))) => { in find_zero_variant() 51 Some(0) => return Ok(i), in find_zero_variant() 52 Some(_) => next_negative_discriminant = None, in find_zero_variant() 61 Some((_, Expr::Unary(ExprUnary { op: UnOp::Neg(_), expr, .. }))) => match &**expr { in find_zero_variant() 64 Some(0) => return Ok(i), in find_zero_variant() 66 Some(x) => next_negative_discriminant = Some( in find_zero_variant() [all...] |
| /linux/rust/zerocopy-derive/ |
| H A D | repr.rs | 131 if let Compound(_, Some(Spanned { t: Packed(p), span: _ })) = self { in get_packed() 132 Some(p) in get_packed() 141 if let Compound(_, Some(Spanned { t: Align(n), span })) = self { in get_align() 142 Some(Spanned::new(*n, *span)) in get_align() 157 if let Some(n) = self.get_align().filter(|n| n.t.get() > 1) { in unaligned_validate_no_align_gt_1() 180 Some(p) in get_primitive() 188 matches!(self.get_primitive(), Some(PrimitiveRepr::U8)) 193 matches!(self.get_primitive(), Some(PrimitiveRepr::I8)) 208 if let Some(align) = align { in to_tokens() 403 if let Some(foun in try_from_raw_reprs() [all...] |
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-regulator | 6 Some regulator directories will contain a field called 32 Some regulator directories will contain a field called 96 Some regulator directories will contain a field called 111 Some regulator directories will contain a field called 126 Some regulator directories will contain a field called 151 Some regulator directories will contain a field called 166 Some regulator directories will contain a field called 181 Some regulator directories will contain a field called 196 Some regulator directories will contain a field called 234 Some regulator directories will contain a field called [all …]
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 67 desc.state = Some((range.state, free_res)); in from_array() 117 Some(state) => &state.0, in debug_print() 160 Some(new_oneway_space) => new_oneway_space, in reserve_new() 172 Some(desc) => { in reserve_new() 180 desc.state = Some(( in reserve_new() 229 Some((DescriptorState::Reserved(reservation), free_node_res)) => { in reservation_abort() 270 Some((_, next)) if next.state.is_none() => { in reservation_abort() 289 Some((_, prev)) if prev.state.is_none() => { in reservation_abort() 313 Some((DescriptorState::Reserved(reservation), free_node_res)) => ( in reservation_commit() 314 Some(( in reservation_commit() [all...] |
| /linux/rust/zerocopy/src/ |
| H A D | layout.rs | 93 Some(encoded) => Self(encoded), 102 && align.get().checked_add(phase) == Some(self.0.get()) 123 Some(align) => align, 243 /// With `available_bytes = 4`, this method produces `Some(4)`, although in for_slice() 290 Some(size) => size, in for_repr_c_struct() 299 Some(bytes) => bytes, in for_repr_c_struct() 340 Some(trailing_bytes) 455 Some(bytes) => bytes, in extend() 466 Some(bytes) => bytes, 490 Some(siz 2026 let Some(trailing_slice_size) = size_info.elem_size.checked_mul(meta) else { prove_requires_dynamic_padding() localVariable 2032 let Some(unpadded_size) = size_info.offset.checked_add(trailing_slice_size) else { prove_requires_dynamic_padding() localVariable [all...] |
| /linux/rust/zerocopy/src/pointer/ |
| H A D | ptr.rs | 1128 /// `Some((ptr, remainder))`, then `ptr` and `remainder` refer to in try_cast_into() 1484 if let Some(want) = meta { 1500 if let Some(want) = meta { 1540 test::<[$ty], _, N>([Some(0), Some(1), Some(2), Some(3)]); in test_try_cast_into_explicit_count() 1541 test::<SliceDst<$ty>, _, N>([Some(0), Some(1), Some( in test_try_cast_into_explicit_count() [all...] |
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 162 Some(sg_entry) => sg_entry, in validate_parent_fixup() 372 self.current_transaction = Some(transaction); in pop_transaction_to_reply() 383 Some(old) => { in pop_transaction_replied() 385 self.current_transaction = Some(old); in pop_transaction_replied() 499 while let Some(t) = t_opt { in debug_print() 533 self.inner.lock().current_transaction = Some(transaction); in set_current_transaction() 556 return self.inner.lock().pop_work().ok_or(EAGAIN).map(Some); in get_work_local() 562 if let Some(work) = inner.pop_work() { in get_work_local() 563 return Ok(Some(work)); in get_work_local() 603 if let Some(wor in get_work() [all...] |
| H A D | error.rs | 32 Some((_, file)) => file, in new_frozen() 83 source: Some(source), in fmt() 101 source: Some(ENOMEM), 111 Some(source) => source.fmt(f), 118 Some(source) => source.fmt(f),
|
| /linux/samples/rust/ |
| H A D | rust_driver_i2c.rs | 37 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = Some(&ACPI_TABLE); 38 const I2C_ID_TABLE: Option<i2c::IdTable<Self::IdInfo>> = Some(&I2C_TABLE); 39 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE); 49 if let Some(info) = info { in probe()
|