Home
last modified time | relevance | path

Searched defs:u8 (Results 1 – 25 of 52) sorted by relevance

123

/linux/rust/zerocopy/src/
H A Dlib.rs803 fn raw_from_ptr_len(bytes: NonNull<u8>, meta: Self::PointerMetadata) -> NonNull<Self>; in raw_from_ptr_len()
1068 fn raw_from_ptr_len(data: NonNull<u8>, elems: usize) -> NonNull<Self> { in raw_from_ptr_len()
1878 fn try_ref_from_bytes(source: &[u8]) -> Result<&Self, TryCastError<&[u8], Self>> in try_ref_from_bytes()
2001 fn try_ref_from_prefix(source: &[u8]) -> Result<(&Self, &[u8]), TryCastError<&[u8], Self>> in try_ref_from_prefix()
2111 fn try_ref_from_suffix(source: &[u8]) -> Result<(&[u8], &Self), TryCastError<&[u8], Self>> in try_ref_from_suffix()
2205 fn try_mut_from_bytes(bytes: &mut [u8]) -> Result<&mut Self, TryCastError<&mut [u8], Self>> in try_mut_from_bytes()
2315 source: &mut [u8], in try_mut_from_prefix()
2316 ) -> Result<(&mut Self, &mut [u8]), TryCastError<&mut [u8], Self>> in try_mut_from_prefix()
2415 source: &mut [u8], in try_mut_from_suffix()
2416 ) -> Result<(&mut [u8], &mut Self), TryCastError<&mut [u8], Self>> in try_mut_from_suffix()
[all …]
H A Dbyte_slice.rs170 fn into_byte_slice(self) -> &'a [u8]; in into_byte_slice()
195 fn into_byte_slice_mut(self) -> &'a mut [u8]; in into_byte_slice_mut()
200 unsafe impl ByteSlice for &[u8] {} implementation
204 unsafe impl CopyableByteSlice for &[u8] {} implementation
208 unsafe impl CloneableByteSlice for &[u8] {} implementation
212 unsafe impl SplitByteSlice for &[u8] { implementation
225 unsafe impl<'a> IntoByteSlice<'a> for &'a [u8] { implementation
227 fn into_byte_slice(self) -> &'a [u8] { in into_byte_slice()
238 unsafe impl ByteSlice for &mut [u8] {} implementation
243 unsafe impl SplitByteSlice for &mut [u8] { implementation
[all …]
H A Dimpls.rs1597 bytes: &'bytes [u8], in test_impls()
1605 bytes: &'bytes [u8], in test_impls()
1615 bytes: &'bytes mut [u8], in test_impls()
1623 bytes: &'bytes mut [u8], in test_impls()
1641 fn test_as_bytes<'slf, 't>(&'slf self, t: &'t ReadOnly<T>) -> Option<&'t [u8]>; in test_impls()
1646 fn test_as_bytes<'slf, 't>(&'slf self, t: &'t ReadOnly<T>) -> Option<&'t [u8]> { in test_impls()
H A Dref.rs723 pub fn bytes(r: &Self) -> &[u8] { in bytes()
741 pub fn bytes_mut(r: &mut Self) -> &mut [u8] { in bytes_mut()
961 ptr: Ptr<'a, [u8], (A, Aligned, Valid)>, in cast_for_sized()
1021 let deref_ptr: *const u8 = r.deref(); in test_address() constant
1035 fn test_new_helper(mut r: Ref<&mut [u8], AU64>) { in test_new_helper()
1060 fn test_new_helper_slice(mut r: Ref<&mut [u8], [AU64]>, typed_len: usize) { in test_new_helper_slice()
/linux/rust/kernel/alloc/
H A Dallocator.rs86 call( &self, ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> call() argument
91 call( &self, ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> call() argument
147 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
152 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
217 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
222 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
238 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
243 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
[all...]
/linux/rust/kernel/
H A Dio.rs68 pub fn ptr_from_raw_parts_mut(base: *mut u8, size: usize) -> *mut Self { in ptr_from_raw_parts_mut()
77 pub fn ptr_try_from_raw_parts_mut(base: *mut u8, size: usize) -> Result<*mut Self> { in ptr_try_from_raw_parts_mut()
288 unsafe fn copy_from_io(view: Self::View<'_, [u8]>, buffer: *mut u8); in copy_from_io()
296 unsafe fn copy_to_io(view: Self::View<'_, [u8]>, buffer: *const u8); in copy_to_io()
646 fn try_read8(self, offset: usize) -> Result<u8> in try_read8() argument
649 Self::Backend: IoCapable<u8>, in try_read8()
686 fn try_write8(self, value: u8, offset: usize) -> Result in try_write8()
689 Self::Backend: IoCapable<u8>, in try_write8()
728 fn read8(self, offset: usize) -> u8 in read8() argument
731 Self::Backend: IoCapable<u8>, in read8()
[all …]
H A Duaccess.rs174 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
299 pub fn read_slice_partial(&mut self, out: &mut [u8], offset: usize) -> Result<usize> { in read_slice_partial()
318 pub fn read_slice_file(&mut self, out: &mut [u8], offset: &mut file::Offset) -> Result<usize> { in read_slice_file()
370 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
469 unsafe fn write_raw(&mut self, from: *const u8, len: usize) -> Result { in write_raw()
561 pub fn write_slice_partial(&mut self, data: &[u8], offset: usize) -> Result<usize> { in write_slice_partial()
580 pub fn write_slice_file(&mut self, data: &[u8], offset: &mut file::Offset) -> Result<usize> { in write_slice_file()
641 fn raw_strncpy_from_user(dst: &mut [MaybeUninit<u8>], src: UserPtr) -> Result<usize> { in raw_strncpy_from_user()
H A Dalloc.rs184 alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> alloc() argument
231 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
236 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
247 free(ptr: NonNull<u8>, layout: Layout) free() argument
264 dangling_from_layout(layout: Layout) -> NonNull<u8> dangling_from_layout() argument
H A Dusb.rs154 from_device_info(class: u8, subclass: u8, protocol: u8) -> Self from_device_info() argument
166 from_interface_info(class: u8, subclass: u8, protocol: u8) -> Self from_interface_info() argument
220 from_device_and_interface_info( vendor: u16, product: u16, class: u8, subclass: u8, protocol: u8, ) -> Self from_device_and_interface_info() argument
221 from_device_and_interface_info( vendor: u16, product: u16, class: u8, subclass: u8, protocol: u8, ) -> Self from_device_and_interface_info() argument
222 from_device_and_interface_info( vendor: u16, product: u16, class: u8, subclass: u8, protocol: u8, ) -> Self from_device_and_interface_info() argument
[all...]
H A Dstr.rs154 impl AsRef<BStr> for [u8] { global() implementation
314 to_bytes_mut(s: &mut CStr) -> &mut [u8] to_bytes_mut() argument
564 from_ptrs(pos: *mut u8, end: *mut u8) -> Self from_ptrs() argument
579 from_buffer(buf: *mut u8, len: usize) -> Self from_buffer() argument
593 pos(&self) -> *mut u8 pos() argument
641 from_buffer(buf: *mut u8, len: usize) -> Self from_buffer() argument
[all...]
H A Dprint.rs102 call_printk( format_string: &[u8; format_strings::LENGTH], module_name: &[u8], args: fmt::Arguments<'_>, ) global() argument
[all...]
/linux/rust/syn/
H A Dbigint.rs43 fn add_assign(&mut self, mut increment: u8) { in add_assign()
58 fn mul_assign(&mut self, base: u8) { in mul_assign()
H A Dlit.rs276 pub fn new(value: &[u8], span: Span) -> Self { in new()
287 pub fn value(&self) -> Vec<u8> { in value()
346 pub fn new(value: u8, span: Span) -> Self { in new()
357 pub fn value(&self) -> u8 { in value()
1264 pub(crate) fn byte<S: AsRef<[u8]> + ?Sized>(s: &S, idx: usize) -> u8 { in byte()
1369 pub(crate) fn parse_lit_byte_str(s: &str) -> (Vec<u8>, Box<str>) { in parse_lit_byte_str()
1378 fn parse_lit_byte_str_cooked(mut s: &str) -> (Vec<u8>, Box<str>) { in parse_lit_byte_str_cooked()
1438 fn parse_lit_byte_str_raw(s: &str) -> (Vec<u8>, Box<str>) { in parse_lit_byte_str_raw()
1528 pub(crate) fn parse_lit_byte(s: &str) -> (u8, Box<str>) { in parse_lit_byte()
1614 fn backslash_x<S>(s: &S) -> (u8, &S) in backslash_x()
H A Dfixup.rs499 fail_offset: u8, in scan_right()
500 bailout_offset: u8, in scan_right()
/linux/drivers/android/binder/
H A Dstats.rs67 static binder_command_strings: [*const u8; super::BC_COUNT]; constant
68 static binder_return_strings: [*const u8; super::BR_COUNT]; constant
/linux/rust/zerocopy/src/util/
H A Dmod.rs282 pub(crate) unsafe fn copy_unchecked(src: &[u8], dst: &mut [u8]) { in copy_unchecked()
388 allocate: unsafe fn(core::alloc::Layout) -> *mut u8, in new_box()
593 bytes_len: MetadataOf<[u8]>, in validate_cast_and_convert_metadata()
596 ) -> Result<(MetadataOf<T>, MetadataOf<[u8]>), MetadataCastError> { in validate_cast_and_convert_metadata()
934 let p = r as *const u8; in test_as_address() constant
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_sk.c19 char u8[4]; in getsetsockopt() member
/linux/tools/sched_ext/include/scx/
H A Dcommon.h21 typedef uint8_t u8; typedef
/linux/Documentation/driver-api/surface_aggregator/
H A Dssh.rst3 .. |u8| replace:: :c:type:`u8 <u8>` substdef
/linux/drivers/comedi/drivers/ni_routing/tools/
H A Dconvert_c_to_py.c9 typedef uint8_t u8; typedef
/linux/tools/testing/selftests/bpf/libarena/include/libarena/
H A Dcommon.h70 typedef uint8_t u8; typedef
/linux/arch/sh/drivers/pci/
H A Dcommon.c42 EARLY_PCI_OP(read, byte, u8 *) in EARLY_PCI_OP() argument
/linux/arch/powerpc/boot/
H A Dtypes.h9 typedef unsigned char u8; typedef
/linux/include/asm-generic/
H A Dint-ll64.h17 typedef __u8 u8; typedef
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/
H A Dmxms.c97 bool (*exec)(struct nvkm_mxm *, u8 *, void *), void *info) in mxms_foreach() argument

123