Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 9 of 9) sorted by relevance

/optee_rust/optee-utee/src/
A Dtrace.rs52 fn write(&mut self, buf: &[u8]) -> io::Result<usize> { in write()
54 raw::_utee_log(buf.as_ptr() as *const libc::c_void, buf.len()); in write()
56 Ok(buf.len()) in write()
A Dnet.rs106 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { in read()
107 let mut length: u32 = buf.len() as _; in read()
111 buf.as_mut_ptr() as _, in read()
148 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { in write()
149 let mut length: u32 = buf.len() as _; in write()
153 buf.as_ptr() as *const u8 as _, in write()
277 let mut length: u32 = buf.len() as _; in read()
281 buf.as_mut_ptr() as _, in read()
318 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { in write()
319 let mut length: u32 = buf.len() as _; in write()
[all …]
A Dobject.rs1192 pub fn read(&self, buf: &mut [u8]) -> Result<u32> { in read()
1197 buf.as_mut_ptr() as _, in read()
1198 buf.len() as u32, in read()
1246 pub fn write(&mut self, buf: &[u8]) -> Result<()> { in write()
1248 raw::TEE_WriteObjectData(self.handle(), buf.as_ptr() as _, buf.len() as u32) in write()
/optee_rust/examples/random-rs/ta/src/
A Dmain.rs51 let mut buf = vec![0; p.buffer().len() as usize]; in random_number_generate() variables
52 buf.copy_from_slice(p.buffer()); in random_number_generate()
54 Random::generate(buf.as_mut() as _); in random_number_generate()
55 p.buffer().copy_from_slice(&buf); in random_number_generate()
/optee_rust/optee-utee/optee-utee-sys/src/
A Dtee_isocket.rs37 buf: *const c_void,
43 buf: *mut c_void,
51 buf: *mut c_void,
A Dtee_internal_api_extensions.rs34 buf: *mut c_char, in tee_invoke_supp_plugin()
A Dtrace.rs37 buf: *const c_void, in dhex_dump()
A Dutee_syscalls.rs23 pub fn _utee_log(buf: *const c_void, len: size_t); in _utee_log()
30 buf: *mut c_void, in _utee_get_property()
55 pub fn _utee_check_access_rights(flags: u32, buf: *const c_void, len: size_t) in _utee_check_access_rights()
127 pub fn _utee_cryp_random_number_generate(buf: *mut c_void, blen: size_t) -> TEE_Result; in _utee_cryp_random_number_generate()
/optee_rust/examples/udp_socket-rs/host/src/
A Dmain.rs41 let mut buf = [0; 100]; in main() variables
42 let (_, src_addr) = socket.recv_from(&mut buf).unwrap(); in main()
44 println!("{}", str::from_utf8(&buf).unwrap()); in main()

Completed in 11 milliseconds