Home
last modified time | relevance | path

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

/DragonOS/kernel/src/perf/
H A Dbpf.rs159 let data_region = self.as_mut_slice()[PAGE_SIZE..].as_mut(); in write_any()
216 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() method
/DragonOS/kernel/src/libs/
H A Dvec_cursor.rs227 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() method
/DragonOS/kernel/crates/rbpf/tests/
H A Dcranelift.rs2108 vm.execute_program_cranelift(mem.as_mut_slice()).unwrap(), in test_cranelift_tcp_sack_match()
2120 vm.execute_program_cranelift(mem.as_mut_slice()).unwrap(), in test_cranelift_tcp_sack_nomatch()
H A Dubpf_jit_x86_64.rs2878 assert_eq!(vm.execute_program_jit(mem.as_mut_slice()).unwrap(), 0x1); in test_jit_tcp_sack_match()
2889 assert_eq!(vm.execute_program_jit(mem.as_mut_slice()).unwrap(), 0x0); in test_jit_tcp_sack_nomatch()
H A Dubpf_vm.rs2665 assert_eq!(vm.execute_program(mem.as_mut_slice()).unwrap(), 0x1); in test_vm_tcp_sack_match()
2673 assert_eq!(vm.execute_program(mem.as_mut_slice()).unwrap(), 0x0); in test_vm_tcp_sack_nomatch()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e_driver.rs104 let result = f(self.0.as_mut_slice()); in consume()
116 let result = f(buffer.as_mut_slice()); in consume()
H A De1000e.rs143 pub fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() method
/DragonOS/kernel/src/driver/net/
H A Dloopback.rs55 f(self.buffer.as_mut_slice()) in consume()
81 let result = f(buffer.as_mut_slice()); in consume()
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs104 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { in as_mut_slice() method